int Dev = 50;// Deviation
extern const int CNN = 1;// 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 = 739;//Number of shipments
extern const int SN = 20;//Number of scenarios at each stage
extern const int MBSN = 17;//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]={{{{10787,0,0,0,0,0},{11484,0,0,0,0,0},{10991,0,0,0,0,0},{12366,0,0,0,0,0},{10830,0,0,0,0,0},{12083,0,0,0,0,0},{12221,0,0,0,0,0},{11172,0,0,0,0,0},{11536,0,0,0,0,0},{12049,0,0,0,0,0},{11407,0,0,0,0,0},{11217,0,0,0,0,0},{11869,0,0,0,0,0},{11620,0,0,0,0,0},{11727,0,0,0,0,0},{12626,0,0,0,0,0},{12081,0,0,0,0,0},{11241,0,0,0,0,0},{11920,0,0,0,0,0},{11467,0,0,0,0,0}},{{11246,0,0,0,0,0},{11247,0,0,0,0,0},{11613,0,0,0,0,0},{12213,0,0,0,0,0},{12012,0,0,0,0,0},{10972,0,0,0,0,0},{12490,0,0,0,0,0},{10990,0,0,0,0,0},{11669,0,0,0,0,0},{11550,0,0,0,0,0},{11614,0,0,0,0,0},{10826,0,0,0,0,0},{11127,0,0,0,0,0},{11511,0,0,0,0,0},{10852,0,0,0,0,0},{11945,0,0,0,0,0},{12253,0,0,0,0,0},{11899,0,0,0,0,0},{10917,0,0,0,0,0},{11264,0,0,0,0,0}},{{11493,0,0,0,0,0},{11590,0,0,0,0,0},{10473,0,0,0,0,0},{11734,0,0,0,0,0},{11163,0,0,0,0,0},{11309,0,0,0,0,0},{11976,0,0,0,0,0},{11792,0,0,0,0,0},{11648,0,0,0,0,0},{10950,0,0,0,0,0},{11304,0,0,0,0,0},{11504,0,0,0,0,0},{11265,0,0,0,0,0},{12307,0,0,0,0,0},{10643,0,0,0,0,0},{11205,0,0,0,0,0},{11117,0,0,0,0,0},{11003,0,0,0,0,0},{10871,0,0,0,0,0},{11502,0,0,0,0,0}},{{11772,0,0,0,0,0},{10791,0,0,0,0,0},{11681,0,0,0,0,0},{11612,0,0,0,0,0},{11286,0,0,0,0,0},{11865,0,0,0,0,0},{12327,0,0,0,0,0},{11046,0,0,0,0,0},{11131,0,0,0,0,0},{11793,0,0,0,0,0},{11384,0,0,0,0,0},{10871,0,0,0,0,0},{11527,0,0,0,0,0},{11217,0,0,0,0,0},{11968,0,0,0,0,0},{12335,0,0,0,0,0},{11682,0,0,0,0,0},{11233,0,0,0,0,0},{11951,0,0,0,0,0},{11090,0,0,0,0,0}},{{11625,0,0,0,0,0},{11872,0,0,0,0,0},{11191,0,0,0,0,0},{11430,0,0,0,0,0},{12091,0,0,0,0,0},{11710,0,0,0,0,0},{11492,0,0,0,0,0},{10630,0,0,0,0,0},{11492,0,0,0,0,0},{12357,0,0,0,0,0},{10633,0,0,0,0,0},{11532,0,0,0,0,0},{12022,0,0,0,0,0},{11315,0,0,0,0,0},{12280,0,0,0,0,0},{11848,0,0,0,0,0},{11716,0,0,0,0,0},{12102,0,0,0,0,0},{11435,0,0,0,0,0},{10845,0,0,0,0,0}},{{11402,0,0,0,0,0},{11227,0,0,0,0,0},{12109,0,0,0,0,0},{12048,0,0,0,0,0},{11668,0,0,0,0,0},{11398,0,0,0,0,0},{11425,0,0,0,0,0},{11325,0,0,0,0,0},{11952,0,0,0,0,0},{11944,0,0,0,0,0},{11313,0,0,0,0,0},{10984,0,0,0,0,0},{11360,0,0,0,0,0},{11594,0,0,0,0,0},{11014,0,0,0,0,0},{11782,0,0,0,0,0},{12375,0,0,0,0,0},{11408,0,0,0,0,0},{11314,0,0,0,0,0},{11744,0,0,0,0,0}}},{{{-248,-130,-221,-166,-102,-168},{-156,-284,-142,-304,-268,-199},{-262,-158,-112,-193,-260,-298},{-197,-156,-292,-288,-284,-294},{-158,-164,-142,-235,-154,-146},{-238,-238,-260,-286,-260,-199},{-242,-191,-158,-219,-256,-140},{-160,-124,-209,-238,-195,-197},{-227,-168,-270,-240,-270,-116},{-250,-213,-292,-304,-304,-221},{-122,-185,-132,-225,-156,-126},{-235,-235,-238,-189,-183,-221},{-201,-211,-185,-122,-179,-298},{-154,-238,-256,-126,-209,-298},{-270,-144,-146,-171,-304,-286},{-242,-106,-304,-221,-300,-120},{-142,-225,-272,-185,-211,-219},{-215,-126,-164,-146,-102,-185},{-132,-246,-270,-284,-270,-272},{-231,-114,-132,-132,-199,-298}},{{-181,-258,-274,-248,-173,-235},{-118,-250,-162,-164,-268,-118},{-110,-179,-211,-177,-231,-280},{-274,-272,-160,-201,-264,-296},{-156,-175,-264,-120,-266,-164},{-260,-124,-252,-296,-187,-256},{-207,-168,-264,-264,-193,-282},{-154,-130,-191,-166,-175,-112},{-244,-132,-215,-104,-106,-106},{-282,-134,-246,-229,-106,-240},{-223,-213,-266,-278,-179,-235},{-106,-108,-276,-104,-215,-106},{-197,-168,-154,-288,-274,-246},{-290,-211,-104,-114,-288,-229},{-304,-256,-284,-118,-110,-134},{-233,-233,-240,-114,-244,-296},{-193,-252,-264,-233,-294,-130},{-138,-187,-116,-112,-294,-144},{-280,-244,-144,-185,-177,-189},{-128,-160,-187,-221,-250,-286}},{{-160,-140,-235,-292,-112,-233},{-183,-274,-282,-290,-290,-207},{-274,-108,-144,-250,-130,-140},{-154,-207,-264,-262,-262,-219},{-278,-207,-126,-128,-187,-274},{-223,-122,-229,-114,-177,-233},{-201,-116,-138,-233,-183,-114},{-282,-233,-256,-233,-278,-238},{-134,-294,-134,-300,-298,-166},{-252,-280,-219,-189,-154,-302},{-248,-183,-175,-264,-233,-215},{-268,-223,-164,-244,-179,-152},{-233,-278,-280,-154,-154,-120},{-211,-122,-187,-244,-168,-233},{-240,-270,-254,-162,-132,-106},{-118,-272,-134,-140,-166,-223},{-286,-187,-164,-118,-213,-223},{-262,-227,-252,-256,-268,-288},{-152,-302,-122,-126,-154,-130},{-154,-290,-191,-156,-175,-246}},{{-181,-272,-168,-209,-254,-260},{-144,-112,-276,-223,-244,-201},{-195,-187,-132,-264,-294,-213},{-254,-225,-274,-116,-193,-166},{-136,-199,-242,-108,-142,-250},{-114,-238,-270,-266,-280,-110},{-205,-146,-124,-195,-201,-300},{-211,-270,-213,-154,-302,-191},{-286,-302,-231,-238,-112,-221},{-189,-268,-268,-179,-238,-233},{-221,-118,-254,-193,-282,-146},{-156,-266,-122,-254,-248,-116},{-189,-114,-288,-116,-254,-122},{-223,-258,-191,-268,-272,-211},{-268,-225,-124,-254,-106,-244},{-256,-282,-179,-183,-118,-304},{-209,-209,-130,-246,-158,-229},{-128,-158,-231,-227,-278,-252},{-211,-189,-134,-140,-276,-132},{-148,-223,-242,-231,-134,-187}},{{-164,-108,-134,-110,-130,-274},{-274,-254,-114,-207,-175,-270},{-235,-102,-294,-197,-270,-162},{-288,-274,-256,-282,-252,-162},{-148,-248,-240,-160,-223,-213},{-254,-140,-160,-160,-240,-146},{-246,-138,-175,-300,-197,-114},{-274,-215,-144,-197,-177,-256},{-209,-240,-108,-160,-102,-242},{-262,-150,-262,-156,-268,-264},{-175,-104,-272,-175,-276,-252},{-154,-114,-104,-254,-116,-240},{-106,-256,-185,-225,-288,-296},{-181,-282,-152,-158,-272,-171},{-272,-221,-304,-248,-106,-160},{-136,-156,-302,-177,-199,-191},{-298,-258,-227,-197,-260,-258},{-112,-300,-201,-284,-250,-193},{-215,-264,-296,-162,-304,-209},{-298,-142,-156,-213,-235,-238}},{{-242,-240,-250,-114,-254,-213},{-268,-108,-227,-274,-286,-215},{-266,-171,-282,-195,-233,-276},{-233,-286,-148,-166,-211,-106},{-108,-300,-187,-270,-171,-118},{-219,-213,-294,-106,-304,-102},{-302,-205,-244,-166,-183,-132},{-270,-262,-238,-244,-108,-181},{-162,-223,-201,-294,-302,-130},{-254,-270,-286,-235,-268,-191},{-150,-171,-179,-235,-152,-304},{-246,-112,-154,-254,-199,-162},{-156,-160,-207,-217,-227,-207},{-266,-274,-193,-205,-221,-130},{-197,-302,-158,-231,-264,-195},{-254,-211,-197,-193,-246,-146},{-171,-262,-254,-179,-173,-136},{-252,-152,-264,-254,-213,-213},{-173,-193,-240,-284,-126,-235},{-205,-134,-142,-266,-278,-264}}},{{{-100,-126,-229,-150,-90,-158},{-129,-97,-97,-89,-98,-148},{-158,-166,-153,-105,-240,-164},{-177,-158,-98,-89,-93,-132},{-164,-190,-150,-97,-90,-100},{-216,-185,-163,-126,-222,-156},{-227,-135,-150,-195,-190,-85},{-232,-158,-184,-118,-180,-211},{-109,-185,-118,-82,-232,-156},{-93,-225,-206,-204,-229,-179},{-98,-193,-121,-238,-233,-171},{-87,-153,-114,-92,-172,-238},{-84,-95,-92,-87,-185,-232},{-185,-227,-213,-182,-113,-224},{-155,-175,-180,-103,-219,-240},{-216,-203,-240,-219,-200,-95},{-180,-116,-213,-192,-211,-161},{-175,-85,-193,-140,-238,-101},{-225,-174,-240,-145,-242,-174},{-150,-100,-182,-175,-143,-134}},{{-108,-217,-130,-224,-193,-100},{-206,-132,-129,-129,-118,-134},{-208,-175,-84,-122,-119,-155},{-216,-216,-206,-109,-179,-161},{-106,-222,-105,-230,-87,-224},{-119,-208,-174,-148,-177,-124},{-184,-203,-135,-82,-185,-195},{-105,-158,-222,-114,-182,-227},{-185,-224,-100,-225,-109,-182},{-85,-129,-188,-188,-106,-211},{-100,-82,-227,-235,-148,-221},{-224,-166,-100,-84,-158,-232},{-216,-153,-100,-158,-151,-190},{-204,-159,-113,-174,-233,-208},{-137,-211,-213,-230,-200,-240},{-130,-192,-224,-217,-137,-167},{-240,-95,-217,-132,-177,-221},{-158,-227,-235,-217,-80,-126},{-103,-111,-217,-187,-145,-174},{-167,-137,-182,-97,-95,-106}},{{-113,-130,-201,-129,-201,-188},{-177,-126,-127,-174,-100,-111},{-225,-108,-161,-151,-150,-134},{-95,-219,-235,-155,-148,-185},{-101,-116,-200,-171,-208,-224},{-153,-113,-134,-163,-198,-159},{-188,-230,-153,-161,-172,-85},{-233,-225,-85,-137,-111,-158},{-113,-213,-127,-89,-124,-97},{-118,-195,-169,-166,-195,-230},{-167,-224,-87,-159,-135,-184},{-174,-204,-180,-132,-148,-156},{-130,-214,-159,-148,-219,-97},{-209,-206,-204,-225,-222,-171},{-192,-121,-237,-87,-132,-190},{-221,-221,-185,-98,-238,-238},{-180,-121,-169,-90,-185,-201},{-174,-138,-188,-101,-80,-204},{-211,-164,-240,-93,-95,-87},{-221,-130,-145,-121,-193,-224}},{{-208,-206,-106,-148,-166,-89},{-200,-93,-140,-214,-171,-124},{-122,-151,-121,-124,-184,-118},{-177,-121,-240,-106,-108,-185},{-93,-233,-98,-132,-119,-113},{-221,-167,-82,-129,-135,-216},{-233,-130,-227,-219,-93,-237},{-240,-163,-204,-122,-237,-140},{-225,-203,-126,-140,-203,-124},{-185,-237,-93,-126,-111,-161},{-114,-129,-225,-188,-229,-233},{-211,-135,-97,-134,-140,-188},{-95,-132,-85,-174,-196,-121},{-147,-147,-84,-92,-106,-129},{-225,-238,-103,-158,-121,-90},{-198,-225,-172,-214,-221,-138},{-227,-92,-206,-214,-225,-233},{-208,-142,-222,-111,-95,-238},{-200,-109,-219,-230,-116,-132},{-159,-90,-143,-174,-171,-95}},{{-148,-145,-85,-213,-100,-238},{-98,-195,-100,-114,-126,-175},{-114,-167,-164,-97,-118,-196},{-113,-230,-188,-180,-177,-184},{-216,-129,-138,-219,-225,-134},{-85,-233,-148,-217,-98,-132},{-135,-213,-222,-230,-109,-164},{-105,-101,-97,-237,-190,-155},{-221,-188,-129,-214,-80,-156},{-180,-92,-121,-224,-92,-89},{-182,-126,-145,-153,-126,-219},{-193,-156,-80,-118,-190,-132},{-163,-198,-174,-174,-116,-169},{-161,-208,-137,-179,-232,-143},{-211,-118,-129,-238,-163,-195},{-129,-164,-185,-100,-166,-187},{-142,-130,-198,-213,-213,-206},{-232,-225,-155,-242,-187,-222},{-237,-171,-151,-214,-98,-124},{-105,-121,-163,-147,-196,-93}},{{-121,-195,-103,-101,-150,-164},{-208,-214,-237,-221,-130,-180},{-135,-180,-235,-233,-188,-161},{-198,-98,-214,-153,-233,-232},{-222,-227,-158,-203,-130,-169},{-164,-182,-93,-233,-121,-80},{-204,-158,-174,-80,-237,-114},{-166,-134,-206,-169,-161,-167},{-195,-174,-89,-184,-225,-233},{-172,-132,-155,-156,-164,-222},{-129,-147,-151,-214,-237,-97},{-97,-113,-143,-113,-240,-135},{-208,-151,-208,-209,-213,-188},{-208,-221,-138,-122,-155,-114},{-98,-216,-98,-92,-142,-109},{-108,-235,-95,-113,-137,-193},{-219,-233,-225,-80,-192,-116},{-105,-122,-127,-177,-89,-240},{-118,-153,-109,-204,-172,-103},{-225,-190,-127,-169,-198,-122}}},{{{-323,-116,-296,-150,-263,-333},{-208,-259,-222,-266,-206,-226},{-222,-134,-189,-245,-277,-335},{-344,-152,-319,-342,-240,-194},{-159,-134,-192,-314,-259,-229},{-206,-340,-275,-127,-157,-314},{-127,-215,-333,-280,-296,-148},{-238,-194,-286,-143,-337,-171},{-141,-303,-326,-326,-261,-252},{-326,-286,-125,-171,-169,-305},{-344,-307,-340,-203,-236,-240},{-240,-164,-157,-305,-233,-337},{-273,-291,-247,-280,-155,-337},{-213,-122,-189,-139,-296,-125},{-219,-254,-132,-116,-316,-155},{-346,-166,-328,-340,-321,-300},{-254,-210,-224,-148,-312,-231},{-273,-169,-208,-296,-120,-268},{-127,-245,-312,-141,-136,-312},{-146,-233,-166,-159,-122,-213}},{{-289,-136,-226,-240,-118,-166},{-282,-229,-120,-340,-192,-127},{-293,-162,-196,-270,-122,-157},{-268,-236,-296,-282,-291,-178},{-224,-259,-173,-328,-282,-152},{-187,-333,-215,-125,-182,-215},{-263,-314,-159,-310,-277,-261},{-208,-132,-150,-247,-259,-273},{-263,-166,-286,-152,-226,-196},{-231,-226,-344,-316,-263,-166},{-192,-118,-300,-263,-171,-296},{-310,-330,-275,-148,-328,-298},{-217,-247,-159,-118,-134,-247},{-252,-118,-141,-136,-171,-127},{-116,-321,-146,-284,-164,-136},{-125,-273,-337,-238,-229,-125},{-333,-196,-182,-330,-238,-268},{-319,-284,-333,-344,-259,-252},{-152,-337,-173,-196,-256,-222},{-182,-310,-282,-173,-328,-293}},{{-141,-159,-319,-164,-166,-266},{-229,-157,-254,-261,-300,-185},{-162,-141,-289,-240,-249,-222},{-189,-166,-217,-210,-249,-136},{-203,-340,-319,-125,-340,-155},{-312,-277,-259,-275,-189,-268},{-268,-321,-206,-316,-166,-291},{-249,-132,-224,-143,-312,-231},{-330,-335,-245,-116,-166,-247},{-178,-134,-236,-249,-319,-125},{-180,-203,-189,-196,-169,-289},{-134,-321,-166,-337,-199,-173},{-275,-247,-196,-213,-203,-134},{-321,-340,-217,-249,-231,-346},{-155,-261,-208,-245,-192,-118},{-303,-293,-176,-314,-289,-312},{-268,-180,-273,-118,-148,-296},{-159,-139,-194,-261,-238,-256},{-337,-247,-312,-162,-293,-219},{-326,-176,-312,-280,-240,-270}},{{-219,-171,-293,-314,-340,-206},{-196,-139,-330,-159,-233,-229},{-120,-289,-127,-208,-178,-116},{-201,-300,-291,-326,-182,-129},{-182,-328,-189,-335,-155,-134},{-189,-159,-314,-215,-312,-236},{-162,-293,-312,-316,-284,-303},{-236,-321,-266,-173,-252,-254},{-219,-206,-333,-303,-286,-240},{-139,-284,-286,-136,-243,-180},{-340,-125,-222,-118,-196,-150},{-139,-298,-182,-270,-122,-116},{-199,-146,-136,-305,-298,-120},{-231,-233,-132,-335,-266,-185},{-284,-210,-166,-141,-231,-208},{-300,-293,-169,-173,-254,-222},{-176,-247,-275,-189,-176,-166},{-143,-293,-127,-335,-120,-132},{-243,-166,-222,-233,-303,-208},{-194,-155,-229,-194,-337,-185}},{{-298,-284,-159,-201,-129,-273},{-243,-215,-231,-321,-252,-300},{-284,-245,-266,-342,-263,-187},{-182,-178,-273,-129,-155,-164},{-196,-298,-273,-148,-219,-182},{-141,-199,-270,-238,-217,-229},{-346,-266,-261,-254,-206,-166},{-303,-166,-261,-120,-173,-254},{-310,-187,-182,-270,-335,-300},{-118,-196,-323,-192,-247,-326},{-132,-180,-125,-275,-275,-159},{-249,-273,-245,-263,-333,-217},{-194,-148,-199,-203,-178,-261},{-169,-148,-289,-268,-178,-273},{-293,-222,-206,-305,-169,-206},{-316,-316,-141,-185,-289,-337},{-229,-192,-226,-268,-176,-185},{-314,-157,-319,-286,-273,-226},{-192,-196,-245,-229,-150,-245},{-261,-169,-122,-189,-222,-178}},{{-256,-201,-337,-268,-173,-268},{-182,-335,-293,-187,-208,-326},{-296,-169,-208,-182,-342,-328},{-122,-166,-282,-240,-261,-118},{-247,-127,-229,-132,-143,-116},{-146,-171,-289,-116,-203,-328},{-323,-296,-189,-185,-289,-120},{-314,-289,-206,-187,-157,-219},{-201,-323,-346,-206,-340,-249},{-187,-280,-300,-206,-129,-233},{-330,-238,-213,-122,-176,-289},{-127,-291,-217,-236,-132,-120},{-289,-296,-245,-146,-289,-159},{-247,-273,-316,-328,-245,-342},{-328,-132,-229,-139,-344,-116},{-187,-217,-243,-333,-116,-143},{-326,-263,-330,-346,-229,-259},{-169,-122,-307,-289,-203,-254},{-270,-118,-333,-333,-164,-122},{-268,-254,-157,-219,-201,-125}}},{{{-150,-243,-271,-221,-276,-111},{-150,-241,-234,-280,-302,-111},{-230,-158,-219,-174,-167,-250},{-215,-241,-228,-302,-273,-258},{-224,-250,-115,-315,-145,-276},{-310,-204,-122,-304,-254,-304},{-308,-230,-226,-230,-213,-143},{-195,-169,-137,-263,-278,-250},{-178,-195,-158,-213,-297,-215},{-184,-224,-141,-293,-161,-108},{-167,-263,-163,-128,-122,-108},{-197,-267,-312,-210,-184,-267},{-215,-256,-243,-256,-189,-323},{-254,-245,-221,-154,-310,-206},{-245,-306,-317,-174,-191,-130},{-224,-108,-239,-119,-256,-141},{-202,-156,-119,-197,-148,-197},{-184,-308,-174,-260,-202,-169},{-187,-323,-308,-161,-269,-326},{-208,-243,-113,-226,-232,-312}},{{-152,-221,-210,-215,-286,-237},{-180,-148,-174,-321,-282,-174},{-315,-206,-178,-210,-230,-299},{-321,-315,-293,-215,-178,-276},{-258,-111,-239,-224,-278,-143},{-124,-156,-297,-267,-174,-217},{-191,-221,-293,-308,-291,-319},{-169,-156,-184,-299,-111,-308},{-321,-269,-145,-143,-267,-232},{-319,-269,-137,-271,-137,-143},{-308,-111,-202,-289,-256,-289},{-226,-132,-278,-141,-158,-258},{-171,-234,-267,-137,-245,-250},{-271,-122,-167,-169,-263,-291},{-115,-204,-128,-128,-117,-306},{-228,-152,-291,-135,-124,-321},{-282,-210,-163,-191,-250,-130},{-256,-145,-141,-234,-267,-143},{-260,-321,-132,-315,-250,-293},{-187,-197,-187,-208,-221,-132}},{{-321,-204,-323,-202,-180,-182},{-278,-323,-176,-163,-289,-126},{-269,-291,-208,-289,-286,-191},{-167,-202,-143,-291,-304,-215},{-117,-163,-126,-241,-263,-219},{-210,-195,-265,-310,-247,-206},{-260,-304,-326,-180,-184,-247},{-213,-165,-254,-250,-171,-141},{-130,-315,-206,-269,-152,-256},{-239,-108,-115,-139,-132,-295},{-271,-130,-167,-189,-245,-148},{-152,-195,-200,-228,-312,-206},{-126,-267,-237,-180,-219,-182},{-165,-215,-226,-111,-286,-193},{-243,-317,-180,-210,-154,-187},{-115,-226,-284,-315,-139,-165},{-271,-152,-317,-208,-141,-295},{-154,-204,-174,-154,-122,-117},{-276,-117,-156,-204,-239,-141},{-161,-289,-137,-150,-321,-197}},{{-326,-193,-304,-208,-310,-130},{-124,-286,-302,-230,-241,-269},{-161,-226,-239,-115,-280,-321},{-208,-310,-254,-191,-202,-219},{-276,-195,-310,-230,-232,-182},{-137,-295,-139,-184,-221,-169},{-247,-308,-278,-213,-158,-202},{-239,-267,-213,-204,-228,-191},{-226,-154,-224,-124,-130,-269},{-204,-208,-282,-161,-126,-271},{-308,-128,-289,-304,-210,-145},{-161,-187,-315,-308,-169,-124},{-213,-137,-302,-245,-150,-119},{-163,-271,-280,-252,-252,-215},{-289,-306,-152,-208,-293,-213},{-219,-280,-115,-210,-306,-306},{-128,-115,-239,-234,-165,-291},{-130,-291,-219,-132,-312,-141},{-215,-230,-210,-124,-245,-247},{-135,-326,-232,-163,-221,-150}},{{-215,-150,-276,-260,-174,-180},{-252,-258,-306,-280,-323,-178},{-182,-263,-210,-152,-119,-158},{-321,-284,-243,-291,-150,-217},{-202,-271,-145,-213,-289,-208},{-321,-319,-117,-119,-130,-221},{-156,-167,-154,-124,-195,-323},{-152,-132,-141,-195,-191,-158},{-326,-286,-202,-265,-221,-230},{-239,-286,-148,-276,-304,-180},{-152,-204,-165,-276,-254,-308},{-165,-108,-208,-202,-280,-228},{-132,-180,-321,-224,-221,-299},{-297,-224,-197,-204,-230,-245},{-326,-150,-150,-213,-315,-171},{-312,-171,-267,-299,-139,-210},{-145,-161,-152,-224,-128,-273},{-108,-304,-165,-239,-132,-273},{-252,-200,-141,-126,-276,-161},{-312,-189,-202,-306,-165,-150}},{{-315,-150,-326,-132,-239,-293},{-119,-132,-135,-139,-204,-265},{-167,-273,-171,-115,-154,-310},{-243,-163,-148,-204,-269,-165},{-312,-202,-169,-210,-169,-267},{-291,-267,-308,-169,-135,-154},{-191,-128,-276,-174,-289,-282},{-158,-273,-143,-232,-130,-241},{-174,-252,-148,-237,-128,-273},{-141,-308,-282,-254,-126,-228},{-217,-319,-219,-239,-182,-221},{-226,-171,-245,-169,-239,-217},{-278,-254,-189,-180,-234,-197},{-122,-113,-282,-206,-143,-260},{-174,-239,-297,-280,-230,-169},{-139,-263,-202,-312,-297,-326},{-245,-111,-197,-273,-237,-291},{-180,-241,-219,-219,-111,-117},{-247,-312,-215,-282,-165,-289},{-135,-195,-271,-282,-293,-217}}},{{{-234,-231,-356,-181,-359,-362},{-239,-258,-282,-207,-311,-192},{-173,-168,-133,-287,-306,-178},{-285,-215,-181,-277,-194,-266},{-343,-138,-213,-269,-173,-215},{-253,-372,-210,-154,-144,-157},{-314,-186,-391,-231,-293,-303},{-245,-197,-343,-186,-168,-160},{-149,-250,-255,-168,-263,-263},{-144,-168,-396,-367,-340,-152},{-186,-356,-210,-138,-258,-152},{-237,-192,-255,-141,-356,-133},{-215,-253,-282,-338,-154,-290},{-168,-372,-346,-136,-277,-372},{-370,-303,-215,-261,-245,-314},{-314,-181,-157,-327,-343,-343},{-309,-245,-239,-332,-340,-258},{-192,-378,-144,-192,-250,-194},{-184,-314,-200,-325,-375,-226},{-364,-207,-378,-367,-231,-338}},{{-399,-218,-168,-290,-178,-348},{-152,-375,-231,-261,-301,-311},{-362,-226,-242,-375,-229,-247},{-157,-186,-176,-367,-370,-362},{-255,-309,-322,-364,-226,-186},{-279,-223,-253,-399,-160,-335},{-258,-386,-356,-332,-154,-205},{-295,-263,-391,-229,-356,-372},{-269,-370,-247,-317,-157,-274},{-351,-335,-229,-274,-205,-157},{-301,-271,-239,-325,-370,-157},{-152,-287,-325,-207,-359,-184},{-192,-396,-146,-266,-348,-146},{-181,-213,-154,-290,-367,-332},{-237,-258,-263,-221,-162,-170},{-237,-375,-367,-306,-314,-245},{-396,-192,-391,-327,-223,-301},{-351,-298,-356,-386,-253,-372},{-141,-245,-271,-157,-293,-202},{-229,-173,-351,-279,-391,-144}},{{-269,-285,-192,-295,-154,-391},{-285,-394,-301,-144,-295,-356},{-160,-160,-157,-160,-189,-178},{-168,-348,-138,-266,-356,-370},{-303,-154,-186,-263,-335,-213},{-138,-370,-338,-285,-152,-242},{-285,-396,-362,-242,-242,-144},{-253,-380,-239,-290,-165,-362},{-290,-207,-255,-367,-186,-144},{-160,-295,-170,-221,-234,-375},{-210,-144,-162,-282,-176,-189},{-330,-287,-351,-154,-184,-338},{-396,-295,-309,-293,-162,-378},{-319,-176,-184,-293,-343,-170},{-394,-141,-378,-152,-194,-192},{-205,-317,-335,-383,-253,-207},{-293,-207,-266,-176,-157,-269},{-261,-168,-144,-325,-380,-330},{-354,-231,-184,-295,-311,-247},{-136,-250,-133,-317,-157,-173}},{{-364,-207,-399,-170,-197,-144},{-234,-192,-303,-269,-178,-290},{-202,-386,-247,-290,-319,-396},{-218,-311,-269,-362,-231,-293},{-138,-327,-298,-346,-370,-223},{-165,-362,-173,-181,-269,-370},{-189,-274,-176,-338,-138,-330},{-176,-218,-176,-162,-250,-356},{-340,-303,-306,-178,-367,-274},{-386,-330,-234,-247,-210,-215},{-239,-287,-314,-298,-210,-293},{-168,-354,-157,-372,-173,-215},{-330,-388,-314,-375,-213,-348},{-138,-332,-231,-351,-396,-303},{-380,-322,-181,-298,-136,-301},{-298,-372,-372,-340,-258,-306},{-375,-367,-269,-346,-354,-231},{-391,-362,-146,-380,-295,-168},{-247,-378,-234,-309,-285,-367},{-215,-332,-282,-176,-157,-362}},{{-317,-221,-176,-317,-380,-247},{-215,-200,-189,-351,-282,-391},{-168,-184,-205,-354,-301,-181},{-186,-317,-168,-229,-237,-362},{-396,-162,-189,-354,-386,-364},{-317,-189,-322,-386,-218,-200},{-293,-218,-279,-253,-346,-319},{-173,-162,-237,-194,-160,-168},{-247,-348,-165,-330,-146,-146},{-237,-362,-266,-351,-325,-314},{-242,-277,-269,-322,-133,-213},{-266,-215,-332,-258,-239,-380},{-141,-348,-269,-370,-269,-391},{-306,-253,-154,-332,-364,-221},{-335,-176,-325,-178,-356,-149},{-200,-157,-380,-178,-311,-356},{-237,-245,-261,-332,-173,-346},{-301,-136,-237,-168,-285,-287},{-309,-367,-285,-375,-332,-306},{-186,-266,-242,-205,-343,-184}},{{-330,-242,-184,-181,-340,-279},{-200,-215,-258,-239,-263,-386},{-234,-394,-184,-293,-311,-213},{-383,-301,-372,-388,-138,-237},{-394,-348,-176,-277,-165,-226},{-258,-340,-335,-335,-250,-277},{-255,-231,-348,-144,-327,-301},{-319,-359,-221,-327,-154,-378},{-149,-237,-160,-388,-157,-314},{-250,-338,-242,-194,-343,-378},{-192,-327,-202,-176,-263,-293},{-394,-205,-178,-197,-168,-141},{-253,-229,-364,-186,-301,-255},{-176,-311,-149,-332,-210,-285},{-192,-386,-372,-223,-141,-261},{-237,-391,-311,-330,-261,-362},{-223,-258,-295,-319,-335,-372},{-176,-229,-274,-136,-146,-340},{-399,-325,-210,-165,-215,-340},{-394,-354,-181,-290,-277,-325}}},{{{-218,-286,-342,-356,-230,-305},{-322,-305,-146,-252,-179,-300},{-218,-277,-193,-311,-344,-344},{-403,-392,-202,-384,-227,-140},{-283,-384,-221,-286,-308,-389},{-400,-235,-347,-389,-386,-342},{-258,-395,-263,-288,-291,-165},{-358,-316,-344,-151,-322,-277},{-210,-336,-400,-146,-227,-339},{-160,-350,-204,-246,-409,-336},{-266,-314,-364,-347,-160,-218},{-213,-165,-353,-412,-263,-162},{-409,-193,-258,-162,-311,-417},{-204,-193,-246,-146,-389,-409},{-168,-358,-185,-300,-325,-213},{-381,-218,-252,-333,-367,-325},{-330,-280,-280,-375,-375,-364},{-336,-403,-283,-182,-384,-174},{-246,-160,-372,-409,-328,-414},{-297,-176,-216,-375,-224,-420}},{{-224,-406,-325,-403,-353,-199},{-378,-213,-364,-151,-400,-372},{-400,-308,-224,-165,-294,-370},{-232,-364,-305,-266,-157,-207},{-297,-210,-389,-319,-406,-420},{-230,-322,-151,-182,-182,-386},{-241,-406,-148,-258,-157,-336},{-375,-328,-258,-182,-210,-193},{-165,-311,-244,-274,-308,-347},{-319,-417,-165,-148,-232,-157},{-216,-260,-325,-403,-288,-328},{-188,-230,-325,-333,-162,-277},{-308,-294,-227,-316,-241,-280},{-199,-148,-336,-372,-221,-199},{-249,-414,-182,-154,-199,-160},{-347,-174,-258,-291,-347,-322},{-389,-272,-174,-272,-260,-179},{-288,-235,-412,-398,-199,-414},{-269,-297,-151,-384,-151,-302},{-266,-308,-308,-375,-339,-143}},{{-216,-168,-384,-294,-196,-367},{-300,-207,-196,-165,-246,-185},{-342,-168,-356,-297,-171,-288},{-302,-372,-325,-297,-286,-375},{-361,-277,-246,-339,-420,-277},{-266,-196,-311,-358,-241,-235},{-171,-241,-249,-269,-378,-339},{-330,-232,-213,-252,-417,-378},{-308,-300,-255,-272,-204,-353},{-263,-339,-246,-204,-204,-328},{-213,-199,-414,-280,-412,-274},{-160,-157,-249,-386,-420,-328},{-283,-199,-140,-302,-140,-308},{-244,-157,-414,-277,-230,-188},{-300,-235,-218,-157,-412,-235},{-288,-235,-157,-193,-146,-221},{-244,-151,-260,-258,-409,-367},{-218,-353,-196,-398,-165,-216},{-151,-269,-252,-146,-230,-409},{-185,-364,-420,-300,-218,-403}},{{-274,-174,-266,-325,-216,-207},{-162,-207,-255,-235,-266,-154},{-375,-241,-364,-347,-230,-252},{-160,-210,-417,-174,-266,-272},{-224,-260,-255,-308,-244,-286},{-244,-356,-350,-319,-274,-190},{-274,-288,-325,-204,-364,-389},{-140,-336,-224,-213,-218,-176},{-188,-193,-140,-389,-160,-160},{-227,-372,-361,-255,-325,-227},{-160,-367,-294,-336,-358,-263},{-168,-246,-244,-325,-308,-302},{-260,-372,-168,-182,-204,-238},{-140,-319,-171,-252,-179,-395},{-274,-238,-389,-333,-400,-406},{-311,-381,-241,-202,-283,-207},{-403,-168,-157,-162,-224,-168},{-204,-347,-154,-356,-400,-286},{-311,-252,-322,-350,-400,-143},{-176,-171,-344,-216,-255,-269}},{{-146,-305,-266,-174,-412,-328},{-364,-179,-269,-235,-403,-370},{-339,-291,-230,-210,-305,-406},{-350,-378,-420,-160,-400,-297},{-238,-207,-288,-384,-406,-414},{-305,-403,-406,-367,-258,-392},{-353,-367,-235,-185,-241,-168},{-367,-328,-196,-395,-356,-146},{-168,-213,-328,-412,-238,-325},{-288,-269,-300,-414,-266,-330},{-249,-286,-274,-165,-162,-370},{-305,-381,-389,-370,-356,-146},{-347,-361,-140,-344,-232,-218},{-288,-356,-221,-417,-224,-157},{-344,-367,-308,-258,-274,-274},{-213,-260,-280,-333,-249,-319},{-288,-384,-146,-347,-185,-263},{-216,-344,-322,-372,-386,-302},{-143,-210,-308,-162,-294,-314},{-207,-160,-347,-143,-199,-255}},{{-230,-202,-395,-325,-188,-347},{-375,-244,-322,-277,-269,-244},{-384,-406,-392,-258,-314,-350},{-367,-193,-305,-305,-202,-305},{-179,-241,-342,-269,-400,-384},{-291,-258,-319,-179,-199,-409},{-266,-283,-246,-252,-375,-356},{-157,-339,-258,-168,-193,-356},{-171,-207,-297,-328,-277,-235},{-412,-165,-230,-218,-182,-162},{-420,-207,-252,-193,-398,-414},{-221,-308,-291,-370,-370,-367},{-235,-143,-185,-389,-151,-188},{-258,-238,-395,-414,-400,-403},{-294,-188,-143,-199,-353,-412},{-224,-367,-146,-288,-165,-283},{-221,-266,-280,-417,-221,-218},{-358,-400,-300,-342,-213,-316},{-165,-171,-174,-342,-302,-361},{-232,-328,-322,-146,-319,-266}}},{{{-339,-148,-143,-162,-305,-280},{-213,-249,-300,-328,-314,-420},{-196,-420,-297,-400,-224,-210},{-342,-272,-297,-400,-409,-325},{-316,-224,-227,-389,-263,-235},{-241,-350,-314,-238,-358,-325},{-403,-311,-344,-339,-277,-389},{-216,-314,-148,-384,-325,-400},{-146,-400,-258,-263,-280,-286},{-398,-308,-179,-322,-358,-266},{-235,-232,-344,-308,-370,-361},{-266,-241,-255,-213,-182,-146},{-378,-378,-216,-241,-305,-249},{-398,-263,-302,-378,-280,-347},{-246,-420,-308,-294,-294,-221},{-280,-420,-372,-176,-358,-414},{-269,-280,-406,-370,-216,-319},{-291,-305,-364,-196,-182,-406},{-258,-330,-190,-210,-232,-176},{-176,-227,-392,-395,-246,-336}},{{-241,-160,-325,-235,-316,-221},{-344,-308,-207,-168,-249,-417},{-286,-263,-333,-319,-204,-300},{-193,-176,-389,-344,-375,-238},{-378,-384,-308,-162,-333,-344},{-403,-232,-277,-216,-414,-193},{-333,-372,-322,-325,-202,-207},{-283,-246,-185,-199,-213,-241},{-308,-395,-322,-400,-202,-395},{-291,-336,-213,-300,-375,-406},{-179,-272,-314,-182,-356,-154},{-291,-300,-280,-151,-280,-176},{-300,-272,-182,-400,-224,-202},{-246,-302,-319,-277,-403,-328},{-246,-330,-347,-255,-249,-367},{-294,-319,-263,-286,-316,-202},{-392,-297,-342,-378,-417,-148},{-333,-297,-143,-182,-218,-381},{-255,-210,-283,-395,-154,-333},{-372,-398,-356,-274,-330,-283}},{{-199,-252,-204,-400,-386,-280},{-269,-272,-280,-213,-168,-255},{-378,-319,-188,-232,-154,-207},{-160,-305,-241,-325,-260,-196},{-221,-146,-258,-199,-176,-272},{-311,-302,-190,-277,-300,-232},{-330,-330,-375,-395,-286,-182},{-347,-252,-235,-193,-420,-283},{-358,-190,-230,-258,-336,-412},{-305,-154,-395,-244,-160,-221},{-333,-350,-297,-342,-305,-165},{-311,-193,-330,-238,-294,-224},{-193,-384,-269,-300,-403,-333},{-218,-342,-384,-336,-260,-406},{-221,-361,-356,-216,-143,-314},{-249,-342,-314,-154,-364,-185},{-330,-403,-176,-140,-364,-224},{-204,-202,-314,-154,-151,-274},{-294,-179,-162,-358,-157,-412},{-252,-417,-258,-367,-372,-143}},{{-196,-353,-392,-375,-154,-328},{-182,-375,-347,-148,-263,-314},{-213,-291,-406,-316,-286,-322},{-297,-252,-342,-269,-314,-162},{-392,-395,-336,-356,-188,-221},{-414,-389,-230,-358,-255,-384},{-386,-171,-297,-218,-342,-199},{-339,-400,-196,-202,-157,-146},{-272,-179,-269,-403,-339,-207},{-232,-350,-266,-339,-364,-146},{-258,-227,-162,-283,-255,-350},{-350,-241,-255,-372,-230,-322},{-406,-216,-157,-370,-420,-384},{-300,-358,-143,-336,-266,-162},{-406,-356,-224,-204,-274,-330},{-417,-300,-302,-227,-238,-319},{-218,-417,-392,-269,-339,-297},{-260,-308,-260,-319,-246,-148},{-392,-202,-364,-358,-140,-165},{-143,-241,-272,-272,-314,-367}},{{-218,-330,-392,-288,-199,-263},{-207,-185,-392,-202,-196,-202},{-350,-280,-249,-193,-283,-238},{-339,-224,-230,-218,-151,-288},{-193,-330,-213,-308,-325,-283},{-232,-188,-358,-202,-409,-370},{-414,-330,-157,-241,-266,-412},{-263,-400,-361,-333,-280,-238},{-230,-336,-308,-409,-412,-204},{-361,-157,-227,-420,-294,-392},{-297,-196,-230,-235,-230,-244},{-218,-213,-199,-389,-249,-375},{-277,-221,-319,-400,-302,-263},{-202,-266,-162,-165,-196,-140},{-378,-255,-319,-297,-403,-358},{-400,-148,-311,-378,-260,-389},{-294,-297,-204,-403,-252,-280},{-213,-328,-185,-400,-322,-283},{-322,-218,-403,-174,-400,-244},{-165,-207,-316,-241,-244,-386}},{{-179,-333,-330,-277,-294,-266},{-148,-344,-143,-140,-157,-154},{-311,-409,-241,-305,-207,-199},{-356,-392,-316,-398,-249,-350},{-305,-255,-409,-277,-179,-395},{-258,-322,-344,-171,-398,-328},{-277,-176,-269,-165,-314,-378},{-202,-392,-339,-322,-221,-202},{-283,-252,-412,-238,-412,-328},{-224,-305,-319,-358,-143,-378},{-319,-210,-176,-213,-176,-344},{-347,-314,-277,-272,-330,-224},{-344,-151,-190,-389,-316,-325},{-300,-339,-364,-207,-146,-193},{-171,-235,-272,-162,-344,-274},{-325,-319,-188,-246,-176,-325},{-406,-165,-330,-224,-358,-196},{-294,-344,-414,-238,-171,-252},{-227,-232,-185,-216,-367,-414},{-182,-288,-148,-162,-342,-246}}},{{{-157,-221,-216,-314,-258,-143},{-230,-403,-269,-375,-302,-372},{-146,-325,-420,-154,-188,-210},{-188,-336,-297,-375,-414,-179},{-294,-339,-154,-342,-160,-263},{-143,-202,-160,-258,-300,-339},{-148,-238,-342,-384,-333,-398},{-367,-160,-305,-174,-213,-232},{-389,-218,-392,-353,-230,-277},{-204,-291,-350,-403,-286,-199},{-389,-370,-238,-328,-328,-314},{-294,-412,-297,-176,-420,-403},{-280,-389,-319,-395,-171,-230},{-224,-193,-409,-168,-330,-171},{-252,-389,-193,-269,-266,-370},{-179,-249,-255,-269,-350,-409},{-176,-260,-381,-375,-266,-311},{-400,-162,-361,-353,-336,-272},{-344,-238,-218,-291,-160,-199},{-344,-342,-367,-146,-336,-204}},{{-176,-168,-294,-406,-202,-154},{-213,-364,-218,-221,-179,-353},{-235,-319,-232,-272,-305,-414},{-297,-361,-288,-249,-174,-277},{-168,-381,-277,-185,-409,-190},{-143,-204,-140,-291,-364,-176},{-249,-148,-414,-398,-350,-364},{-151,-342,-193,-358,-409,-286},{-347,-182,-288,-392,-210,-347},{-347,-325,-347,-244,-235,-176},{-213,-274,-375,-193,-260,-157},{-392,-157,-160,-213,-370,-266},{-274,-381,-188,-140,-269,-414},{-302,-417,-311,-286,-333,-420},{-258,-316,-182,-381,-322,-328},{-325,-204,-398,-193,-386,-171},{-165,-336,-319,-361,-311,-190},{-193,-199,-266,-246,-314,-154},{-160,-238,-182,-325,-274,-182},{-325,-204,-154,-165,-140,-241}},{{-280,-353,-224,-190,-375,-378},{-322,-300,-395,-372,-269,-319},{-202,-302,-314,-238,-196,-305},{-160,-384,-314,-344,-260,-288},{-160,-179,-241,-378,-356,-372},{-207,-202,-414,-162,-182,-367},{-392,-143,-339,-288,-185,-370},{-249,-398,-272,-218,-146,-314},{-288,-266,-168,-350,-403,-392},{-202,-328,-417,-148,-213,-386},{-344,-370,-238,-227,-381,-347},{-207,-202,-230,-403,-339,-342},{-286,-216,-193,-210,-227,-381},{-356,-403,-325,-400,-168,-412},{-146,-330,-358,-154,-300,-143},{-221,-316,-199,-165,-280,-291},{-325,-286,-196,-288,-311,-213},{-280,-358,-300,-319,-330,-353},{-316,-148,-277,-336,-174,-400},{-325,-221,-294,-199,-291,-202}},{{-364,-260,-300,-190,-244,-392},{-353,-179,-143,-176,-314,-372},{-353,-216,-347,-260,-235,-302},{-308,-325,-381,-308,-311,-182},{-227,-277,-361,-154,-235,-252},{-269,-277,-280,-300,-280,-378},{-272,-283,-395,-344,-364,-381},{-395,-381,-143,-291,-244,-216},{-171,-171,-260,-193,-230,-314},{-389,-216,-280,-333,-384,-297},{-277,-294,-328,-146,-230,-288},{-370,-210,-157,-330,-258,-286},{-336,-389,-319,-283,-235,-364},{-406,-182,-176,-232,-190,-316},{-190,-414,-210,-182,-389,-274},{-358,-406,-216,-146,-330,-168},{-389,-140,-403,-221,-185,-409},{-252,-188,-378,-157,-294,-269},{-350,-302,-417,-347,-361,-221},{-395,-288,-300,-241,-400,-384}},{{-386,-375,-367,-417,-272,-381},{-168,-294,-325,-398,-199,-395},{-143,-221,-378,-400,-235,-260},{-160,-244,-154,-249,-143,-353},{-311,-272,-381,-249,-252,-249},{-358,-333,-146,-207,-266,-344},{-400,-168,-339,-160,-252,-235},{-297,-230,-196,-207,-258,-291},{-143,-140,-269,-207,-350,-255},{-263,-344,-190,-269,-328,-395},{-213,-241,-244,-190,-361,-280},{-246,-420,-216,-269,-224,-255},{-302,-204,-375,-375,-353,-291},{-361,-286,-277,-238,-403,-328},{-333,-384,-336,-244,-353,-185},{-316,-151,-235,-356,-381,-213},{-291,-356,-277,-311,-165,-420},{-319,-174,-210,-353,-361,-199},{-260,-286,-196,-333,-154,-182},{-392,-322,-381,-375,-367,-140}},{{-143,-188,-274,-274,-300,-196},{-160,-235,-367,-252,-417,-325},{-322,-305,-224,-241,-146,-196},{-174,-381,-356,-280,-367,-274},{-347,-370,-294,-190,-316,-344},{-190,-199,-319,-412,-162,-157},{-258,-199,-244,-151,-344,-325},{-188,-395,-294,-190,-356,-140},{-185,-378,-398,-358,-185,-314},{-297,-353,-288,-272,-342,-372},{-316,-356,-235,-143,-199,-358},{-367,-386,-196,-185,-263,-255},{-381,-202,-280,-160,-286,-350},{-252,-241,-151,-162,-244,-300},{-241,-353,-154,-252,-358,-255},{-370,-319,-140,-403,-364,-336},{-375,-300,-367,-305,-294,-283},{-291,-350,-221,-283,-339,-342},{-224,-196,-260,-330,-344,-190},{-412,-314,-291,-392,-364,-232}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={2070,261,23,150,170,304,400,300,160}; // initial inventory 
int ubiv[I]={2740,522,414,300,341,608,800,600,320}; // the upper bounds of inventory 
int len[I1][I2]={{3,6,2,2,3,3,2,1}}; // 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,7.19,13.32,4.32,2.64,5.16,6.85,4.63,1.82}; // 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]={{6.54,12.11,3.93,2.4,4.69,6.23,4.21,1.65}}; // 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]={5.23,5.23,5.23,4.58,4.58,4.58,3.92,3.92,3.92,9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,3.14,3.14,3.14,2.75,2.75,2.75,2.36,2.36,2.36,1.92,1.92,1.92,1.68,1.68,1.68,1.44,1.44,1.44,3.75,3.75,3.75,3.28,3.28,3.28,2.81,2.81,2.81,4.98,4.98,4.98,4.36,4.36,4.36,3.74,3.74,3.74,3.37,3.37,3.37,2.95,2.95,2.95,2.53,2.53,2.53,1.32,1.32,1.32,1.16,1.16,1.16,0.99,0.99,0.99}; // 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,6,16,9,6,16,8,6,15,8,5,15,7,5,15,8,5,16,9,6,17,8,6,17,9,6,16,8,6,17,9,6,16,9,6,16,8,6,17,8,6,17,9,6,17,8,6,17,8,6,17,9,6,17,8,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,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}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,2,6,10,14,18,22,26,30,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,1,5,9,13,17,21,25,29,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,0,4,8,12,16,20,24,28,2,8,14,20,26,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,2,6,10,14,18,22,26,2,8,14,20,26,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,0,4,8,12,16,20,24,28,2,8,14,20,26,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,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,2,8,14,20,26,32,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,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,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,2,6,10,14,18,22,26,30,0,6,12,18,24,30,0,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,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,1,5,9,13,17,21,25,29,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,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,32,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,2,8,14,20,26,32,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,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,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,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,0,6,12,18,24,30}; // set of start times of each shipment 
int SHets[SPN]={4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,5,11,17,23,29,35,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,4,8,12,16,20,24,28,32,3,9,15,21,27,33,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,6,10,14,18,22,26,30,34,8,14,20,26,32,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,8,12,16,20,24,28,32,8,14,20,26,32,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,6,10,14,18,22,26,30,34,8,14,20,26,32,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,3,9,15,21,27,33,2,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,2,8,14,20,26,32,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,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,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,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,3,9,15,21,27,33,3,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,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,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,4,8,12,16,20,24,28,32,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,4,10,16,22,28,34,2,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,3,7,11,15,19,23,27,31,35,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,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,2,6,10,14,18,22,26,30,34,1,7,13,19,25,31}; // set of end times of each shipment 
