int Dev = 40;// Deviation
extern const int CNN = 2;// Case Index
extern const int P = 3;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 18;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 350;//Number of shipments
extern const int SN = 50;//Number of scenarios at each stage
extern const int MBSN = 9;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{11196,0,0,0,0,0},{10810,0,0,0,0,0},{11082,0,0,0,0,0},{11152,0,0,0,0,0},{10894,0,0,0,0,0},{10877,0,0,0,0,0},{10974,0,0,0,0,0},{11309,0,0,0,0,0},{10414,0,0,0,0,0},{11039,0,0,0,0,0},{10786,0,0,0,0,0},{10853,0,0,0,0,0},{10839,0,0,0,0,0},{10795,0,0,0,0,0},{11072,0,0,0,0,0},{11440,0,0,0,0,0},{11422,0,0,0,0,0},{10607,0,0,0,0,0},{10954,0,0,0,0,0},{11591,0,0,0,0,0},{11231,0,0,0,0,0},{10984,0,0,0,0,0},{10800,0,0,0,0,0},{10615,0,0,0,0,0},{11408,0,0,0,0,0},{11479,0,0,0,0,0},{10555,0,0,0,0,0},{11710,0,0,0,0,0},{11758,0,0,0,0,0},{10956,0,0,0,0,0},{10489,0,0,0,0,0},{11039,0,0,0,0,0},{10979,0,0,0,0,0},{11025,0,0,0,0,0},{11277,0,0,0,0,0},{10875,0,0,0,0,0},{11652,0,0,0,0,0},{11235,0,0,0,0,0},{11192,0,0,0,0,0},{11288,0,0,0,0,0},{10769,0,0,0,0,0},{10595,0,0,0,0,0},{10991,0,0,0,0,0},{11181,0,0,0,0,0},{10831,0,0,0,0,0},{12382,0,0,0,0,0},{11336,0,0,0,0,0},{10928,0,0,0,0,0},{10997,0,0,0,0,0},{11727,0,0,0,0,0}},{{11217,0,0,0,0,0},{11144,0,0,0,0,0},{10893,0,0,0,0,0},{11348,0,0,0,0,0},{11083,0,0,0,0,0},{10982,0,0,0,0,0},{11107,0,0,0,0,0},{11268,0,0,0,0,0},{10586,0,0,0,0,0},{10918,0,0,0,0,0},{10745,0,0,0,0,0},{11199,0,0,0,0,0},{11134,0,0,0,0,0},{11077,0,0,0,0,0},{11295,0,0,0,0,0},{10736,0,0,0,0,0},{10476,0,0,0,0,0},{10782,0,0,0,0,0},{11127,0,0,0,0,0},{11044,0,0,0,0,0},{10484,0,0,0,0,0},{11542,0,0,0,0,0},{11494,0,0,0,0,0},{10922,0,0,0,0,0},{11020,0,0,0,0,0},{11281,0,0,0,0,0},{10902,0,0,0,0,0},{10522,0,0,0,0,0},{11235,0,0,0,0,0},{11116,0,0,0,0,0},{11094,0,0,0,0,0},{11023,0,0,0,0,0},{11104,0,0,0,0,0},{10791,0,0,0,0,0},{11067,0,0,0,0,0},{11385,0,0,0,0,0},{10867,0,0,0,0,0},{11575,0,0,0,0,0},{10344,0,0,0,0,0},{11541,0,0,0,0,0},{11601,0,0,0,0,0},{10578,0,0,0,0,0},{11277,0,0,0,0,0},{11580,0,0,0,0,0},{10829,0,0,0,0,0},{11057,0,0,0,0,0},{10782,0,0,0,0,0},{10902,0,0,0,0,0},{10518,0,0,0,0,0},{11173,0,0,0,0,0}},{{10857,0,0,0,0,0},{11377,0,0,0,0,0},{11007,0,0,0,0,0},{10761,0,0,0,0,0},{11259,0,0,0,0,0},{10925,0,0,0,0,0},{11382,0,0,0,0,0},{10822,0,0,0,0,0},{10202,0,0,0,0,0},{11258,0,0,0,0,0},{10409,0,0,0,0,0},{10860,0,0,0,0,0},{11301,0,0,0,0,0},{11589,0,0,0,0,0},{11070,0,0,0,0,0},{11067,0,0,0,0,0},{11139,0,0,0,0,0},{11064,0,0,0,0,0},{11095,0,0,0,0,0},{11369,0,0,0,0,0},{11173,0,0,0,0,0},{10953,0,0,0,0,0},{11078,0,0,0,0,0},{11302,0,0,0,0,0},{11307,0,0,0,0,0},{10938,0,0,0,0,0},{11418,0,0,0,0,0},{11248,0,0,0,0,0},{11659,0,0,0,0,0},{11461,0,0,0,0,0},{12154,0,0,0,0,0},{10594,0,0,0,0,0},{10805,0,0,0,0,0},{10440,0,0,0,0,0},{10325,0,0,0,0,0},{11170,0,0,0,0,0},{11063,0,0,0,0,0},{10924,0,0,0,0,0},{11173,0,0,0,0,0},{9999,0,0,0,0,0},{10909,0,0,0,0,0},{10837,0,0,0,0,0},{11025,0,0,0,0,0},{10892,0,0,0,0,0},{10492,0,0,0,0,0},{10898,0,0,0,0,0},{10750,0,0,0,0,0},{11617,0,0,0,0,0},{10915,0,0,0,0,0},{11046,0,0,0,0,0}}},{{{-186,-287,-233,-215,-231,-267},{-184,-215,-155,-148,-168,-199},{-264,-181,-188,-280,-307,-220},{-302,-231,-255,-228,-186,-240},{-168,-217,-311,-253,-231,-181},{-166,-206,-148,-175,-309,-206},{-141,-164,-181,-311,-293,-251},{-291,-181,-146,-193,-222,-226},{-255,-293,-305,-242,-206,-307},{-141,-143,-280,-220,-258,-260},{-235,-146,-269,-143,-134,-143},{-255,-157,-244,-289,-305,-179},{-159,-206,-287,-300,-235,-175},{-251,-208,-311,-273,-193,-168},{-188,-161,-220,-202,-199,-253},{-226,-284,-246,-302,-175,-222},{-253,-298,-161,-262,-287,-188},{-220,-240,-307,-204,-181,-139},{-204,-197,-204,-143,-280,-152},{-314,-148,-280,-228,-296,-217},{-300,-298,-134,-195,-242,-309},{-228,-226,-177,-202,-161,-188},{-166,-249,-267,-240,-251,-150},{-155,-137,-161,-307,-291,-267},{-237,-228,-177,-300,-237,-235},{-222,-291,-273,-222,-240,-175},{-289,-222,-139,-302,-307,-211},{-267,-170,-280,-217,-242,-253},{-208,-215,-293,-208,-139,-155},{-143,-282,-186,-161,-271,-233},{-195,-237,-258,-155,-134,-159},{-309,-273,-197,-186,-307,-273},{-300,-296,-267,-220,-246,-309},{-188,-184,-228,-197,-276,-244},{-155,-271,-170,-314,-141,-155},{-150,-305,-143,-224,-166,-186},{-213,-311,-231,-208,-224,-278},{-188,-311,-237,-197,-199,-262},{-276,-267,-164,-249,-267,-186},{-228,-181,-262,-220,-177,-213},{-157,-302,-222,-276,-211,-168},{-186,-282,-220,-242,-184,-220},{-231,-235,-314,-296,-311,-206},{-179,-188,-237,-181,-175,-233},{-251,-141,-269,-172,-161,-293},{-258,-284,-311,-141,-251,-300},{-237,-175,-226,-211,-298,-204},{-168,-284,-284,-134,-211,-208},{-298,-177,-249,-302,-137,-146},{-282,-157,-233,-172,-184,-282}},{{-240,-152,-302,-231,-170,-233},{-184,-284,-226,-202,-255,-188},{-228,-260,-255,-260,-208,-305},{-262,-220,-137,-287,-296,-298},{-199,-161,-155,-170,-224,-168},{-244,-267,-273,-184,-161,-217},{-240,-262,-228,-224,-179,-314},{-217,-195,-199,-293,-271,-305},{-184,-166,-267,-168,-251,-226},{-235,-215,-161,-206,-267,-314},{-161,-202,-143,-235,-264,-231},{-211,-233,-143,-208,-143,-206},{-146,-255,-309,-215,-314,-148},{-300,-161,-188,-161,-289,-175},{-195,-228,-170,-264,-293,-311},{-166,-296,-224,-143,-242,-300},{-217,-264,-300,-307,-284,-177},{-168,-314,-220,-164,-224,-282},{-157,-289,-197,-298,-224,-258},{-271,-237,-253,-289,-202,-269},{-148,-148,-226,-222,-186,-211},{-258,-164,-228,-253,-284,-222},{-258,-273,-298,-276,-199,-228},{-255,-188,-190,-222,-159,-246},{-300,-199,-199,-217,-159,-237},{-307,-251,-217,-190,-179,-184},{-208,-228,-204,-291,-155,-300},{-311,-139,-262,-141,-170,-240},{-188,-224,-172,-309,-170,-204},{-258,-157,-240,-255,-309,-206},{-251,-157,-134,-164,-246,-314},{-253,-233,-276,-202,-287,-280},{-213,-226,-168,-278,-309,-240},{-240,-134,-186,-220,-251,-195},{-217,-161,-141,-148,-298,-188},{-193,-148,-311,-224,-262,-146},{-242,-224,-293,-217,-164,-161},{-246,-204,-311,-284,-264,-284},{-278,-255,-195,-226,-148,-222},{-155,-141,-222,-271,-296,-293},{-195,-137,-240,-244,-206,-237},{-148,-264,-141,-202,-273,-181},{-143,-172,-152,-206,-293,-148},{-202,-284,-204,-307,-188,-193},{-298,-262,-273,-262,-211,-231},{-172,-159,-139,-255,-141,-141},{-267,-291,-175,-172,-246,-152},{-190,-246,-208,-242,-148,-211},{-302,-143,-244,-170,-262,-186},{-193,-298,-280,-134,-181,-300}},{{-242,-242,-296,-170,-302,-264},{-193,-300,-224,-166,-278,-213},{-148,-235,-220,-204,-161,-264},{-269,-244,-143,-159,-181,-215},{-262,-224,-291,-148,-289,-215},{-199,-193,-267,-224,-305,-284},{-134,-197,-271,-220,-260,-298},{-231,-222,-314,-195,-267,-287},{-211,-197,-172,-302,-175,-186},{-231,-260,-222,-258,-298,-193},{-293,-296,-302,-186,-177,-251},{-168,-152,-217,-206,-251,-159},{-305,-251,-195,-206,-307,-314},{-215,-213,-264,-260,-264,-146},{-235,-289,-202,-137,-172,-240},{-195,-284,-139,-264,-188,-186},{-159,-139,-197,-267,-235,-166},{-146,-186,-262,-231,-231,-217},{-217,-264,-228,-251,-181,-260},{-228,-159,-204,-195,-170,-264},{-208,-314,-291,-199,-244,-246},{-186,-193,-224,-262,-190,-177},{-137,-208,-199,-226,-213,-267},{-208,-161,-235,-157,-309,-273},{-309,-273,-237,-208,-213,-143},{-143,-206,-287,-164,-186,-188},{-305,-164,-249,-287,-202,-197},{-314,-197,-264,-282,-224,-224},{-287,-255,-188,-235,-139,-159},{-249,-246,-291,-166,-152,-204},{-139,-296,-258,-293,-141,-168},{-188,-224,-253,-175,-193,-222},{-226,-157,-300,-155,-249,-307},{-244,-148,-190,-195,-134,-302},{-166,-300,-179,-181,-161,-146},{-164,-244,-215,-199,-188,-206},{-166,-186,-168,-197,-177,-233},{-296,-164,-284,-159,-251,-311},{-282,-197,-139,-260,-170,-188},{-179,-202,-143,-213,-137,-199},{-280,-314,-233,-215,-222,-186},{-284,-139,-287,-280,-264,-197},{-293,-311,-282,-311,-217,-305},{-164,-159,-177,-206,-195,-237},{-181,-280,-282,-186,-233,-264},{-222,-231,-141,-152,-199,-199},{-267,-314,-258,-170,-273,-220},{-258,-148,-157,-228,-296,-300},{-188,-269,-157,-271,-273,-262},{-278,-309,-199,-150,-307,-195}}},{{{-264,-288,-293,-167,-224,-259},{-278,-233,-224,-264,-331,-238},{-169,-217,-171,-233,-255,-233},{-333,-333,-190,-298,-200,-176},{-150,-157,-262,-324,-269,-174},{-309,-267,-228,-181,-183,-190},{-290,-152,-317,-238,-305,-205},{-178,-209,-186,-195,-157,-281},{-317,-233,-269,-150,-202,-176},{-302,-155,-286,-269,-174,-212},{-217,-167,-226,-145,-209,-250},{-174,-302,-212,-214,-190,-302},{-207,-305,-319,-331,-178,-178},{-286,-243,-159,-143,-212,-152},{-267,-186,-183,-231,-243,-162},{-162,-312,-221,-176,-243,-231},{-167,-181,-288,-333,-333,-250},{-202,-212,-324,-157,-274,-257},{-326,-319,-271,-295,-333,-259},{-281,-145,-264,-228,-207,-195},{-248,-236,-162,-264,-245,-302},{-212,-252,-240,-150,-248,-190},{-202,-262,-202,-193,-252,-145},{-193,-186,-174,-224,-188,-148},{-267,-326,-262,-333,-248,-228},{-321,-150,-324,-214,-209,-319},{-250,-245,-278,-164,-286,-328},{-267,-167,-264,-290,-298,-159},{-231,-324,-307,-186,-207,-152},{-231,-286,-283,-176,-200,-321},{-309,-228,-283,-169,-217,-248},{-312,-190,-290,-333,-255,-178},{-205,-205,-190,-181,-167,-167},{-290,-274,-295,-214,-281,-309},{-252,-317,-295,-159,-312,-159},{-324,-238,-317,-238,-267,-271},{-219,-324,-198,-228,-202,-174},{-302,-212,-209,-164,-183,-152},{-214,-231,-233,-321,-195,-224},{-324,-236,-236,-307,-314,-200},{-262,-205,-276,-288,-202,-217},{-207,-331,-145,-233,-324,-319},{-152,-286,-226,-176,-314,-145},{-305,-171,-159,-217,-252,-288},{-300,-200,-233,-276,-298,-157},{-317,-264,-186,-269,-333,-162},{-314,-174,-312,-209,-171,-164},{-319,-236,-326,-233,-183,-255},{-300,-324,-255,-305,-321,-324},{-326,-259,-278,-290,-240,-219}},{{-236,-233,-283,-269,-207,-167},{-262,-314,-188,-176,-305,-245},{-281,-217,-174,-255,-209,-209},{-298,-314,-174,-248,-309,-188},{-252,-286,-278,-307,-150,-293},{-321,-152,-236,-221,-259,-288},{-286,-226,-169,-183,-200,-226},{-186,-193,-328,-245,-262,-231},{-193,-200,-178,-150,-290,-193},{-217,-298,-276,-152,-228,-228},{-276,-231,-259,-202,-283,-283},{-243,-278,-298,-188,-317,-278},{-219,-214,-188,-217,-286,-267},{-209,-317,-236,-233,-157,-226},{-209,-281,-243,-148,-274,-183},{-312,-245,-167,-314,-309,-269},{-198,-276,-193,-152,-305,-255},{-183,-152,-155,-176,-278,-295},{-305,-309,-231,-283,-167,-324},{-231,-195,-195,-195,-302,-150},{-257,-281,-219,-298,-281,-202},{-243,-278,-255,-167,-188,-259},{-233,-286,-267,-269,-250,-186},{-248,-169,-278,-169,-276,-152},{-255,-152,-236,-269,-290,-186},{-231,-298,-200,-214,-233,-283},{-295,-252,-269,-333,-309,-183},{-178,-186,-233,-321,-152,-324},{-188,-200,-269,-195,-205,-328},{-198,-209,-190,-209,-231,-250},{-300,-317,-255,-171,-283,-295},{-298,-171,-207,-309,-188,-150},{-188,-143,-202,-278,-290,-219},{-209,-309,-167,-236,-243,-159},{-224,-231,-150,-174,-288,-295},{-155,-202,-262,-271,-248,-255},{-259,-200,-236,-302,-248,-212},{-305,-155,-259,-278,-174,-231},{-214,-143,-186,-331,-328,-278},{-157,-319,-319,-169,-319,-267},{-271,-150,-281,-252,-240,-262},{-200,-245,-162,-214,-243,-264},{-233,-240,-231,-293,-267,-257},{-228,-326,-288,-212,-171,-209},{-238,-295,-188,-148,-193,-319},{-178,-207,-202,-298,-183,-212},{-188,-314,-176,-298,-295,-231},{-148,-302,-300,-245,-243,-267},{-231,-164,-214,-209,-183,-240},{-333,-238,-324,-283,-319,-157}},{{-209,-283,-157,-181,-159,-209},{-302,-331,-243,-178,-295,-181},{-324,-252,-252,-271,-231,-219},{-209,-274,-309,-290,-271,-209},{-219,-181,-276,-248,-236,-312},{-255,-186,-271,-267,-186,-240},{-145,-293,-240,-145,-271,-271},{-181,-314,-214,-200,-231,-271},{-207,-314,-324,-178,-295,-278},{-331,-233,-152,-221,-167,-155},{-200,-183,-209,-228,-238,-207},{-324,-145,-152,-226,-248,-169},{-238,-202,-145,-214,-217,-259},{-324,-317,-333,-174,-293,-183},{-302,-243,-200,-198,-267,-231},{-262,-188,-293,-214,-328,-164},{-288,-202,-288,-157,-274,-186},{-331,-219,-267,-259,-259,-271},{-314,-152,-217,-214,-148,-181},{-331,-195,-288,-317,-300,-305},{-255,-317,-145,-302,-307,-164},{-269,-288,-164,-157,-167,-317},{-278,-305,-159,-245,-269,-224},{-281,-200,-286,-298,-195,-145},{-274,-228,-264,-231,-178,-193},{-238,-300,-300,-252,-248,-200},{-240,-314,-217,-255,-178,-155},{-252,-293,-145,-181,-198,-250},{-283,-181,-269,-326,-307,-286},{-331,-314,-217,-207,-324,-290},{-326,-269,-219,-193,-295,-231},{-157,-162,-255,-233,-167,-271},{-321,-152,-152,-269,-157,-276},{-281,-198,-157,-178,-274,-176},{-295,-181,-278,-198,-309,-148},{-324,-331,-290,-278,-295,-321},{-312,-243,-321,-198,-209,-302},{-176,-169,-286,-252,-305,-159},{-236,-221,-257,-198,-145,-200},{-238,-259,-248,-181,-176,-271},{-181,-162,-257,-231,-181,-333},{-152,-164,-328,-193,-155,-212},{-283,-155,-298,-240,-305,-269},{-217,-331,-221,-167,-324,-174},{-224,-162,-174,-295,-243,-193},{-300,-324,-169,-245,-236,-164},{-328,-314,-236,-159,-150,-264},{-152,-307,-312,-264,-324,-262},{-174,-162,-295,-198,-295,-302},{-174,-188,-186,-155,-331,-305}}},{{{-257,-251,-227,-268,-298,-172},{-366,-292,-232,-229,-314,-308},{-300,-319,-270,-235,-333,-240},{-308,-227,-169,-257,-300,-183},{-292,-314,-300,-191,-232,-191},{-246,-207,-248,-289,-306,-276},{-382,-251,-243,-175,-265,-254},{-278,-358,-194,-229,-177,-169},{-377,-311,-186,-298,-205,-175},{-363,-205,-300,-308,-349,-216},{-319,-213,-213,-175,-325,-358},{-191,-344,-352,-360,-314,-363},{-374,-216,-216,-325,-235,-207},{-221,-270,-188,-303,-216,-306},{-330,-257,-243,-303,-289,-330},{-218,-177,-235,-270,-216,-259},{-366,-347,-224,-276,-319,-251},{-218,-213,-273,-333,-180,-281},{-292,-322,-262,-374,-300,-278},{-311,-235,-268,-366,-188,-213},{-319,-265,-180,-199,-379,-374},{-229,-333,-175,-317,-265,-191},{-289,-207,-270,-221,-243,-322},{-311,-363,-229,-292,-218,-330},{-363,-336,-319,-221,-273,-180},{-319,-319,-276,-322,-210,-325},{-238,-164,-216,-339,-240,-268},{-281,-360,-276,-325,-227,-377},{-278,-317,-363,-366,-349,-360},{-322,-344,-333,-347,-164,-333},{-295,-276,-336,-238,-205,-352},{-311,-268,-328,-172,-273,-303},{-216,-246,-306,-352,-191,-268},{-366,-281,-270,-207,-352,-254},{-276,-336,-210,-268,-352,-229},{-270,-292,-262,-186,-330,-341},{-257,-246,-358,-369,-180,-270},{-303,-366,-229,-210,-366,-257},{-243,-262,-319,-369,-229,-298},{-216,-341,-339,-336,-360,-270},{-191,-325,-300,-197,-377,-257},{-180,-186,-322,-371,-191,-344},{-278,-276,-311,-349,-167,-197},{-298,-213,-325,-251,-268,-349},{-169,-273,-366,-265,-314,-197},{-339,-377,-306,-374,-336,-352},{-300,-303,-347,-314,-265,-205},{-188,-246,-191,-240,-238,-221},{-344,-336,-167,-216,-207,-319},{-248,-352,-298,-325,-295,-328}},{{-317,-199,-227,-360,-325,-325},{-317,-311,-314,-210,-229,-218},{-240,-374,-191,-199,-339,-175},{-347,-371,-317,-366,-366,-240},{-298,-379,-292,-180,-232,-186},{-382,-284,-224,-265,-377,-202},{-251,-360,-281,-268,-339,-191},{-191,-377,-298,-183,-292,-355},{-205,-328,-268,-344,-377,-306},{-194,-328,-229,-254,-254,-287},{-216,-369,-188,-197,-333,-292},{-308,-172,-295,-248,-371,-371},{-213,-336,-347,-278,-180,-224},{-369,-172,-169,-339,-358,-344},{-224,-281,-248,-248,-238,-314},{-319,-186,-191,-207,-306,-199},{-281,-347,-289,-197,-284,-167},{-344,-371,-240,-259,-273,-183},{-183,-251,-333,-366,-243,-177},{-347,-295,-374,-207,-278,-268},{-248,-172,-300,-167,-254,-172},{-243,-186,-262,-224,-347,-194},{-319,-295,-281,-344,-325,-164},{-306,-325,-213,-210,-303,-194},{-330,-281,-374,-319,-369,-259},{-344,-322,-330,-379,-213,-169},{-194,-336,-360,-172,-347,-265},{-183,-251,-232,-194,-213,-210},{-311,-300,-358,-371,-333,-374},{-227,-227,-325,-227,-221,-224},{-308,-281,-360,-191,-210,-339},{-336,-270,-295,-289,-300,-314},{-240,-251,-243,-379,-240,-344},{-289,-232,-169,-278,-358,-238},{-238,-216,-382,-360,-213,-369},{-180,-175,-292,-262,-355,-188},{-382,-191,-177,-216,-339,-186},{-355,-186,-248,-366,-281,-300},{-300,-197,-210,-319,-336,-300},{-382,-257,-224,-268,-325,-328},{-229,-349,-328,-330,-177,-366},{-224,-238,-210,-314,-352,-205},{-355,-229,-317,-284,-311,-341},{-300,-295,-317,-180,-355,-371},{-311,-292,-366,-322,-265,-311},{-330,-349,-339,-303,-278,-205},{-379,-175,-295,-379,-330,-341},{-298,-360,-186,-199,-235,-360},{-287,-207,-202,-224,-371,-308},{-284,-232,-328,-221,-379,-199}},{{-377,-191,-172,-270,-205,-262},{-205,-273,-270,-180,-221,-379},{-259,-251,-377,-311,-281,-292},{-169,-248,-257,-328,-194,-292},{-276,-167,-216,-287,-328,-366},{-259,-382,-303,-164,-224,-298},{-216,-197,-194,-339,-336,-273},{-207,-210,-303,-216,-175,-319},{-229,-287,-238,-202,-175,-248},{-167,-306,-330,-278,-281,-360},{-265,-227,-216,-216,-363,-238},{-240,-347,-197,-347,-186,-382},{-273,-278,-333,-366,-251,-330},{-284,-336,-298,-270,-355,-300},{-180,-175,-175,-382,-339,-377},{-240,-314,-377,-254,-175,-172},{-188,-292,-276,-265,-238,-344},{-202,-317,-314,-221,-221,-221},{-227,-355,-229,-330,-259,-251},{-303,-248,-197,-238,-246,-268},{-268,-265,-216,-268,-227,-199},{-276,-371,-268,-379,-322,-322},{-311,-240,-333,-213,-314,-227},{-347,-191,-360,-229,-377,-213},{-210,-240,-235,-284,-374,-355},{-358,-202,-265,-377,-167,-216},{-191,-164,-358,-377,-205,-366},{-265,-240,-205,-224,-238,-292},{-355,-232,-300,-238,-257,-317},{-172,-240,-317,-322,-355,-276},{-360,-341,-257,-197,-251,-238},{-243,-330,-216,-221,-325,-341},{-259,-207,-325,-336,-328,-169},{-207,-270,-207,-319,-317,-347},{-232,-205,-243,-243,-224,-227},{-191,-284,-254,-308,-199,-308},{-229,-377,-262,-202,-300,-314},{-216,-259,-344,-246,-177,-355},{-278,-363,-314,-374,-218,-366},{-295,-188,-205,-243,-319,-216},{-197,-298,-207,-167,-336,-248},{-246,-188,-273,-210,-328,-276},{-314,-216,-363,-292,-273,-172},{-355,-281,-164,-349,-205,-224},{-284,-300,-199,-191,-227,-311},{-328,-218,-259,-257,-330,-177},{-347,-243,-268,-278,-216,-306},{-325,-319,-281,-276,-167,-224},{-188,-322,-172,-186,-270,-273},{-205,-355,-232,-358,-167,-355}}},{{{-126,-208,-152,-137,-169,-160},{-137,-100,-111,-174,-111,-97},{-202,-191,-106,-142,-166,-160},{-214,-119,-139,-152,-194,-152},{-166,-134,-202,-145,-112,-146},{-126,-202,-100,-122,-145,-206},{-213,-149,-143,-209,-116,-209},{-179,-213,-166,-194,-103,-174},{-202,-186,-103,-146,-100,-177},{-205,-180,-111,-148,-137,-114},{-179,-148,-122,-196,-145,-165},{-199,-116,-108,-176,-92,-105},{-129,-154,-202,-208,-209,-92},{-185,-125,-208,-186,-213,-205},{-137,-112,-137,-162,-168,-116},{-180,-189,-128,-176,-117,-149},{-149,-129,-185,-182,-159,-92},{-213,-119,-108,-157,-154,-203},{-146,-163,-95,-97,-92,-174},{-122,-142,-189,-186,-112,-183},{-140,-119,-196,-162,-216,-216},{-162,-105,-174,-202,-209,-209},{-143,-163,-117,-192,-172,-191},{-131,-196,-211,-145,-208,-159},{-132,-112,-125,-191,-142,-97},{-112,-194,-213,-114,-191,-189},{-92,-149,-189,-177,-94,-188},{-185,-194,-136,-122,-168,-146},{-145,-182,-128,-185,-202,-157},{-134,-146,-106,-97,-111,-162},{-103,-126,-103,-165,-183,-176},{-109,-119,-102,-123,-120,-159},{-185,-151,-186,-139,-183,-123},{-200,-131,-134,-208,-140,-192},{-97,-111,-151,-149,-174,-192},{-137,-185,-174,-163,-145,-183},{-185,-171,-160,-117,-216,-99},{-174,-95,-108,-179,-103,-211},{-95,-213,-189,-165,-106,-108},{-137,-197,-160,-125,-196,-179},{-189,-140,-102,-168,-214,-189},{-116,-116,-185,-108,-202,-192},{-183,-132,-188,-105,-142,-112},{-196,-174,-152,-154,-202,-126},{-116,-171,-111,-199,-102,-191},{-142,-176,-183,-180,-206,-139},{-202,-126,-191,-103,-194,-108},{-189,-99,-165,-143,-162,-183},{-129,-213,-189,-194,-183,-206},{-114,-94,-156,-100,-168,-122}},{{-214,-183,-216,-208,-134,-205},{-196,-192,-106,-132,-122,-123},{-134,-162,-106,-185,-177,-159},{-186,-176,-162,-214,-214,-143},{-185,-172,-185,-132,-114,-182},{-165,-100,-92,-194,-172,-205},{-197,-142,-192,-146,-132,-172},{-166,-169,-213,-206,-211,-202},{-120,-103,-209,-126,-182,-179},{-122,-214,-157,-145,-154,-194},{-211,-123,-131,-139,-206,-152},{-174,-129,-168,-196,-140,-160},{-171,-159,-100,-95,-211,-182},{-132,-117,-143,-109,-140,-206},{-177,-162,-92,-189,-143,-149},{-146,-203,-171,-94,-189,-103},{-137,-117,-97,-160,-145,-194},{-146,-152,-169,-139,-140,-149},{-120,-156,-116,-119,-116,-103},{-129,-180,-199,-156,-140,-171},{-122,-145,-186,-149,-182,-125},{-142,-199,-169,-139,-171,-174},{-194,-97,-136,-202,-95,-185},{-194,-143,-194,-206,-160,-132},{-177,-174,-111,-116,-142,-102},{-125,-111,-159,-111,-163,-119},{-108,-208,-216,-105,-112,-182},{-196,-140,-151,-106,-103,-152},{-143,-163,-100,-136,-152,-157},{-168,-203,-157,-146,-97,-163},{-103,-216,-100,-116,-120,-143},{-180,-131,-174,-145,-125,-129},{-123,-168,-211,-102,-165,-95},{-143,-214,-185,-117,-117,-125},{-145,-186,-106,-157,-145,-120},{-197,-183,-174,-134,-139,-177},{-149,-139,-116,-126,-105,-99},{-182,-194,-211,-142,-199,-216},{-169,-177,-134,-140,-102,-99},{-205,-119,-176,-142,-148,-197},{-214,-128,-177,-149,-199,-123},{-123,-208,-111,-100,-152,-143},{-109,-172,-134,-143,-174,-183},{-163,-159,-166,-200,-214,-162},{-180,-112,-132,-148,-188,-120},{-160,-143,-216,-171,-192,-169},{-174,-125,-146,-146,-99,-102},{-154,-120,-92,-205,-214,-182},{-169,-123,-156,-108,-169,-132},{-186,-128,-106,-171,-114,-202}},{{-117,-172,-162,-202,-145,-145},{-111,-114,-132,-154,-172,-208},{-146,-188,-140,-136,-95,-145},{-179,-112,-203,-162,-146,-151},{-143,-95,-120,-174,-128,-177},{-199,-186,-168,-174,-94,-126},{-162,-140,-120,-125,-106,-163},{-112,-152,-191,-188,-132,-132},{-114,-108,-192,-105,-100,-197},{-134,-125,-214,-192,-179,-213},{-134,-92,-159,-92,-152,-203},{-211,-165,-126,-209,-208,-125},{-126,-103,-174,-126,-160,-174},{-188,-159,-125,-194,-188,-116},{-125,-194,-196,-137,-203,-99},{-166,-129,-174,-192,-123,-156},{-140,-125,-203,-163,-188,-168},{-169,-152,-120,-214,-194,-199},{-106,-129,-171,-182,-102,-189},{-171,-146,-203,-213,-145,-108},{-189,-145,-182,-108,-112,-97},{-136,-213,-196,-165,-116,-189},{-196,-171,-108,-208,-160,-119},{-172,-211,-176,-182,-214,-197},{-206,-136,-151,-123,-163,-100},{-159,-185,-171,-208,-142,-180},{-132,-208,-186,-117,-186,-119},{-122,-176,-168,-194,-99,-140},{-197,-186,-136,-194,-199,-186},{-172,-152,-111,-202,-156,-199},{-199,-176,-200,-125,-99,-136},{-111,-128,-102,-131,-134,-145},{-105,-132,-194,-196,-159,-191},{-145,-97,-126,-183,-188,-108},{-111,-162,-123,-92,-179,-92},{-97,-146,-180,-166,-192,-189},{-180,-109,-174,-152,-196,-177},{-163,-122,-188,-196,-192,-169},{-196,-185,-95,-105,-208,-162},{-99,-159,-102,-105,-154,-191},{-128,-180,-196,-106,-129,-100},{-183,-142,-100,-97,-216,-131},{-134,-194,-106,-146,-92,-94},{-154,-126,-146,-206,-152,-100},{-159,-102,-119,-156,-194,-205},{-176,-105,-197,-151,-137,-182},{-157,-117,-168,-131,-176,-194},{-125,-92,-95,-97,-203,-112},{-120,-95,-211,-191,-143,-114},{-103,-206,-159,-123,-106,-132}}},{{{-180,-197,-189,-131,-177,-151},{-115,-142,-215,-135,-193,-171},{-186,-180,-157,-180,-235,-167},{-155,-189,-177,-195,-140,-178},{-204,-175,-226,-155,-113,-207},{-209,-213,-231,-237,-226,-164},{-131,-198,-175,-237,-129,-253},{-147,-124,-244,-146,-218,-182},{-217,-116,-244,-144,-151,-135},{-178,-235,-147,-126,-204,-195},{-182,-116,-198,-198,-231,-200},{-116,-115,-211,-235,-146,-109},{-215,-193,-124,-238,-178,-124},{-244,-237,-173,-171,-180,-217},{-195,-248,-131,-248,-157,-180},{-248,-253,-127,-151,-149,-158},{-169,-220,-136,-115,-237,-249},{-184,-140,-249,-113,-206,-133},{-189,-231,-200,-187,-164,-142},{-253,-120,-233,-136,-255,-149},{-198,-133,-178,-237,-169,-160},{-140,-226,-118,-129,-175,-195},{-233,-177,-217,-248,-135,-215},{-173,-126,-253,-189,-135,-207},{-224,-124,-164,-109,-118,-122},{-175,-222,-155,-186,-158,-224},{-166,-237,-200,-144,-189,-118},{-153,-255,-124,-195,-160,-238},{-211,-248,-204,-138,-111,-220},{-155,-171,-115,-140,-197,-173},{-135,-180,-166,-209,-224,-173},{-155,-184,-157,-160,-122,-202},{-149,-151,-116,-131,-140,-213},{-186,-213,-175,-115,-138,-140},{-109,-228,-187,-147,-231,-222},{-191,-147,-226,-151,-197,-177},{-242,-229,-193,-178,-169,-231},{-184,-122,-164,-158,-153,-151},{-171,-209,-131,-222,-233,-233},{-126,-138,-180,-195,-251,-126},{-118,-220,-133,-157,-149,-166},{-149,-222,-178,-142,-217,-164},{-197,-142,-218,-160,-187,-186},{-228,-127,-220,-133,-146,-246},{-177,-142,-118,-166,-251,-204},{-242,-249,-244,-191,-131,-209},{-220,-240,-155,-115,-118,-224},{-133,-118,-116,-198,-189,-142},{-160,-109,-180,-193,-249,-248},{-246,-115,-131,-178,-182,-189}},{{-158,-224,-129,-173,-135,-157},{-124,-220,-122,-116,-184,-235},{-202,-111,-178,-242,-244,-160},{-218,-142,-177,-147,-155,-246},{-158,-202,-177,-235,-215,-140},{-147,-198,-244,-244,-129,-191},{-193,-173,-229,-195,-166,-206},{-146,-198,-146,-149,-124,-162},{-180,-200,-240,-215,-115,-206},{-118,-167,-187,-142,-166,-253},{-155,-242,-153,-229,-158,-118},{-122,-202,-124,-166,-147,-242},{-195,-111,-246,-162,-167,-228},{-228,-162,-124,-229,-238,-229},{-211,-133,-175,-240,-169,-204},{-116,-144,-180,-142,-124,-253},{-146,-202,-162,-109,-158,-153},{-235,-129,-162,-146,-155,-228},{-118,-160,-251,-162,-206,-207},{-167,-124,-173,-169,-151,-240},{-193,-197,-149,-231,-209,-222},{-127,-255,-200,-122,-249,-211},{-204,-111,-248,-242,-173,-113},{-149,-200,-129,-228,-111,-237},{-251,-244,-142,-213,-166,-195},{-136,-195,-220,-197,-135,-228},{-111,-226,-246,-153,-109,-218},{-249,-155,-184,-118,-249,-147},{-151,-122,-177,-255,-233,-113},{-140,-157,-164,-126,-207,-149},{-187,-215,-162,-195,-222,-129},{-186,-197,-157,-244,-218,-126},{-164,-220,-162,-200,-249,-224},{-129,-160,-228,-158,-186,-157},{-217,-222,-124,-244,-129,-220},{-133,-142,-127,-155,-135,-164},{-217,-129,-158,-195,-122,-244},{-206,-189,-109,-178,-144,-135},{-209,-127,-178,-186,-244,-147},{-244,-109,-198,-228,-177,-116},{-195,-209,-166,-189,-253,-171},{-220,-189,-242,-147,-195,-136},{-111,-162,-215,-235,-233,-142},{-211,-197,-207,-142,-233,-146},{-169,-140,-167,-175,-237,-238},{-217,-246,-248,-166,-255,-184},{-118,-127,-129,-158,-244,-113},{-204,-180,-177,-155,-253,-204},{-189,-184,-209,-124,-186,-127},{-187,-237,-160,-202,-136,-186}},{{-151,-184,-158,-220,-113,-189},{-115,-255,-151,-135,-206,-246},{-155,-169,-242,-144,-238,-140},{-164,-162,-113,-175,-231,-149},{-255,-240,-231,-184,-215,-166},{-129,-207,-162,-213,-233,-153},{-164,-206,-222,-217,-248,-118},{-180,-149,-251,-144,-136,-166},{-229,-157,-129,-158,-151,-166},{-206,-140,-206,-209,-206,-182},{-153,-180,-115,-140,-158,-229},{-180,-173,-122,-246,-177,-218},{-129,-235,-171,-187,-175,-233},{-120,-226,-146,-127,-178,-140},{-167,-202,-167,-151,-133,-244},{-177,-198,-213,-251,-155,-131},{-164,-135,-222,-224,-127,-187},{-184,-167,-153,-244,-197,-189},{-195,-193,-226,-215,-177,-124},{-233,-118,-240,-164,-164,-207},{-222,-246,-248,-122,-126,-135},{-116,-217,-217,-138,-138,-120},{-118,-226,-151,-160,-255,-217},{-215,-204,-198,-249,-224,-240},{-218,-209,-244,-164,-167,-249},{-157,-207,-147,-191,-242,-200},{-242,-228,-180,-198,-116,-213},{-224,-169,-180,-136,-240,-231},{-200,-224,-251,-116,-144,-197},{-244,-160,-113,-146,-178,-177},{-160,-124,-226,-253,-248,-140},{-166,-255,-228,-204,-157,-149},{-118,-184,-126,-140,-120,-211},{-169,-131,-222,-138,-200,-240},{-135,-242,-109,-133,-237,-218},{-213,-133,-215,-162,-122,-133},{-133,-231,-248,-115,-180,-226},{-202,-195,-167,-187,-229,-149},{-237,-178,-173,-202,-233,-224},{-228,-218,-169,-226,-228,-220},{-109,-228,-136,-228,-136,-193},{-206,-231,-146,-187,-138,-235},{-228,-127,-173,-111,-158,-122},{-224,-238,-231,-251,-171,-249},{-171,-187,-209,-173,-147,-115},{-131,-160,-217,-211,-133,-186},{-144,-146,-120,-160,-122,-189},{-213,-244,-127,-166,-248,-135},{-211,-207,-157,-231,-255,-215},{-160,-200,-249,-189,-242,-229}}},{{{-235,-265,-331,-316,-287,-323},{-164,-216,-282,-257,-198,-240},{-179,-287,-198,-233,-257,-296},{-164,-318,-181,-333,-250,-262},{-184,-318,-294,-333,-174,-265},{-282,-282,-164,-255,-323,-164},{-282,-252,-203,-277,-250,-196},{-294,-331,-270,-289,-306,-257},{-311,-316,-167,-169,-189,-284},{-159,-233,-164,-274,-301,-318},{-289,-292,-306,-277,-341,-272},{-309,-265,-247,-198,-238,-152},{-306,-149,-260,-191,-233,-230},{-169,-184,-147,-172,-186,-294},{-306,-338,-336,-274,-225,-316},{-292,-311,-191,-341,-318,-316},{-184,-216,-206,-343,-301,-296},{-255,-272,-174,-243,-216,-189},{-176,-211,-157,-186,-265,-299},{-277,-328,-265,-174,-176,-299},{-211,-203,-235,-172,-159,-152},{-243,-311,-338,-262,-201,-341},{-186,-164,-326,-240,-194,-240},{-240,-235,-162,-184,-159,-331},{-326,-174,-328,-318,-154,-282},{-267,-157,-336,-294,-265,-321},{-211,-159,-147,-245,-167,-228},{-326,-149,-279,-301,-287,-301},{-260,-274,-326,-265,-247,-255},{-164,-299,-309,-201,-203,-159},{-198,-238,-157,-152,-159,-255},{-321,-206,-159,-333,-328,-282},{-309,-223,-294,-336,-243,-289},{-184,-328,-147,-174,-162,-338},{-272,-333,-233,-287,-338,-299},{-321,-162,-331,-225,-323,-228},{-341,-311,-252,-265,-240,-245},{-294,-225,-218,-304,-343,-218},{-338,-296,-164,-250,-159,-208},{-169,-306,-250,-301,-167,-174},{-321,-159,-147,-235,-147,-243},{-218,-262,-262,-172,-225,-260},{-316,-318,-218,-169,-184,-294},{-211,-164,-282,-245,-292,-292},{-343,-262,-149,-277,-208,-257},{-181,-159,-292,-181,-257,-326},{-294,-233,-255,-164,-301,-289},{-172,-245,-299,-208,-323,-326},{-149,-336,-174,-194,-277,-233},{-267,-206,-328,-238,-321,-336}},{{-233,-282,-159,-201,-262,-240},{-240,-306,-220,-257,-287,-274},{-159,-230,-189,-301,-250,-318},{-336,-289,-147,-167,-203,-299},{-287,-336,-279,-265,-323,-208},{-336,-265,-245,-174,-304,-194},{-314,-292,-289,-220,-328,-157},{-196,-250,-235,-149,-326,-206},{-260,-235,-164,-159,-167,-252},{-333,-277,-336,-267,-223,-296},{-196,-186,-316,-250,-230,-240},{-274,-211,-198,-309,-338,-203},{-296,-179,-301,-159,-267,-257},{-301,-230,-250,-172,-179,-331},{-252,-238,-243,-189,-336,-255},{-147,-189,-274,-284,-169,-167},{-198,-152,-274,-152,-184,-174},{-208,-152,-270,-255,-284,-323},{-299,-309,-159,-336,-196,-247},{-240,-172,-321,-314,-270,-328},{-216,-162,-169,-230,-186,-343},{-203,-314,-326,-176,-316,-176},{-277,-235,-201,-328,-299,-301},{-218,-304,-162,-309,-233,-262},{-194,-301,-198,-233,-181,-194},{-304,-169,-282,-172,-257,-157},{-245,-223,-157,-260,-230,-201},{-277,-267,-299,-272,-196,-162},{-299,-213,-206,-169,-341,-323},{-279,-262,-225,-336,-309,-341},{-191,-326,-309,-191,-220,-299},{-191,-318,-277,-213,-323,-172},{-270,-289,-240,-220,-189,-318},{-247,-257,-338,-233,-154,-270},{-181,-250,-216,-331,-208,-223},{-220,-270,-316,-255,-326,-267},{-304,-184,-208,-176,-147,-243},{-336,-267,-181,-333,-316,-292},{-223,-172,-167,-191,-196,-189},{-341,-189,-306,-277,-282,-336},{-316,-301,-211,-245,-181,-294},{-169,-333,-267,-296,-238,-250},{-176,-304,-262,-267,-282,-267},{-179,-321,-301,-343,-196,-196},{-191,-223,-198,-240,-164,-240},{-211,-304,-211,-252,-292,-272},{-157,-174,-250,-294,-211,-338},{-201,-311,-186,-147,-255,-250},{-274,-174,-240,-172,-152,-225},{-311,-309,-309,-230,-169,-149}},{{-206,-225,-206,-284,-314,-196},{-179,-284,-196,-338,-323,-252},{-336,-243,-245,-292,-208,-167},{-252,-203,-208,-206,-292,-247},{-331,-235,-186,-235,-331,-223},{-176,-262,-338,-274,-184,-176},{-220,-318,-296,-294,-213,-328},{-186,-194,-191,-321,-235,-208},{-169,-306,-203,-316,-184,-157},{-341,-220,-260,-230,-289,-203},{-149,-220,-191,-228,-314,-255},{-220,-270,-201,-282,-201,-243},{-314,-230,-309,-292,-154,-203},{-201,-311,-314,-240,-338,-279},{-306,-267,-247,-228,-323,-238},{-257,-159,-343,-162,-267,-301},{-343,-296,-172,-206,-296,-314},{-164,-331,-328,-194,-223,-206},{-257,-314,-331,-314,-296,-245},{-333,-309,-238,-159,-250,-270},{-277,-326,-294,-172,-257,-274},{-272,-206,-147,-194,-301,-154},{-252,-243,-257,-191,-287,-294},{-169,-299,-230,-272,-252,-245},{-328,-223,-257,-194,-311,-243},{-299,-296,-218,-270,-247,-211},{-184,-218,-260,-306,-301,-333},{-159,-338,-260,-164,-208,-287},{-245,-316,-343,-282,-277,-272},{-213,-277,-247,-260,-274,-331},{-336,-265,-196,-326,-333,-326},{-157,-326,-181,-235,-257,-287},{-149,-247,-294,-167,-201,-184},{-301,-162,-250,-196,-213,-194},{-272,-287,-252,-284,-169,-186},{-176,-336,-260,-321,-184,-282},{-240,-196,-149,-333,-331,-196},{-167,-279,-289,-287,-245,-343},{-338,-238,-267,-338,-265,-289},{-184,-189,-162,-201,-208,-225},{-255,-262,-331,-292,-262,-265},{-238,-292,-179,-194,-213,-333},{-157,-245,-279,-162,-247,-157},{-270,-284,-277,-272,-176,-198},{-218,-279,-230,-223,-208,-149},{-306,-331,-296,-267,-216,-191},{-181,-282,-174,-189,-157,-336},{-331,-338,-270,-292,-220,-223},{-149,-267,-233,-186,-323,-164},{-289,-189,-208,-176,-157,-267}}},{{{-182,-203,-240,-312,-303,-148},{-316,-215,-263,-261,-298,-231},{-291,-268,-240,-141,-280,-208},{-261,-243,-282,-240,-206,-263},{-171,-185,-303,-229,-261,-199},{-289,-159,-215,-286,-162,-249},{-254,-229,-240,-201,-141,-166},{-275,-256,-305,-236,-249,-249},{-143,-143,-231,-215,-217,-176},{-316,-236,-224,-245,-215,-176},{-192,-203,-249,-217,-321,-143},{-282,-233,-256,-178,-166,-148},{-219,-139,-146,-178,-226,-141},{-176,-231,-261,-208,-291,-210},{-256,-213,-312,-231,-254,-312},{-196,-286,-312,-268,-231,-219},{-261,-245,-224,-284,-185,-166},{-192,-164,-139,-171,-300,-293},{-169,-217,-159,-143,-321,-259},{-307,-150,-247,-282,-229,-310},{-152,-229,-305,-245,-321,-261},{-286,-159,-282,-226,-307,-189},{-215,-189,-284,-233,-141,-146},{-275,-303,-298,-319,-189,-217},{-316,-252,-231,-245,-219,-222},{-298,-176,-231,-148,-141,-243},{-229,-139,-245,-162,-310,-157},{-270,-261,-196,-303,-226,-289},{-164,-263,-215,-256,-192,-252},{-243,-185,-178,-303,-307,-263},{-231,-185,-261,-303,-157,-249},{-238,-245,-199,-277,-280,-229},{-215,-201,-259,-148,-270,-164},{-150,-196,-150,-312,-185,-249},{-286,-298,-323,-307,-266,-208},{-213,-169,-155,-252,-164,-176},{-323,-185,-296,-196,-247,-263},{-275,-252,-289,-321,-314,-141},{-249,-256,-159,-263,-217,-229},{-206,-249,-152,-319,-229,-273},{-189,-224,-157,-300,-196,-268},{-256,-238,-169,-210,-159,-208},{-280,-270,-143,-210,-150,-219},{-321,-238,-245,-201,-316,-213},{-217,-266,-236,-178,-291,-146},{-263,-323,-263,-296,-224,-180},{-169,-222,-236,-263,-316,-310},{-316,-229,-266,-277,-217,-277},{-219,-162,-312,-282,-219,-194},{-185,-286,-247,-256,-277,-256}},{{-247,-300,-270,-263,-236,-189},{-236,-187,-316,-157,-217,-312},{-196,-307,-256,-219,-316,-240},{-194,-139,-236,-141,-247,-148},{-148,-162,-256,-182,-182,-210},{-300,-243,-139,-261,-164,-222},{-206,-263,-210,-155,-252,-226},{-256,-199,-300,-291,-319,-224},{-226,-310,-268,-266,-196,-201},{-187,-217,-148,-296,-213,-141},{-139,-307,-166,-229,-208,-180},{-187,-162,-178,-222,-152,-240},{-307,-296,-182,-176,-226,-316},{-162,-146,-259,-169,-157,-162},{-210,-256,-314,-314,-280,-169},{-150,-307,-268,-275,-259,-185},{-319,-176,-152,-215,-143,-194},{-176,-254,-187,-238,-259,-152},{-268,-187,-282,-236,-321,-182},{-194,-247,-213,-217,-182,-157},{-155,-206,-169,-277,-236,-187},{-247,-238,-164,-256,-319,-300},{-185,-203,-293,-182,-169,-162},{-208,-277,-312,-261,-233,-252},{-270,-321,-270,-252,-141,-238},{-266,-217,-307,-310,-166,-291},{-146,-213,-164,-323,-319,-203},{-141,-275,-300,-319,-259,-182},{-173,-176,-169,-180,-263,-187},{-194,-263,-286,-215,-300,-312},{-150,-300,-280,-249,-254,-189},{-231,-166,-139,-219,-256,-263},{-141,-238,-159,-236,-273,-303},{-219,-261,-305,-192,-238,-263},{-245,-314,-314,-201,-215,-226},{-261,-316,-206,-296,-291,-323},{-305,-222,-307,-286,-192,-289},{-296,-155,-263,-164,-180,-293},{-143,-196,-199,-159,-252,-185},{-143,-231,-254,-252,-215,-310},{-233,-236,-231,-208,-148,-261},{-282,-298,-300,-166,-236,-291},{-316,-236,-159,-284,-157,-300},{-173,-305,-159,-199,-256,-323},{-206,-173,-173,-143,-201,-236},{-139,-169,-182,-206,-233,-166},{-171,-180,-150,-316,-312,-159},{-259,-203,-296,-226,-277,-162},{-217,-203,-249,-263,-192,-282},{-196,-231,-323,-208,-141,-259}},{{-270,-305,-194,-185,-143,-273},{-231,-185,-185,-247,-224,-319},{-270,-256,-148,-182,-182,-289},{-263,-259,-182,-180,-185,-185},{-141,-284,-169,-192,-259,-323},{-171,-164,-233,-139,-196,-189},{-286,-164,-312,-307,-275,-169},{-182,-293,-266,-268,-289,-247},{-192,-316,-224,-319,-187,-263},{-240,-305,-252,-296,-162,-162},{-240,-286,-217,-206,-182,-307},{-219,-166,-159,-187,-282,-263},{-273,-298,-270,-270,-139,-217},{-289,-196,-291,-254,-141,-162},{-293,-143,-194,-252,-222,-152},{-243,-286,-229,-277,-243,-150},{-215,-203,-178,-199,-319,-286},{-189,-273,-148,-199,-243,-155},{-159,-164,-284,-249,-305,-224},{-263,-254,-143,-300,-194,-321},{-261,-303,-243,-162,-208,-300},{-206,-247,-226,-312,-307,-303},{-189,-291,-176,-196,-217,-268},{-180,-252,-141,-157,-266,-192},{-314,-139,-180,-314,-307,-266},{-217,-305,-314,-268,-148,-139},{-208,-215,-310,-254,-310,-164},{-180,-282,-280,-305,-219,-298},{-222,-298,-226,-164,-247,-141},{-263,-143,-162,-305,-217,-312},{-268,-275,-298,-233,-296,-210},{-219,-146,-323,-164,-148,-189},{-321,-314,-178,-150,-226,-245},{-312,-270,-243,-291,-208,-164},{-254,-296,-224,-166,-189,-280},{-286,-291,-152,-189,-286,-319},{-182,-203,-252,-196,-312,-289},{-182,-245,-166,-316,-215,-277},{-249,-164,-180,-261,-143,-192},{-217,-213,-187,-201,-243,-252},{-314,-249,-266,-238,-203,-296},{-238,-159,-226,-194,-192,-171},{-152,-155,-252,-273,-270,-284},{-236,-180,-180,-247,-203,-245},{-275,-254,-217,-307,-256,-240},{-187,-310,-323,-263,-219,-268},{-185,-199,-176,-266,-152,-148},{-303,-164,-263,-263,-236,-169},{-196,-245,-222,-182,-286,-321},{-180,-280,-196,-229,-240,-321}}},{{{-335,-326,-270,-188,-259,-309},{-197,-338,-306,-320,-370,-259},{-265,-273,-320,-226,-318,-315},{-303,-406,-176,-300,-279,-265},{-200,-409,-412,-220,-350,-185},{-300,-232,-300,-235,-297,-362},{-294,-300,-188,-303,-350,-268},{-318,-273,-406,-409,-406,-220},{-223,-218,-350,-226,-220,-188},{-341,-241,-220,-273,-370,-312},{-329,-338,-282,-235,-265,-268},{-182,-265,-218,-403,-382,-256},{-215,-388,-403,-379,-223,-294},{-226,-353,-382,-223,-376,-259},{-215,-282,-297,-279,-209,-179},{-394,-185,-412,-309,-256,-403},{-212,-329,-306,-323,-265,-270},{-359,-332,-359,-320,-197,-238},{-320,-188,-370,-176,-262,-385},{-406,-250,-318,-382,-412,-315},{-276,-373,-182,-368,-294,-318},{-376,-218,-391,-362,-226,-238},{-388,-188,-382,-406,-326,-218},{-235,-303,-188,-203,-188,-279},{-312,-338,-206,-373,-359,-323},{-397,-332,-218,-306,-200,-285},{-312,-268,-200,-344,-318,-285},{-329,-253,-206,-318,-350,-270},{-385,-365,-373,-256,-368,-253},{-232,-256,-370,-238,-335,-388},{-244,-294,-226,-323,-235,-385},{-200,-347,-238,-182,-235,-270},{-185,-309,-400,-394,-235,-306},{-312,-368,-218,-344,-253,-273},{-209,-291,-176,-300,-188,-294},{-253,-359,-209,-232,-182,-335},{-326,-218,-382,-215,-379,-288},{-262,-403,-309,-368,-238,-312},{-332,-350,-241,-253,-244,-362},{-341,-285,-265,-265,-291,-276},{-370,-335,-288,-256,-209,-347},{-262,-368,-270,-176,-179,-223},{-220,-397,-303,-220,-373,-285},{-218,-362,-400,-232,-209,-347},{-209,-344,-368,-306,-235,-256},{-388,-400,-306,-197,-385,-309},{-359,-315,-276,-194,-306,-409},{-359,-268,-397,-244,-309,-194},{-185,-176,-203,-229,-176,-297},{-368,-244,-270,-329,-400,-350}},{{-238,-253,-250,-273,-312,-397},{-197,-279,-359,-353,-379,-268},{-273,-218,-176,-203,-347,-256},{-270,-259,-188,-279,-409,-179},{-400,-409,-288,-279,-318,-244},{-194,-370,-265,-206,-247,-215},{-297,-294,-200,-276,-279,-279},{-197,-279,-338,-223,-329,-238},{-182,-270,-279,-215,-241,-326},{-294,-270,-276,-244,-256,-282},{-253,-291,-276,-335,-182,-379},{-309,-329,-400,-368,-276,-362},{-350,-309,-209,-312,-291,-318},{-288,-385,-370,-356,-350,-350},{-329,-320,-303,-197,-309,-385},{-279,-232,-338,-412,-353,-188},{-270,-350,-262,-215,-397,-376},{-323,-273,-344,-297,-200,-356},{-291,-197,-318,-235,-406,-229},{-338,-235,-209,-356,-179,-315},{-350,-323,-235,-347,-300,-291},{-356,-318,-344,-400,-382,-294},{-226,-362,-226,-370,-356,-368},{-312,-203,-179,-376,-350,-285},{-282,-338,-250,-191,-320,-182},{-382,-329,-241,-394,-241,-353},{-203,-238,-291,-238,-315,-238},{-312,-268,-288,-209,-238,-368},{-400,-403,-362,-191,-323,-256},{-226,-273,-329,-347,-376,-203},{-256,-176,-273,-350,-200,-397},{-353,-312,-203,-194,-250,-273},{-279,-353,-265,-232,-309,-256},{-312,-350,-285,-318,-197,-320},{-206,-235,-362,-341,-318,-373},{-376,-379,-350,-315,-350,-279},{-306,-394,-338,-218,-309,-391},{-179,-223,-335,-350,-347,-229},{-300,-297,-318,-235,-309,-235},{-235,-394,-320,-223,-268,-194},{-394,-320,-329,-279,-382,-365},{-256,-197,-200,-212,-279,-262},{-185,-356,-226,-297,-315,-403},{-320,-362,-265,-226,-291,-335},{-362,-312,-223,-241,-315,-197},{-318,-409,-397,-197,-256,-385},{-270,-212,-397,-306,-300,-200},{-250,-232,-285,-270,-288,-276},{-309,-303,-341,-326,-320,-253},{-320,-400,-223,-232,-247,-218}},{{-370,-247,-338,-341,-341,-270},{-312,-297,-309,-365,-409,-291},{-194,-241,-409,-220,-326,-309},{-197,-353,-288,-303,-356,-394},{-244,-273,-241,-250,-270,-403},{-385,-270,-353,-294,-350,-220},{-344,-203,-341,-406,-365,-250},{-376,-226,-268,-279,-306,-197},{-291,-176,-188,-182,-329,-176},{-329,-356,-200,-238,-347,-179},{-194,-185,-306,-265,-200,-362},{-238,-300,-312,-403,-238,-400},{-215,-300,-229,-200,-388,-323},{-268,-326,-276,-373,-394,-200},{-276,-256,-309,-373,-247,-382},{-250,-394,-268,-306,-218,-412},{-338,-403,-188,-353,-382,-241},{-241,-379,-176,-370,-406,-282},{-282,-229,-229,-373,-312,-241},{-197,-382,-309,-379,-215,-285},{-256,-373,-226,-409,-209,-256},{-185,-200,-365,-188,-294,-353},{-344,-332,-220,-247,-394,-223},{-265,-268,-215,-409,-320,-223},{-300,-191,-179,-400,-226,-356},{-200,-315,-338,-223,-268,-176},{-412,-368,-212,-356,-279,-179},{-220,-323,-382,-332,-312,-332},{-297,-259,-297,-297,-312,-320},{-194,-394,-365,-200,-412,-209},{-279,-379,-403,-400,-391,-382},{-350,-241,-338,-379,-309,-259},{-353,-335,-326,-250,-362,-282},{-226,-226,-294,-235,-335,-229},{-297,-197,-262,-400,-223,-338},{-341,-394,-212,-206,-179,-209},{-250,-276,-176,-403,-297,-265},{-179,-176,-185,-323,-241,-241},{-238,-285,-176,-391,-373,-182},{-191,-341,-318,-197,-215,-244},{-250,-250,-209,-253,-385,-212},{-406,-382,-344,-247,-412,-229},{-185,-412,-229,-238,-394,-350},{-265,-285,-291,-338,-303,-244},{-409,-220,-197,-262,-206,-176},{-388,-232,-218,-253,-270,-223},{-285,-403,-253,-220,-297,-412},{-347,-385,-356,-323,-359,-318},{-303,-309,-220,-179,-373,-350},{-241,-403,-279,-388,-215,-241}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1841,192,221,150,198,208,315,198,294}; // initial inventory 
int ubiv[I]={2104,384,442,300,396,416,630,396,588}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.32,8.46,5.6,4.24,2.89,1.51,4.53,7.74}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.11,7.69,5.09,3.85,2.63,1.37,4.12,7.04}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,6.15,6.15,6.15,5.38,5.38,5.38,4.61,4.61,4.61,4.07,4.07,4.07,3.56,3.56,3.56,3.05,3.05,3.05,3.08,3.08,3.08,2.7,2.7,2.7,2.31,2.31,2.31,2.1,2.1,2.1,1.84,1.84,1.84,1.58,1.58,1.58,1.1,1.1,1.1,0.96,0.96,0.96,0.82,0.82,0.82,3.3,3.3,3.3,2.88,2.88,2.88,2.47,2.47,2.47,5.63,5.63,5.63,4.93,4.93,4.93,4.22,4.22,4.22}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={7,3,3,7,3,3,7,3,3,8,4,3,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,7,4,3,8,4,3,8,4,3,8,4,3,9,4,3,8,5,3,8,4,3,9,4,3,8,4,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6},{7,8,9},{10,11,12},{13,14,15,16,17,18,19},{20,21,22},{23,24,25},{26,27,28,29,30,31,32},{33,34,35},{36,37,38},{39,40,41,42,43,44,45,46},{47,48,49,50},{51,52,53},{54,55,56,57,58,59,60},{61,62,63,64},{65,66,67},{68,69,70,71,72,73,74},{75,76,77,78},{79,80,81},{82,83,84,85,86,87,88},{89,90,91,92},{93,94,95},{96,97,98,99,100,101,102,103},{104,105,106,107},{108,109,110},{111,112,113,114,115,116,117,118},{119,120,121,122},{123,124,125},{126,127,128,129,130,131,132},{133,134,135,136},{137,138,139},{140,141,142,143,144,145,146,147},{148,149,150,151},{152,153,154},{155,156,157,158,159,160,161,162},{163,164,165,166},{167,168,169},{170,171,172,173,174,175,176,177},{178,179,180,181},{182,183,184},{185,186,187,188,189,190,191,192,193},{194,195,196,197},{198,199,200},{201,202,203,204,205,206,207,208},{209,210,211,212,213},{214,215,216},{217,218,219,220,221,222,223,224},{225,226,227,228},{229,230,231},{232,233,234,235,236,237,238,239,240},{241,242,243,244},{245,246,247},{248,249,250,251,252,253,254,255},{256,257,258,259},{260,261,262},{263,264,265,266,267,268,269,270},{271,272,273,274},{275,276,277},{278,279,280,281,282,283,284,285},{286,287,288,289},{290,291,292},{293,294,295,296,297,298,299,300},{301,302,303,304},{305,306,307},{308,309,310,311,312,313,314},{315,316,317,318},{319,320,321},{322,323,324,325,326,327,328},{329,330,331,332},{333,334,335},{336,337,338,339,340,341,342},{343,344,345,346},{347,348,349}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,2,6,10,0,6,12,0,2,4,6,8,10,12,2,6,10,0,6,12,0,2,4,6,8,10,12,2,6,10,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,2,8,14,2,4,6,8,10,12,14,1,5,9,13,1,7,13,2,4,6,8,10,12,14,0,4,8,12,0,6,12,2,4,6,8,10,12,14,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,2,4,6,8,10,12,14,1,5,9,13,0,6,12,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,16,1,5,9,13,0,6,12,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,16,1,5,9,13,0,6,12,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,0,4,8,12,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,2,8,14,2,4,6,8,10,12,14,1,5,9,13,1,7,13,2,4,6,8,10,12,14,0,4,8,12,1,7,13,2,4,6,8,10,12,14,2,6,10,14,2,8,14}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,7,11,15,5,11,17,5,7,9,11,13,15,17,7,11,15,5,11,17,5,7,9,11,13,15,17,7,11,15,5,11,17,3,5,7,9,11,13,15,17,5,9,13,17,5,11,17,5,7,9,11,13,15,17,4,8,12,16,4,10,16,5,7,9,11,13,15,17,3,7,11,15,3,9,15,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,4,6,8,10,12,14,16,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,3,5,7,9,11,13,15,17,2,6,10,14,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,1,3,5,7,9,11,13,15,17,2,6,10,14,1,7,13,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,1,3,5,7,9,11,13,15,17,2,6,10,14,1,7,13,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,2,6,10,14,4,10,16,5,7,9,11,13,15,17,4,8,12,16,4,10,16,5,7,9,11,13,15,17,3,7,11,15,4,10,16,5,7,9,11,13,15,17,5,9,13,17,5,11,17}; // set of end times of each shipment 
