int Dev = 40;// Deviation
extern const int CNN = 2;// Case Index
extern const int P = 6;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 36;// 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 = 747;//Number of shipments
extern const int SN = 20;//Number of scenarios at each stage
extern const int MBSN = 18;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6,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},{18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{10922,0,0,0,0,0},{11293,0,0,0,0,0},{11293,0,0,0,0,0},{10894,0,0,0,0,0},{10806,0,0,0,0,0},{11783,0,0,0,0,0},{10893,0,0,0,0,0},{10746,0,0,0,0,0},{11267,0,0,0,0,0},{11192,0,0,0,0,0},{11024,0,0,0,0,0},{10985,0,0,0,0,0},{10686,0,0,0,0,0},{10512,0,0,0,0,0},{11240,0,0,0,0,0},{9892,0,0,0,0,0},{11061,0,0,0,0,0},{10596,0,0,0,0,0},{10386,0,0,0,0,0},{10850,0,0,0,0,0}},{{11119,0,0,0,0,0},{10955,0,0,0,0,0},{11120,0,0,0,0,0},{10947,0,0,0,0,0},{11710,0,0,0,0,0},{10891,0,0,0,0,0},{11270,0,0,0,0,0},{11286,0,0,0,0,0},{10686,0,0,0,0,0},{11202,0,0,0,0,0},{11201,0,0,0,0,0},{10854,0,0,0,0,0},{11083,0,0,0,0,0},{11157,0,0,0,0,0},{10866,0,0,0,0,0},{11544,0,0,0,0,0},{11404,0,0,0,0,0},{10598,0,0,0,0,0},{10919,0,0,0,0,0},{10737,0,0,0,0,0}},{{10606,0,0,0,0,0},{11282,0,0,0,0,0},{11172,0,0,0,0,0},{10644,0,0,0,0,0},{10699,0,0,0,0,0},{10761,0,0,0,0,0},{11248,0,0,0,0,0},{11390,0,0,0,0,0},{10416,0,0,0,0,0},{11288,0,0,0,0,0},{10924,0,0,0,0,0},{11060,0,0,0,0,0},{11301,0,0,0,0,0},{10708,0,0,0,0,0},{11004,0,0,0,0,0},{11041,0,0,0,0,0},{10755,0,0,0,0,0},{10864,0,0,0,0,0},{11602,0,0,0,0,0},{10612,0,0,0,0,0}},{{11462,0,0,0,0,0},{11019,0,0,0,0,0},{11112,0,0,0,0,0},{11463,0,0,0,0,0},{11320,0,0,0,0,0},{10505,0,0,0,0,0},{11788,0,0,0,0,0},{11114,0,0,0,0,0},{11147,0,0,0,0,0},{11209,0,0,0,0,0},{11165,0,0,0,0,0},{11200,0,0,0,0,0},{12140,0,0,0,0,0},{11501,0,0,0,0,0},{10575,0,0,0,0,0},{11321,0,0,0,0,0},{11436,0,0,0,0,0},{11376,0,0,0,0,0},{10757,0,0,0,0,0},{11339,0,0,0,0,0}},{{11020,0,0,0,0,0},{10784,0,0,0,0,0},{11155,0,0,0,0,0},{10754,0,0,0,0,0},{10355,0,0,0,0,0},{11020,0,0,0,0,0},{11778,0,0,0,0,0},{10918,0,0,0,0,0},{10808,0,0,0,0,0},{11922,0,0,0,0,0},{11405,0,0,0,0,0},{10350,0,0,0,0,0},{10909,0,0,0,0,0},{11677,0,0,0,0,0},{11011,0,0,0,0,0},{11054,0,0,0,0,0},{11632,0,0,0,0,0},{11300,0,0,0,0,0},{10820,0,0,0,0,0},{10928,0,0,0,0,0}},{{11385,0,0,0,0,0},{10860,0,0,0,0,0},{11455,0,0,0,0,0},{11034,0,0,0,0,0},{10902,0,0,0,0,0},{10419,0,0,0,0,0},{10224,0,0,0,0,0},{11196,0,0,0,0,0},{10880,0,0,0,0,0},{10600,0,0,0,0,0},{10504,0,0,0,0,0},{10790,0,0,0,0,0},{10925,0,0,0,0,0},{10937,0,0,0,0,0},{11172,0,0,0,0,0},{10756,0,0,0,0,0},{10621,0,0,0,0,0},{10820,0,0,0,0,0},{11433,0,0,0,0,0},{10577,0,0,0,0,0}}},{{{-175,-293,-284,-222,-222,-251},{-157,-202,-246,-276,-172,-204},{-141,-300,-166,-193,-143,-179},{-190,-262,-157,-143,-307,-249},{-143,-222,-251,-197,-137,-164},{-179,-177,-280,-278,-220,-246},{-271,-186,-305,-181,-170,-276},{-141,-193,-215,-251,-213,-305},{-146,-231,-226,-186,-269,-141},{-264,-228,-258,-242,-264,-267},{-222,-220,-170,-267,-159,-175},{-293,-235,-220,-237,-278,-184},{-220,-282,-287,-217,-211,-213},{-213,-159,-141,-222,-139,-159},{-284,-246,-273,-188,-150,-150},{-184,-220,-179,-155,-152,-284},{-240,-161,-289,-146,-280,-235},{-166,-296,-222,-195,-231,-146},{-208,-224,-211,-152,-222,-166},{-206,-177,-240,-314,-152,-170}},{{-246,-172,-175,-141,-287,-246},{-134,-155,-244,-213,-188,-190},{-175,-137,-302,-253,-255,-197},{-242,-195,-300,-300,-137,-282},{-305,-186,-228,-186,-159,-240},{-213,-213,-211,-159,-314,-255},{-305,-262,-246,-211,-217,-193},{-168,-134,-228,-179,-309,-152},{-246,-298,-213,-164,-134,-255},{-271,-255,-311,-289,-251,-188},{-220,-152,-307,-220,-137,-282},{-231,-278,-282,-168,-190,-143},{-284,-159,-291,-311,-155,-267},{-137,-152,-220,-305,-287,-186},{-244,-253,-314,-155,-311,-134},{-302,-287,-213,-287,-184,-287},{-282,-249,-309,-242,-186,-258},{-220,-161,-152,-204,-179,-188},{-255,-276,-168,-293,-228,-269},{-249,-244,-215,-188,-293,-298}},{{-213,-260,-146,-137,-262,-267},{-267,-199,-231,-280,-273,-155},{-226,-186,-137,-284,-262,-246},{-215,-177,-244,-161,-141,-282},{-233,-208,-150,-302,-309,-271},{-197,-226,-289,-264,-289,-202},{-311,-184,-289,-233,-260,-208},{-161,-141,-134,-314,-202,-159},{-161,-159,-188,-228,-197,-273},{-134,-188,-188,-258,-242,-224},{-222,-276,-302,-284,-309,-307},{-314,-271,-276,-242,-280,-253},{-224,-188,-202,-267,-273,-237},{-237,-220,-231,-197,-157,-177},{-242,-255,-177,-181,-251,-262},{-208,-240,-296,-208,-246,-164},{-141,-139,-262,-150,-264,-253},{-181,-224,-278,-282,-179,-150},{-190,-309,-228,-280,-188,-253},{-242,-188,-222,-177,-258,-193}},{{-190,-226,-139,-242,-177,-278},{-311,-302,-235,-269,-235,-262},{-175,-181,-137,-280,-235,-307},{-280,-143,-220,-217,-215,-159},{-233,-280,-175,-186,-302,-161},{-157,-213,-267,-246,-141,-260},{-307,-302,-240,-267,-242,-305},{-287,-291,-164,-199,-260,-211},{-249,-264,-289,-190,-150,-172},{-143,-146,-164,-181,-166,-193},{-251,-302,-302,-269,-311,-170},{-296,-228,-139,-143,-262,-300},{-152,-253,-179,-287,-287,-273},{-226,-222,-267,-276,-143,-289},{-148,-298,-220,-134,-282,-249},{-284,-244,-311,-314,-186,-188},{-137,-242,-291,-206,-249,-255},{-164,-177,-177,-255,-137,-222},{-148,-267,-197,-195,-211,-314},{-143,-139,-231,-287,-141,-215}},{{-195,-208,-237,-282,-246,-289},{-186,-224,-157,-146,-309,-170},{-287,-278,-287,-278,-215,-148},{-278,-172,-287,-235,-271,-161},{-237,-224,-262,-172,-150,-258},{-226,-213,-302,-311,-148,-137},{-170,-311,-278,-258,-264,-262},{-204,-269,-164,-134,-267,-293},{-146,-276,-164,-164,-199,-179},{-269,-271,-253,-226,-188,-181},{-246,-197,-267,-246,-255,-166},{-141,-242,-157,-296,-137,-231},{-293,-211,-134,-231,-141,-309},{-150,-157,-289,-164,-309,-267},{-314,-271,-220,-177,-197,-157},{-224,-255,-215,-164,-296,-170},{-226,-289,-217,-269,-307,-311},{-175,-287,-155,-311,-251,-179},{-146,-213,-186,-222,-220,-231},{-215,-255,-291,-193,-168,-217}},{{-298,-168,-233,-184,-202,-242},{-217,-244,-166,-289,-166,-222},{-184,-231,-269,-166,-206,-134},{-193,-314,-260,-134,-293,-269},{-235,-161,-242,-157,-260,-172},{-300,-161,-166,-311,-177,-213},{-309,-143,-139,-211,-168,-287},{-134,-161,-305,-202,-206,-289},{-311,-311,-146,-172,-211,-139},{-240,-289,-139,-206,-300,-139},{-213,-175,-168,-195,-168,-217},{-298,-143,-164,-251,-139,-206},{-197,-184,-237,-240,-190,-208},{-139,-179,-258,-307,-255,-293},{-139,-157,-269,-164,-269,-269},{-190,-177,-150,-143,-235,-287},{-220,-231,-309,-246,-172,-211},{-175,-224,-302,-235,-215,-184},{-137,-202,-267,-249,-155,-161},{-309,-215,-211,-311,-152,-175}}},{{{-159,-205,-193,-159,-331,-228},{-236,-257,-300,-281,-333,-205},{-207,-214,-293,-321,-250,-164},{-328,-178,-288,-305,-188,-202},{-148,-145,-309,-221,-164,-278},{-193,-333,-288,-309,-221,-281},{-212,-162,-252,-288,-300,-164},{-321,-267,-286,-274,-255,-150},{-283,-238,-214,-281,-307,-219},{-188,-148,-283,-274,-200,-281},{-231,-259,-205,-148,-226,-193},{-307,-167,-167,-188,-186,-281},{-264,-202,-321,-143,-188,-178},{-193,-145,-233,-286,-290,-233},{-252,-288,-217,-312,-171,-274},{-233,-228,-169,-248,-162,-264},{-302,-221,-145,-155,-269,-205},{-162,-267,-176,-205,-145,-155},{-181,-219,-298,-174,-155,-264},{-240,-324,-188,-248,-288,-188}},{{-248,-326,-252,-333,-162,-319},{-333,-188,-295,-305,-190,-250},{-298,-181,-193,-293,-319,-176},{-269,-274,-226,-300,-167,-152},{-290,-267,-214,-259,-176,-317},{-248,-248,-198,-145,-231,-271},{-290,-259,-174,-286,-193,-190},{-193,-178,-305,-293,-238,-267},{-176,-231,-143,-143,-295,-221},{-255,-309,-193,-248,-169,-221},{-164,-224,-283,-298,-245,-255},{-214,-302,-305,-155,-262,-269},{-181,-333,-264,-262,-202,-319},{-262,-305,-331,-328,-240,-188},{-176,-252,-321,-209,-262,-259},{-167,-271,-195,-162,-300,-233},{-276,-171,-217,-276,-312,-248},{-164,-307,-307,-333,-155,-231},{-162,-300,-162,-143,-214,-178},{-240,-162,-169,-312,-281,-148}},{{-276,-209,-150,-278,-183,-193},{-252,-245,-143,-305,-328,-228},{-259,-202,-264,-176,-271,-278},{-302,-314,-293,-264,-143,-186},{-319,-169,-274,-269,-328,-164},{-145,-157,-209,-276,-267,-259},{-152,-195,-243,-245,-212,-209},{-195,-183,-276,-221,-305,-171},{-181,-171,-286,-207,-245,-217},{-231,-257,-252,-183,-298,-274},{-221,-214,-207,-243,-157,-276},{-193,-290,-321,-186,-233,-157},{-236,-217,-269,-267,-333,-155},{-162,-307,-188,-257,-169,-212},{-186,-326,-167,-236,-300,-331},{-205,-317,-143,-162,-174,-309},{-219,-200,-250,-238,-293,-195},{-167,-283,-267,-305,-321,-236},{-152,-314,-207,-286,-276,-293},{-188,-167,-200,-167,-298,-321}},{{-148,-212,-188,-317,-264,-207},{-278,-274,-162,-333,-150,-271},{-164,-209,-278,-283,-307,-209},{-167,-326,-307,-324,-321,-314},{-331,-288,-269,-328,-183,-181},{-267,-186,-236,-155,-152,-302},{-176,-298,-333,-250,-293,-290},{-238,-321,-319,-307,-195,-226},{-209,-193,-324,-226,-205,-207},{-288,-238,-262,-159,-212,-312},{-143,-245,-245,-207,-176,-150},{-276,-178,-217,-193,-183,-224},{-240,-228,-290,-267,-198,-257},{-312,-252,-300,-186,-271,-271},{-157,-152,-240,-264,-286,-236},{-219,-240,-200,-243,-207,-150},{-324,-162,-176,-290,-155,-233},{-245,-188,-178,-214,-300,-236},{-245,-257,-267,-195,-207,-155},{-212,-198,-300,-233,-195,-226}},{{-293,-217,-271,-183,-312,-190},{-157,-219,-198,-176,-195,-167},{-283,-331,-298,-331,-321,-202},{-312,-286,-178,-250,-169,-181},{-186,-248,-200,-269,-309,-195},{-250,-221,-190,-148,-288,-202},{-195,-300,-283,-259,-328,-288},{-286,-283,-198,-288,-283,-176},{-231,-305,-293,-333,-298,-298},{-159,-314,-302,-298,-274,-181},{-274,-159,-298,-243,-333,-333},{-293,-307,-193,-271,-269,-181},{-164,-207,-169,-283,-326,-319},{-331,-219,-176,-214,-305,-252},{-245,-328,-331,-264,-238,-328},{-200,-240,-295,-240,-250,-333},{-331,-271,-159,-231,-195,-295},{-183,-231,-309,-269,-312,-243},{-276,-171,-290,-171,-226,-205},{-152,-162,-288,-143,-171,-176}},{{-145,-259,-314,-319,-321,-152},{-264,-305,-217,-174,-231,-200},{-293,-157,-281,-293,-171,-164},{-255,-276,-193,-245,-262,-262},{-305,-181,-243,-250,-295,-152},{-283,-278,-143,-176,-286,-155},{-148,-205,-298,-167,-164,-202},{-333,-300,-190,-276,-171,-312},{-307,-214,-224,-245,-143,-248},{-207,-214,-195,-198,-331,-157},{-226,-276,-228,-221,-209,-171},{-205,-267,-188,-145,-228,-162},{-152,-181,-236,-321,-214,-212},{-217,-269,-167,-178,-157,-257},{-207,-174,-231,-157,-314,-231},{-264,-159,-269,-278,-302,-174},{-176,-290,-271,-181,-162,-200},{-300,-143,-231,-174,-174,-217},{-300,-293,-243,-298,-295,-293},{-174,-271,-155,-271,-267,-167}}},{{{-259,-289,-322,-336,-186,-303},{-216,-281,-251,-248,-317,-339},{-371,-325,-164,-347,-175,-328},{-183,-306,-374,-349,-191,-292},{-284,-349,-210,-330,-339,-207},{-270,-278,-194,-257,-194,-317},{-216,-377,-240,-366,-221,-379},{-298,-265,-191,-262,-352,-311},{-257,-180,-169,-248,-240,-317},{-273,-194,-205,-251,-319,-371},{-363,-325,-235,-254,-355,-243},{-377,-289,-278,-325,-243,-328},{-339,-199,-379,-257,-308,-238},{-349,-352,-257,-268,-188,-197},{-339,-175,-202,-333,-273,-281},{-169,-251,-205,-221,-169,-254},{-336,-194,-352,-360,-349,-369},{-172,-207,-273,-360,-287,-317},{-172,-224,-238,-371,-257,-311},{-281,-360,-238,-229,-278,-213}},{{-377,-229,-213,-207,-235,-325},{-207,-251,-325,-229,-298,-243},{-240,-328,-382,-229,-366,-197},{-265,-197,-281,-254,-284,-382},{-300,-311,-278,-240,-251,-363},{-229,-366,-374,-287,-295,-363},{-336,-284,-352,-169,-188,-374},{-202,-270,-281,-276,-360,-295},{-298,-306,-377,-243,-232,-202},{-205,-164,-300,-278,-358,-352},{-259,-191,-248,-268,-183,-276},{-371,-167,-229,-371,-197,-191},{-257,-341,-314,-308,-169,-259},{-199,-330,-347,-319,-221,-177},{-314,-251,-292,-191,-202,-319},{-349,-317,-377,-377,-300,-232},{-311,-202,-300,-317,-207,-366},{-188,-238,-194,-251,-218,-199},{-347,-314,-352,-186,-257,-202},{-319,-262,-216,-243,-344,-377}},{{-352,-246,-336,-224,-278,-339},{-177,-330,-183,-232,-268,-197},{-333,-377,-169,-306,-221,-202},{-205,-360,-177,-186,-360,-175},{-287,-295,-276,-199,-295,-281},{-333,-339,-180,-284,-311,-183},{-330,-374,-292,-273,-238,-273},{-278,-352,-358,-314,-374,-322},{-382,-360,-191,-317,-259,-284},{-248,-306,-240,-308,-278,-341},{-352,-278,-257,-164,-330,-172},{-281,-177,-213,-229,-355,-207},{-224,-366,-360,-308,-229,-341},{-325,-191,-379,-218,-188,-341},{-180,-303,-221,-251,-352,-284},{-265,-213,-347,-300,-369,-232},{-317,-202,-287,-268,-358,-330},{-292,-248,-360,-205,-180,-289},{-308,-262,-265,-278,-355,-210},{-284,-306,-276,-325,-224,-197}},{{-317,-358,-333,-205,-333,-349},{-216,-292,-164,-232,-188,-276},{-336,-235,-191,-369,-186,-229},{-202,-194,-349,-177,-328,-330},{-339,-167,-295,-317,-325,-238},{-205,-248,-172,-169,-164,-254},{-191,-246,-339,-221,-194,-257},{-328,-243,-227,-183,-273,-254},{-278,-240,-319,-268,-235,-167},{-363,-360,-257,-330,-251,-341},{-167,-314,-281,-300,-360,-191},{-229,-369,-180,-216,-347,-317},{-183,-303,-289,-186,-227,-238},{-257,-278,-183,-257,-330,-314},{-216,-180,-287,-227,-330,-377},{-218,-210,-344,-317,-336,-341},{-336,-202,-328,-349,-202,-180},{-333,-191,-358,-175,-172,-347},{-377,-251,-164,-177,-352,-188},{-227,-240,-295,-363,-205,-328}},{{-341,-235,-259,-216,-232,-360},{-322,-218,-377,-216,-169,-355},{-172,-254,-210,-172,-265,-303},{-355,-311,-169,-358,-371,-202},{-183,-292,-207,-259,-191,-248},{-325,-248,-377,-216,-382,-270},{-314,-251,-344,-382,-276,-330},{-194,-177,-227,-213,-238,-251},{-164,-164,-167,-227,-216,-251},{-169,-306,-344,-360,-213,-341},{-207,-172,-221,-369,-259,-180},{-270,-300,-232,-238,-199,-232},{-311,-183,-360,-199,-276,-325},{-360,-254,-314,-336,-248,-257},{-175,-360,-333,-374,-246,-349},{-369,-339,-238,-232,-265,-194},{-227,-308,-227,-379,-352,-330},{-229,-251,-366,-371,-224,-257},{-336,-328,-325,-314,-246,-246},{-213,-366,-186,-298,-270,-216}},{{-317,-347,-328,-202,-175,-352},{-339,-180,-284,-377,-257,-319},{-352,-224,-382,-366,-287,-257},{-358,-221,-238,-369,-227,-270},{-186,-371,-246,-216,-167,-240},{-289,-336,-268,-276,-363,-232},{-308,-292,-246,-169,-379,-169},{-339,-369,-199,-311,-224,-183},{-325,-278,-224,-284,-325,-278},{-188,-287,-278,-243,-183,-238},{-248,-355,-379,-349,-303,-224},{-210,-216,-330,-180,-339,-218},{-235,-298,-257,-235,-317,-278},{-341,-379,-257,-227,-366,-281},{-229,-235,-210,-177,-314,-319},{-300,-333,-183,-177,-333,-273},{-216,-246,-229,-199,-355,-183},{-232,-273,-306,-374,-177,-273},{-358,-344,-306,-358,-374,-259},{-374,-303,-292,-172,-248,-218}}},{{{-188,-92,-208,-136,-171,-160},{-192,-186,-129,-116,-214,-149},{-105,-214,-123,-154,-203,-194},{-146,-202,-216,-199,-132,-108},{-136,-117,-176,-200,-192,-216},{-185,-99,-205,-92,-123,-202},{-100,-109,-125,-188,-206,-166},{-119,-146,-203,-196,-114,-99},{-134,-132,-208,-216,-208,-176},{-126,-179,-92,-206,-148,-156},{-145,-188,-145,-142,-123,-151},{-114,-186,-202,-108,-203,-142},{-94,-108,-180,-125,-160,-185},{-134,-111,-102,-137,-108,-213},{-203,-196,-92,-128,-116,-186},{-162,-112,-202,-103,-103,-196},{-160,-197,-168,-200,-116,-122},{-176,-116,-209,-174,-206,-129},{-128,-159,-99,-199,-168,-179},{-152,-142,-154,-103,-192,-142}},{{-136,-122,-196,-211,-168,-122},{-185,-92,-179,-123,-169,-97},{-196,-139,-125,-168,-125,-177},{-191,-149,-117,-99,-151,-145},{-156,-102,-149,-202,-176,-183},{-95,-172,-100,-137,-208,-214},{-186,-126,-188,-154,-165,-109},{-116,-180,-191,-176,-114,-209},{-174,-186,-140,-159,-199,-160},{-132,-145,-139,-160,-136,-174},{-97,-192,-179,-180,-186,-199},{-183,-137,-182,-94,-123,-99},{-122,-151,-199,-165,-117,-208},{-208,-122,-105,-213,-192,-156},{-174,-109,-129,-186,-180,-205},{-100,-145,-148,-134,-166,-151},{-166,-140,-172,-116,-97,-211},{-102,-213,-131,-131,-109,-188},{-122,-125,-94,-109,-172,-199},{-177,-159,-194,-192,-146,-183}},{{-156,-120,-114,-97,-119,-114},{-200,-105,-183,-97,-209,-162},{-180,-194,-191,-146,-132,-119},{-114,-149,-199,-180,-136,-92},{-154,-109,-186,-182,-202,-120},{-103,-106,-172,-111,-97,-166},{-103,-125,-142,-114,-163,-199},{-174,-109,-177,-149,-206,-142},{-148,-134,-157,-191,-208,-203},{-95,-174,-119,-163,-206,-131},{-196,-94,-145,-122,-128,-172},{-177,-125,-208,-109,-159,-112},{-120,-154,-174,-103,-120,-213},{-125,-166,-191,-211,-189,-157},{-95,-142,-216,-169,-120,-159},{-172,-114,-137,-199,-157,-97},{-112,-182,-136,-192,-177,-95},{-142,-109,-197,-192,-165,-140},{-137,-179,-162,-148,-157,-92},{-208,-92,-142,-180,-134,-108}},{{-148,-131,-99,-159,-177,-203},{-129,-192,-172,-137,-182,-163},{-160,-168,-120,-128,-131,-203},{-97,-145,-196,-139,-203,-177},{-194,-157,-94,-99,-132,-214},{-139,-202,-194,-95,-129,-123},{-183,-151,-128,-162,-166,-122},{-123,-134,-209,-142,-186,-103},{-213,-146,-179,-205,-182,-159},{-172,-203,-209,-165,-183,-134},{-163,-97,-165,-142,-172,-145},{-125,-165,-95,-196,-194,-208},{-206,-199,-186,-102,-143,-202},{-206,-196,-202,-116,-125,-103},{-94,-108,-174,-142,-142,-114},{-209,-151,-189,-199,-129,-191},{-168,-194,-132,-146,-216,-194},{-149,-182,-205,-165,-128,-211},{-97,-209,-186,-182,-95,-182},{-131,-129,-208,-151,-97,-189}},{{-194,-109,-120,-157,-172,-139},{-209,-114,-142,-214,-100,-166},{-102,-105,-211,-211,-154,-108},{-99,-140,-95,-125,-92,-156},{-211,-99,-99,-208,-112,-108},{-182,-194,-139,-122,-176,-139},{-188,-116,-106,-203,-136,-166},{-146,-132,-137,-112,-156,-202},{-100,-117,-123,-159,-209,-191},{-166,-154,-216,-106,-216,-100},{-188,-183,-176,-163,-183,-152},{-157,-142,-192,-109,-132,-183},{-199,-117,-151,-163,-119,-109},{-123,-95,-209,-136,-108,-97},{-105,-126,-125,-177,-136,-174},{-105,-199,-142,-119,-179,-102},{-169,-117,-188,-111,-172,-117},{-126,-196,-103,-208,-109,-156},{-180,-176,-148,-154,-151,-172},{-92,-209,-182,-125,-194,-102}},{{-151,-179,-152,-94,-156,-194},{-171,-206,-131,-205,-142,-166},{-114,-157,-211,-112,-188,-174},{-160,-137,-176,-92,-109,-105},{-192,-134,-213,-120,-154,-149},{-95,-94,-203,-149,-108,-146},{-152,-112,-157,-157,-129,-183},{-199,-163,-128,-120,-114,-112},{-179,-151,-165,-160,-152,-148},{-202,-146,-123,-191,-168,-111},{-142,-92,-142,-134,-165,-172},{-149,-123,-209,-214,-202,-216},{-205,-189,-163,-116,-100,-109},{-159,-186,-151,-146,-123,-186},{-151,-142,-182,-192,-154,-206},{-99,-120,-119,-157,-179,-123},{-129,-203,-165,-216,-163,-95},{-214,-206,-123,-163,-143,-189},{-196,-208,-140,-102,-200,-151},{-117,-122,-163,-126,-146,-125}}},{{{-207,-240,-149,-195,-222,-173},{-195,-249,-209,-202,-144,-133},{-244,-237,-126,-242,-215,-146},{-246,-224,-167,-153,-118,-253},{-129,-164,-169,-149,-248,-235},{-124,-218,-222,-207,-136,-218},{-109,-211,-186,-166,-248,-195},{-151,-197,-187,-248,-111,-235},{-235,-133,-244,-166,-144,-224},{-162,-207,-209,-175,-184,-180},{-142,-242,-248,-218,-213,-244},{-147,-136,-158,-151,-162,-146},{-177,-113,-184,-136,-180,-133},{-113,-218,-224,-177,-189,-160},{-142,-173,-113,-249,-149,-157},{-175,-111,-177,-249,-147,-124},{-213,-116,-228,-195,-249,-146},{-177,-233,-215,-138,-173,-178},{-113,-184,-138,-155,-226,-197},{-149,-187,-147,-133,-151,-248}},{{-147,-127,-197,-209,-162,-124},{-178,-171,-229,-162,-248,-122},{-213,-167,-138,-144,-162,-116},{-115,-237,-184,-109,-136,-147},{-186,-175,-220,-182,-129,-229},{-246,-189,-248,-146,-173,-187},{-238,-126,-116,-109,-177,-235},{-226,-162,-157,-155,-178,-146},{-242,-120,-147,-144,-228,-186},{-204,-217,-189,-182,-242,-206},{-224,-200,-198,-182,-178,-237},{-177,-244,-231,-233,-162,-229},{-238,-253,-171,-200,-142,-200},{-228,-133,-133,-146,-255,-184},{-138,-124,-207,-122,-246,-155},{-255,-228,-158,-244,-113,-153},{-238,-222,-184,-157,-244,-244},{-155,-229,-220,-113,-248,-231},{-217,-237,-253,-116,-167,-126},{-122,-127,-251,-198,-127,-198}},{{-240,-129,-182,-182,-249,-136},{-133,-238,-155,-213,-240,-207},{-133,-160,-246,-166,-173,-244},{-193,-167,-149,-253,-115,-175},{-193,-126,-251,-131,-120,-146},{-129,-228,-187,-206,-215,-136},{-198,-197,-157,-160,-146,-235},{-164,-186,-206,-228,-202,-171},{-146,-124,-158,-164,-140,-178},{-133,-173,-255,-220,-175,-224},{-129,-138,-218,-195,-255,-135},{-249,-218,-204,-133,-142,-124},{-167,-246,-240,-222,-109,-122},{-147,-153,-169,-198,-173,-197},{-111,-229,-144,-220,-149,-131},{-173,-213,-218,-138,-189,-113},{-200,-182,-146,-197,-218,-140},{-206,-218,-224,-173,-242,-155},{-131,-175,-249,-158,-206,-235},{-246,-146,-253,-177,-149,-191}},{{-147,-198,-229,-217,-173,-111},{-146,-187,-113,-146,-198,-198},{-122,-140,-218,-118,-233,-244},{-129,-160,-224,-195,-140,-135},{-133,-135,-200,-186,-200,-249},{-129,-167,-124,-228,-213,-144},{-200,-255,-200,-178,-166,-138},{-167,-206,-204,-166,-189,-229},{-162,-180,-195,-217,-177,-155},{-251,-149,-120,-211,-186,-151},{-209,-204,-249,-215,-160,-151},{-229,-116,-231,-162,-231,-193},{-237,-177,-171,-222,-140,-238},{-189,-131,-204,-177,-162,-220},{-204,-193,-231,-155,-182,-131},{-209,-178,-182,-175,-171,-231},{-115,-136,-237,-151,-209,-167},{-206,-202,-242,-166,-166,-177},{-118,-228,-167,-184,-135,-164},{-229,-217,-235,-124,-175,-237}},{{-198,-242,-189,-127,-238,-202},{-200,-146,-249,-200,-136,-218},{-184,-118,-242,-200,-109,-186},{-178,-209,-157,-166,-235,-197},{-202,-198,-149,-231,-191,-189},{-215,-182,-131,-191,-189,-248},{-127,-198,-242,-217,-202,-166},{-136,-113,-242,-202,-242,-178},{-169,-211,-167,-240,-184,-182},{-249,-122,-160,-195,-171,-246},{-237,-178,-111,-229,-213,-167},{-127,-207,-191,-122,-155,-120},{-206,-116,-189,-240,-136,-253},{-235,-233,-215,-209,-207,-253},{-173,-180,-136,-200,-209,-135},{-187,-115,-195,-151,-136,-235},{-228,-142,-217,-180,-127,-249},{-249,-129,-162,-146,-240,-240},{-237,-162,-129,-155,-248,-207},{-226,-142,-246,-246,-249,-200}},{{-186,-237,-109,-255,-173,-228},{-138,-238,-116,-146,-147,-231},{-244,-167,-226,-191,-218,-202},{-202,-109,-136,-147,-122,-182},{-251,-109,-251,-207,-191,-131},{-186,-131,-240,-118,-180,-157},{-136,-133,-220,-140,-149,-113},{-204,-233,-140,-173,-195,-109},{-178,-193,-231,-153,-157,-133},{-246,-198,-109,-180,-228,-220},{-111,-162,-171,-147,-228,-226},{-184,-187,-195,-228,-213,-175},{-140,-124,-118,-140,-238,-242},{-213,-115,-151,-209,-120,-162},{-146,-164,-160,-177,-135,-215},{-126,-244,-115,-113,-116,-207},{-193,-115,-169,-177,-178,-157},{-202,-184,-149,-209,-175,-120},{-120,-217,-160,-133,-153,-229},{-209,-242,-147,-155,-136,-178}}},{{{-233,-311,-167,-149,-225,-186},{-213,-154,-304,-265,-272,-194},{-223,-213,-250,-306,-198,-323},{-172,-194,-292,-223,-262,-208},{-184,-326,-238,-203,-326,-233},{-318,-260,-304,-179,-304,-270},{-157,-186,-228,-238,-201,-174},{-176,-198,-238,-289,-299,-270},{-250,-328,-203,-294,-174,-191},{-218,-211,-277,-321,-296,-194},{-331,-341,-225,-159,-186,-149},{-169,-240,-250,-260,-289,-174},{-154,-277,-314,-174,-220,-328},{-218,-255,-314,-284,-194,-316},{-336,-176,-225,-326,-257,-323},{-306,-282,-267,-228,-198,-328},{-164,-255,-228,-225,-230,-216},{-284,-294,-328,-152,-289,-191},{-208,-174,-162,-184,-162,-262},{-270,-289,-343,-152,-247,-296}},{{-179,-262,-196,-243,-225,-331},{-272,-326,-216,-152,-270,-238},{-181,-257,-292,-245,-223,-331},{-216,-216,-194,-198,-218,-316},{-225,-336,-336,-289,-252,-267},{-243,-167,-149,-172,-333,-218},{-272,-311,-191,-343,-311,-274},{-301,-162,-164,-252,-282,-338},{-243,-279,-321,-201,-167,-240},{-338,-250,-272,-343,-191,-162},{-162,-152,-301,-336,-181,-328},{-274,-172,-243,-262,-206,-245},{-147,-328,-331,-196,-152,-196},{-196,-287,-230,-213,-296,-189},{-338,-328,-262,-338,-147,-267},{-323,-203,-225,-211,-149,-194},{-341,-265,-196,-159,-184,-211},{-247,-238,-265,-328,-225,-206},{-265,-282,-162,-164,-323,-220},{-198,-191,-147,-270,-184,-282}},{{-270,-333,-184,-338,-157,-323},{-225,-316,-262,-223,-250,-270},{-333,-318,-233,-149,-301,-274},{-174,-247,-255,-233,-299,-304},{-220,-260,-311,-245,-255,-184},{-306,-154,-167,-252,-316,-243},{-201,-311,-331,-196,-167,-321},{-341,-309,-318,-296,-228,-218},{-296,-189,-172,-213,-218,-162},{-184,-174,-247,-198,-223,-287},{-323,-216,-189,-157,-277,-267},{-243,-331,-277,-306,-270,-176},{-262,-172,-245,-230,-331,-225},{-154,-206,-191,-267,-218,-333},{-272,-164,-247,-206,-196,-306},{-223,-191,-147,-203,-179,-292},{-257,-245,-167,-252,-252,-331},{-311,-176,-208,-343,-159,-198},{-225,-172,-216,-331,-314,-203},{-287,-179,-306,-301,-235,-201}},{{-311,-169,-331,-194,-206,-296},{-309,-235,-179,-157,-323,-331},{-179,-333,-191,-331,-279,-287},{-228,-336,-336,-316,-292,-198},{-225,-267,-225,-218,-240,-184},{-318,-331,-184,-191,-225,-181},{-189,-267,-149,-189,-341,-279},{-164,-243,-208,-314,-292,-262},{-328,-287,-228,-255,-159,-323},{-218,-292,-326,-338,-179,-164},{-267,-316,-336,-292,-159,-201},{-189,-304,-167,-203,-206,-341},{-296,-301,-250,-314,-314,-306},{-338,-311,-267,-292,-282,-213},{-203,-336,-260,-149,-267,-147},{-284,-318,-149,-331,-328,-198},{-277,-292,-149,-294,-189,-233},{-240,-152,-230,-311,-289,-341},{-186,-294,-338,-336,-216,-181},{-294,-147,-331,-228,-323,-218}},{{-252,-294,-189,-201,-260,-228},{-341,-294,-272,-257,-235,-223},{-179,-206,-186,-326,-211,-284},{-296,-321,-152,-154,-233,-189},{-149,-314,-238,-282,-189,-255},{-341,-341,-154,-230,-211,-252},{-311,-333,-152,-179,-301,-176},{-194,-245,-154,-326,-265,-203},{-292,-169,-262,-255,-296,-331},{-289,-314,-213,-218,-289,-201},{-323,-255,-277,-174,-323,-152},{-154,-225,-309,-321,-157,-186},{-309,-260,-238,-228,-184,-316},{-338,-314,-164,-184,-250,-245},{-304,-279,-149,-196,-218,-338},{-323,-343,-172,-211,-257,-181},{-279,-179,-213,-304,-292,-162},{-240,-169,-179,-279,-201,-243},{-154,-198,-211,-243,-201,-172},{-179,-274,-289,-252,-198,-341}},{{-338,-294,-250,-157,-247,-250},{-208,-216,-321,-179,-228,-191},{-284,-233,-174,-299,-343,-336},{-191,-318,-154,-301,-272,-306},{-235,-252,-318,-287,-287,-245},{-284,-247,-179,-184,-167,-167},{-157,-265,-206,-282,-311,-257},{-223,-304,-149,-252,-184,-213},{-184,-216,-194,-206,-274,-201},{-255,-306,-198,-333,-172,-218},{-194,-262,-282,-252,-220,-157},{-208,-333,-211,-326,-306,-294},{-240,-255,-250,-218,-316,-304},{-316,-152,-255,-252,-216,-149},{-235,-331,-326,-287,-341,-277},{-328,-179,-331,-257,-284,-284},{-154,-184,-203,-309,-338,-203},{-228,-323,-301,-194,-240,-235},{-255,-257,-162,-225,-147,-196},{-194,-250,-216,-240,-213,-228}}},{{{-321,-224,-150,-150,-296,-210},{-256,-268,-157,-321,-249,-296},{-300,-270,-249,-173,-166,-224},{-300,-182,-164,-243,-159,-166},{-259,-312,-201,-312,-243,-143},{-323,-192,-319,-238,-192,-293},{-169,-316,-176,-199,-224,-182},{-245,-298,-139,-166,-226,-152},{-323,-245,-226,-249,-233,-277},{-270,-192,-249,-213,-321,-162},{-189,-293,-173,-291,-263,-300},{-263,-141,-266,-277,-215,-164},{-247,-280,-155,-199,-176,-307},{-157,-219,-226,-298,-189,-173},{-268,-238,-243,-233,-157,-280},{-233,-176,-210,-169,-141,-189},{-178,-293,-176,-143,-208,-266},{-300,-312,-139,-185,-261,-189},{-270,-252,-224,-273,-215,-273},{-199,-293,-307,-300,-208,-187}},{{-286,-314,-180,-139,-233,-291},{-293,-233,-259,-189,-254,-199},{-245,-286,-300,-247,-219,-215},{-245,-266,-273,-236,-273,-215},{-286,-293,-229,-226,-180,-273},{-169,-178,-307,-298,-180,-217},{-210,-323,-152,-289,-159,-300},{-162,-164,-252,-319,-180,-323},{-284,-259,-139,-259,-176,-157},{-157,-249,-192,-247,-273,-238},{-300,-314,-229,-185,-148,-305},{-159,-182,-180,-182,-238,-196},{-256,-173,-192,-169,-208,-187},{-249,-182,-213,-319,-261,-314},{-199,-226,-189,-146,-268,-296},{-178,-169,-245,-277,-284,-187},{-314,-159,-171,-150,-275,-252},{-263,-199,-226,-245,-173,-305},{-141,-323,-166,-157,-263,-263},{-176,-150,-146,-233,-213,-236}},{{-233,-282,-256,-319,-169,-217},{-199,-148,-314,-222,-259,-321},{-210,-226,-187,-152,-270,-312},{-164,-259,-226,-249,-150,-217},{-180,-321,-146,-210,-192,-157},{-208,-231,-148,-252,-169,-261},{-173,-261,-252,-247,-307,-254},{-203,-189,-229,-208,-296,-162},{-171,-226,-196,-249,-238,-185},{-203,-298,-303,-254,-268,-203},{-169,-305,-270,-312,-139,-268},{-164,-243,-233,-273,-146,-146},{-152,-176,-296,-252,-273,-293},{-206,-321,-196,-229,-280,-171},{-247,-217,-173,-164,-176,-182},{-277,-164,-289,-219,-286,-289},{-185,-146,-231,-159,-226,-159},{-196,-203,-263,-266,-143,-321},{-280,-312,-316,-143,-305,-305},{-166,-150,-182,-185,-210,-208}},{{-252,-310,-312,-139,-256,-249},{-141,-213,-245,-210,-252,-141},{-240,-312,-150,-319,-249,-143},{-263,-305,-226,-275,-240,-185},{-231,-252,-298,-247,-203,-178},{-305,-217,-261,-319,-219,-180},{-266,-157,-280,-321,-222,-252},{-256,-289,-307,-215,-141,-162},{-169,-194,-201,-222,-280,-194},{-273,-155,-208,-155,-284,-141},{-319,-233,-169,-222,-224,-139},{-180,-226,-196,-236,-280,-256},{-226,-298,-303,-296,-263,-275},{-155,-226,-249,-323,-215,-201},{-261,-192,-215,-194,-273,-303},{-173,-139,-305,-215,-157,-141},{-321,-141,-282,-289,-310,-275},{-303,-291,-259,-323,-178,-282},{-182,-254,-231,-240,-316,-215},{-206,-256,-291,-284,-284,-192}},{{-139,-173,-298,-159,-280,-256},{-173,-206,-139,-155,-166,-259},{-310,-182,-185,-280,-289,-150},{-176,-277,-310,-314,-182,-148},{-312,-180,-196,-164,-146,-238},{-139,-173,-243,-270,-143,-298},{-303,-277,-206,-187,-314,-259},{-289,-316,-182,-192,-189,-282},{-206,-189,-284,-268,-280,-180},{-277,-203,-312,-203,-263,-252},{-210,-259,-236,-312,-201,-293},{-275,-286,-226,-157,-240,-268},{-300,-148,-169,-208,-150,-164},{-316,-296,-286,-143,-314,-139},{-208,-146,-217,-210,-284,-185},{-146,-259,-305,-249,-243,-314},{-182,-217,-293,-263,-208,-291},{-291,-139,-323,-185,-148,-240},{-199,-171,-268,-268,-296,-189},{-303,-240,-259,-286,-236,-146}},{{-231,-266,-148,-321,-185,-266},{-298,-159,-252,-275,-233,-286},{-307,-171,-296,-210,-139,-319},{-245,-213,-314,-243,-310,-213},{-180,-256,-238,-208,-321,-150},{-261,-141,-169,-240,-277,-189},{-173,-159,-275,-187,-286,-219},{-298,-240,-201,-296,-219,-187},{-233,-226,-314,-217,-166,-282},{-199,-157,-164,-180,-206,-148},{-148,-159,-185,-199,-261,-199},{-201,-226,-222,-231,-256,-139},{-305,-266,-263,-284,-298,-273},{-148,-192,-307,-155,-178,-275},{-194,-293,-273,-261,-270,-189},{-213,-305,-210,-243,-307,-314},{-196,-222,-284,-305,-192,-275},{-150,-303,-143,-164,-178,-282},{-310,-249,-286,-180,-143,-291},{-173,-298,-238,-310,-310,-236}}},{{{-212,-412,-179,-312,-412,-215},{-332,-238,-397,-215,-176,-347},{-265,-338,-297,-312,-370,-332},{-382,-315,-362,-203,-182,-229},{-409,-179,-253,-218,-285,-253},{-370,-326,-273,-350,-335,-391},{-185,-268,-306,-406,-350,-353},{-244,-265,-229,-259,-212,-285},{-403,-220,-315,-297,-397,-270},{-200,-194,-394,-229,-391,-326},{-250,-212,-335,-320,-206,-350},{-365,-297,-268,-406,-297,-206},{-382,-250,-229,-176,-265,-332},{-391,-262,-341,-203,-359,-203},{-376,-247,-332,-326,-191,-394},{-326,-238,-194,-238,-379,-182},{-388,-209,-403,-206,-179,-376},{-229,-229,-206,-382,-182,-338},{-306,-241,-215,-397,-344,-232},{-185,-276,-276,-179,-365,-244}},{{-200,-297,-244,-362,-329,-394},{-279,-359,-294,-329,-385,-215},{-309,-344,-359,-182,-194,-300},{-294,-276,-409,-262,-309,-244},{-359,-332,-315,-212,-338,-303},{-241,-253,-229,-353,-229,-220},{-262,-212,-347,-350,-265,-241},{-315,-253,-370,-382,-403,-326},{-329,-341,-282,-209,-341,-197},{-241,-215,-359,-273,-194,-265},{-241,-226,-273,-391,-306,-359},{-356,-326,-265,-232,-320,-397},{-376,-259,-262,-400,-212,-197},{-185,-238,-385,-238,-235,-318},{-200,-226,-244,-244,-285,-229},{-359,-185,-385,-356,-409,-370},{-320,-285,-273,-350,-203,-376},{-229,-223,-194,-409,-385,-279},{-223,-397,-312,-209,-403,-403},{-359,-212,-359,-197,-368,-182}},{{-209,-212,-288,-188,-206,-235},{-409,-241,-218,-394,-370,-206},{-188,-347,-262,-362,-362,-203},{-368,-191,-320,-238,-373,-270},{-373,-276,-206,-238,-188,-188},{-356,-332,-365,-203,-282,-250},{-320,-203,-312,-244,-397,-291},{-350,-397,-188,-320,-379,-185},{-191,-312,-376,-191,-318,-256},{-247,-276,-323,-400,-344,-338},{-294,-309,-235,-188,-223,-285},{-232,-253,-273,-356,-341,-359},{-300,-212,-232,-320,-265,-379},{-326,-382,-247,-276,-188,-285},{-303,-388,-382,-329,-262,-400},{-241,-373,-265,-406,-285,-394},{-312,-359,-279,-209,-323,-320},{-259,-176,-191,-279,-362,-200},{-206,-341,-268,-212,-373,-397},{-329,-212,-394,-320,-294,-194}},{{-185,-412,-409,-218,-338,-400},{-359,-344,-218,-379,-191,-379},{-215,-209,-412,-191,-373,-403},{-315,-179,-306,-379,-365,-206},{-241,-403,-373,-232,-412,-300},{-220,-353,-250,-388,-388,-294},{-359,-315,-382,-329,-403,-288},{-391,-179,-270,-326,-326,-185},{-347,-303,-397,-326,-359,-220},{-365,-388,-362,-279,-182,-400},{-273,-388,-206,-215,-385,-365},{-256,-412,-350,-353,-397,-206},{-368,-359,-253,-397,-388,-373},{-176,-391,-391,-203,-206,-397},{-188,-338,-188,-223,-400,-285},{-200,-320,-335,-397,-197,-368},{-335,-397,-376,-412,-194,-288},{-265,-406,-323,-297,-400,-218},{-326,-320,-212,-244,-329,-223},{-391,-215,-247,-412,-376,-344}},{{-368,-332,-197,-303,-244,-194},{-312,-341,-397,-356,-344,-259},{-256,-226,-412,-315,-320,-273},{-262,-376,-179,-335,-220,-235},{-338,-241,-315,-185,-270,-256},{-194,-326,-176,-400,-188,-379},{-215,-194,-247,-412,-176,-376},{-359,-276,-412,-291,-391,-209},{-188,-273,-197,-385,-294,-332},{-382,-329,-412,-406,-318,-291},{-276,-359,-256,-300,-306,-288},{-203,-368,-179,-288,-288,-194},{-176,-365,-270,-318,-397,-270},{-268,-370,-273,-379,-285,-391},{-300,-206,-315,-276,-209,-188},{-385,-238,-235,-185,-212,-412},{-385,-400,-203,-235,-288,-297},{-400,-391,-350,-282,-329,-244},{-382,-409,-279,-215,-232,-262},{-385,-309,-203,-250,-341,-244}},{{-338,-229,-370,-335,-176,-312},{-185,-232,-265,-197,-329,-318},{-379,-359,-329,-215,-250,-191},{-206,-379,-306,-259,-241,-247},{-265,-262,-335,-273,-365,-244},{-356,-185,-250,-359,-209,-335},{-312,-338,-268,-276,-212,-256},{-368,-179,-350,-412,-412,-315},{-232,-362,-270,-194,-412,-312},{-335,-276,-197,-409,-320,-373},{-273,-347,-229,-320,-294,-306},{-247,-203,-409,-270,-218,-306},{-212,-318,-212,-382,-200,-253},{-288,-368,-265,-300,-403,-270},{-365,-338,-382,-306,-218,-197},{-294,-353,-309,-176,-212,-212},{-185,-235,-356,-262,-326,-335},{-409,-282,-335,-203,-270,-294},{-297,-403,-323,-373,-247,-188},{-191,-288,-356,-215,-182,-288}}}}; // 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]={16,8,5,15,8,6,16,8,6,16,9,6,16,9,6,16,8,6,17,9,6,17,9,6,17,9,6,17,9,6,17,8,6,16,8,6,18,9,6,17,9,6,17,9,6,18,9,6,17,9,6,17,9,6,16,9,6,16,9,6,16,9,6,16,9,6,16,8,6,16,8,6}; // 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,350,351,352,353,354},{355,356,357,358,359,360,361,362},{363,364,365,366,367,368},{369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386},{387,388,389,390,391,392,393,394,395},{396,397,398,399,400,401},{402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418},{419,420,421,422,423,424,425,426,427},{428,429,430,431,432,433},{434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450},{451,452,453,454,455,456,457,458,459},{460,461,462,463,464,465},{466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483},{484,485,486,487,488,489,490,491,492},{493,494,495,496,497,498},{499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515},{516,517,518,519,520,521,522,523,524},{525,526,527,528,529,530},{531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547},{548,549,550,551,552,553,554,555,556},{557,558,559,560,561,562},{563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578},{579,580,581,582,583,584,585,586,587},{588,589,590,591,592,593},{594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609},{610,611,612,613,614,615,616,617,618},{619,620,621,622,623,624},{625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640},{641,642,643,644,645,646,647,648,649},{650,651,652,653,654,655},{656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671},{672,673,674,675,676,677,678,679,680},{681,682,683,684,685,686},{687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702},{703,704,705,706,707,708,709,710},{711,712,713,714,715,716},{717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732},{733,734,735,736,737,738,739,740},{741,742,743,744,745,746}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,1,5,9,13,17,21,25,29,1,7,13,19,25,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,1,5,9,13,17,21,25,29,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,2,6,10,14,18,22,26,30,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,5,9,13,17,21,25,29,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,34,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,1,7,13,19,25,31}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,6,10,14,18,22,26,30,34,6,12,18,24,30,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,6,10,14,18,22,26,30,34,5,11,17,23,29,35,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,7,11,15,19,23,27,31,35,5,11,17,23,29,35,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,5,11,17,23,29,35,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,3,9,15,21,27,33,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,1,5,9,13,17,21,25,29,33,3,9,15,21,27,33,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,3,9,15,21,27,33,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,1,7,13,19,25,31,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,5,11,17,23,29,35,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,4,10,16,22,28,34,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,4,10,16,22,28,34}; // set of end times of each shipment 
