int Dev = 50;// Deviation
extern const int CNN = 1;// 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 = 343;//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]={{{{11138,0,0,0,0,0},{12572,0,0,0,0,0},{11459,0,0,0,0,0},{11567,0,0,0,0,0},{11444,0,0,0,0,0},{10873,0,0,0,0,0},{12203,0,0,0,0,0},{10729,0,0,0,0,0},{11312,0,0,0,0,0},{11466,0,0,0,0,0},{10489,0,0,0,0,0},{12088,0,0,0,0,0},{11197,0,0,0,0,0},{11930,0,0,0,0,0},{11704,0,0,0,0,0},{10615,0,0,0,0,0},{11404,0,0,0,0,0},{11117,0,0,0,0,0},{11320,0,0,0,0,0},{11718,0,0,0,0,0},{12249,0,0,0,0,0},{11738,0,0,0,0,0},{11292,0,0,0,0,0},{11678,0,0,0,0,0},{11830,0,0,0,0,0},{12639,0,0,0,0,0},{11986,0,0,0,0,0},{11424,0,0,0,0,0},{11157,0,0,0,0,0},{11925,0,0,0,0,0},{12066,0,0,0,0,0},{11811,0,0,0,0,0},{10941,0,0,0,0,0},{11941,0,0,0,0,0},{11862,0,0,0,0,0},{10933,0,0,0,0,0},{11601,0,0,0,0,0},{10835,0,0,0,0,0},{11424,0,0,0,0,0},{11425,0,0,0,0,0},{11435,0,0,0,0,0},{11840,0,0,0,0,0},{11312,0,0,0,0,0},{11026,0,0,0,0,0},{11112,0,0,0,0,0},{11770,0,0,0,0,0},{11316,0,0,0,0,0},{11396,0,0,0,0,0},{12116,0,0,0,0,0},{10731,0,0,0,0,0}},{{11294,0,0,0,0,0},{12055,0,0,0,0,0},{11091,0,0,0,0,0},{12080,0,0,0,0,0},{11928,0,0,0,0,0},{11914,0,0,0,0,0},{10744,0,0,0,0,0},{11182,0,0,0,0,0},{12297,0,0,0,0,0},{11376,0,0,0,0,0},{11848,0,0,0,0,0},{11821,0,0,0,0,0},{10619,0,0,0,0,0},{11697,0,0,0,0,0},{11735,0,0,0,0,0},{11631,0,0,0,0,0},{11021,0,0,0,0,0},{10843,0,0,0,0,0},{11106,0,0,0,0,0},{10593,0,0,0,0,0},{11673,0,0,0,0,0},{11828,0,0,0,0,0},{12262,0,0,0,0,0},{11622,0,0,0,0,0},{11777,0,0,0,0,0},{11925,0,0,0,0,0},{11168,0,0,0,0,0},{11485,0,0,0,0,0},{12050,0,0,0,0,0},{11544,0,0,0,0,0},{11346,0,0,0,0,0},{12335,0,0,0,0,0},{11372,0,0,0,0,0},{11983,0,0,0,0,0},{11129,0,0,0,0,0},{11591,0,0,0,0,0},{11445,0,0,0,0,0},{11573,0,0,0,0,0},{11019,0,0,0,0,0},{10694,0,0,0,0,0},{12211,0,0,0,0,0},{12138,0,0,0,0,0},{10345,0,0,0,0,0},{11338,0,0,0,0,0},{10610,0,0,0,0,0},{11589,0,0,0,0,0},{11096,0,0,0,0,0},{11498,0,0,0,0,0},{10998,0,0,0,0,0},{10239,0,0,0,0,0}},{{12231,0,0,0,0,0},{11178,0,0,0,0,0},{11619,0,0,0,0,0},{11216,0,0,0,0,0},{11203,0,0,0,0,0},{10457,0,0,0,0,0},{11837,0,0,0,0,0},{10728,0,0,0,0,0},{11206,0,0,0,0,0},{10705,0,0,0,0,0},{10616,0,0,0,0,0},{11210,0,0,0,0,0},{11584,0,0,0,0,0},{11458,0,0,0,0,0},{11127,0,0,0,0,0},{11349,0,0,0,0,0},{11529,0,0,0,0,0},{11165,0,0,0,0,0},{11858,0,0,0,0,0},{10594,0,0,0,0,0},{12528,0,0,0,0,0},{11793,0,0,0,0,0},{10927,0,0,0,0,0},{11418,0,0,0,0,0},{12138,0,0,0,0,0},{11620,0,0,0,0,0},{11263,0,0,0,0,0},{11089,0,0,0,0,0},{11194,0,0,0,0,0},{11281,0,0,0,0,0},{11210,0,0,0,0,0},{11598,0,0,0,0,0},{12630,0,0,0,0,0},{11482,0,0,0,0,0},{11345,0,0,0,0,0},{11223,0,0,0,0,0},{10898,0,0,0,0,0},{11236,0,0,0,0,0},{11021,0,0,0,0,0},{11335,0,0,0,0,0},{11324,0,0,0,0,0},{11816,0,0,0,0,0},{11644,0,0,0,0,0},{12188,0,0,0,0,0},{11905,0,0,0,0,0},{10908,0,0,0,0,0},{11822,0,0,0,0,0},{11645,0,0,0,0,0},{11632,0,0,0,0,0},{11936,0,0,0,0,0}}},{{{-254,-134,-276,-286,-195,-162},{-300,-162,-154,-290,-173,-138},{-136,-164,-244,-229,-227,-175},{-256,-227,-144,-254,-272,-201},{-203,-195,-191,-128,-146,-252},{-221,-179,-138,-229,-294,-197},{-120,-260,-254,-203,-209,-225},{-294,-244,-173,-110,-175,-187},{-248,-274,-112,-173,-132,-132},{-160,-221,-268,-102,-211,-110},{-138,-124,-128,-116,-219,-160},{-203,-195,-286,-292,-219,-278},{-205,-193,-244,-288,-302,-128},{-215,-268,-238,-235,-189,-179},{-231,-246,-110,-124,-304,-256},{-276,-258,-260,-217,-248,-240},{-108,-166,-209,-242,-152,-286},{-193,-268,-282,-177,-207,-250},{-219,-116,-298,-146,-130,-280},{-282,-298,-215,-268,-221,-189},{-219,-108,-158,-266,-231,-250},{-246,-209,-177,-154,-132,-264},{-112,-142,-203,-177,-221,-235},{-294,-106,-240,-199,-244,-114},{-156,-160,-187,-175,-120,-213},{-197,-144,-260,-270,-294,-278},{-284,-162,-201,-262,-189,-242},{-298,-223,-183,-278,-203,-116},{-201,-209,-244,-250,-209,-179},{-264,-166,-213,-106,-191,-134},{-298,-290,-197,-266,-252,-122},{-250,-148,-110,-268,-225,-240},{-189,-276,-195,-215,-199,-264},{-148,-126,-118,-304,-177,-252},{-280,-162,-215,-282,-223,-132},{-300,-209,-282,-132,-104,-264},{-282,-219,-110,-171,-110,-110},{-248,-199,-215,-254,-106,-240},{-282,-146,-142,-235,-302,-158},{-211,-122,-209,-199,-254,-136},{-284,-175,-272,-235,-244,-110},{-246,-124,-110,-122,-215,-104},{-160,-288,-262,-246,-116,-142},{-252,-110,-154,-148,-173,-134},{-238,-296,-240,-242,-233,-246},{-116,-298,-102,-175,-136,-108},{-173,-102,-106,-298,-258,-262},{-217,-286,-298,-144,-181,-229},{-274,-264,-286,-213,-138,-221},{-162,-201,-191,-276,-201,-244}},{{-238,-166,-166,-240,-274,-193},{-227,-195,-195,-211,-128,-150},{-162,-201,-148,-158,-229,-219},{-189,-183,-179,-173,-114,-193},{-290,-233,-171,-116,-162,-112},{-260,-292,-266,-112,-278,-150},{-225,-260,-152,-168,-136,-164},{-205,-215,-227,-173,-240,-209},{-148,-235,-134,-201,-292,-227},{-168,-300,-292,-173,-130,-181},{-211,-266,-280,-185,-290,-278},{-195,-209,-296,-197,-106,-290},{-268,-156,-183,-223,-197,-146},{-254,-187,-246,-292,-185,-250},{-162,-185,-238,-140,-128,-148},{-298,-181,-254,-160,-235,-195},{-248,-177,-215,-104,-138,-144},{-122,-140,-205,-162,-160,-302},{-181,-183,-266,-160,-110,-154},{-246,-104,-272,-104,-112,-148},{-250,-240,-260,-258,-296,-266},{-158,-284,-217,-302,-203,-300},{-138,-302,-278,-108,-140,-160},{-148,-144,-288,-187,-215,-215},{-168,-168,-266,-148,-268,-112},{-260,-219,-116,-199,-262,-219},{-264,-128,-250,-128,-185,-140},{-191,-120,-215,-256,-193,-146},{-193,-156,-240,-185,-144,-221},{-185,-140,-124,-300,-146,-124},{-260,-130,-235,-304,-164,-120},{-282,-278,-296,-302,-201,-248},{-164,-270,-175,-242,-191,-108},{-110,-158,-282,-298,-177,-106},{-140,-221,-264,-199,-254,-104},{-181,-304,-148,-282,-132,-175},{-110,-120,-256,-177,-146,-284},{-203,-104,-154,-260,-185,-173},{-166,-140,-286,-140,-104,-252},{-106,-213,-102,-197,-201,-177},{-134,-205,-272,-130,-189,-136},{-173,-116,-276,-181,-112,-292},{-162,-272,-298,-193,-177,-126},{-122,-246,-152,-146,-250,-164},{-238,-225,-300,-258,-106,-142},{-162,-227,-262,-130,-120,-177},{-144,-132,-144,-104,-225,-244},{-282,-112,-207,-207,-138,-233},{-266,-268,-187,-177,-162,-211},{-160,-171,-175,-108,-219,-104}},{{-134,-201,-254,-146,-300,-128},{-106,-118,-104,-238,-177,-171},{-260,-108,-302,-181,-128,-240},{-112,-244,-302,-199,-185,-270},{-298,-150,-300,-116,-148,-266},{-189,-215,-148,-126,-130,-162},{-205,-205,-250,-211,-130,-140},{-207,-203,-110,-166,-250,-260},{-168,-296,-140,-229,-177,-238},{-215,-114,-250,-268,-278,-189},{-229,-114,-120,-134,-144,-209},{-150,-254,-144,-112,-207,-181},{-179,-179,-248,-274,-201,-201},{-238,-229,-256,-144,-298,-124},{-108,-120,-270,-156,-132,-215},{-227,-197,-264,-225,-225,-244},{-290,-219,-110,-286,-152,-258},{-160,-233,-142,-187,-304,-136},{-282,-233,-166,-209,-292,-189},{-171,-179,-284,-104,-142,-195},{-175,-223,-152,-284,-286,-177},{-288,-221,-156,-217,-260,-104},{-104,-179,-187,-195,-294,-179},{-280,-148,-217,-215,-110,-300},{-296,-154,-209,-242,-136,-235},{-142,-300,-199,-122,-298,-106},{-179,-156,-191,-164,-211,-201},{-288,-235,-260,-294,-126,-122},{-221,-181,-205,-205,-254,-191},{-235,-160,-288,-164,-270,-244},{-118,-158,-215,-292,-254,-213},{-252,-168,-142,-268,-244,-106},{-138,-217,-302,-252,-217,-201},{-124,-193,-260,-158,-108,-250},{-207,-142,-270,-108,-144,-104},{-284,-138,-250,-227,-211,-185},{-106,-300,-181,-124,-156,-116},{-106,-187,-195,-235,-162,-248},{-246,-286,-152,-254,-284,-177},{-231,-207,-106,-209,-122,-262},{-223,-140,-126,-248,-134,-146},{-221,-264,-146,-209,-278,-215},{-209,-278,-300,-197,-138,-189},{-162,-118,-128,-193,-110,-246},{-207,-264,-201,-244,-146,-140},{-124,-203,-268,-173,-148,-128},{-136,-240,-168,-136,-250,-152},{-288,-150,-108,-108,-201,-102},{-162,-140,-213,-217,-205,-227},{-219,-120,-235,-284,-207,-266}}},{{{-114,-134,-177,-97,-150,-227},{-237,-95,-198,-198,-169,-87},{-84,-106,-98,-222,-82,-164},{-126,-143,-158,-242,-127,-142},{-98,-232,-174,-105,-182,-143},{-122,-163,-129,-200,-192,-105},{-155,-156,-203,-106,-87,-121},{-87,-172,-122,-180,-172,-80},{-171,-167,-90,-159,-113,-158},{-172,-138,-118,-87,-225,-150},{-161,-103,-114,-161,-116,-193},{-172,-147,-159,-98,-204,-213},{-148,-177,-213,-235,-140,-114},{-171,-198,-143,-195,-216,-240},{-148,-93,-126,-230,-93,-127},{-90,-101,-147,-188,-193,-134},{-147,-90,-172,-230,-142,-145},{-114,-138,-89,-206,-225,-221},{-238,-101,-105,-209,-130,-158},{-134,-206,-111,-188,-177,-106},{-82,-166,-169,-233,-97,-132},{-87,-147,-203,-238,-217,-177},{-101,-137,-100,-163,-106,-147},{-137,-127,-206,-108,-148,-242},{-159,-206,-216,-167,-172,-95},{-193,-221,-169,-188,-221,-138},{-109,-222,-164,-209,-227,-177},{-222,-203,-122,-193,-196,-238},{-217,-222,-100,-114,-222,-171},{-225,-195,-126,-93,-105,-143},{-242,-121,-171,-85,-237,-237},{-164,-105,-225,-242,-190,-121},{-111,-101,-84,-140,-166,-196},{-95,-177,-232,-211,-240,-82},{-203,-114,-132,-106,-85,-153},{-103,-129,-143,-200,-225,-174},{-182,-217,-85,-142,-167,-137},{-185,-167,-196,-166,-98,-93},{-158,-98,-108,-148,-196,-100},{-230,-132,-161,-240,-124,-93},{-237,-204,-164,-113,-142,-137},{-129,-93,-140,-129,-134,-150},{-98,-151,-230,-119,-148,-98},{-171,-95,-175,-217,-85,-101},{-92,-92,-242,-116,-193,-171},{-193,-200,-201,-240,-126,-155},{-175,-97,-119,-242,-187,-85},{-121,-242,-93,-90,-222,-201},{-103,-240,-204,-242,-196,-109},{-109,-150,-163,-171,-156,-143}},{{-129,-180,-174,-184,-227,-195},{-106,-221,-177,-143,-111,-219},{-192,-240,-153,-92,-216,-161},{-203,-242,-85,-208,-167,-100},{-89,-174,-109,-213,-156,-177},{-180,-167,-105,-84,-213,-230},{-100,-193,-192,-101,-103,-122},{-97,-198,-95,-159,-242,-208},{-134,-103,-224,-227,-118,-201},{-171,-127,-126,-167,-80,-190},{-203,-184,-138,-114,-184,-126},{-121,-87,-138,-116,-192,-177},{-216,-100,-237,-196,-95,-195},{-142,-198,-153,-209,-82,-196},{-217,-106,-222,-221,-238,-111},{-211,-230,-97,-101,-132,-80},{-116,-193,-213,-166,-103,-238},{-137,-103,-103,-147,-130,-119},{-113,-209,-172,-109,-213,-158},{-203,-89,-195,-138,-179,-132},{-167,-121,-229,-238,-155,-109},{-90,-232,-127,-82,-135,-134},{-109,-180,-114,-184,-196,-174},{-140,-177,-172,-204,-109,-98},{-156,-192,-161,-100,-121,-211},{-95,-182,-227,-233,-113,-219},{-182,-118,-82,-116,-177,-214},{-122,-103,-109,-156,-211,-201},{-132,-100,-175,-161,-172,-233},{-237,-92,-124,-216,-163,-121},{-134,-217,-90,-158,-198,-155},{-119,-109,-172,-140,-127,-182},{-208,-126,-145,-105,-177,-119},{-153,-214,-208,-221,-87,-151},{-119,-155,-130,-219,-224,-232},{-225,-175,-171,-206,-111,-206},{-190,-92,-84,-203,-233,-138},{-163,-137,-219,-216,-221,-126},{-174,-147,-84,-237,-238,-232},{-179,-114,-147,-238,-84,-98},{-122,-227,-172,-232,-158,-235},{-118,-222,-179,-216,-164,-89},{-196,-179,-201,-230,-238,-122},{-227,-196,-221,-188,-167,-224},{-114,-95,-82,-206,-192,-206},{-132,-213,-111,-89,-235,-206},{-92,-138,-196,-227,-98,-159},{-166,-132,-221,-235,-213,-145},{-169,-193,-118,-222,-84,-153},{-126,-187,-87,-219,-129,-121}},{{-180,-105,-225,-242,-122,-167},{-227,-87,-214,-164,-137,-217},{-103,-184,-113,-129,-179,-138},{-185,-145,-216,-106,-233,-206},{-214,-90,-219,-114,-195,-153},{-214,-171,-148,-109,-89,-122},{-90,-196,-193,-216,-188,-229},{-153,-124,-182,-140,-227,-84},{-238,-111,-90,-217,-119,-166},{-108,-179,-113,-137,-103,-196},{-126,-193,-108,-134,-158,-224},{-156,-127,-151,-93,-124,-166},{-175,-235,-225,-200,-224,-124},{-106,-240,-116,-203,-93,-130},{-80,-80,-206,-169,-172,-89},{-135,-166,-93,-155,-80,-169},{-238,-80,-126,-161,-140,-221},{-145,-119,-195,-143,-116,-109},{-101,-124,-201,-132,-180,-172},{-158,-147,-90,-214,-161,-140},{-235,-163,-108,-209,-206,-90},{-153,-121,-119,-230,-145,-100},{-193,-147,-121,-93,-163,-159},{-169,-233,-213,-179,-137,-230},{-127,-135,-103,-158,-216,-126},{-174,-171,-201,-163,-108,-138},{-163,-185,-132,-161,-101,-84},{-114,-127,-111,-87,-114,-92},{-187,-198,-180,-150,-132,-187},{-230,-147,-237,-113,-171,-221},{-198,-227,-177,-169,-151,-93},{-233,-201,-159,-180,-203,-240},{-187,-227,-233,-195,-240,-116},{-230,-166,-148,-121,-193,-156},{-156,-216,-137,-150,-101,-89},{-179,-237,-95,-80,-238,-127},{-130,-213,-121,-142,-230,-98},{-174,-151,-158,-193,-89,-185},{-148,-200,-93,-193,-209,-124},{-217,-103,-198,-84,-103,-235},{-185,-200,-235,-82,-87,-156},{-193,-214,-182,-208,-237,-87},{-118,-113,-221,-175,-169,-103},{-187,-155,-187,-225,-232,-235},{-177,-156,-92,-222,-126,-122},{-127,-129,-233,-121,-200,-193},{-185,-203,-140,-230,-209,-179},{-150,-108,-175,-103,-142,-221},{-204,-90,-106,-216,-137,-150},{-118,-130,-171,-153,-114,-230}}},{{{-127,-231,-118,-189,-231,-280},{-330,-189,-146,-125,-307,-312},{-321,-342,-229,-275,-136,-270},{-293,-280,-231,-229,-134,-270},{-340,-127,-224,-273,-187,-129},{-282,-266,-303,-129,-152,-282},{-342,-261,-266,-300,-233,-201},{-298,-240,-217,-344,-122,-326},{-217,-316,-219,-171,-199,-127},{-243,-280,-132,-199,-192,-273},{-286,-226,-129,-231,-199,-344},{-199,-203,-226,-252,-328,-226},{-152,-141,-182,-213,-127,-187},{-300,-132,-180,-162,-240,-143},{-224,-118,-298,-203,-192,-273},{-270,-176,-259,-323,-192,-176},{-273,-129,-342,-164,-199,-210},{-238,-254,-215,-261,-323,-162},{-330,-319,-249,-201,-178,-238},{-157,-217,-194,-152,-263,-321},{-259,-247,-298,-132,-261,-194},{-152,-171,-155,-143,-157,-316},{-249,-270,-116,-346,-222,-129},{-189,-206,-312,-335,-289,-201},{-303,-310,-169,-321,-316,-203},{-120,-303,-321,-298,-321,-263},{-226,-199,-319,-231,-289,-215},{-254,-300,-337,-171,-120,-266},{-213,-224,-206,-194,-157,-152},{-346,-185,-316,-141,-307,-233},{-127,-192,-284,-120,-273,-256},{-323,-240,-233,-210,-337,-215},{-326,-118,-213,-159,-305,-256},{-182,-291,-249,-330,-330,-330},{-247,-249,-180,-346,-169,-307},{-337,-169,-282,-208,-192,-259},{-319,-210,-171,-233,-194,-256},{-185,-261,-171,-305,-252,-208},{-122,-245,-316,-231,-344,-224},{-310,-178,-342,-213,-275,-337},{-344,-155,-217,-169,-293,-173},{-275,-240,-125,-171,-344,-286},{-217,-136,-247,-328,-185,-118},{-286,-273,-176,-118,-342,-120},{-148,-217,-171,-125,-261,-141},{-226,-127,-298,-180,-224,-157},{-245,-263,-155,-118,-328,-277},{-229,-266,-337,-127,-176,-192},{-286,-226,-321,-236,-293,-342},{-238,-245,-270,-148,-155,-226}},{{-268,-310,-125,-196,-236,-268},{-141,-346,-326,-291,-277,-263},{-178,-206,-268,-240,-213,-266},{-162,-340,-307,-303,-277,-122},{-134,-236,-245,-303,-247,-268},{-275,-129,-303,-182,-333,-180},{-222,-162,-139,-155,-245,-323},{-136,-187,-243,-224,-127,-340},{-122,-247,-293,-314,-120,-229},{-208,-143,-146,-132,-286,-261},{-152,-268,-240,-340,-333,-298},{-291,-132,-236,-316,-312,-203},{-139,-150,-152,-273,-236,-120},{-346,-199,-192,-261,-148,-307},{-293,-120,-129,-314,-291,-178},{-229,-282,-337,-178,-249,-296},{-125,-125,-254,-316,-224,-141},{-291,-321,-162,-194,-222,-333},{-284,-150,-314,-247,-296,-344},{-118,-296,-152,-132,-217,-256},{-196,-189,-236,-185,-182,-152},{-150,-247,-266,-176,-305,-335},{-280,-266,-217,-192,-296,-162},{-342,-243,-312,-134,-263,-116},{-201,-171,-206,-252,-303,-254},{-344,-305,-314,-335,-263,-289},{-340,-319,-293,-182,-319,-171},{-298,-277,-268,-254,-226,-215},{-344,-187,-303,-231,-314,-182},{-280,-194,-125,-328,-245,-323},{-249,-162,-224,-307,-310,-210},{-118,-176,-196,-340,-240,-222},{-340,-266,-125,-217,-219,-243},{-189,-210,-236,-335,-328,-319},{-162,-238,-252,-321,-182,-249},{-196,-196,-139,-249,-215,-166},{-125,-240,-236,-134,-122,-196},{-132,-261,-259,-280,-330,-136},{-192,-196,-344,-340,-208,-231},{-293,-233,-233,-143,-206,-303},{-201,-282,-173,-321,-298,-213},{-210,-217,-173,-141,-321,-146},{-256,-316,-152,-316,-136,-122},{-270,-256,-210,-171,-293,-180},{-330,-164,-120,-155,-245,-243},{-192,-238,-217,-268,-319,-333},{-326,-282,-259,-247,-176,-298},{-284,-314,-266,-284,-189,-344},{-238,-273,-224,-231,-335,-182},{-162,-266,-340,-127,-240,-178}},{{-305,-247,-286,-247,-150,-176},{-226,-129,-321,-280,-266,-169},{-143,-180,-319,-247,-259,-247},{-208,-162,-296,-346,-280,-162},{-166,-254,-273,-139,-243,-330},{-203,-240,-236,-254,-116,-120},{-261,-259,-280,-231,-164,-326},{-120,-116,-139,-120,-326,-293},{-201,-189,-247,-261,-275,-118},{-310,-120,-342,-127,-222,-303},{-127,-233,-247,-157,-166,-141},{-261,-233,-143,-298,-238,-273},{-159,-116,-296,-215,-217,-208},{-178,-116,-314,-157,-189,-166},{-286,-333,-194,-293,-245,-300},{-148,-344,-182,-206,-321,-206},{-307,-330,-346,-155,-247,-275},{-307,-157,-286,-261,-169,-155},{-143,-236,-335,-169,-215,-305},{-263,-270,-256,-346,-173,-169},{-249,-346,-335,-323,-238,-310},{-298,-136,-243,-252,-268,-199},{-201,-157,-127,-254,-210,-118},{-259,-256,-229,-286,-120,-125},{-226,-252,-337,-321,-259,-296},{-217,-213,-217,-312,-187,-224},{-166,-328,-224,-240,-293,-344},{-196,-176,-252,-178,-236,-157},{-162,-268,-256,-319,-240,-164},{-245,-125,-314,-164,-141,-291},{-259,-139,-118,-266,-120,-333},{-155,-116,-148,-233,-316,-206},{-169,-298,-256,-326,-166,-280},{-330,-273,-307,-268,-116,-282},{-143,-314,-247,-194,-134,-236},{-229,-323,-319,-182,-284,-201},{-303,-224,-233,-316,-118,-136},{-189,-157,-296,-259,-259,-335},{-203,-344,-203,-245,-155,-173},{-229,-291,-127,-139,-129,-222},{-293,-326,-335,-139,-187,-182},{-291,-245,-310,-178,-210,-157},{-240,-328,-185,-176,-319,-213},{-296,-129,-217,-164,-171,-132},{-282,-238,-236,-342,-321,-141},{-148,-171,-284,-340,-171,-249},{-199,-189,-208,-305,-164,-337},{-173,-162,-187,-194,-282,-280},{-333,-213,-136,-293,-120,-284},{-208,-238,-231,-296,-305,-289}}},{{{-130,-269,-226,-245,-258,-219},{-163,-141,-326,-252,-152,-191},{-276,-317,-210,-286,-126,-202},{-154,-239,-150,-130,-113,-184},{-247,-182,-230,-108,-193,-137},{-156,-158,-291,-215,-237,-187},{-291,-258,-250,-200,-315,-122},{-295,-315,-122,-256,-269,-145},{-310,-150,-130,-176,-280,-167},{-197,-174,-276,-299,-276,-265},{-256,-304,-310,-197,-219,-221},{-263,-122,-210,-128,-317,-323},{-237,-250,-108,-280,-171,-204},{-200,-317,-167,-202,-141,-276},{-273,-126,-260,-189,-191,-297},{-260,-237,-219,-150,-239,-263},{-312,-271,-208,-143,-126,-230},{-152,-247,-286,-323,-243,-145},{-217,-208,-195,-245,-263,-156},{-295,-206,-187,-113,-273,-302},{-310,-319,-208,-232,-111,-202},{-258,-132,-182,-302,-254,-111},{-252,-174,-150,-323,-247,-156},{-189,-200,-193,-282,-237,-193},{-178,-321,-263,-247,-317,-210},{-237,-167,-326,-256,-221,-258},{-289,-297,-215,-143,-304,-195},{-130,-137,-315,-145,-245,-169},{-180,-219,-158,-165,-148,-258},{-308,-315,-315,-200,-260,-273},{-119,-234,-139,-163,-187,-200},{-271,-302,-286,-312,-111,-221},{-321,-295,-217,-213,-167,-295},{-247,-282,-156,-184,-247,-189},{-258,-273,-135,-189,-171,-132},{-213,-178,-171,-213,-228,-250},{-243,-282,-319,-237,-122,-258},{-158,-206,-122,-306,-293,-265},{-310,-215,-113,-271,-111,-165},{-252,-143,-299,-208,-254,-291},{-195,-267,-295,-319,-310,-265},{-317,-171,-237,-323,-312,-171},{-189,-269,-247,-126,-213,-304},{-135,-174,-256,-321,-312,-247},{-152,-117,-280,-252,-250,-178},{-154,-191,-276,-217,-291,-117},{-180,-254,-139,-295,-187,-187},{-217,-128,-215,-282,-141,-171},{-174,-230,-117,-122,-132,-241},{-228,-319,-237,-178,-130,-115}},{{-258,-317,-258,-215,-191,-271},{-256,-128,-176,-154,-241,-180},{-234,-167,-182,-195,-152,-323},{-271,-187,-306,-237,-299,-139},{-165,-130,-167,-276,-289,-265},{-297,-122,-208,-132,-228,-260},{-217,-189,-202,-256,-165,-215},{-119,-228,-117,-321,-306,-226},{-308,-191,-208,-286,-139,-239},{-293,-180,-124,-252,-315,-165},{-200,-254,-200,-237,-234,-184},{-139,-208,-174,-295,-191,-297},{-130,-200,-282,-128,-167,-215},{-174,-237,-169,-291,-119,-284},{-135,-132,-208,-237,-273,-232},{-145,-269,-237,-197,-163,-319},{-219,-150,-278,-306,-150,-113},{-252,-315,-171,-124,-224,-171},{-250,-180,-126,-234,-176,-167},{-176,-321,-219,-167,-145,-137},{-299,-263,-119,-128,-241,-130},{-237,-326,-226,-286,-169,-237},{-204,-260,-271,-150,-273,-273},{-326,-158,-111,-254,-145,-165},{-108,-282,-219,-206,-260,-293},{-182,-306,-122,-158,-141,-219},{-200,-122,-126,-152,-319,-293},{-256,-221,-258,-312,-276,-278},{-169,-191,-243,-280,-213,-184},{-171,-319,-252,-323,-293,-176},{-148,-245,-299,-193,-132,-224},{-297,-161,-317,-239,-271,-265},{-130,-271,-319,-297,-137,-197},{-269,-195,-143,-213,-154,-206},{-308,-148,-260,-167,-174,-228},{-167,-276,-291,-245,-284,-206},{-124,-326,-130,-130,-269,-193},{-148,-152,-187,-150,-241,-310},{-282,-108,-295,-278,-182,-273},{-258,-284,-206,-217,-286,-221},{-310,-191,-260,-310,-180,-245},{-228,-148,-245,-187,-273,-237},{-137,-167,-143,-291,-304,-128},{-163,-276,-254,-184,-299,-176},{-189,-221,-295,-263,-204,-169},{-130,-122,-174,-258,-323,-247},{-113,-260,-245,-247,-128,-224},{-150,-297,-221,-245,-224,-139},{-260,-202,-141,-230,-113,-139},{-126,-128,-230,-119,-108,-126}},{{-197,-176,-304,-221,-245,-143},{-297,-217,-286,-297,-204,-165},{-191,-132,-234,-139,-317,-304},{-122,-122,-176,-169,-293,-234},{-184,-271,-132,-263,-135,-174},{-165,-286,-117,-215,-293,-217},{-145,-326,-150,-132,-165,-156},{-206,-193,-293,-241,-221,-308},{-273,-234,-195,-163,-135,-115},{-184,-245,-108,-148,-289,-252},{-230,-113,-171,-312,-148,-323},{-280,-232,-204,-200,-202,-319},{-312,-304,-197,-187,-165,-230},{-200,-263,-256,-184,-163,-323},{-124,-115,-143,-204,-145,-276},{-234,-148,-228,-158,-191,-258},{-130,-200,-284,-276,-226,-135},{-241,-117,-286,-119,-221,-317},{-152,-189,-230,-295,-115,-228},{-295,-252,-167,-145,-152,-224},{-271,-215,-226,-252,-150,-195},{-315,-174,-130,-239,-271,-263},{-171,-174,-245,-278,-284,-289},{-243,-299,-145,-273,-206,-256},{-315,-119,-176,-148,-210,-115},{-284,-132,-291,-234,-193,-273},{-174,-165,-204,-132,-145,-130},{-256,-169,-124,-191,-174,-304},{-135,-128,-152,-139,-191,-204},{-167,-276,-163,-152,-267,-176},{-226,-234,-141,-267,-202,-124},{-169,-291,-221,-200,-187,-148},{-195,-308,-306,-154,-204,-280},{-119,-289,-122,-180,-293,-117},{-224,-265,-226,-200,-197,-260},{-193,-306,-128,-232,-295,-204},{-304,-171,-224,-156,-243,-176},{-317,-111,-278,-304,-219,-143},{-182,-247,-178,-108,-169,-226},{-256,-317,-145,-208,-323,-219},{-197,-126,-250,-258,-224,-126},{-189,-150,-221,-126,-217,-219},{-165,-141,-280,-271,-276,-291},{-228,-243,-317,-241,-260,-263},{-187,-213,-258,-204,-126,-126},{-115,-250,-117,-193,-226,-221},{-178,-158,-269,-293,-250,-130},{-148,-299,-176,-202,-276,-156},{-193,-208,-252,-141,-312,-163},{-250,-228,-315,-278,-284,-291}}},{{{-388,-356,-213,-133,-186,-370},{-359,-258,-221,-378,-375,-370},{-178,-330,-325,-242,-239,-354},{-293,-399,-160,-332,-218,-338},{-301,-279,-229,-362,-285,-375},{-394,-364,-160,-176,-144,-170},{-340,-370,-181,-359,-165,-277},{-168,-178,-301,-229,-160,-317},{-285,-197,-383,-197,-255,-348},{-372,-378,-162,-287,-314,-223},{-282,-242,-295,-168,-133,-269},{-351,-277,-178,-362,-223,-154},{-255,-311,-396,-223,-223,-255},{-362,-346,-378,-149,-154,-325},{-327,-266,-210,-383,-375,-322},{-207,-200,-250,-173,-146,-186},{-338,-325,-282,-348,-394,-136},{-138,-247,-322,-359,-239,-149},{-367,-141,-348,-298,-162,-343},{-218,-340,-367,-157,-250,-194},{-380,-303,-146,-298,-279,-210},{-277,-367,-215,-202,-287,-277},{-279,-354,-221,-319,-306,-285},{-173,-247,-399,-221,-213,-149},{-189,-205,-269,-138,-218,-194},{-295,-311,-221,-327,-290,-309},{-269,-356,-146,-396,-194,-348},{-168,-186,-279,-189,-207,-266},{-210,-271,-317,-309,-160,-367},{-356,-277,-157,-255,-301,-378},{-306,-223,-356,-303,-396,-138},{-181,-266,-245,-335,-301,-293},{-154,-314,-168,-255,-303,-351},{-306,-346,-287,-271,-396,-271},{-346,-372,-253,-253,-157,-391},{-136,-386,-205,-266,-215,-261},{-290,-388,-207,-200,-141,-311},{-189,-210,-157,-152,-279,-378},{-351,-229,-205,-184,-274,-343},{-372,-194,-136,-200,-178,-325},{-141,-210,-391,-322,-391,-223},{-237,-375,-396,-303,-332,-271},{-271,-303,-213,-149,-269,-285},{-154,-263,-386,-383,-287,-136},{-335,-186,-165,-340,-149,-399},{-348,-359,-378,-364,-383,-309},{-178,-277,-181,-298,-330,-319},{-293,-168,-370,-394,-226,-346},{-375,-317,-330,-250,-229,-364},{-133,-226,-144,-364,-157,-184}},{{-160,-194,-314,-269,-226,-181},{-229,-383,-325,-338,-277,-266},{-170,-282,-192,-213,-186,-266},{-184,-200,-343,-226,-301,-319},{-162,-258,-261,-322,-388,-229},{-388,-354,-189,-290,-239,-221},{-253,-146,-359,-152,-386,-378},{-348,-181,-293,-314,-173,-152},{-218,-340,-319,-375,-380,-229},{-146,-271,-394,-380,-356,-282},{-144,-136,-207,-146,-239,-367},{-348,-221,-372,-354,-303,-362},{-229,-372,-327,-221,-343,-274},{-157,-340,-277,-144,-383,-181},{-293,-370,-351,-205,-343,-309},{-314,-146,-255,-370,-388,-144},{-322,-250,-245,-226,-298,-138},{-181,-271,-396,-221,-330,-396},{-309,-213,-343,-184,-261,-269},{-309,-261,-170,-285,-303,-221},{-290,-279,-285,-391,-141,-327},{-335,-205,-378,-383,-362,-181},{-386,-290,-287,-343,-362,-231},{-375,-277,-146,-354,-362,-338},{-186,-391,-231,-359,-330,-383},{-394,-325,-152,-197,-380,-306},{-197,-173,-338,-386,-192,-138},{-332,-245,-335,-391,-200,-271},{-258,-340,-194,-269,-364,-327},{-154,-157,-263,-245,-162,-218},{-298,-215,-340,-194,-234,-375},{-149,-237,-239,-394,-394,-335},{-367,-200,-287,-229,-370,-221},{-388,-165,-325,-237,-250,-394},{-138,-309,-327,-391,-277,-378},{-223,-364,-348,-189,-293,-184},{-386,-194,-380,-168,-197,-279},{-154,-332,-325,-205,-186,-173},{-133,-144,-271,-202,-386,-301},{-277,-141,-149,-181,-364,-319},{-335,-370,-314,-215,-271,-322},{-338,-364,-194,-247,-247,-346},{-152,-282,-210,-255,-388,-194},{-338,-338,-229,-229,-311,-362},{-152,-189,-205,-154,-213,-255},{-295,-165,-279,-279,-152,-367},{-144,-340,-213,-391,-396,-269},{-314,-317,-282,-242,-141,-394},{-165,-176,-202,-338,-234,-309},{-247,-277,-386,-380,-242,-154}},{{-231,-354,-354,-250,-394,-362},{-197,-234,-356,-314,-189,-319},{-391,-200,-231,-351,-391,-327},{-383,-133,-319,-133,-266,-200},{-332,-293,-269,-237,-279,-303},{-207,-194,-200,-154,-213,-231},{-242,-194,-319,-394,-391,-375},{-146,-207,-226,-253,-247,-271},{-255,-202,-311,-354,-221,-221},{-261,-301,-213,-146,-178,-194},{-279,-255,-372,-322,-287,-311},{-356,-351,-178,-231,-149,-146},{-168,-356,-245,-301,-261,-221},{-332,-162,-335,-266,-293,-301},{-396,-332,-295,-335,-258,-242},{-149,-197,-394,-245,-253,-213},{-253,-176,-181,-356,-332,-391},{-165,-178,-239,-194,-170,-229},{-263,-303,-396,-266,-255,-317},{-327,-325,-154,-144,-255,-162},{-351,-234,-351,-184,-348,-399},{-136,-332,-346,-186,-266,-279},{-136,-279,-194,-231,-343,-301},{-359,-332,-277,-213,-226,-261},{-378,-234,-237,-189,-340,-295},{-322,-362,-154,-253,-218,-378},{-152,-197,-351,-277,-359,-399},{-343,-367,-226,-298,-367,-168},{-184,-226,-370,-311,-293,-237},{-207,-223,-186,-242,-205,-186},{-303,-375,-202,-205,-319,-346},{-287,-335,-335,-247,-250,-245},{-394,-340,-263,-293,-322,-168},{-287,-234,-375,-279,-237,-245},{-386,-229,-332,-378,-359,-189},{-327,-285,-271,-149,-253,-261},{-133,-290,-364,-274,-301,-237},{-218,-258,-178,-144,-245,-144},{-247,-226,-146,-335,-168,-277},{-247,-346,-173,-327,-298,-285},{-399,-322,-285,-218,-325,-207},{-327,-279,-343,-218,-274,-247},{-189,-186,-138,-245,-290,-162},{-245,-287,-205,-314,-253,-277},{-354,-343,-226,-386,-290,-223},{-327,-391,-223,-399,-231,-152},{-234,-343,-293,-322,-157,-335},{-253,-359,-359,-370,-293,-330},{-335,-170,-213,-154,-314,-354},{-306,-391,-136,-343,-157,-165}}},{{{-210,-190,-316,-218,-258,-361},{-420,-238,-364,-420,-389,-148},{-176,-381,-168,-202,-260,-165},{-378,-319,-238,-199,-179,-202},{-358,-333,-204,-151,-294,-406},{-260,-308,-213,-188,-210,-204},{-272,-171,-389,-174,-322,-347},{-370,-168,-227,-160,-140,-168},{-403,-202,-283,-213,-266,-274},{-249,-140,-409,-263,-384,-176},{-283,-286,-196,-266,-146,-333},{-202,-386,-202,-294,-409,-339},{-381,-283,-176,-361,-266,-288},{-406,-316,-258,-311,-409,-255},{-235,-353,-168,-358,-232,-358},{-157,-218,-308,-182,-286,-375},{-274,-381,-283,-409,-196,-409},{-154,-266,-381,-230,-386,-202},{-174,-230,-302,-283,-302,-286},{-235,-358,-370,-339,-412,-350},{-272,-330,-277,-364,-328,-395},{-384,-381,-286,-269,-291,-269},{-216,-350,-297,-384,-266,-185},{-227,-361,-328,-342,-389,-305},{-218,-238,-269,-392,-199,-241},{-389,-165,-274,-277,-409,-403},{-347,-417,-227,-412,-174,-305},{-325,-283,-409,-367,-305,-140},{-238,-300,-336,-353,-160,-263},{-400,-207,-224,-414,-358,-224},{-358,-232,-322,-176,-356,-350},{-196,-400,-227,-277,-378,-288},{-190,-207,-269,-375,-414,-140},{-190,-221,-392,-171,-297,-151},{-353,-386,-395,-316,-378,-314},{-140,-280,-302,-202,-218,-353},{-367,-146,-249,-389,-420,-216},{-210,-190,-232,-162,-258,-350},{-188,-165,-339,-283,-358,-210},{-218,-392,-165,-344,-151,-168},{-255,-370,-210,-314,-353,-207},{-395,-204,-384,-154,-353,-255},{-417,-196,-420,-230,-274,-330},{-375,-409,-224,-185,-213,-227},{-308,-179,-269,-302,-291,-221},{-263,-157,-386,-193,-196,-389},{-196,-232,-389,-193,-235,-288},{-300,-165,-207,-162,-157,-182},{-204,-291,-266,-258,-361,-414},{-406,-210,-221,-146,-339,-319}},{{-199,-216,-171,-176,-386,-199},{-314,-277,-392,-199,-305,-305},{-283,-204,-263,-325,-353,-176},{-398,-417,-283,-286,-227,-358},{-386,-381,-330,-367,-358,-162},{-277,-249,-378,-272,-193,-277},{-280,-381,-185,-185,-246,-216},{-384,-193,-143,-266,-221,-378},{-330,-389,-188,-367,-252,-283},{-213,-297,-230,-353,-246,-171},{-207,-291,-291,-185,-398,-350},{-294,-146,-230,-333,-325,-325},{-353,-143,-168,-274,-210,-361},{-210,-204,-311,-356,-389,-185},{-350,-302,-378,-176,-398,-420},{-297,-185,-252,-356,-230,-258},{-190,-367,-148,-297,-297,-344},{-148,-235,-322,-272,-171,-395},{-168,-420,-364,-414,-213,-171},{-316,-291,-255,-246,-232,-322},{-272,-302,-333,-269,-316,-364},{-403,-277,-395,-244,-266,-148},{-316,-322,-350,-417,-263,-291},{-347,-330,-339,-255,-361,-364},{-146,-190,-316,-344,-344,-168},{-389,-283,-182,-171,-190,-165},{-165,-274,-398,-157,-389,-230},{-339,-190,-182,-143,-339,-216},{-210,-297,-398,-375,-274,-249},{-361,-344,-199,-328,-143,-378},{-372,-162,-146,-249,-353,-246},{-255,-300,-221,-157,-294,-378},{-395,-162,-406,-241,-414,-174},{-384,-171,-286,-375,-274,-398},{-235,-221,-210,-151,-179,-260},{-300,-356,-358,-154,-305,-347},{-420,-339,-372,-342,-185,-412},{-302,-179,-266,-400,-210,-311},{-190,-165,-420,-160,-395,-308},{-367,-204,-305,-165,-272,-414},{-230,-381,-316,-216,-406,-162},{-414,-367,-162,-389,-403,-398},{-238,-255,-143,-143,-224,-171},{-252,-224,-238,-232,-216,-417},{-140,-260,-330,-412,-417,-238},{-218,-213,-398,-154,-336,-325},{-160,-174,-409,-213,-361,-227},{-199,-171,-364,-260,-143,-277},{-314,-182,-398,-330,-288,-305},{-238,-210,-174,-204,-168,-277}},{{-232,-406,-210,-179,-330,-176},{-269,-403,-199,-403,-157,-302},{-367,-218,-252,-417,-283,-182},{-311,-330,-221,-196,-165,-246},{-414,-232,-185,-207,-375,-188},{-294,-216,-274,-353,-384,-361},{-336,-255,-207,-347,-274,-230},{-406,-213,-361,-258,-230,-350},{-260,-258,-165,-176,-249,-241},{-417,-398,-258,-165,-322,-210},{-272,-272,-202,-193,-255,-244},{-305,-216,-249,-367,-398,-157},{-378,-213,-297,-372,-400,-336},{-372,-384,-400,-224,-174,-210},{-378,-174,-305,-314,-210,-176},{-356,-207,-269,-294,-384,-356},{-185,-151,-302,-204,-325,-314},{-361,-319,-350,-398,-372,-224},{-232,-213,-171,-218,-291,-314},{-274,-188,-168,-196,-367,-190},{-386,-246,-227,-305,-249,-235},{-269,-151,-311,-288,-308,-246},{-165,-260,-244,-230,-347,-160},{-146,-182,-148,-358,-176,-409},{-154,-241,-249,-176,-414,-221},{-305,-361,-302,-291,-350,-171},{-291,-308,-305,-294,-308,-353},{-179,-162,-154,-364,-342,-364},{-384,-272,-409,-398,-224,-210},{-182,-330,-230,-241,-188,-274},{-400,-308,-160,-207,-179,-151},{-344,-148,-238,-319,-305,-148},{-314,-384,-182,-311,-344,-350},{-157,-375,-174,-151,-364,-235},{-300,-202,-370,-375,-182,-213},{-171,-151,-179,-305,-286,-171},{-168,-232,-249,-314,-232,-406},{-328,-392,-258,-291,-398,-196},{-356,-179,-386,-190,-311,-168},{-291,-246,-274,-389,-350,-174},{-344,-283,-235,-148,-249,-305},{-283,-412,-283,-308,-241,-146},{-375,-300,-143,-238,-162,-400},{-272,-412,-319,-258,-151,-372},{-398,-339,-140,-232,-244,-325},{-207,-358,-154,-322,-168,-157},{-384,-358,-350,-356,-375,-400},{-204,-210,-193,-350,-389,-154},{-392,-350,-350,-179,-146,-395},{-235,-213,-361,-196,-146,-280}}},{{{-146,-350,-392,-258,-216,-255},{-319,-395,-370,-367,-356,-319},{-255,-286,-227,-356,-160,-344},{-182,-255,-157,-409,-412,-230},{-146,-179,-216,-328,-375,-277},{-333,-342,-283,-241,-325,-258},{-370,-370,-389,-417,-148,-196},{-221,-165,-364,-143,-204,-224},{-330,-218,-386,-168,-297,-182},{-420,-375,-241,-224,-353,-330},{-283,-350,-188,-350,-213,-297},{-218,-406,-218,-370,-350,-398},{-224,-395,-288,-370,-244,-266},{-302,-316,-232,-297,-322,-308},{-227,-347,-367,-213,-375,-316},{-297,-190,-406,-199,-157,-160},{-280,-325,-182,-157,-297,-364},{-185,-244,-412,-218,-185,-238},{-238,-148,-367,-398,-232,-314},{-395,-207,-188,-199,-316,-202},{-305,-213,-308,-389,-389,-333},{-218,-286,-333,-328,-336,-319},{-146,-269,-409,-249,-291,-199},{-244,-305,-171,-190,-199,-325},{-230,-202,-283,-409,-302,-378},{-182,-322,-140,-269,-384,-386},{-146,-168,-322,-179,-190,-339},{-406,-143,-230,-224,-280,-389},{-403,-182,-249,-412,-266,-400},{-263,-305,-216,-263,-143,-353},{-414,-294,-330,-398,-286,-165},{-241,-213,-272,-414,-336,-146},{-179,-151,-143,-204,-160,-224},{-358,-300,-412,-190,-319,-381},{-400,-384,-202,-252,-196,-342},{-409,-140,-344,-249,-238,-143},{-224,-370,-266,-389,-302,-294},{-258,-319,-179,-280,-252,-406},{-367,-230,-381,-353,-246,-370},{-227,-165,-389,-420,-395,-294},{-140,-263,-297,-252,-246,-322},{-277,-414,-171,-286,-319,-258},{-157,-283,-218,-249,-339,-344},{-230,-148,-207,-381,-241,-316},{-154,-207,-353,-185,-412,-174},{-168,-286,-174,-258,-272,-420},{-272,-241,-235,-398,-372,-398},{-406,-193,-179,-367,-358,-409},{-277,-204,-207,-412,-235,-216},{-143,-241,-384,-232,-182,-207}},{{-372,-311,-154,-258,-314,-143},{-361,-392,-412,-274,-140,-185},{-148,-372,-160,-274,-308,-330},{-274,-364,-370,-375,-188,-157},{-372,-218,-386,-356,-288,-319},{-381,-238,-353,-232,-224,-238},{-216,-143,-403,-400,-207,-286},{-297,-311,-146,-375,-403,-199},{-375,-196,-378,-378,-367,-291},{-406,-252,-274,-333,-255,-347},{-322,-400,-266,-165,-151,-420},{-185,-176,-395,-389,-213,-238},{-277,-297,-274,-168,-322,-314},{-260,-319,-238,-406,-386,-392},{-420,-286,-300,-342,-210,-311},{-252,-386,-255,-246,-372,-216},{-347,-244,-140,-190,-241,-381},{-328,-199,-305,-218,-160,-230},{-224,-143,-246,-252,-221,-283},{-190,-196,-420,-302,-176,-314},{-356,-216,-193,-199,-403,-381},{-414,-151,-216,-168,-207,-297},{-308,-328,-344,-162,-260,-370},{-381,-188,-358,-372,-216,-154},{-230,-364,-367,-395,-160,-160},{-392,-384,-319,-241,-148,-176},{-179,-171,-302,-302,-403,-165},{-154,-188,-238,-190,-339,-297},{-286,-356,-403,-277,-176,-412},{-199,-395,-367,-258,-420,-263},{-319,-224,-160,-280,-221,-342},{-311,-389,-221,-204,-302,-322},{-199,-280,-174,-196,-342,-288},{-249,-358,-249,-294,-311,-227},{-224,-370,-274,-213,-291,-151},{-258,-255,-255,-417,-174,-168},{-372,-176,-274,-325,-143,-364},{-370,-414,-322,-344,-185,-381},{-157,-249,-288,-322,-398,-148},{-227,-266,-344,-160,-179,-330},{-202,-392,-356,-412,-384,-272},{-314,-319,-372,-344,-165,-286},{-255,-151,-188,-196,-403,-193},{-148,-249,-199,-297,-308,-218},{-384,-204,-330,-316,-176,-157},{-165,-322,-174,-227,-165,-384},{-381,-286,-305,-193,-302,-216},{-392,-286,-182,-406,-213,-358},{-162,-151,-398,-403,-319,-216},{-266,-392,-283,-300,-302,-224}},{{-375,-420,-344,-224,-224,-381},{-300,-249,-140,-165,-190,-160},{-291,-244,-302,-291,-221,-171},{-409,-221,-288,-199,-204,-244},{-344,-342,-162,-196,-204,-288},{-232,-224,-283,-146,-157,-328},{-255,-171,-308,-403,-168,-316},{-336,-182,-171,-196,-249,-322},{-302,-294,-235,-372,-406,-202},{-263,-294,-274,-146,-322,-238},{-311,-230,-302,-364,-288,-143},{-249,-221,-286,-157,-213,-389},{-202,-339,-258,-162,-386,-417},{-244,-182,-258,-322,-230,-244},{-322,-216,-246,-213,-165,-294},{-241,-185,-151,-176,-370,-322},{-274,-339,-162,-280,-372,-336},{-210,-266,-171,-389,-339,-277},{-297,-386,-274,-216,-370,-202},{-151,-409,-146,-162,-300,-283},{-188,-160,-358,-280,-403,-252},{-358,-344,-403,-190,-347,-314},{-196,-336,-328,-381,-255,-322},{-235,-218,-342,-420,-162,-154},{-305,-179,-417,-414,-370,-286},{-199,-210,-311,-311,-263,-403},{-336,-241,-297,-238,-252,-146},{-294,-328,-224,-160,-216,-403},{-297,-249,-272,-375,-218,-204},{-260,-381,-392,-218,-157,-238},{-406,-325,-218,-174,-185,-207},{-202,-314,-280,-336,-188,-420},{-272,-260,-227,-384,-403,-409},{-255,-305,-375,-319,-263,-316},{-227,-409,-370,-210,-316,-143},{-241,-328,-392,-330,-392,-367},{-258,-386,-272,-151,-168,-322},{-190,-235,-280,-353,-232,-286},{-403,-249,-266,-204,-266,-221},{-414,-182,-316,-238,-246,-322},{-266,-224,-260,-216,-319,-308},{-277,-291,-417,-328,-165,-316},{-381,-235,-344,-398,-274,-381},{-392,-258,-308,-406,-325,-230},{-414,-255,-302,-204,-143,-370},{-364,-179,-148,-168,-305,-339},{-314,-258,-398,-263,-179,-179},{-266,-308,-294,-353,-370,-291},{-314,-204,-297,-414,-182,-358},{-246,-190,-381,-386,-420,-154}}},{{{-182,-196,-361,-176,-395,-283},{-350,-193,-224,-263,-375,-266},{-386,-350,-244,-148,-342,-420},{-378,-400,-325,-154,-333,-378},{-218,-420,-358,-378,-286,-260},{-286,-235,-227,-291,-193,-241},{-305,-151,-420,-330,-381,-221},{-381,-258,-342,-221,-286,-389},{-314,-409,-356,-378,-174,-403},{-232,-395,-160,-146,-252,-213},{-227,-218,-179,-249,-188,-193},{-146,-272,-403,-230,-210,-227},{-249,-221,-202,-266,-143,-272},{-227,-389,-280,-199,-249,-193},{-283,-179,-367,-162,-336,-213},{-291,-241,-165,-238,-291,-176},{-185,-241,-146,-148,-188,-420},{-151,-288,-154,-252,-288,-210},{-204,-221,-266,-179,-328,-260},{-241,-162,-252,-342,-286,-263},{-361,-384,-409,-143,-224,-325},{-384,-364,-179,-398,-308,-196},{-277,-370,-288,-235,-255,-364},{-314,-356,-202,-277,-414,-336},{-412,-344,-361,-412,-400,-143},{-353,-322,-154,-160,-216,-417},{-230,-389,-224,-244,-322,-272},{-342,-157,-196,-202,-381,-286},{-204,-395,-154,-193,-165,-238},{-227,-403,-288,-148,-216,-389},{-375,-224,-314,-386,-154,-398},{-171,-193,-263,-400,-160,-266},{-277,-235,-389,-146,-389,-283},{-174,-395,-190,-140,-344,-260},{-157,-218,-174,-336,-314,-230},{-162,-294,-311,-227,-249,-238},{-358,-414,-190,-165,-283,-246},{-322,-347,-179,-160,-316,-151},{-291,-174,-409,-224,-140,-370},{-330,-162,-199,-286,-342,-160},{-151,-344,-179,-165,-154,-216},{-274,-375,-294,-162,-400,-283},{-361,-188,-266,-244,-395,-274},{-230,-314,-179,-179,-395,-389},{-353,-258,-398,-316,-272,-193},{-322,-386,-263,-286,-358,-344},{-412,-314,-185,-224,-207,-210},{-174,-230,-305,-398,-305,-297},{-372,-305,-258,-260,-339,-162},{-213,-361,-412,-179,-400,-272}},{{-154,-406,-314,-344,-316,-238},{-288,-333,-288,-213,-417,-280},{-414,-386,-389,-230,-232,-140},{-311,-297,-364,-269,-202,-381},{-202,-302,-339,-202,-372,-241},{-344,-266,-297,-336,-325,-367},{-157,-342,-269,-378,-185,-185},{-347,-162,-272,-258,-185,-339},{-213,-263,-333,-227,-403,-263},{-300,-258,-241,-165,-350,-246},{-392,-235,-381,-274,-328,-154},{-364,-241,-319,-241,-232,-297},{-260,-213,-193,-221,-255,-146},{-274,-246,-162,-255,-336,-165},{-202,-294,-148,-280,-165,-224},{-297,-277,-148,-333,-302,-277},{-384,-182,-241,-328,-409,-356},{-286,-146,-258,-311,-154,-300},{-269,-188,-269,-370,-188,-328},{-179,-322,-196,-361,-294,-174},{-204,-224,-148,-356,-347,-168},{-207,-227,-260,-255,-297,-328},{-370,-151,-322,-364,-221,-277},{-216,-294,-372,-196,-210,-151},{-361,-403,-375,-398,-146,-204},{-336,-389,-288,-199,-213,-384},{-302,-361,-202,-227,-316,-381},{-308,-375,-146,-185,-339,-381},{-347,-308,-325,-148,-353,-151},{-213,-339,-154,-277,-378,-328},{-370,-188,-221,-308,-322,-339},{-232,-370,-322,-227,-367,-417},{-311,-185,-412,-322,-196,-210},{-249,-255,-395,-241,-336,-210},{-148,-384,-384,-182,-286,-196},{-417,-196,-311,-328,-179,-266},{-165,-316,-392,-174,-417,-395},{-288,-342,-224,-333,-241,-339},{-263,-266,-204,-162,-165,-193},{-162,-244,-347,-160,-235,-143},{-263,-398,-216,-224,-179,-179},{-280,-344,-347,-151,-364,-319},{-249,-218,-244,-202,-143,-386},{-266,-277,-392,-199,-174,-190},{-328,-230,-196,-218,-162,-182},{-386,-199,-367,-414,-364,-356},{-230,-406,-143,-151,-302,-176},{-146,-258,-146,-210,-353,-196},{-160,-216,-403,-260,-140,-151},{-336,-221,-277,-252,-227,-246}},{{-314,-288,-333,-179,-378,-392},{-314,-339,-280,-302,-294,-286},{-311,-272,-378,-255,-356,-140},{-372,-151,-252,-375,-395,-230},{-258,-232,-146,-414,-249,-227},{-333,-319,-263,-395,-260,-151},{-210,-255,-358,-412,-213,-356},{-140,-258,-185,-274,-288,-277},{-314,-403,-294,-297,-232,-347},{-227,-143,-199,-297,-246,-193},{-140,-322,-165,-392,-190,-244},{-302,-367,-274,-255,-414,-232},{-176,-227,-154,-182,-258,-204},{-367,-353,-280,-417,-162,-260},{-300,-224,-395,-210,-386,-286},{-232,-339,-224,-339,-389,-260},{-339,-272,-151,-202,-174,-266},{-241,-356,-263,-193,-367,-269},{-420,-398,-241,-356,-258,-308},{-311,-246,-417,-207,-344,-171},{-297,-235,-400,-384,-372,-266},{-400,-294,-244,-249,-336,-294},{-302,-277,-174,-154,-420,-370},{-392,-367,-370,-162,-182,-199},{-417,-294,-381,-403,-409,-224},{-241,-140,-294,-176,-406,-300},{-154,-199,-339,-302,-398,-294},{-305,-297,-291,-384,-316,-154},{-364,-146,-204,-252,-174,-272},{-406,-249,-398,-146,-395,-386},{-361,-398,-202,-286,-400,-199},{-246,-398,-277,-392,-216,-342},{-311,-204,-291,-339,-210,-188},{-272,-280,-302,-196,-325,-358},{-188,-358,-235,-381,-246,-283},{-176,-199,-221,-165,-176,-280},{-258,-384,-232,-160,-202,-384},{-221,-392,-294,-235,-361,-157},{-216,-235,-204,-381,-196,-392},{-409,-260,-151,-157,-258,-300},{-258,-266,-344,-146,-386,-406},{-361,-232,-300,-157,-330,-314},{-204,-420,-386,-157,-160,-381},{-344,-246,-305,-392,-372,-406},{-297,-336,-356,-260,-288,-409},{-375,-277,-311,-213,-339,-269},{-171,-204,-375,-260,-213,-193},{-412,-230,-213,-269,-414,-370},{-398,-286,-350,-370,-221,-171},{-420,-325,-356,-322,-143,-204}}}}; // 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]={8,4,3,7,4,3,7,4,3,6,3,2,6,3,2,6,3,2,8,4,3,7,4,3,8,4,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3,8,4,3,8,4,3,9,5,3,8,5,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}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,14,1,5,9,13,0,6,12,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,0,4,8,12,0,6,12,0,2,4,6,8,10,0,4,8,0,6,0,2,4,6,8,10,1,5,9,0,6,0,2,4,6,8,10,2,6,10,0,6,1,3,5,7,9,11,13,15,0,4,8,12,0,6,12,2,4,6,8,10,12,14,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,1,5,9,13,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,0,6,12,2,4,6,8,10,12,14,2,6,10,14,1,7,13,1,3,5,7,9,11,13,1,5,9,13,0,6,12,2,4,6,8,10,12,14,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,1,5,9,13,0,6,12,0,2,4,6,8,10,12,14,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,0,4,8,12,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,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,16,0,4,8,12,16,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,16,2,8,14}; // set of start times of each shipment 
int SHets[SPN]={3,5,7,9,11,13,15,17,4,8,12,16,3,9,15,5,7,9,11,13,15,17,5,9,13,17,3,9,15,5,7,9,11,13,15,17,3,7,11,15,3,9,15,6,8,10,12,14,16,6,10,14,6,12,6,8,10,12,14,16,7,11,15,6,12,6,8,10,12,14,16,8,12,16,6,12,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,4,6,8,10,12,14,16,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,5,7,9,11,13,15,17,5,9,13,17,4,10,16,4,6,8,10,12,14,16,4,8,12,16,3,9,15,5,7,9,11,13,15,17,5,9,13,17,4,10,16,3,5,7,9,11,13,15,17,4,8,12,16,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,5,11,17,3,5,7,9,11,13,15,17,5,9,13,17,4,10,16,4,6,8,10,12,14,16,4,8,12,16,2,8,14,4,6,8,10,12,14,16,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,1,3,5,7,9,11,13,15,17,1,5,9,13,17,1,7,13,2,4,6,8,10,12,14,16,1,5,9,13,17,3,9,15}; // set of end times of each shipment 
