int Dev = 30;// 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 = 342;//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]={{{{11037,0,0,0,0,0},{11836,0,0,0,0,0},{11299,0,0,0,0,0},{11372,0,0,0,0,0},{11358,0,0,0,0,0},{11371,0,0,0,0,0},{11409,0,0,0,0,0},{11614,0,0,0,0,0},{10854,0,0,0,0,0},{11060,0,0,0,0,0},{11661,0,0,0,0,0},{11187,0,0,0,0,0},{11688,0,0,0,0,0},{11890,0,0,0,0,0},{11440,0,0,0,0,0},{11699,0,0,0,0,0},{10911,0,0,0,0,0},{12106,0,0,0,0,0},{11836,0,0,0,0,0},{11130,0,0,0,0,0},{11373,0,0,0,0,0},{10949,0,0,0,0,0},{11604,0,0,0,0,0},{11263,0,0,0,0,0},{11806,0,0,0,0,0},{11531,0,0,0,0,0},{11781,0,0,0,0,0},{11799,0,0,0,0,0},{11205,0,0,0,0,0},{11972,0,0,0,0,0},{11402,0,0,0,0,0},{11668,0,0,0,0,0},{11414,0,0,0,0,0},{11347,0,0,0,0,0},{11630,0,0,0,0,0},{11287,0,0,0,0,0},{11309,0,0,0,0,0},{11533,0,0,0,0,0},{11644,0,0,0,0,0},{10999,0,0,0,0,0},{11614,0,0,0,0,0},{10993,0,0,0,0,0},{11340,0,0,0,0,0},{11337,0,0,0,0,0},{11259,0,0,0,0,0},{11345,0,0,0,0,0},{11454,0,0,0,0,0},{11032,0,0,0,0,0},{11343,0,0,0,0,0},{11483,0,0,0,0,0}},{{11344,0,0,0,0,0},{11805,0,0,0,0,0},{11265,0,0,0,0,0},{11212,0,0,0,0,0},{11630,0,0,0,0,0},{11586,0,0,0,0,0},{11524,0,0,0,0,0},{11556,0,0,0,0,0},{11874,0,0,0,0,0},{11481,0,0,0,0,0},{11802,0,0,0,0,0},{11987,0,0,0,0,0},{11286,0,0,0,0,0},{12020,0,0,0,0,0},{11056,0,0,0,0,0},{11881,0,0,0,0,0},{11785,0,0,0,0,0},{11405,0,0,0,0,0},{11882,0,0,0,0,0},{11508,0,0,0,0,0},{11560,0,0,0,0,0},{11716,0,0,0,0,0},{11280,0,0,0,0,0},{11267,0,0,0,0,0},{11689,0,0,0,0,0},{11008,0,0,0,0,0},{11347,0,0,0,0,0},{11550,0,0,0,0,0},{11705,0,0,0,0,0},{11509,0,0,0,0,0},{11455,0,0,0,0,0},{11692,0,0,0,0,0},{11198,0,0,0,0,0},{11553,0,0,0,0,0},{11240,0,0,0,0,0},{11688,0,0,0,0,0},{11363,0,0,0,0,0},{11551,0,0,0,0,0},{11499,0,0,0,0,0},{12119,0,0,0,0,0},{11031,0,0,0,0,0},{11516,0,0,0,0,0},{11207,0,0,0,0,0},{11603,0,0,0,0,0},{11820,0,0,0,0,0},{11729,0,0,0,0,0},{11494,0,0,0,0,0},{11310,0,0,0,0,0},{11183,0,0,0,0,0},{11694,0,0,0,0,0}},{{11785,0,0,0,0,0},{11779,0,0,0,0,0},{11555,0,0,0,0,0},{11273,0,0,0,0,0},{11653,0,0,0,0,0},{11413,0,0,0,0,0},{11373,0,0,0,0,0},{11737,0,0,0,0,0},{12023,0,0,0,0,0},{11563,0,0,0,0,0},{11531,0,0,0,0,0},{11892,0,0,0,0,0},{11260,0,0,0,0,0},{11746,0,0,0,0,0},{11583,0,0,0,0,0},{11419,0,0,0,0,0},{11278,0,0,0,0,0},{10951,0,0,0,0,0},{10908,0,0,0,0,0},{11494,0,0,0,0,0},{11927,0,0,0,0,0},{11692,0,0,0,0,0},{11585,0,0,0,0,0},{11352,0,0,0,0,0},{11488,0,0,0,0,0},{11946,0,0,0,0,0},{11212,0,0,0,0,0},{11232,0,0,0,0,0},{11460,0,0,0,0,0},{11860,0,0,0,0,0},{11590,0,0,0,0,0},{11403,0,0,0,0,0},{11648,0,0,0,0,0},{11651,0,0,0,0,0},{11514,0,0,0,0,0},{11648,0,0,0,0,0},{11636,0,0,0,0,0},{11645,0,0,0,0,0},{11611,0,0,0,0,0},{11045,0,0,0,0,0},{11405,0,0,0,0,0},{11663,0,0,0,0,0},{11651,0,0,0,0,0},{11776,0,0,0,0,0},{11319,0,0,0,0,0},{11682,0,0,0,0,0},{11344,0,0,0,0,0},{11762,0,0,0,0,0},{11286,0,0,0,0,0},{11936,0,0,0,0,0}}},{{{-183,-160,-240,-199,-175,-156},{-227,-205,-256,-142,-223,-260},{-193,-262,-201,-162,-142,-246},{-227,-201,-168,-156,-148,-193},{-264,-144,-160,-146,-146,-158},{-201,-233,-213,-215,-211,-195},{-223,-158,-146,-152,-185,-156},{-246,-187,-225,-252,-217,-258},{-162,-154,-144,-189,-158,-173},{-262,-209,-150,-238,-229,-150},{-252,-175,-248,-193,-185,-144},{-256,-175,-203,-171,-262,-246},{-215,-244,-250,-189,-240,-238},{-235,-177,-219,-164,-181,-181},{-264,-203,-262,-246,-171,-171},{-244,-262,-166,-225,-260,-173},{-171,-148,-150,-227,-240,-142},{-254,-240,-258,-221,-262,-164},{-229,-201,-233,-242,-156,-229},{-195,-175,-144,-168,-262,-223},{-225,-219,-215,-160,-146,-248},{-175,-160,-181,-199,-199,-166},{-223,-191,-252,-240,-181,-179},{-211,-173,-201,-223,-250,-166},{-177,-150,-213,-187,-248,-175},{-221,-242,-187,-264,-179,-187},{-154,-264,-215,-215,-238,-244},{-173,-152,-175,-240,-209,-144},{-217,-250,-258,-240,-154,-209},{-250,-235,-166,-164,-195,-146},{-166,-262,-171,-166,-215,-199},{-248,-171,-244,-183,-162,-252},{-217,-201,-201,-189,-164,-231},{-221,-235,-171,-225,-248,-148},{-229,-233,-217,-181,-160,-229},{-191,-150,-240,-233,-193,-191},{-254,-185,-183,-173,-205,-227},{-158,-240,-242,-175,-260,-185},{-209,-225,-221,-191,-148,-217},{-195,-177,-175,-242,-183,-205},{-223,-219,-193,-193,-242,-225},{-211,-158,-173,-254,-146,-252},{-215,-225,-175,-223,-179,-264},{-158,-215,-209,-164,-215,-185},{-144,-209,-264,-166,-219,-207},{-148,-166,-213,-201,-256,-199},{-150,-168,-175,-150,-244,-219},{-244,-181,-185,-264,-215,-240},{-238,-160,-246,-199,-195,-246},{-256,-258,-252,-150,-203,-187}},{{-183,-217,-244,-209,-201,-207},{-158,-205,-244,-205,-225,-260},{-185,-142,-219,-256,-164,-175},{-231,-191,-146,-211,-152,-225},{-221,-235,-229,-246,-177,-225},{-160,-177,-158,-187,-148,-162},{-209,-233,-225,-191,-209,-213},{-264,-171,-181,-201,-168,-207},{-156,-252,-233,-158,-185,-191},{-252,-227,-168,-235,-209,-227},{-211,-201,-158,-168,-203,-211},{-187,-217,-160,-154,-227,-215},{-254,-195,-168,-215,-252,-197},{-211,-146,-148,-171,-217,-221},{-238,-213,-242,-199,-183,-166},{-148,-142,-209,-217,-195,-225},{-256,-197,-246,-211,-199,-246},{-219,-173,-238,-142,-160,-250},{-162,-233,-248,-148,-158,-201},{-238,-146,-177,-201,-146,-191},{-181,-235,-242,-162,-199,-148},{-166,-264,-242,-205,-211,-173},{-231,-166,-168,-197,-189,-205},{-185,-158,-197,-148,-207,-223},{-168,-148,-227,-225,-235,-179},{-229,-189,-213,-231,-211,-254},{-260,-166,-260,-150,-146,-244},{-185,-142,-181,-168,-219,-246},{-264,-248,-166,-264,-221,-219},{-148,-201,-177,-166,-215,-162},{-152,-142,-168,-256,-233,-162},{-173,-217,-189,-150,-148,-160},{-231,-166,-217,-164,-146,-158},{-154,-252,-221,-187,-225,-250},{-211,-193,-150,-195,-233,-158},{-168,-193,-264,-238,-219,-229},{-211,-191,-179,-168,-223,-254},{-168,-231,-215,-235,-144,-144},{-189,-250,-150,-211,-181,-238},{-221,-248,-227,-238,-211,-181},{-207,-221,-154,-142,-221,-258},{-205,-258,-246,-193,-150,-152},{-181,-168,-205,-191,-193,-256},{-244,-179,-142,-152,-166,-152},{-231,-215,-233,-203,-227,-162},{-235,-231,-221,-183,-187,-205},{-201,-166,-211,-238,-248,-229},{-201,-152,-193,-146,-248,-248},{-258,-258,-144,-203,-164,-229},{-252,-162,-171,-260,-175,-173}},{{-229,-223,-262,-225,-150,-171},{-235,-231,-217,-252,-254,-207},{-229,-193,-150,-221,-252,-158},{-158,-258,-171,-191,-219,-179},{-248,-250,-187,-219,-189,-158},{-238,-242,-201,-185,-187,-183},{-264,-195,-199,-179,-209,-252},{-187,-146,-189,-193,-221,-179},{-223,-199,-260,-213,-256,-240},{-252,-258,-168,-258,-144,-146},{-227,-152,-179,-256,-207,-171},{-225,-254,-219,-183,-185,-252},{-162,-201,-191,-242,-197,-233},{-238,-252,-189,-211,-252,-240},{-221,-211,-258,-168,-181,-248},{-162,-233,-240,-242,-142,-199},{-240,-250,-235,-162,-233,-231},{-144,-189,-191,-205,-250,-175},{-158,-183,-215,-199,-207,-211},{-219,-187,-223,-179,-179,-211},{-262,-238,-225,-189,-209,-256},{-199,-262,-219,-240,-158,-175},{-175,-193,-221,-166,-171,-146},{-181,-254,-142,-240,-185,-213},{-175,-148,-164,-173,-171,-227},{-209,-211,-229,-264,-240,-191},{-179,-154,-211,-173,-150,-201},{-150,-162,-215,-235,-205,-225},{-231,-219,-148,-233,-264,-189},{-233,-225,-235,-187,-215,-203},{-246,-164,-160,-235,-264,-215},{-173,-211,-160,-225,-219,-191},{-213,-183,-254,-160,-244,-225},{-193,-223,-150,-217,-215,-148},{-250,-262,-173,-201,-203,-211},{-164,-175,-217,-173,-211,-156},{-195,-177,-264,-231,-238,-217},{-258,-205,-252,-211,-209,-177},{-154,-217,-215,-144,-211,-179},{-150,-250,-187,-173,-195,-197},{-175,-215,-264,-158,-177,-203},{-229,-162,-166,-146,-146,-225},{-146,-260,-227,-177,-152,-189},{-252,-213,-246,-244,-193,-211},{-173,-150,-144,-185,-223,-231},{-235,-209,-240,-164,-231,-231},{-193,-173,-150,-203,-262,-215},{-227,-260,-238,-207,-252,-164},{-187,-185,-146,-189,-144,-215},{-150,-207,-233,-160,-248,-223}}},{{{-116,-167,-135,-124,-198,-195},{-151,-118,-137,-158,-127,-134},{-140,-201,-138,-159,-195,-188},{-187,-147,-126,-138,-206,-164},{-161,-122,-114,-196,-196,-196},{-122,-124,-159,-164,-156,-184},{-118,-193,-132,-166,-195,-122},{-118,-159,-204,-114,-198,-187},{-180,-155,-114,-121,-124,-114},{-203,-138,-190,-122,-171,-190},{-163,-182,-171,-121,-147,-148},{-158,-118,-130,-132,-188,-171},{-135,-204,-156,-177,-134,-206},{-196,-174,-209,-182,-137,-193},{-138,-134,-150,-182,-174,-127},{-195,-208,-180,-148,-116,-127},{-159,-116,-122,-116,-201,-177},{-129,-122,-166,-142,-187,-147},{-208,-196,-192,-150,-124,-164},{-169,-179,-195,-195,-156,-135},{-127,-114,-172,-124,-151,-161},{-171,-156,-184,-153,-172,-196},{-200,-172,-196,-179,-192,-119},{-180,-153,-172,-203,-190,-126},{-171,-118,-147,-184,-203,-148},{-171,-124,-179,-135,-200,-163},{-167,-151,-127,-150,-190,-195},{-158,-151,-126,-200,-134,-159},{-179,-138,-127,-206,-177,-184},{-172,-147,-124,-172,-206,-201},{-172,-192,-204,-163,-132,-143},{-164,-137,-193,-156,-188,-150},{-166,-138,-172,-187,-182,-147},{-126,-198,-124,-121,-156,-188},{-138,-124,-182,-153,-175,-175},{-138,-153,-132,-127,-140,-129},{-132,-206,-121,-147,-167,-137},{-193,-145,-206,-174,-151,-187},{-208,-185,-142,-153,-130,-208},{-151,-130,-134,-134,-121,-182},{-147,-134,-182,-190,-134,-163},{-171,-114,-116,-163,-166,-164},{-130,-153,-188,-155,-203,-140},{-184,-116,-147,-113,-172,-164},{-184,-132,-174,-190,-140,-135},{-158,-143,-177,-118,-206,-142},{-127,-147,-179,-172,-169,-174},{-208,-193,-200,-169,-148,-153},{-124,-195,-134,-180,-148,-130},{-145,-124,-114,-185,-118,-171}},{{-163,-127,-145,-208,-193,-156},{-129,-150,-192,-190,-171,-203},{-179,-208,-169,-118,-124,-119},{-209,-192,-145,-200,-127,-161},{-122,-163,-200,-163,-164,-193},{-206,-132,-188,-159,-134,-171},{-185,-126,-113,-138,-163,-155},{-171,-169,-180,-145,-192,-119},{-137,-171,-172,-195,-155,-201},{-201,-185,-200,-159,-140,-163},{-185,-155,-127,-151,-190,-167},{-200,-161,-209,-167,-151,-179},{-171,-142,-161,-192,-169,-158},{-137,-193,-175,-145,-127,-138},{-167,-161,-130,-180,-169,-114},{-175,-137,-185,-184,-166,-122},{-209,-208,-114,-129,-190,-137},{-208,-129,-158,-206,-179,-113},{-204,-118,-187,-167,-134,-200},{-166,-185,-116,-204,-127,-129},{-145,-122,-206,-166,-166,-193},{-184,-180,-126,-158,-153,-172},{-169,-192,-116,-206,-155,-172},{-159,-182,-166,-145,-177,-182},{-198,-163,-151,-145,-182,-119},{-201,-142,-116,-147,-208,-143},{-180,-140,-130,-126,-113,-172},{-134,-138,-204,-159,-196,-204},{-172,-190,-129,-155,-121,-148},{-177,-159,-208,-164,-140,-192},{-180,-126,-137,-175,-156,-175},{-203,-122,-113,-184,-164,-148},{-193,-201,-132,-182,-118,-164},{-190,-138,-174,-196,-127,-208},{-175,-169,-142,-142,-119,-206},{-204,-169,-200,-113,-159,-114},{-132,-192,-143,-119,-137,-163},{-163,-148,-190,-172,-134,-201},{-188,-142,-121,-134,-184,-172},{-196,-196,-192,-163,-198,-122},{-145,-132,-119,-175,-116,-119},{-155,-175,-156,-193,-143,-208},{-137,-132,-134,-169,-153,-145},{-132,-169,-193,-193,-166,-179},{-150,-121,-203,-156,-203,-204},{-171,-174,-187,-206,-143,-114},{-118,-203,-135,-143,-167,-196},{-184,-114,-196,-172,-156,-150},{-148,-158,-150,-172,-161,-132},{-201,-161,-196,-142,-124,-114}},{{-204,-182,-127,-119,-124,-132},{-169,-116,-145,-209,-177,-121},{-182,-124,-126,-169,-182,-164},{-116,-196,-121,-206,-147,-127},{-196,-198,-138,-188,-156,-206},{-172,-150,-145,-113,-200,-156},{-158,-192,-137,-135,-166,-124},{-164,-204,-209,-184,-145,-140},{-201,-138,-190,-114,-135,-164},{-153,-180,-137,-114,-209,-190},{-119,-114,-163,-135,-126,-177},{-206,-137,-172,-166,-140,-155},{-124,-148,-156,-182,-200,-135},{-200,-164,-171,-161,-156,-208},{-167,-192,-171,-161,-129,-143},{-180,-192,-135,-137,-114,-151},{-140,-180,-116,-114,-204,-126},{-150,-114,-167,-195,-122,-169},{-177,-134,-143,-116,-122,-161},{-192,-174,-175,-200,-126,-184},{-142,-124,-201,-142,-134,-193},{-122,-137,-138,-171,-163,-209},{-167,-187,-163,-140,-129,-143},{-184,-204,-140,-196,-114,-138},{-200,-122,-113,-190,-151,-127},{-201,-163,-119,-119,-113,-208},{-169,-167,-156,-198,-156,-118},{-198,-188,-126,-187,-142,-122},{-140,-172,-166,-129,-118,-138},{-166,-175,-193,-200,-179,-135},{-155,-140,-114,-137,-129,-113},{-155,-147,-208,-158,-147,-204},{-140,-171,-164,-143,-143,-127},{-193,-150,-190,-190,-156,-113},{-113,-192,-161,-175,-129,-182},{-155,-192,-179,-155,-118,-182},{-147,-121,-190,-124,-116,-129},{-132,-208,-206,-190,-148,-195},{-137,-159,-118,-147,-209,-155},{-172,-140,-164,-188,-158,-182},{-116,-113,-196,-127,-124,-190},{-124,-179,-179,-150,-163,-126},{-163,-151,-151,-164,-137,-114},{-129,-147,-143,-150,-145,-209},{-127,-132,-209,-179,-203,-184},{-129,-127,-126,-175,-167,-134},{-188,-143,-193,-167,-134,-122},{-129,-164,-195,-124,-130,-209},{-132,-132,-185,-166,-113,-196},{-126,-163,-153,-190,-145,-116}}},{{{-259,-277,-284,-277,-187,-164},{-298,-226,-215,-180,-245,-210},{-231,-208,-289,-261,-293,-182},{-217,-238,-261,-201,-298,-270},{-296,-162,-182,-213,-201,-226},{-194,-199,-243,-291,-215,-185},{-171,-210,-240,-245,-199,-187},{-182,-231,-261,-194,-164,-300},{-284,-300,-208,-166,-240,-169},{-201,-252,-238,-208,-171,-194},{-182,-176,-189,-180,-268,-240},{-289,-261,-224,-217,-196,-256},{-247,-284,-219,-222,-210,-270},{-187,-245,-222,-291,-178,-187},{-194,-236,-296,-203,-240,-247},{-196,-213,-252,-289,-222,-277},{-240,-187,-176,-275,-245,-194},{-224,-233,-238,-273,-222,-247},{-219,-243,-171,-236,-284,-192},{-182,-173,-215,-206,-222,-300},{-164,-263,-289,-213,-182,-185},{-187,-182,-273,-275,-261,-201},{-254,-171,-256,-192,-249,-185},{-213,-226,-240,-229,-194,-176},{-219,-171,-247,-233,-268,-162},{-199,-162,-226,-196,-176,-245},{-238,-164,-199,-236,-243,-273},{-196,-194,-291,-224,-219,-273},{-213,-280,-187,-266,-192,-275},{-189,-268,-298,-219,-224,-293},{-291,-208,-187,-270,-236,-263},{-293,-293,-247,-196,-266,-261},{-259,-189,-173,-275,-268,-178},{-164,-189,-256,-280,-224,-194},{-240,-162,-180,-226,-189,-192},{-166,-187,-213,-224,-180,-210},{-164,-194,-231,-185,-194,-185},{-289,-162,-284,-182,-185,-236},{-169,-240,-286,-245,-254,-231},{-277,-201,-210,-266,-245,-219},{-254,-206,-189,-206,-208,-282},{-238,-300,-169,-233,-178,-256},{-164,-298,-203,-171,-273,-219},{-280,-282,-266,-185,-164,-171},{-169,-189,-201,-206,-199,-178},{-208,-182,-210,-201,-231,-194},{-273,-270,-164,-217,-222,-203},{-254,-268,-213,-187,-229,-277},{-233,-213,-289,-196,-182,-187},{-249,-166,-236,-182,-275,-231}},{{-259,-263,-286,-226,-282,-252},{-249,-208,-219,-296,-166,-277},{-206,-208,-206,-296,-164,-215},{-166,-169,-180,-249,-268,-273},{-240,-286,-236,-247,-229,-240},{-171,-254,-280,-203,-176,-233},{-192,-245,-296,-187,-169,-291},{-275,-169,-194,-199,-300,-256},{-273,-245,-215,-273,-208,-275},{-171,-196,-252,-196,-182,-196},{-229,-268,-219,-298,-224,-185},{-268,-245,-164,-296,-229,-247},{-273,-273,-238,-259,-291,-270},{-171,-178,-256,-282,-256,-182},{-256,-169,-217,-280,-192,-169},{-217,-291,-261,-213,-238,-270},{-289,-208,-226,-249,-231,-192},{-231,-213,-217,-233,-289,-243},{-300,-247,-282,-282,-222,-169},{-185,-282,-185,-178,-284,-286},{-300,-217,-249,-208,-231,-293},{-291,-291,-240,-298,-164,-185},{-217,-178,-185,-217,-247,-194},{-268,-296,-173,-187,-236,-226},{-166,-247,-226,-199,-254,-291},{-263,-180,-243,-245,-254,-236},{-263,-194,-213,-240,-252,-296},{-284,-270,-284,-226,-300,-270},{-162,-208,-286,-259,-226,-284},{-217,-293,-284,-261,-249,-286},{-180,-238,-196,-189,-296,-169},{-189,-208,-213,-275,-298,-259},{-247,-201,-206,-245,-201,-226},{-164,-199,-231,-178,-238,-275},{-273,-210,-169,-238,-194,-185},{-261,-215,-226,-213,-240,-176},{-215,-189,-215,-208,-189,-245},{-210,-270,-289,-176,-247,-275},{-261,-210,-208,-291,-259,-236},{-240,-194,-173,-282,-247,-300},{-266,-171,-176,-298,-185,-210},{-284,-210,-296,-289,-176,-284},{-289,-192,-182,-247,-277,-213},{-296,-226,-280,-259,-296,-222},{-194,-226,-194,-171,-293,-236},{-213,-229,-284,-171,-219,-268},{-164,-213,-226,-226,-261,-185},{-196,-263,-233,-217,-268,-178},{-194,-224,-240,-256,-291,-280},{-277,-266,-286,-247,-254,-273}},{{-259,-226,-217,-189,-249,-300},{-289,-284,-289,-247,-196,-180},{-254,-187,-291,-203,-192,-201},{-210,-215,-284,-213,-180,-182},{-182,-300,-238,-300,-208,-199},{-171,-196,-275,-277,-291,-178},{-226,-268,-213,-298,-270,-173},{-268,-210,-162,-277,-222,-171},{-176,-300,-280,-162,-280,-268},{-266,-261,-213,-245,-249,-238},{-245,-206,-277,-229,-268,-280},{-286,-240,-291,-210,-210,-236},{-162,-282,-249,-164,-293,-226},{-162,-201,-206,-178,-164,-206},{-199,-171,-291,-180,-282,-273},{-298,-273,-277,-270,-280,-178},{-231,-199,-298,-199,-236,-289},{-213,-217,-261,-201,-199,-182},{-164,-229,-201,-206,-277,-266},{-286,-178,-259,-166,-277,-164},{-247,-270,-162,-224,-203,-226},{-189,-247,-240,-187,-224,-259},{-231,-171,-236,-282,-201,-215},{-238,-180,-166,-243,-169,-164},{-298,-275,-270,-273,-254,-245},{-286,-259,-249,-291,-261,-273},{-180,-243,-173,-226,-182,-298},{-180,-240,-162,-259,-206,-289},{-277,-296,-296,-254,-171,-245},{-187,-296,-240,-224,-215,-252},{-284,-284,-263,-219,-259,-291},{-196,-273,-286,-164,-249,-261},{-254,-178,-280,-261,-233,-268},{-201,-249,-224,-215,-229,-224},{-233,-164,-266,-247,-259,-162},{-210,-291,-176,-268,-229,-233},{-259,-298,-259,-300,-284,-173},{-199,-213,-226,-171,-231,-284},{-270,-273,-243,-162,-291,-296},{-231,-249,-164,-196,-240,-289},{-266,-208,-270,-268,-240,-296},{-169,-236,-254,-275,-238,-263},{-300,-291,-268,-203,-289,-178},{-203,-224,-226,-261,-189,-291},{-282,-208,-275,-240,-162,-173},{-243,-187,-270,-263,-282,-300},{-192,-217,-256,-247,-215,-189},{-196,-245,-208,-243,-224,-280},{-249,-249,-169,-162,-268,-291},{-291,-247,-293,-277,-259,-178}}},{{{-193,-165,-180,-174,-278,-169},{-258,-265,-267,-267,-167,-195},{-158,-271,-167,-161,-219,-197},{-273,-189,-267,-243,-250,-161},{-152,-200,-252,-232,-195,-206},{-260,-171,-191,-219,-278,-269},{-276,-273,-250,-191,-245,-280},{-163,-202,-189,-276,-206,-224},{-189,-241,-193,-158,-263,-176},{-245,-213,-208,-197,-152,-165},{-241,-278,-219,-195,-239,-263},{-263,-193,-167,-269,-176,-267},{-210,-230,-165,-243,-158,-176},{-154,-169,-276,-239,-241,-213},{-278,-215,-252,-219,-167,-206},{-252,-226,-232,-254,-169,-258},{-245,-210,-265,-180,-280,-269},{-184,-195,-221,-239,-171,-215},{-252,-165,-178,-176,-254,-224},{-156,-260,-189,-260,-208,-163},{-234,-187,-245,-182,-230,-176},{-224,-197,-156,-278,-165,-167},{-241,-193,-178,-239,-167,-278},{-243,-237,-156,-197,-273,-210},{-267,-202,-276,-273,-254,-271},{-230,-260,-252,-178,-191,-232},{-256,-154,-176,-250,-256,-154},{-224,-250,-165,-176,-193,-191},{-154,-280,-161,-278,-273,-178},{-280,-280,-187,-219,-267,-269},{-206,-195,-263,-280,-184,-267},{-158,-273,-276,-252,-263,-165},{-182,-224,-180,-271,-156,-278},{-221,-226,-200,-215,-278,-226},{-276,-245,-234,-202,-256,-219},{-187,-213,-200,-178,-171,-237},{-260,-219,-169,-187,-243,-224},{-156,-202,-197,-204,-282,-167},{-232,-189,-158,-267,-256,-161},{-165,-271,-208,-278,-224,-158},{-217,-247,-171,-254,-197,-176},{-265,-195,-167,-187,-271,-226},{-189,-163,-204,-263,-273,-243},{-154,-163,-154,-210,-250,-163},{-267,-165,-243,-260,-280,-224},{-206,-156,-282,-247,-176,-193},{-245,-184,-184,-226,-152,-250},{-224,-258,-189,-184,-232,-250},{-239,-234,-189,-256,-158,-206},{-237,-263,-182,-208,-161,-204}},{{-202,-213,-258,-169,-163,-206},{-276,-265,-221,-158,-154,-265},{-217,-245,-197,-252,-265,-163},{-276,-219,-176,-154,-228,-217},{-271,-256,-200,-224,-158,-154},{-278,-208,-254,-208,-258,-247},{-241,-189,-152,-265,-278,-200},{-213,-269,-224,-167,-252,-189},{-169,-152,-154,-260,-193,-260},{-256,-178,-193,-254,-234,-187},{-256,-215,-271,-182,-221,-158},{-234,-208,-200,-282,-228,-254},{-278,-154,-161,-174,-232,-195},{-217,-206,-273,-276,-163,-217},{-280,-256,-226,-197,-152,-265},{-273,-171,-254,-263,-204,-197},{-247,-267,-254,-161,-237,-213},{-200,-260,-219,-241,-152,-215},{-161,-174,-252,-276,-219,-184},{-254,-204,-228,-184,-193,-187},{-208,-221,-243,-247,-234,-217},{-154,-200,-189,-213,-154,-208},{-224,-234,-226,-267,-224,-165},{-252,-180,-200,-154,-213,-158},{-234,-254,-256,-210,-182,-254},{-282,-152,-161,-195,-237,-154},{-210,-282,-156,-263,-163,-250},{-174,-158,-234,-243,-237,-178},{-158,-206,-167,-230,-247,-280},{-232,-158,-197,-208,-247,-256},{-184,-176,-182,-247,-265,-258},{-267,-232,-161,-265,-252,-210},{-154,-273,-215,-217,-254,-224},{-280,-239,-269,-256,-241,-180},{-254,-171,-232,-250,-213,-197},{-169,-273,-263,-269,-258,-215},{-193,-258,-176,-267,-234,-200},{-193,-156,-219,-202,-260,-273},{-165,-282,-247,-167,-187,-221},{-156,-176,-213,-267,-273,-169},{-247,-245,-189,-169,-243,-250},{-184,-165,-245,-161,-163,-271},{-200,-197,-232,-156,-278,-189},{-182,-215,-202,-280,-161,-174},{-158,-200,-252,-213,-256,-273},{-276,-187,-224,-195,-221,-221},{-195,-276,-230,-165,-180,-247},{-182,-228,-189,-152,-273,-219},{-195,-219,-208,-182,-152,-189},{-176,-169,-152,-250,-260,-245}},{{-206,-237,-174,-234,-239,-273},{-167,-226,-174,-252,-176,-267},{-221,-169,-256,-180,-263,-156},{-276,-219,-161,-241,-224,-206},{-252,-210,-213,-230,-176,-260},{-167,-193,-278,-180,-202,-269},{-260,-174,-237,-219,-184,-176},{-197,-269,-213,-269,-215,-258},{-271,-226,-182,-163,-252,-260},{-258,-152,-282,-154,-178,-176},{-234,-276,-161,-202,-184,-265},{-265,-271,-280,-187,-273,-169},{-195,-260,-202,-226,-232,-232},{-163,-226,-165,-269,-215,-245},{-167,-182,-178,-163,-260,-169},{-206,-165,-219,-269,-276,-273},{-269,-204,-161,-241,-191,-189},{-171,-165,-178,-191,-156,-174},{-273,-219,-273,-206,-224,-254},{-180,-234,-239,-161,-163,-254},{-189,-195,-221,-269,-224,-224},{-219,-260,-213,-271,-256,-230},{-247,-189,-278,-263,-234,-260},{-263,-224,-224,-163,-167,-217},{-271,-258,-237,-237,-171,-182},{-232,-282,-228,-174,-241,-161},{-163,-191,-243,-224,-202,-169},{-180,-158,-230,-202,-245,-280},{-224,-224,-215,-184,-241,-260},{-282,-254,-154,-252,-221,-265},{-215,-273,-247,-232,-176,-239},{-189,-265,-256,-217,-282,-250},{-197,-204,-158,-241,-208,-243},{-241,-267,-193,-154,-180,-278},{-180,-184,-258,-271,-273,-260},{-232,-256,-237,-250,-252,-193},{-176,-269,-221,-210,-271,-241},{-208,-254,-219,-200,-226,-184},{-161,-169,-161,-171,-278,-280},{-239,-237,-165,-187,-178,-202},{-187,-269,-250,-197,-230,-174},{-239,-282,-276,-224,-234,-206},{-204,-154,-202,-254,-219,-250},{-228,-243,-200,-241,-161,-158},{-243,-174,-182,-219,-213,-224},{-254,-276,-167,-210,-267,-243},{-263,-210,-215,-263,-228,-174},{-210,-197,-239,-217,-171,-228},{-210,-161,-158,-197,-250,-156},{-260,-230,-204,-263,-187,-217}}},{{{-340,-277,-192,-250,-207,-205},{-239,-215,-239,-223,-277,-213},{-319,-282,-186,-237,-319,-279},{-295,-298,-269,-200,-277,-245},{-295,-340,-319,-271,-338,-279},{-189,-330,-279,-274,-192,-205},{-234,-234,-192,-327,-322,-221},{-314,-314,-255,-245,-189,-271},{-253,-237,-317,-319,-237,-245},{-274,-277,-277,-338,-263,-189},{-245,-303,-247,-303,-213,-253},{-237,-285,-301,-287,-231,-317},{-279,-290,-290,-322,-231,-221},{-298,-295,-335,-234,-309,-343},{-311,-332,-271,-226,-221,-266},{-186,-332,-290,-245,-298,-237},{-290,-231,-303,-253,-229,-330},{-335,-237,-295,-301,-194,-309},{-295,-229,-213,-218,-263,-314},{-197,-325,-226,-192,-197,-197},{-343,-237,-255,-189,-207,-210},{-239,-269,-239,-192,-200,-215},{-303,-255,-245,-215,-247,-346},{-263,-290,-186,-213,-189,-229},{-234,-340,-277,-327,-263,-338},{-213,-242,-266,-295,-231,-237},{-303,-287,-210,-242,-242,-309},{-266,-229,-317,-322,-330,-330},{-234,-279,-306,-197,-213,-271},{-247,-271,-210,-330,-319,-327},{-338,-229,-213,-186,-231,-250},{-346,-215,-247,-290,-335,-218},{-322,-271,-285,-261,-282,-335},{-186,-298,-335,-285,-221,-335},{-306,-192,-226,-282,-290,-245},{-330,-205,-319,-205,-282,-322},{-197,-285,-317,-194,-207,-325},{-340,-261,-218,-213,-298,-301},{-287,-290,-242,-295,-194,-194},{-261,-218,-200,-277,-282,-301},{-226,-274,-271,-346,-314,-263},{-189,-250,-202,-213,-202,-197},{-340,-192,-242,-247,-239,-295},{-311,-269,-207,-258,-263,-303},{-239,-221,-205,-234,-271,-330},{-269,-306,-311,-298,-343,-309},{-200,-189,-242,-317,-343,-287},{-194,-207,-202,-226,-250,-271},{-250,-247,-295,-205,-229,-338},{-319,-205,-261,-290,-285,-189}},{{-223,-314,-343,-229,-210,-186},{-343,-213,-343,-234,-322,-322},{-274,-223,-330,-309,-303,-192},{-311,-322,-215,-192,-255,-290},{-253,-282,-242,-245,-245,-210},{-258,-258,-200,-340,-277,-279},{-202,-319,-223,-266,-266,-346},{-200,-279,-293,-245,-343,-298},{-277,-239,-279,-332,-194,-309},{-239,-229,-229,-338,-271,-221},{-293,-223,-335,-245,-346,-261},{-317,-207,-194,-266,-306,-245},{-338,-258,-192,-279,-200,-202},{-207,-322,-317,-309,-282,-266},{-295,-271,-311,-221,-189,-255},{-205,-295,-319,-200,-303,-205},{-274,-332,-293,-322,-322,-205},{-242,-192,-226,-290,-285,-215},{-250,-223,-258,-325,-338,-237},{-327,-338,-340,-322,-194,-309},{-282,-293,-229,-309,-343,-295},{-279,-218,-205,-314,-202,-335},{-269,-192,-285,-186,-200,-229},{-325,-340,-319,-189,-253,-192},{-258,-269,-213,-330,-306,-330},{-266,-221,-269,-215,-277,-239},{-250,-229,-301,-271,-226,-282},{-221,-295,-343,-210,-245,-274},{-340,-301,-218,-327,-226,-293},{-282,-325,-218,-215,-194,-266},{-231,-271,-338,-231,-290,-295},{-231,-197,-295,-338,-253,-237},{-210,-218,-335,-317,-234,-215},{-277,-340,-327,-319,-242,-282},{-303,-311,-322,-215,-261,-223},{-194,-253,-213,-335,-194,-343},{-301,-192,-319,-221,-237,-338},{-317,-194,-277,-295,-255,-239},{-266,-287,-301,-207,-311,-202},{-309,-293,-340,-200,-317,-285},{-258,-301,-269,-271,-205,-306},{-250,-202,-189,-330,-255,-343},{-255,-226,-237,-245,-285,-245},{-269,-253,-325,-343,-237,-194},{-285,-223,-325,-253,-322,-269},{-226,-303,-218,-332,-226,-343},{-327,-223,-325,-242,-226,-223},{-346,-234,-215,-332,-229,-258},{-218,-290,-231,-306,-223,-258},{-226,-285,-207,-221,-309,-258}},{{-250,-263,-213,-335,-309,-330},{-277,-309,-330,-207,-327,-311},{-317,-322,-277,-282,-215,-285},{-250,-306,-202,-319,-221,-338},{-340,-218,-213,-261,-245,-221},{-250,-277,-245,-221,-239,-258},{-207,-274,-338,-282,-186,-221},{-205,-346,-290,-340,-242,-210},{-322,-231,-255,-282,-290,-338},{-234,-311,-226,-221,-253,-319},{-245,-242,-306,-330,-311,-229},{-279,-346,-287,-189,-338,-295},{-194,-231,-301,-258,-223,-279},{-306,-242,-301,-266,-189,-239},{-335,-192,-207,-309,-319,-301},{-245,-205,-229,-213,-245,-295},{-237,-290,-215,-226,-340,-258},{-290,-277,-317,-192,-202,-343},{-205,-247,-194,-340,-330,-343},{-207,-263,-253,-186,-314,-231},{-298,-309,-202,-285,-306,-229},{-271,-242,-202,-221,-271,-237},{-335,-200,-290,-263,-335,-298},{-231,-343,-266,-290,-239,-210},{-306,-277,-258,-303,-322,-327},{-242,-221,-186,-295,-242,-253},{-194,-197,-335,-218,-285,-287},{-314,-247,-210,-215,-346,-255},{-223,-303,-226,-290,-207,-247},{-192,-277,-189,-290,-189,-221},{-247,-218,-253,-231,-317,-210},{-221,-306,-269,-234,-197,-210},{-330,-346,-340,-330,-239,-269},{-274,-277,-229,-247,-340,-314},{-325,-271,-258,-282,-306,-269},{-287,-213,-247,-293,-247,-298},{-218,-287,-247,-293,-221,-239},{-338,-340,-335,-186,-215,-234},{-343,-247,-229,-346,-330,-218},{-271,-226,-186,-239,-346,-192},{-261,-330,-255,-282,-255,-221},{-279,-295,-200,-311,-255,-189},{-266,-263,-322,-253,-207,-223},{-340,-245,-322,-311,-332,-335},{-218,-223,-301,-311,-186,-226},{-213,-247,-330,-335,-311,-295},{-231,-330,-253,-290,-226,-234},{-332,-314,-327,-314,-226,-317},{-253,-287,-311,-293,-215,-332},{-194,-290,-319,-346,-343,-346}}},{{{-302,-207,-238,-260,-300,-238},{-280,-316,-238,-241,-266,-274},{-199,-302,-260,-297,-280,-297},{-230,-202,-196,-263,-255,-266},{-328,-263,-255,-263,-342,-305},{-263,-232,-227,-286,-325,-249},{-347,-204,-252,-232,-311,-286},{-300,-356,-302,-246,-330,-269},{-202,-244,-333,-210,-255,-218},{-280,-361,-263,-196,-339,-199},{-350,-280,-297,-266,-218,-350},{-224,-216,-328,-300,-300,-319},{-274,-319,-358,-330,-266,-221},{-241,-342,-277,-221,-249,-294},{-207,-344,-297,-350,-283,-302},{-291,-269,-210,-252,-300,-291},{-302,-308,-258,-199,-358,-213},{-255,-280,-294,-356,-210,-356},{-305,-350,-294,-255,-330,-300},{-333,-286,-238,-308,-316,-325},{-364,-361,-328,-347,-246,-344},{-252,-241,-325,-350,-277,-280},{-300,-330,-249,-286,-300,-255},{-344,-314,-244,-204,-344,-328},{-283,-305,-353,-280,-266,-272},{-347,-204,-308,-252,-339,-244},{-311,-252,-199,-330,-356,-291},{-288,-288,-286,-342,-319,-308},{-216,-258,-347,-342,-202,-260},{-294,-316,-283,-277,-342,-274},{-280,-342,-302,-274,-224,-221},{-241,-244,-263,-358,-204,-235},{-314,-356,-216,-196,-269,-227},{-249,-269,-302,-216,-252,-249},{-241,-305,-347,-230,-288,-258},{-300,-204,-305,-347,-353,-207},{-277,-364,-297,-280,-364,-202},{-241,-280,-202,-196,-260,-246},{-325,-302,-316,-300,-356,-263},{-333,-277,-210,-210,-196,-202},{-333,-339,-266,-358,-207,-221},{-347,-216,-311,-249,-277,-221},{-224,-344,-302,-210,-353,-227},{-342,-311,-230,-328,-255,-353},{-353,-325,-277,-241,-196,-328},{-347,-300,-336,-294,-204,-255},{-294,-308,-241,-272,-196,-339},{-347,-286,-221,-246,-213,-199},{-342,-258,-235,-210,-358,-196},{-308,-311,-241,-280,-347,-314}},{{-274,-297,-269,-204,-266,-204},{-333,-227,-286,-291,-269,-322},{-252,-196,-213,-255,-300,-224},{-272,-361,-244,-235,-218,-227},{-347,-333,-356,-274,-207,-218},{-286,-202,-291,-283,-358,-311},{-294,-342,-221,-350,-246,-328},{-325,-204,-260,-230,-339,-280},{-294,-249,-344,-344,-308,-364},{-350,-280,-266,-258,-283,-283},{-272,-311,-308,-361,-196,-316},{-316,-305,-350,-361,-305,-302},{-246,-286,-274,-202,-353,-232},{-269,-350,-308,-336,-204,-333},{-302,-227,-196,-358,-252,-272},{-258,-294,-283,-361,-322,-300},{-199,-356,-344,-258,-218,-204},{-353,-277,-297,-302,-260,-339},{-263,-358,-333,-196,-224,-305},{-207,-300,-249,-241,-263,-300},{-213,-300,-330,-199,-358,-353},{-246,-288,-266,-344,-350,-227},{-356,-269,-328,-218,-305,-274},{-224,-255,-216,-238,-283,-207},{-358,-207,-238,-286,-294,-305},{-199,-255,-258,-260,-269,-263},{-255,-221,-232,-316,-252,-227},{-288,-207,-316,-272,-269,-297},{-339,-269,-266,-330,-347,-263},{-196,-216,-196,-325,-322,-199},{-344,-280,-260,-235,-339,-344},{-358,-319,-249,-328,-328,-230},{-238,-224,-322,-330,-224,-249},{-286,-300,-204,-266,-286,-216},{-263,-314,-241,-364,-216,-224},{-311,-322,-213,-199,-297,-353},{-216,-238,-333,-364,-235,-361},{-311,-246,-333,-353,-235,-319},{-196,-330,-325,-277,-266,-344},{-224,-300,-314,-344,-322,-199},{-314,-249,-358,-266,-249,-213},{-322,-266,-258,-199,-210,-308},{-224,-336,-322,-283,-288,-277},{-202,-280,-350,-361,-361,-283},{-255,-269,-216,-196,-328,-333},{-286,-274,-274,-266,-353,-238},{-344,-325,-339,-241,-316,-258},{-336,-347,-218,-325,-230,-199},{-342,-235,-269,-207,-336,-227},{-297,-353,-210,-263,-246,-325}},{{-356,-342,-328,-280,-305,-221},{-322,-255,-274,-277,-202,-305},{-291,-210,-216,-333,-344,-333},{-255,-255,-277,-244,-207,-288},{-269,-241,-213,-328,-297,-244},{-286,-308,-361,-325,-199,-258},{-221,-213,-221,-333,-288,-204},{-353,-199,-325,-328,-224,-272},{-227,-207,-330,-260,-339,-252},{-353,-336,-258,-204,-252,-244},{-314,-364,-311,-238,-213,-204},{-328,-305,-244,-258,-280,-308},{-246,-221,-311,-297,-235,-249},{-353,-277,-294,-319,-258,-297},{-246,-361,-347,-230,-291,-316},{-213,-361,-356,-269,-244,-263},{-344,-249,-196,-199,-344,-255},{-294,-336,-274,-235,-325,-358},{-300,-213,-221,-350,-224,-218},{-314,-291,-274,-322,-218,-258},{-344,-350,-230,-300,-294,-364},{-241,-308,-241,-347,-202,-241},{-263,-311,-199,-297,-204,-241},{-319,-207,-224,-350,-218,-342},{-277,-255,-210,-308,-199,-260},{-274,-249,-358,-300,-353,-358},{-330,-246,-252,-314,-325,-274},{-288,-347,-291,-227,-308,-249},{-286,-241,-252,-277,-274,-333},{-305,-272,-241,-210,-196,-322},{-230,-283,-213,-258,-294,-305},{-230,-204,-244,-244,-325,-302},{-266,-207,-210,-230,-207,-280},{-302,-325,-297,-302,-316,-294},{-319,-328,-353,-283,-218,-291},{-213,-213,-196,-358,-280,-314},{-333,-300,-364,-230,-325,-322},{-291,-199,-252,-297,-204,-316},{-235,-210,-358,-196,-308,-356},{-297,-196,-207,-238,-258,-305},{-218,-263,-246,-311,-291,-249},{-364,-238,-308,-238,-336,-252},{-283,-232,-288,-308,-356,-263},{-286,-356,-260,-356,-241,-238},{-277,-342,-252,-280,-255,-302},{-336,-199,-260,-235,-319,-238},{-325,-241,-238,-277,-199,-224},{-249,-305,-350,-316,-269,-216},{-204,-294,-342,-204,-300,-353},{-246,-230,-286,-308,-227,-241}}},{{{-353,-322,-252,-255,-263,-224},{-356,-322,-361,-364,-361,-344},{-230,-204,-328,-218,-330,-246},{-294,-330,-258,-210,-288,-297},{-328,-274,-333,-241,-347,-202},{-308,-322,-364,-227,-364,-202},{-291,-328,-344,-311,-344,-258},{-322,-361,-252,-207,-210,-196},{-347,-319,-230,-322,-272,-283},{-300,-314,-218,-246,-244,-305},{-350,-353,-344,-210,-364,-291},{-241,-199,-277,-213,-330,-196},{-224,-199,-196,-325,-252,-291},{-213,-353,-221,-347,-336,-218},{-252,-221,-246,-227,-322,-274},{-294,-266,-319,-305,-353,-308},{-227,-269,-210,-224,-350,-221},{-356,-344,-314,-286,-350,-199},{-294,-263,-325,-305,-204,-342},{-266,-336,-302,-216,-280,-339},{-227,-347,-325,-328,-216,-227},{-344,-207,-241,-294,-308,-241},{-258,-333,-252,-216,-344,-330},{-227,-207,-221,-227,-322,-314},{-361,-316,-218,-244,-364,-342},{-297,-269,-294,-252,-308,-336},{-358,-322,-347,-311,-235,-294},{-294,-350,-227,-263,-283,-333},{-218,-260,-202,-255,-339,-221},{-260,-202,-210,-336,-258,-297},{-199,-213,-353,-224,-347,-339},{-302,-314,-358,-246,-258,-249},{-260,-235,-213,-218,-294,-204},{-328,-322,-202,-207,-252,-300},{-342,-230,-319,-305,-344,-216},{-344,-260,-286,-224,-311,-353},{-235,-356,-294,-297,-252,-342},{-328,-235,-339,-269,-361,-288},{-244,-274,-252,-364,-280,-280},{-300,-339,-244,-199,-288,-266},{-232,-238,-207,-311,-302,-280},{-311,-230,-347,-353,-291,-330},{-196,-322,-213,-344,-283,-213},{-221,-291,-305,-244,-258,-356},{-202,-252,-300,-330,-283,-241},{-218,-316,-260,-297,-316,-227},{-300,-249,-322,-364,-333,-230},{-224,-207,-325,-286,-218,-199},{-258,-339,-230,-300,-339,-311},{-260,-204,-232,-336,-196,-300}},{{-288,-330,-269,-255,-227,-216},{-277,-283,-319,-235,-230,-207},{-196,-344,-216,-336,-325,-336},{-218,-255,-314,-224,-235,-305},{-202,-294,-319,-216,-336,-244},{-339,-255,-356,-218,-314,-283},{-238,-255,-272,-272,-336,-216},{-244,-286,-308,-207,-314,-291},{-339,-353,-260,-308,-350,-308},{-316,-325,-218,-344,-235,-361},{-316,-263,-364,-196,-258,-356},{-286,-286,-266,-350,-280,-322},{-235,-224,-210,-224,-333,-196},{-283,-325,-288,-305,-361,-300},{-244,-230,-302,-202,-210,-308},{-216,-325,-339,-339,-297,-330},{-244,-246,-353,-255,-235,-311},{-330,-280,-224,-227,-286,-249},{-204,-238,-364,-344,-308,-241},{-330,-302,-350,-342,-311,-328},{-221,-311,-311,-218,-207,-356},{-269,-316,-258,-241,-342,-336},{-230,-241,-218,-300,-344,-302},{-280,-291,-224,-339,-336,-297},{-260,-336,-316,-342,-300,-227},{-218,-230,-238,-263,-356,-319},{-344,-291,-300,-305,-216,-252},{-305,-241,-286,-204,-277,-213},{-199,-241,-249,-280,-272,-241},{-286,-336,-319,-314,-263,-344},{-316,-196,-347,-249,-342,-272},{-210,-350,-325,-272,-353,-246},{-342,-325,-286,-342,-199,-227},{-207,-319,-218,-213,-280,-347},{-322,-263,-286,-204,-347,-322},{-342,-238,-218,-305,-232,-347},{-269,-232,-269,-274,-238,-280},{-258,-316,-274,-322,-216,-361},{-272,-207,-330,-280,-224,-330},{-218,-364,-272,-277,-207,-344},{-260,-330,-297,-227,-204,-204},{-263,-330,-353,-252,-302,-210},{-249,-308,-358,-213,-213,-311},{-266,-263,-328,-358,-286,-216},{-266,-244,-216,-246,-297,-305},{-294,-283,-325,-291,-353,-319},{-260,-202,-314,-305,-227,-218},{-263,-294,-274,-319,-277,-266},{-249,-283,-210,-269,-263,-207},{-333,-300,-249,-333,-274,-364}},{{-350,-210,-207,-260,-207,-258},{-266,-249,-322,-199,-308,-224},{-266,-210,-288,-291,-300,-252},{-291,-314,-322,-297,-249,-204},{-224,-258,-353,-258,-232,-244},{-213,-216,-207,-230,-316,-297},{-322,-238,-196,-316,-319,-308},{-358,-221,-291,-213,-302,-244},{-311,-316,-305,-325,-238,-322},{-280,-263,-249,-311,-255,-258},{-319,-361,-272,-311,-249,-350},{-224,-210,-316,-207,-199,-230},{-342,-266,-207,-207,-330,-283},{-232,-255,-302,-244,-288,-347},{-227,-322,-241,-207,-286,-294},{-263,-213,-347,-249,-339,-280},{-207,-294,-224,-241,-333,-269},{-199,-302,-199,-302,-263,-319},{-216,-202,-204,-336,-210,-269},{-347,-344,-272,-210,-314,-333},{-252,-288,-238,-207,-308,-356},{-277,-246,-325,-361,-283,-336},{-252,-339,-260,-255,-302,-358},{-255,-291,-286,-260,-302,-330},{-224,-336,-274,-344,-325,-353},{-230,-255,-260,-319,-350,-238},{-241,-258,-350,-364,-227,-325},{-266,-333,-196,-227,-227,-305},{-260,-322,-344,-224,-246,-269},{-353,-241,-361,-358,-350,-274},{-213,-202,-207,-361,-302,-283},{-316,-274,-204,-353,-286,-305},{-204,-358,-356,-364,-288,-283},{-294,-221,-347,-263,-314,-336},{-244,-286,-322,-227,-297,-305},{-339,-291,-207,-300,-364,-336},{-305,-263,-221,-311,-269,-277},{-336,-294,-204,-230,-308,-350},{-319,-291,-291,-291,-244,-322},{-204,-350,-336,-280,-210,-356},{-330,-207,-207,-325,-286,-266},{-277,-221,-358,-280,-319,-274},{-241,-339,-316,-364,-246,-288},{-249,-232,-361,-308,-224,-305},{-230,-342,-308,-274,-286,-350},{-202,-263,-353,-269,-288,-244},{-328,-344,-353,-353,-196,-235},{-347,-297,-230,-241,-316,-204},{-258,-347,-221,-283,-311,-274},{-269,-280,-269,-241,-342,-274}}},{{{-314,-353,-294,-274,-249,-213},{-286,-283,-266,-361,-227,-353},{-266,-224,-314,-294,-213,-311},{-288,-216,-221,-361,-342,-342},{-300,-311,-263,-204,-207,-230},{-342,-272,-249,-297,-232,-249},{-235,-311,-244,-263,-294,-311},{-288,-244,-288,-333,-207,-358},{-230,-358,-210,-196,-342,-300},{-297,-291,-221,-204,-230,-238},{-325,-280,-302,-244,-244,-230},{-249,-249,-244,-227,-227,-202},{-230,-333,-319,-291,-300,-305},{-316,-316,-325,-364,-288,-305},{-286,-272,-216,-249,-216,-274},{-249,-260,-232,-199,-339,-230},{-235,-204,-196,-274,-274,-218},{-224,-358,-328,-294,-361,-316},{-344,-291,-364,-269,-305,-246},{-221,-314,-244,-252,-207,-283},{-333,-202,-350,-350,-218,-207},{-210,-300,-280,-235,-221,-311},{-235,-241,-364,-258,-207,-308},{-358,-196,-308,-235,-325,-333},{-314,-274,-207,-227,-202,-235},{-272,-328,-364,-246,-350,-238},{-260,-263,-330,-274,-342,-204},{-288,-319,-288,-288,-316,-308},{-288,-286,-252,-246,-210,-227},{-258,-213,-339,-336,-260,-342},{-252,-224,-274,-300,-224,-328},{-241,-263,-196,-258,-277,-319},{-347,-358,-196,-314,-302,-311},{-218,-235,-361,-350,-314,-227},{-316,-294,-353,-302,-221,-361},{-347,-311,-300,-246,-297,-246},{-202,-218,-302,-342,-274,-294},{-358,-241,-277,-249,-342,-328},{-311,-258,-302,-311,-213,-266},{-283,-238,-216,-353,-297,-258},{-260,-347,-235,-361,-364,-207},{-246,-246,-227,-277,-230,-258},{-199,-342,-235,-221,-300,-344},{-227,-361,-216,-364,-336,-244},{-269,-255,-316,-241,-342,-263},{-213,-207,-255,-252,-277,-322},{-199,-280,-361,-316,-294,-314},{-266,-280,-300,-216,-266,-218},{-291,-269,-302,-302,-202,-260},{-221,-344,-319,-314,-328,-322}},{{-297,-347,-210,-305,-311,-238},{-322,-252,-274,-336,-283,-196},{-277,-305,-333,-305,-263,-266},{-224,-353,-272,-353,-255,-297},{-300,-319,-221,-311,-216,-361},{-300,-272,-361,-216,-258,-319},{-325,-283,-336,-202,-252,-269},{-325,-227,-246,-344,-302,-291},{-246,-364,-280,-202,-202,-246},{-210,-235,-325,-314,-266,-224},{-330,-316,-288,-235,-263,-297},{-238,-249,-283,-294,-263,-314},{-308,-333,-305,-241,-224,-319},{-353,-302,-294,-347,-353,-300},{-269,-207,-347,-235,-255,-277},{-333,-305,-328,-322,-207,-238},{-204,-311,-319,-302,-288,-274},{-347,-221,-210,-305,-328,-232},{-342,-344,-330,-302,-294,-333},{-235,-216,-196,-283,-235,-314},{-210,-232,-277,-210,-221,-249},{-330,-224,-339,-347,-311,-308},{-336,-328,-213,-350,-364,-199},{-308,-272,-241,-356,-263,-347},{-249,-252,-358,-241,-246,-255},{-202,-230,-358,-277,-230,-210},{-227,-322,-319,-291,-277,-272},{-294,-202,-246,-342,-350,-319},{-260,-333,-227,-336,-210,-328},{-260,-263,-319,-322,-258,-274},{-300,-224,-353,-255,-204,-297},{-277,-252,-305,-300,-314,-325},{-246,-241,-358,-207,-269,-305},{-258,-311,-277,-288,-202,-216},{-224,-336,-316,-258,-210,-216},{-356,-213,-272,-347,-319,-224},{-297,-336,-199,-325,-328,-260},{-339,-232,-258,-207,-216,-263},{-224,-353,-277,-241,-353,-202},{-255,-358,-314,-350,-294,-336},{-232,-353,-274,-305,-196,-232},{-266,-350,-258,-252,-258,-328},{-269,-216,-224,-319,-232,-356},{-238,-216,-213,-232,-333,-336},{-361,-364,-308,-361,-302,-302},{-336,-230,-252,-246,-199,-297},{-347,-252,-272,-314,-235,-336},{-204,-336,-216,-196,-364,-274},{-286,-350,-255,-199,-305,-358},{-238,-302,-272,-283,-356,-204}},{{-216,-328,-364,-328,-238,-336},{-238,-350,-232,-350,-288,-277},{-344,-356,-350,-207,-199,-344},{-328,-244,-199,-297,-361,-305},{-283,-342,-288,-325,-319,-336},{-361,-319,-361,-358,-238,-221},{-305,-297,-336,-322,-316,-202},{-364,-314,-291,-224,-333,-356},{-246,-244,-241,-286,-339,-364},{-314,-353,-364,-196,-356,-272},{-260,-196,-221,-216,-322,-294},{-316,-319,-216,-364,-356,-266},{-316,-350,-255,-202,-350,-213},{-361,-272,-333,-302,-344,-283},{-260,-342,-328,-255,-358,-244},{-311,-249,-241,-252,-196,-230},{-272,-230,-274,-199,-358,-286},{-227,-232,-316,-204,-238,-328},{-235,-277,-202,-199,-283,-272},{-246,-319,-319,-244,-325,-280},{-272,-244,-266,-322,-350,-344},{-291,-333,-288,-330,-361,-249},{-358,-252,-238,-249,-350,-328},{-291,-246,-339,-339,-260,-305},{-244,-308,-218,-216,-196,-216},{-241,-358,-328,-325,-252,-255},{-202,-244,-196,-350,-330,-342},{-224,-302,-246,-283,-218,-322},{-230,-235,-350,-249,-300,-238},{-297,-358,-246,-361,-339,-230},{-288,-336,-238,-330,-361,-356},{-221,-314,-344,-252,-221,-241},{-227,-258,-308,-207,-288,-361},{-241,-227,-269,-238,-286,-305},{-210,-196,-204,-294,-204,-213},{-230,-269,-246,-342,-308,-353},{-235,-272,-246,-283,-263,-202},{-330,-260,-241,-241,-364,-274},{-199,-286,-336,-288,-316,-252},{-342,-249,-232,-260,-316,-216},{-230,-328,-196,-294,-333,-308},{-316,-202,-347,-344,-283,-286},{-350,-238,-300,-224,-322,-316},{-361,-230,-249,-258,-238,-232},{-274,-333,-277,-325,-216,-196},{-302,-258,-347,-252,-204,-252},{-319,-249,-227,-202,-305,-353},{-274,-358,-196,-308,-213,-286},{-356,-277,-288,-266,-244,-263},{-294,-244,-333,-325,-347,-322}}}}; // 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]={7,4,3,7,4,3,8,4,3,6,3,2,6,3,2,6,3,2,7,4,3,8,4,3,7,4,3,8,4,3,7,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,8,4,3,7,4,3,8,5,3,8,4,3,9,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}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,13,1,5,9,13,0,6,12,2,4,6,8,10,12,14,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,2,8,14,1,3,5,7,9,11,0,4,8,2,8,1,3,5,7,9,11,0,4,8,1,7,1,3,5,7,9,11,2,6,10,1,7,2,4,6,8,10,12,14,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,2,4,6,8,10,12,14,1,5,9,13,0,6,12,0,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,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,1,3,5,7,9,11,13,0,4,8,12,0,6,12,2,4,6,8,10,12,14,1,5,9,13,2,8,14,1,3,5,7,9,11,13,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,0,4,8,12,0,6,12,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,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,2,4,6,8,10,12,14,0,4,8,12,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,16,0,6,12,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14}; // set of start times of each shipment 
int SHets[SPN]={4,6,8,10,12,14,16,4,8,12,16,3,9,15,5,7,9,11,13,15,17,4,8,12,16,4,10,16,3,5,7,9,11,13,15,17,5,9,13,17,5,11,17,7,9,11,13,15,17,6,10,14,8,14,7,9,11,13,15,17,6,10,14,7,13,7,9,11,13,15,17,8,12,16,7,13,4,6,8,10,12,14,16,4,8,12,16,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,4,6,8,10,12,14,16,3,7,11,15,2,8,14,2,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,2,8,14,3,5,7,9,11,13,15,17,5,9,13,17,3,9,15,4,6,8,10,12,14,16,3,7,11,15,3,9,15,5,7,9,11,13,15,17,4,8,12,16,5,11,17,4,6,8,10,12,14,16,5,9,13,17,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,4,6,8,10,12,14,16,2,6,10,14,4,10,16,2,4,6,8,10,12,14,16,1,5,9,13,17,1,7,13,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,1,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15}; // set of end times of each shipment 
