int Dev = 30;// Deviation
extern const int CNN = 1;// Case Index
extern const int P = 6;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 36;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 735;//Number of shipments
extern const int SN = 20;//Number of scenarios at each stage
extern const int MBSN = 18;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6,6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17},{18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{10997,0,0,0,0,0},{11532,0,0,0,0,0},{11139,0,0,0,0,0},{11726,0,0,0,0,0},{11277,0,0,0,0,0},{11586,0,0,0,0,0},{11534,0,0,0,0,0},{11736,0,0,0,0,0},{11682,0,0,0,0,0},{11276,0,0,0,0,0},{10990,0,0,0,0,0},{11363,0,0,0,0,0},{11310,0,0,0,0,0},{11573,0,0,0,0,0},{11073,0,0,0,0,0},{12052,0,0,0,0,0},{11799,0,0,0,0,0},{11169,0,0,0,0,0},{11554,0,0,0,0,0},{11711,0,0,0,0,0}},{{11050,0,0,0,0,0},{11410,0,0,0,0,0},{11681,0,0,0,0,0},{11432,0,0,0,0,0},{11491,0,0,0,0,0},{11227,0,0,0,0,0},{11401,0,0,0,0,0},{10983,0,0,0,0,0},{11521,0,0,0,0,0},{11646,0,0,0,0,0},{11915,0,0,0,0,0},{11708,0,0,0,0,0},{11175,0,0,0,0,0},{11352,0,0,0,0,0},{11977,0,0,0,0,0},{11347,0,0,0,0,0},{10924,0,0,0,0,0},{11871,0,0,0,0,0},{11587,0,0,0,0,0},{11591,0,0,0,0,0}},{{11291,0,0,0,0,0},{11318,0,0,0,0,0},{11504,0,0,0,0,0},{11542,0,0,0,0,0},{11500,0,0,0,0,0},{11150,0,0,0,0,0},{11542,0,0,0,0,0},{11468,0,0,0,0,0},{11930,0,0,0,0,0},{11789,0,0,0,0,0},{11929,0,0,0,0,0},{11397,0,0,0,0,0},{12036,0,0,0,0,0},{11050,0,0,0,0,0},{11328,0,0,0,0,0},{11480,0,0,0,0,0},{11333,0,0,0,0,0},{11922,0,0,0,0,0},{11746,0,0,0,0,0},{11401,0,0,0,0,0}},{{11361,0,0,0,0,0},{11689,0,0,0,0,0},{11516,0,0,0,0,0},{11483,0,0,0,0,0},{12034,0,0,0,0,0},{11297,0,0,0,0,0},{11422,0,0,0,0,0},{11431,0,0,0,0,0},{11769,0,0,0,0,0},{11376,0,0,0,0,0},{11498,0,0,0,0,0},{11361,0,0,0,0,0},{11175,0,0,0,0,0},{11521,0,0,0,0,0},{11129,0,0,0,0,0},{10808,0,0,0,0,0},{11409,0,0,0,0,0},{11909,0,0,0,0,0},{11742,0,0,0,0,0},{11626,0,0,0,0,0}},{{11215,0,0,0,0,0},{11827,0,0,0,0,0},{11537,0,0,0,0,0},{11761,0,0,0,0,0},{11254,0,0,0,0,0},{11518,0,0,0,0,0},{11002,0,0,0,0,0},{11615,0,0,0,0,0},{11628,0,0,0,0,0},{11569,0,0,0,0,0},{11192,0,0,0,0,0},{11220,0,0,0,0,0},{12233,0,0,0,0,0},{11230,0,0,0,0,0},{11900,0,0,0,0,0},{11254,0,0,0,0,0},{11476,0,0,0,0,0},{11429,0,0,0,0,0},{11274,0,0,0,0,0},{12014,0,0,0,0,0}},{{11982,0,0,0,0,0},{11364,0,0,0,0,0},{11546,0,0,0,0,0},{11925,0,0,0,0,0},{11112,0,0,0,0,0},{11509,0,0,0,0,0},{11511,0,0,0,0,0},{11846,0,0,0,0,0},{11343,0,0,0,0,0},{11968,0,0,0,0,0},{11841,0,0,0,0,0},{11990,0,0,0,0,0},{11280,0,0,0,0,0},{11227,0,0,0,0,0},{11253,0,0,0,0,0},{11386,0,0,0,0,0},{11435,0,0,0,0,0},{11816,0,0,0,0,0},{11350,0,0,0,0,0},{11828,0,0,0,0,0}}},{{{-187,-177,-173,-246,-168,-201},{-213,-187,-191,-221,-164,-260},{-264,-189,-233,-260,-173,-258},{-183,-189,-179,-193,-205,-246},{-250,-248,-175,-195,-171,-219},{-240,-181,-187,-246,-240,-164},{-207,-185,-256,-160,-187,-254},{-262,-233,-235,-229,-144,-154},{-166,-252,-197,-227,-260,-264},{-195,-199,-166,-264,-166,-158},{-213,-246,-254,-158,-225,-154},{-158,-171,-217,-144,-231,-166},{-154,-217,-207,-242,-227,-146},{-179,-248,-156,-262,-254,-191},{-146,-227,-227,-168,-231,-162},{-211,-250,-240,-207,-193,-240},{-177,-262,-223,-242,-231,-238},{-248,-162,-171,-207,-158,-164},{-160,-227,-146,-183,-146,-231},{-175,-217,-215,-254,-213,-195}},{{-191,-156,-262,-156,-233,-181},{-223,-142,-185,-252,-227,-168},{-185,-199,-229,-211,-262,-238},{-221,-171,-164,-203,-175,-229},{-260,-142,-229,-264,-199,-152},{-258,-146,-168,-242,-256,-221},{-193,-150,-223,-181,-191,-221},{-146,-150,-185,-235,-207,-142},{-262,-246,-219,-181,-193,-177},{-240,-211,-164,-171,-179,-258},{-223,-240,-154,-197,-252,-164},{-215,-244,-152,-223,-160,-258},{-211,-242,-197,-221,-197,-156},{-189,-168,-142,-166,-185,-168},{-258,-166,-185,-205,-244,-185},{-231,-175,-207,-221,-179,-205},{-156,-242,-148,-168,-162,-154},{-256,-191,-207,-203,-209,-262},{-238,-193,-242,-242,-187,-185},{-221,-248,-213,-211,-191,-211}},{{-191,-177,-248,-154,-240,-154},{-144,-205,-248,-142,-211,-217},{-205,-189,-264,-173,-150,-191},{-199,-189,-195,-221,-203,-217},{-197,-258,-233,-152,-179,-215},{-150,-181,-238,-158,-205,-262},{-223,-197,-262,-181,-195,-258},{-166,-175,-181,-264,-203,-205},{-233,-256,-191,-191,-209,-221},{-246,-233,-201,-252,-173,-203},{-225,-168,-223,-209,-144,-146},{-173,-240,-264,-191,-223,-219},{-183,-217,-246,-201,-242,-262},{-160,-142,-195,-264,-233,-175},{-203,-225,-191,-168,-189,-150},{-215,-252,-189,-227,-238,-213},{-219,-156,-171,-250,-233,-195},{-171,-211,-256,-252,-191,-248},{-175,-166,-209,-235,-181,-150},{-195,-197,-219,-168,-148,-209}},{{-211,-235,-164,-158,-231,-154},{-225,-175,-144,-229,-223,-181},{-199,-240,-240,-183,-152,-191},{-219,-152,-197,-207,-164,-256},{-205,-168,-254,-146,-156,-235},{-189,-183,-203,-233,-177,-213},{-179,-264,-181,-195,-189,-201},{-254,-221,-187,-223,-142,-258},{-223,-199,-173,-252,-213,-199},{-252,-189,-225,-238,-209,-173},{-217,-168,-207,-250,-258,-256},{-173,-215,-213,-256,-262,-246},{-207,-148,-146,-191,-152,-229},{-244,-203,-189,-164,-209,-225},{-219,-152,-183,-195,-175,-146},{-181,-199,-213,-189,-262,-201},{-225,-162,-148,-203,-144,-166},{-162,-262,-199,-264,-152,-227},{-229,-256,-158,-162,-238,-201},{-244,-173,-215,-193,-191,-231}},{{-203,-179,-160,-193,-150,-238},{-175,-193,-233,-193,-142,-244},{-219,-199,-231,-162,-183,-158},{-244,-201,-160,-229,-250,-240},{-195,-256,-158,-187,-256,-177},{-150,-254,-146,-217,-242,-150},{-231,-213,-142,-207,-246,-142},{-201,-264,-164,-211,-209,-205},{-156,-160,-205,-183,-197,-209},{-189,-142,-225,-148,-235,-179},{-154,-229,-175,-171,-148,-168},{-209,-179,-215,-144,-221,-252},{-154,-187,-177,-150,-250,-254},{-223,-152,-160,-144,-260,-209},{-189,-250,-148,-164,-260,-215},{-250,-177,-175,-250,-179,-199},{-209,-156,-217,-148,-144,-250},{-160,-201,-183,-221,-229,-160},{-203,-262,-189,-175,-173,-225},{-144,-227,-248,-209,-256,-262}},{{-154,-209,-205,-250,-250,-197},{-252,-256,-217,-142,-246,-256},{-160,-173,-175,-156,-205,-235},{-219,-238,-189,-187,-250,-262},{-164,-154,-177,-207,-175,-203},{-150,-242,-252,-162,-195,-146},{-225,-233,-221,-177,-175,-258},{-191,-235,-258,-144,-215,-173},{-207,-191,-240,-168,-162,-203},{-223,-175,-187,-189,-156,-203},{-173,-215,-256,-201,-240,-229},{-233,-205,-166,-248,-231,-146},{-154,-185,-213,-154,-235,-233},{-146,-168,-173,-197,-197,-229},{-213,-146,-219,-171,-248,-197},{-195,-219,-199,-260,-156,-221},{-173,-177,-191,-164,-189,-256},{-252,-219,-173,-203,-199,-201},{-246,-238,-201,-160,-175,-219},{-223,-203,-248,-181,-193,-152}}},{{{-200,-134,-203,-184,-147,-143},{-182,-116,-169,-182,-204,-187},{-184,-201,-122,-124,-163,-192},{-187,-203,-169,-142,-209,-147},{-185,-187,-174,-174,-140,-179},{-190,-177,-118,-198,-174,-204},{-203,-180,-171,-158,-129,-171},{-145,-134,-195,-158,-145,-188},{-129,-180,-150,-164,-113,-159},{-161,-114,-208,-195,-159,-142},{-113,-163,-206,-153,-159,-172},{-180,-184,-119,-142,-175,-121},{-151,-198,-175,-209,-134,-113},{-182,-150,-206,-126,-143,-193},{-206,-151,-195,-135,-161,-167},{-171,-203,-148,-175,-156,-124},{-163,-130,-122,-163,-138,-172},{-153,-150,-167,-193,-148,-185},{-206,-137,-132,-158,-201,-171},{-119,-195,-121,-130,-192,-126}},{{-184,-145,-138,-126,-135,-145},{-118,-127,-182,-190,-201,-137},{-119,-148,-155,-163,-164,-200},{-159,-172,-204,-118,-142,-192},{-175,-193,-177,-114,-140,-184},{-182,-114,-114,-175,-167,-147},{-138,-167,-126,-143,-169,-201},{-121,-155,-172,-161,-142,-138},{-135,-182,-209,-167,-148,-188},{-185,-161,-143,-122,-155,-179},{-167,-135,-174,-179,-200,-201},{-184,-175,-129,-206,-159,-198},{-185,-201,-153,-129,-130,-167},{-145,-208,-158,-134,-177,-147},{-167,-153,-130,-196,-159,-153},{-159,-113,-182,-177,-182,-155},{-187,-127,-140,-134,-134,-145},{-158,-166,-121,-174,-142,-175},{-164,-142,-203,-166,-159,-187},{-132,-198,-158,-118,-206,-198}},{{-140,-129,-126,-127,-148,-190},{-164,-151,-201,-209,-147,-158},{-195,-195,-203,-187,-190,-113},{-142,-145,-175,-138,-206,-185},{-127,-175,-175,-142,-167,-155},{-135,-192,-124,-177,-114,-190},{-135,-135,-116,-138,-190,-164},{-175,-126,-203,-174,-116,-206},{-155,-127,-195,-132,-114,-161},{-122,-188,-158,-147,-179,-155},{-204,-127,-208,-153,-192,-179},{-145,-164,-182,-180,-140,-156},{-195,-164,-198,-179,-153,-195},{-158,-192,-196,-135,-193,-196},{-171,-161,-175,-159,-151,-185},{-171,-140,-134,-201,-142,-193},{-129,-127,-185,-182,-166,-129},{-206,-180,-134,-169,-153,-132},{-126,-206,-148,-203,-153,-124},{-156,-179,-190,-138,-190,-137}},{{-174,-167,-145,-201,-158,-172},{-185,-174,-172,-130,-114,-114},{-196,-209,-151,-159,-209,-175},{-156,-121,-204,-114,-198,-206},{-179,-184,-185,-169,-166,-164},{-201,-119,-195,-114,-124,-185},{-209,-140,-113,-145,-158,-122},{-180,-163,-196,-195,-132,-148},{-155,-163,-140,-185,-206,-147},{-172,-203,-206,-138,-198,-130},{-145,-119,-179,-148,-198,-129},{-153,-206,-116,-198,-122,-171},{-147,-185,-185,-190,-142,-155},{-156,-206,-124,-192,-155,-134},{-130,-147,-171,-179,-140,-138},{-130,-147,-206,-126,-148,-114},{-180,-200,-171,-151,-174,-118},{-138,-113,-204,-113,-147,-180},{-177,-151,-159,-193,-124,-135},{-145,-140,-187,-177,-179,-113}},{{-196,-179,-119,-159,-196,-118},{-145,-177,-121,-193,-137,-158},{-127,-129,-156,-158,-166,-195},{-182,-155,-147,-204,-142,-198},{-145,-208,-145,-135,-180,-145},{-121,-172,-150,-132,-175,-130},{-135,-164,-195,-206,-148,-118},{-198,-118,-166,-113,-188,-177},{-126,-164,-148,-193,-200,-180},{-126,-175,-116,-156,-180,-150},{-132,-142,-140,-127,-193,-114},{-184,-138,-204,-134,-164,-166},{-179,-158,-208,-184,-156,-201},{-196,-195,-119,-180,-188,-150},{-113,-188,-171,-119,-148,-208},{-175,-132,-163,-192,-203,-135},{-124,-158,-206,-126,-203,-198},{-190,-129,-122,-164,-164,-118},{-204,-164,-175,-190,-143,-158},{-171,-124,-142,-182,-140,-142}},{{-161,-137,-145,-167,-148,-150},{-124,-145,-174,-179,-172,-174},{-174,-153,-182,-166,-198,-127},{-161,-193,-193,-195,-171,-158},{-206,-200,-137,-156,-140,-172},{-124,-147,-169,-135,-164,-122},{-209,-190,-167,-195,-122,-203},{-114,-148,-193,-122,-129,-190},{-204,-121,-119,-166,-204,-190},{-182,-156,-198,-190,-156,-203},{-198,-143,-201,-184,-124,-145},{-116,-179,-188,-114,-206,-204},{-132,-179,-135,-138,-118,-196},{-156,-155,-190,-201,-188,-206},{-163,-130,-203,-209,-145,-142},{-174,-159,-208,-150,-140,-208},{-113,-161,-145,-124,-200,-151},{-130,-124,-130,-209,-134,-122},{-187,-151,-177,-140,-196,-196},{-134,-161,-163,-175,-195,-147}}},{{{-270,-224,-206,-240,-233,-162},{-270,-249,-201,-215,-289,-238},{-259,-187,-273,-169,-247,-180},{-224,-210,-293,-224,-296,-180},{-182,-178,-171,-194,-203,-289},{-206,-187,-293,-231,-298,-273},{-215,-226,-217,-243,-217,-238},{-171,-182,-166,-296,-298,-284},{-201,-266,-236,-215,-213,-282},{-280,-162,-273,-182,-252,-259},{-182,-291,-162,-185,-173,-270},{-240,-261,-173,-256,-189,-275},{-254,-215,-203,-261,-199,-286},{-180,-229,-176,-222,-178,-162},{-291,-189,-192,-280,-219,-189},{-247,-280,-231,-298,-222,-176},{-231,-266,-192,-261,-213,-261},{-300,-166,-245,-162,-275,-201},{-298,-277,-219,-203,-196,-162},{-289,-254,-217,-238,-180,-296}},{{-192,-185,-219,-166,-187,-194},{-261,-187,-259,-185,-196,-282},{-238,-233,-282,-266,-169,-208},{-268,-245,-298,-226,-199,-249},{-293,-247,-185,-243,-206,-171},{-275,-229,-173,-243,-282,-213},{-282,-169,-176,-215,-189,-254},{-300,-203,-284,-162,-192,-266},{-231,-217,-273,-189,-196,-226},{-245,-210,-217,-289,-249,-261},{-194,-296,-247,-256,-256,-189},{-217,-238,-219,-166,-173,-284},{-169,-176,-169,-199,-233,-270},{-275,-275,-273,-284,-226,-201},{-166,-252,-270,-222,-300,-178},{-277,-300,-263,-192,-187,-203},{-261,-224,-236,-201,-180,-222},{-291,-208,-266,-282,-275,-296},{-243,-187,-270,-298,-199,-252},{-206,-270,-238,-296,-300,-289}},{{-224,-273,-164,-298,-169,-201},{-189,-180,-189,-233,-259,-162},{-176,-254,-266,-284,-173,-254},{-231,-238,-291,-162,-270,-217},{-256,-275,-240,-224,-247,-189},{-194,-162,-238,-187,-245,-203},{-213,-187,-254,-171,-252,-254},{-291,-296,-298,-185,-266,-203},{-270,-231,-275,-270,-164,-182},{-192,-259,-286,-247,-219,-201},{-178,-169,-231,-256,-238,-249},{-275,-247,-261,-192,-266,-215},{-217,-215,-194,-284,-236,-213},{-284,-226,-229,-210,-192,-240},{-169,-178,-270,-180,-224,-194},{-196,-284,-199,-215,-233,-284},{-247,-280,-254,-192,-164,-261},{-236,-300,-238,-270,-256,-261},{-277,-291,-275,-270,-280,-293},{-286,-300,-254,-256,-231,-236}},{{-196,-236,-215,-243,-180,-243},{-201,-231,-247,-282,-164,-243},{-298,-196,-164,-222,-280,-162},{-252,-286,-238,-231,-164,-203},{-238,-296,-219,-277,-231,-300},{-210,-275,-166,-185,-268,-256},{-280,-229,-189,-270,-192,-259},{-192,-275,-178,-273,-222,-182},{-280,-203,-286,-171,-277,-213},{-298,-233,-226,-291,-192,-196},{-296,-256,-254,-277,-229,-208},{-166,-240,-226,-249,-222,-206},{-196,-277,-171,-169,-280,-182},{-236,-266,-280,-266,-192,-286},{-240,-189,-180,-245,-263,-277},{-240,-224,-277,-215,-233,-252},{-252,-164,-171,-215,-256,-259},{-164,-231,-273,-226,-201,-236},{-289,-268,-224,-229,-266,-282},{-222,-210,-217,-254,-213,-273}},{{-254,-224,-300,-233,-256,-189},{-261,-280,-222,-208,-173,-284},{-273,-166,-263,-229,-229,-203},{-238,-277,-222,-182,-286,-203},{-236,-286,-233,-189,-185,-256},{-189,-236,-280,-245,-171,-284},{-169,-206,-263,-208,-243,-166},{-199,-236,-236,-226,-280,-254},{-259,-247,-164,-222,-286,-224},{-208,-226,-259,-270,-293,-182},{-233,-259,-273,-233,-259,-259},{-162,-194,-182,-162,-210,-180},{-300,-282,-245,-270,-300,-277},{-275,-176,-194,-286,-176,-199},{-210,-252,-201,-196,-171,-284},{-300,-263,-245,-210,-222,-263},{-240,-273,-173,-286,-215,-206},{-194,-203,-196,-296,-215,-263},{-164,-266,-243,-182,-215,-180},{-222,-219,-252,-238,-206,-196}},{{-243,-256,-266,-273,-206,-164},{-162,-173,-215,-199,-226,-217},{-206,-176,-291,-298,-192,-208},{-185,-296,-284,-259,-286,-261},{-300,-233,-196,-206,-291,-231},{-282,-245,-208,-215,-194,-291},{-199,-206,-289,-178,-182,-280},{-296,-284,-282,-270,-213,-164},{-284,-194,-182,-273,-192,-254},{-238,-226,-263,-293,-171,-254},{-203,-240,-182,-300,-229,-215},{-293,-300,-291,-199,-206,-166},{-233,-192,-222,-268,-178,-240},{-249,-203,-162,-240,-266,-189},{-270,-286,-270,-238,-252,-187},{-180,-270,-217,-268,-194,-208},{-240,-259,-164,-273,-293,-210},{-298,-213,-249,-229,-254,-300},{-189,-293,-240,-291,-259,-189},{-201,-178,-238,-275,-194,-222}}},{{{-174,-156,-182,-156,-210,-208},{-230,-278,-176,-224,-204,-221},{-213,-273,-237,-278,-176,-169},{-180,-241,-217,-258,-247,-184},{-184,-158,-174,-202,-191,-169},{-241,-152,-217,-178,-250,-174},{-191,-280,-250,-269,-154,-269},{-269,-180,-156,-206,-252,-154},{-228,-254,-250,-167,-189,-191},{-273,-189,-152,-243,-256,-206},{-208,-204,-206,-280,-252,-165},{-254,-269,-226,-237,-197,-254},{-182,-202,-263,-208,-195,-180},{-250,-234,-206,-254,-260,-156},{-167,-165,-224,-158,-202,-234},{-265,-152,-180,-265,-184,-280},{-163,-243,-208,-256,-234,-202},{-171,-241,-213,-161,-178,-189},{-169,-254,-180,-237,-258,-250},{-210,-178,-182,-171,-258,-250}},{{-187,-226,-202,-171,-193,-256},{-237,-250,-200,-154,-163,-247},{-187,-176,-213,-182,-254,-247},{-152,-271,-217,-243,-213,-250},{-224,-197,-226,-237,-232,-204},{-156,-256,-269,-200,-247,-265},{-208,-191,-167,-202,-208,-182},{-256,-215,-193,-260,-224,-224},{-187,-278,-247,-197,-226,-263},{-195,-193,-258,-239,-178,-167},{-169,-167,-273,-204,-161,-260},{-167,-250,-280,-252,-191,-269},{-260,-237,-163,-195,-193,-176},{-269,-243,-213,-245,-247,-237},{-195,-165,-276,-252,-217,-213},{-165,-161,-184,-208,-273,-252},{-224,-208,-182,-204,-178,-154},{-178,-193,-247,-276,-171,-260},{-239,-167,-197,-156,-204,-167},{-208,-165,-200,-161,-210,-206}},{{-234,-273,-234,-250,-278,-158},{-189,-245,-224,-154,-213,-200},{-161,-267,-243,-165,-180,-210},{-267,-154,-169,-232,-180,-282},{-258,-191,-256,-174,-269,-204},{-228,-202,-178,-232,-247,-224},{-200,-169,-202,-217,-271,-258},{-191,-161,-178,-169,-241,-239},{-165,-250,-258,-174,-204,-276},{-204,-258,-234,-226,-265,-217},{-210,-167,-276,-176,-152,-282},{-239,-230,-152,-174,-163,-204},{-263,-232,-243,-269,-189,-245},{-256,-178,-219,-154,-228,-195},{-195,-239,-158,-171,-204,-187},{-154,-154,-213,-258,-258,-250},{-204,-239,-228,-182,-267,-163},{-280,-193,-215,-260,-256,-197},{-258,-215,-273,-282,-213,-243},{-174,-213,-269,-237,-206,-204}},{{-195,-224,-260,-182,-156,-247},{-213,-206,-152,-193,-158,-254},{-169,-239,-226,-163,-182,-206},{-178,-265,-228,-258,-234,-156},{-263,-247,-239,-221,-241,-226},{-269,-260,-195,-217,-282,-167},{-197,-217,-243,-210,-182,-232},{-254,-219,-282,-221,-204,-167},{-276,-165,-239,-197,-187,-271},{-245,-230,-265,-217,-226,-232},{-180,-187,-154,-169,-176,-178},{-260,-202,-230,-230,-282,-163},{-165,-260,-200,-215,-252,-221},{-210,-174,-163,-282,-232,-280},{-187,-193,-210,-191,-282,-197},{-269,-163,-210,-234,-184,-176},{-202,-250,-252,-161,-263,-156},{-267,-193,-258,-156,-156,-213},{-278,-215,-282,-152,-219,-206},{-171,-265,-171,-250,-260,-156}},{{-221,-273,-245,-174,-169,-230},{-230,-200,-265,-265,-176,-167},{-180,-165,-234,-228,-200,-169},{-182,-230,-256,-276,-206,-152},{-273,-154,-280,-263,-282,-252},{-276,-267,-252,-230,-256,-230},{-247,-226,-171,-180,-239,-176},{-271,-256,-271,-161,-174,-280},{-237,-243,-215,-154,-228,-237},{-158,-224,-152,-208,-263,-178},{-280,-226,-217,-267,-232,-191},{-206,-226,-215,-158,-278,-273},{-184,-182,-167,-171,-228,-241},{-161,-282,-232,-221,-189,-217},{-219,-254,-174,-156,-221,-256},{-169,-269,-230,-195,-193,-174},{-161,-278,-234,-276,-189,-241},{-254,-152,-254,-176,-217,-265},{-206,-195,-245,-156,-158,-195},{-260,-269,-174,-278,-219,-169}},{{-234,-180,-250,-265,-241,-221},{-219,-154,-221,-254,-200,-228},{-273,-208,-282,-156,-156,-247},{-191,-271,-278,-224,-161,-171},{-165,-165,-215,-180,-250,-245},{-167,-213,-230,-154,-152,-269},{-280,-195,-163,-169,-228,-176},{-256,-165,-278,-204,-200,-243},{-187,-195,-239,-241,-217,-269},{-278,-210,-234,-204,-182,-278},{-193,-221,-252,-265,-208,-278},{-247,-184,-280,-197,-260,-232},{-234,-169,-174,-154,-215,-230},{-187,-265,-191,-169,-208,-184},{-176,-197,-254,-200,-221,-217},{-167,-282,-169,-176,-247,-193},{-180,-230,-184,-243,-200,-158},{-217,-258,-260,-174,-171,-224},{-273,-224,-189,-165,-187,-189},{-243,-252,-237,-232,-171,-204}}},{{{-332,-266,-295,-293,-237,-311},{-266,-301,-253,-245,-303,-250},{-197,-338,-237,-269,-218,-298},{-330,-239,-279,-210,-301,-306},{-317,-263,-263,-287,-338,-213},{-338,-207,-311,-266,-282,-340},{-200,-247,-263,-237,-266,-266},{-335,-253,-314,-285,-274,-285},{-258,-298,-309,-255,-221,-194},{-282,-237,-218,-266,-213,-202},{-325,-234,-271,-266,-287,-218},{-343,-245,-319,-340,-226,-279},{-263,-247,-189,-309,-311,-218},{-343,-338,-330,-332,-221,-186},{-234,-277,-258,-192,-189,-223},{-343,-247,-282,-327,-207,-295},{-319,-215,-192,-266,-247,-327},{-207,-215,-223,-210,-293,-290},{-258,-332,-314,-242,-192,-261},{-295,-202,-250,-258,-253,-239}},{{-200,-218,-223,-218,-295,-325},{-332,-221,-207,-274,-237,-290},{-253,-346,-231,-277,-261,-295},{-269,-287,-343,-335,-189,-197},{-311,-229,-303,-253,-223,-215},{-215,-306,-250,-266,-332,-223},{-314,-186,-255,-293,-343,-213},{-197,-282,-311,-234,-263,-231},{-295,-271,-186,-253,-274,-237},{-263,-223,-306,-231,-295,-210},{-317,-239,-338,-309,-186,-293},{-218,-274,-338,-226,-338,-245},{-197,-253,-258,-247,-287,-327},{-269,-290,-223,-330,-263,-218},{-314,-239,-343,-253,-277,-309},{-242,-239,-322,-327,-237,-194},{-253,-295,-263,-317,-274,-309},{-279,-229,-295,-261,-207,-271},{-237,-197,-303,-319,-287,-295},{-200,-223,-192,-335,-213,-210}},{{-261,-200,-207,-306,-282,-245},{-239,-309,-221,-319,-218,-221},{-255,-346,-311,-215,-247,-197},{-306,-231,-261,-327,-327,-279},{-253,-189,-327,-306,-274,-279},{-218,-253,-261,-205,-309,-255},{-330,-189,-223,-245,-330,-237},{-309,-338,-266,-205,-271,-325},{-346,-261,-309,-319,-293,-213},{-215,-317,-239,-285,-271,-189},{-330,-309,-335,-309,-332,-200},{-327,-194,-237,-234,-234,-258},{-285,-200,-335,-301,-340,-197},{-205,-338,-332,-245,-242,-263},{-221,-194,-239,-327,-226,-282},{-282,-239,-210,-200,-210,-279},{-205,-346,-242,-192,-319,-285},{-317,-271,-239,-330,-229,-247},{-218,-247,-231,-226,-269,-237},{-322,-343,-226,-226,-287,-346}},{{-210,-189,-274,-255,-231,-311},{-330,-303,-311,-282,-213,-295},{-301,-340,-340,-245,-202,-340},{-245,-301,-335,-261,-282,-255},{-322,-309,-239,-186,-282,-242},{-303,-229,-229,-261,-247,-282},{-338,-255,-274,-258,-271,-200},{-295,-255,-285,-202,-253,-266},{-287,-202,-314,-303,-295,-237},{-223,-231,-274,-271,-229,-205},{-186,-234,-213,-346,-298,-279},{-253,-295,-266,-261,-218,-287},{-332,-215,-239,-231,-229,-247},{-269,-247,-306,-221,-189,-282},{-207,-245,-242,-343,-210,-287},{-221,-330,-239,-239,-202,-277},{-335,-197,-309,-343,-309,-221},{-340,-322,-205,-322,-298,-194},{-274,-223,-311,-335,-213,-279},{-186,-306,-285,-332,-247,-301}},{{-200,-197,-226,-200,-279,-269},{-266,-317,-200,-311,-293,-192},{-242,-309,-301,-205,-290,-250},{-205,-237,-277,-279,-279,-322},{-245,-186,-250,-298,-295,-189},{-311,-330,-218,-317,-229,-223},{-266,-221,-266,-197,-261,-330},{-325,-231,-335,-340,-255,-346},{-261,-207,-290,-223,-290,-261},{-247,-231,-327,-309,-271,-338},{-207,-192,-325,-306,-229,-279},{-319,-261,-229,-327,-231,-239},{-340,-309,-332,-213,-253,-226},{-234,-223,-226,-327,-303,-210},{-322,-295,-301,-210,-290,-327},{-231,-263,-210,-205,-221,-250},{-309,-261,-189,-332,-311,-290},{-245,-253,-285,-221,-293,-346},{-239,-205,-301,-266,-311,-306},{-205,-306,-213,-322,-239,-229}},{{-330,-271,-279,-258,-346,-295},{-330,-205,-245,-266,-325,-306},{-226,-314,-293,-226,-213,-335},{-253,-202,-197,-295,-218,-322},{-271,-239,-186,-285,-207,-250},{-309,-186,-290,-258,-200,-338},{-215,-346,-223,-263,-287,-340},{-332,-271,-282,-229,-285,-301},{-194,-346,-266,-234,-253,-218},{-253,-311,-282,-317,-301,-186},{-330,-271,-247,-285,-309,-197},{-223,-317,-269,-277,-298,-266},{-207,-192,-266,-213,-293,-213},{-253,-194,-290,-322,-192,-247},{-282,-207,-340,-215,-311,-231},{-322,-200,-250,-186,-223,-261},{-261,-277,-346,-234,-226,-319},{-298,-346,-242,-303,-319,-269},{-301,-287,-237,-200,-192,-295},{-205,-205,-231,-213,-207,-306}}},{{{-230,-260,-224,-202,-216,-311},{-230,-291,-328,-300,-230,-199},{-260,-260,-216,-263,-230,-227},{-218,-224,-328,-336,-213,-218},{-356,-249,-263,-238,-221,-199},{-227,-238,-210,-263,-291,-221},{-330,-210,-244,-277,-319,-232},{-241,-263,-302,-204,-288,-277},{-358,-244,-297,-330,-218,-210},{-294,-316,-283,-358,-297,-350},{-255,-207,-297,-202,-302,-361},{-266,-297,-227,-216,-322,-224},{-202,-249,-249,-249,-316,-305},{-241,-356,-258,-364,-224,-314},{-291,-230,-246,-302,-283,-328},{-353,-249,-328,-246,-300,-325},{-246,-213,-305,-328,-202,-325},{-210,-330,-274,-255,-316,-347},{-252,-356,-235,-328,-328,-336},{-218,-333,-342,-364,-342,-342}},{{-252,-356,-294,-258,-353,-269},{-202,-235,-342,-260,-204,-361},{-204,-232,-258,-274,-286,-227},{-353,-218,-238,-227,-333,-305},{-297,-350,-218,-283,-216,-277},{-202,-249,-319,-227,-297,-277},{-325,-297,-364,-325,-230,-277},{-277,-221,-216,-204,-269,-263},{-252,-350,-350,-199,-353,-339},{-260,-316,-342,-283,-308,-288},{-260,-328,-249,-263,-364,-272},{-333,-308,-294,-336,-316,-325},{-249,-288,-302,-328,-207,-274},{-244,-314,-213,-280,-260,-294},{-333,-364,-294,-300,-300,-314},{-235,-311,-333,-260,-196,-238},{-336,-224,-232,-342,-274,-314},{-342,-238,-216,-213,-356,-344},{-347,-344,-196,-260,-218,-196},{-218,-342,-218,-311,-252,-221}},{{-224,-274,-227,-361,-302,-322},{-221,-260,-311,-353,-319,-249},{-322,-311,-272,-344,-196,-196},{-364,-202,-260,-358,-249,-235},{-364,-347,-230,-221,-232,-269},{-311,-294,-347,-353,-328,-269},{-356,-330,-325,-333,-218,-204},{-344,-291,-277,-291,-241,-280},{-260,-330,-333,-350,-266,-300},{-244,-258,-347,-358,-232,-311},{-358,-353,-333,-221,-246,-196},{-230,-274,-230,-314,-356,-316},{-358,-288,-202,-283,-316,-252},{-308,-263,-342,-244,-258,-322},{-347,-244,-361,-260,-314,-283},{-288,-244,-311,-322,-336,-283},{-252,-308,-216,-213,-325,-308},{-339,-336,-227,-263,-210,-350},{-246,-246,-202,-283,-277,-277},{-224,-241,-252,-294,-210,-213}},{{-350,-319,-314,-255,-286,-269},{-221,-294,-202,-288,-230,-311},{-210,-260,-230,-238,-280,-339},{-199,-305,-196,-274,-227,-342},{-288,-336,-356,-280,-364,-249},{-272,-272,-204,-347,-230,-269},{-330,-218,-218,-210,-305,-277},{-216,-356,-356,-288,-210,-235},{-227,-244,-255,-358,-305,-288},{-213,-230,-260,-227,-322,-227},{-316,-305,-288,-274,-258,-342},{-330,-202,-263,-202,-221,-286},{-196,-311,-202,-336,-213,-308},{-210,-241,-274,-246,-230,-241},{-227,-302,-258,-218,-288,-300},{-216,-207,-308,-202,-252,-202},{-227,-246,-199,-342,-339,-305},{-207,-319,-314,-350,-325,-196},{-325,-232,-263,-333,-213,-213},{-207,-204,-266,-350,-305,-319}},{{-238,-322,-319,-272,-344,-224},{-322,-358,-263,-339,-302,-328},{-286,-204,-330,-263,-266,-286},{-297,-221,-213,-347,-196,-358},{-328,-277,-263,-291,-238,-308},{-260,-344,-235,-280,-263,-235},{-280,-300,-258,-202,-204,-232},{-230,-325,-210,-204,-221,-213},{-316,-235,-316,-325,-311,-308},{-232,-305,-263,-350,-269,-342},{-232,-246,-339,-255,-258,-241},{-249,-333,-241,-230,-328,-347},{-244,-258,-361,-291,-364,-311},{-213,-202,-258,-297,-364,-286},{-291,-283,-260,-336,-269,-308},{-336,-244,-252,-328,-350,-210},{-311,-199,-347,-347,-316,-238},{-319,-314,-286,-207,-258,-235},{-249,-330,-286,-336,-308,-347},{-344,-207,-347,-358,-328,-358}},{{-333,-336,-216,-283,-322,-274},{-356,-241,-210,-277,-272,-322},{-297,-361,-213,-277,-291,-291},{-255,-244,-213,-344,-280,-286},{-227,-269,-336,-230,-196,-258},{-216,-235,-221,-361,-302,-213},{-227,-202,-210,-241,-246,-350},{-277,-255,-283,-241,-319,-344},{-364,-207,-202,-263,-260,-322},{-283,-274,-283,-328,-297,-235},{-288,-350,-356,-311,-314,-232},{-244,-325,-260,-238,-356,-277},{-291,-330,-235,-288,-358,-339},{-252,-277,-288,-322,-305,-249},{-263,-319,-280,-328,-283,-252},{-283,-274,-291,-322,-232,-199},{-260,-274,-260,-350,-342,-235},{-319,-199,-347,-297,-269,-204},{-218,-207,-269,-286,-347,-258},{-339,-294,-274,-336,-347,-328}}},{{{-353,-235,-244,-258,-255,-316},{-213,-218,-291,-244,-302,-302},{-232,-207,-311,-216,-361,-232},{-358,-238,-232,-277,-330,-364},{-316,-199,-328,-316,-286,-241},{-238,-272,-305,-232,-330,-238},{-255,-277,-311,-288,-358,-258},{-322,-311,-330,-300,-266,-227},{-235,-333,-235,-260,-347,-336},{-283,-202,-258,-207,-305,-314},{-199,-258,-246,-305,-244,-204},{-263,-202,-260,-266,-277,-269},{-263,-347,-252,-213,-342,-350},{-350,-241,-286,-328,-221,-199},{-204,-308,-350,-218,-266,-213},{-204,-347,-196,-342,-246,-356},{-330,-300,-202,-330,-314,-238},{-218,-288,-361,-314,-297,-199},{-364,-258,-302,-210,-294,-199},{-272,-272,-230,-347,-286,-297}},{{-274,-210,-330,-213,-353,-353},{-328,-342,-277,-266,-218,-356},{-277,-260,-342,-344,-297,-291},{-232,-350,-333,-249,-207,-364},{-286,-232,-196,-302,-353,-244},{-202,-213,-246,-291,-224,-216},{-325,-311,-294,-325,-227,-232},{-235,-204,-249,-356,-311,-291},{-213,-252,-241,-274,-221,-291},{-199,-302,-344,-358,-218,-300},{-207,-356,-274,-314,-286,-297},{-196,-218,-322,-230,-207,-258},{-286,-358,-249,-241,-235,-344},{-277,-274,-252,-216,-283,-202},{-344,-314,-361,-336,-216,-283},{-361,-288,-283,-280,-260,-249},{-305,-202,-258,-202,-230,-297},{-241,-328,-364,-244,-333,-210},{-300,-199,-291,-269,-339,-319},{-272,-277,-322,-286,-342,-328}},{{-235,-272,-339,-311,-336,-246},{-325,-283,-232,-311,-235,-339},{-274,-241,-364,-266,-333,-263},{-269,-246,-204,-269,-311,-314},{-269,-266,-216,-235,-280,-238},{-308,-283,-291,-196,-238,-227},{-216,-328,-361,-291,-319,-221},{-210,-252,-213,-207,-258,-322},{-207,-356,-311,-319,-241,-252},{-297,-199,-356,-266,-339,-358},{-316,-241,-333,-252,-314,-339},{-288,-216,-322,-252,-213,-232},{-266,-258,-353,-199,-288,-286},{-235,-224,-202,-283,-252,-221},{-230,-249,-333,-305,-216,-342},{-227,-358,-353,-232,-291,-232},{-274,-294,-269,-300,-238,-230},{-280,-339,-249,-294,-216,-300},{-294,-336,-277,-218,-328,-263},{-246,-314,-277,-277,-221,-244}},{{-269,-213,-302,-244,-333,-347},{-252,-302,-319,-258,-342,-336},{-361,-325,-196,-258,-274,-272},{-241,-266,-291,-339,-353,-235},{-235,-364,-258,-328,-266,-260},{-311,-230,-286,-274,-283,-224},{-330,-241,-358,-260,-364,-252},{-286,-255,-224,-235,-246,-322},{-258,-260,-258,-350,-339,-291},{-258,-221,-330,-263,-308,-216},{-210,-319,-314,-330,-221,-272},{-255,-246,-336,-232,-221,-322},{-344,-241,-263,-325,-258,-356},{-358,-358,-260,-218,-358,-344},{-218,-291,-199,-358,-322,-364},{-308,-283,-249,-297,-196,-216},{-269,-286,-356,-333,-314,-302},{-266,-319,-283,-328,-344,-305},{-364,-305,-269,-333,-204,-364},{-269,-202,-333,-249,-356,-280}},{{-235,-260,-277,-286,-258,-269},{-244,-336,-294,-342,-260,-252},{-269,-336,-356,-272,-258,-300},{-350,-333,-258,-325,-224,-311},{-202,-246,-218,-227,-266,-196},{-274,-314,-319,-241,-213,-274},{-277,-347,-238,-238,-353,-216},{-199,-277,-202,-288,-230,-238},{-288,-272,-291,-358,-300,-325},{-199,-238,-311,-266,-344,-288},{-274,-280,-344,-249,-294,-252},{-347,-266,-249,-204,-300,-277},{-350,-322,-347,-255,-255,-347},{-263,-204,-333,-344,-252,-319},{-227,-330,-347,-339,-283,-316},{-221,-330,-294,-252,-204,-230},{-227,-207,-216,-277,-300,-277},{-213,-297,-291,-336,-316,-336},{-314,-280,-283,-204,-252,-207},{-322,-311,-246,-294,-358,-291}},{{-308,-361,-213,-263,-353,-269},{-305,-328,-244,-283,-238,-255},{-263,-288,-263,-300,-280,-232},{-238,-344,-325,-342,-344,-342},{-288,-336,-283,-336,-288,-224},{-258,-342,-319,-353,-316,-286},{-210,-358,-305,-283,-286,-260},{-224,-356,-358,-218,-339,-333},{-330,-339,-302,-252,-260,-224},{-302,-266,-232,-283,-325,-358},{-361,-252,-224,-364,-302,-288},{-255,-280,-202,-336,-308,-300},{-364,-319,-358,-196,-213,-235},{-300,-347,-286,-316,-288,-308},{-249,-294,-333,-216,-230,-277},{-308,-330,-274,-350,-213,-260},{-308,-232,-244,-305,-221,-266},{-260,-258,-342,-297,-336,-356},{-232,-202,-235,-364,-325,-274},{-347,-311,-361,-218,-336,-283}}},{{{-291,-347,-232,-246,-260,-199},{-342,-202,-361,-272,-302,-216},{-216,-218,-244,-221,-283,-361},{-333,-207,-328,-297,-308,-246},{-344,-272,-328,-294,-302,-252},{-283,-358,-255,-291,-283,-288},{-328,-260,-255,-218,-364,-241},{-286,-249,-353,-311,-288,-336},{-263,-364,-350,-235,-291,-288},{-207,-319,-266,-330,-216,-199},{-286,-196,-255,-274,-241,-263},{-277,-342,-241,-218,-280,-325},{-358,-241,-269,-291,-238,-218},{-238,-314,-258,-286,-344,-204},{-286,-269,-358,-330,-330,-202},{-252,-339,-238,-350,-322,-260},{-302,-319,-333,-350,-319,-286},{-302,-288,-232,-330,-260,-302},{-356,-316,-258,-297,-235,-230},{-277,-227,-260,-347,-353,-230}},{{-249,-308,-302,-196,-291,-280},{-300,-305,-221,-246,-311,-302},{-350,-202,-361,-216,-333,-336},{-249,-330,-213,-218,-202,-210},{-291,-272,-347,-269,-283,-347},{-227,-361,-266,-311,-235,-274},{-218,-356,-218,-333,-308,-286},{-238,-300,-252,-230,-316,-300},{-266,-232,-283,-339,-311,-202},{-330,-322,-272,-280,-297,-230},{-344,-252,-350,-302,-333,-224},{-246,-328,-235,-294,-342,-272},{-244,-246,-350,-272,-204,-300},{-210,-356,-207,-342,-311,-249},{-308,-272,-246,-230,-246,-274},{-227,-252,-269,-294,-311,-288},{-333,-316,-216,-277,-263,-221},{-319,-252,-224,-358,-322,-218},{-342,-350,-218,-361,-311,-202},{-308,-274,-322,-230,-353,-288}},{{-288,-288,-241,-238,-302,-204},{-353,-280,-291,-364,-232,-199},{-322,-330,-260,-241,-213,-297},{-336,-297,-244,-238,-224,-283},{-322,-260,-288,-353,-244,-280},{-238,-308,-241,-322,-199,-230},{-350,-300,-302,-258,-238,-196},{-308,-202,-361,-244,-227,-314},{-305,-358,-249,-207,-316,-325},{-204,-258,-361,-339,-207,-274},{-330,-294,-316,-353,-339,-218},{-274,-286,-319,-350,-347,-199},{-322,-330,-294,-288,-272,-288},{-221,-249,-288,-249,-218,-196},{-358,-263,-241,-322,-358,-316},{-244,-207,-277,-221,-291,-330},{-213,-221,-350,-260,-342,-308},{-230,-235,-302,-336,-249,-269},{-333,-308,-260,-358,-294,-272},{-258,-353,-207,-291,-277,-260}},{{-218,-269,-347,-207,-263,-339},{-347,-277,-361,-339,-358,-308},{-328,-364,-302,-199,-227,-274},{-291,-221,-350,-272,-302,-213},{-238,-235,-311,-308,-297,-272},{-311,-274,-241,-241,-314,-277},{-311,-196,-308,-258,-244,-350},{-213,-300,-221,-364,-244,-336},{-210,-350,-311,-300,-269,-238},{-249,-202,-266,-283,-328,-356},{-213,-274,-342,-246,-216,-364},{-263,-258,-339,-283,-266,-249},{-255,-216,-280,-311,-302,-300},{-207,-246,-230,-297,-260,-361},{-314,-297,-224,-238,-246,-302},{-330,-221,-300,-258,-260,-202},{-218,-252,-280,-224,-246,-314},{-288,-252,-347,-344,-364,-342},{-269,-288,-235,-199,-353,-252},{-328,-283,-238,-364,-244,-322}},{{-333,-207,-258,-319,-249,-316},{-325,-330,-302,-342,-221,-246},{-330,-302,-347,-300,-319,-294},{-249,-308,-213,-300,-297,-300},{-294,-204,-342,-286,-269,-260},{-325,-255,-238,-213,-347,-305},{-238,-328,-314,-302,-252,-241},{-227,-353,-350,-249,-356,-353},{-255,-364,-202,-339,-255,-199},{-260,-238,-333,-358,-272,-336},{-361,-277,-213,-210,-297,-210},{-291,-283,-252,-199,-344,-218},{-260,-224,-286,-336,-297,-347},{-333,-305,-196,-230,-280,-244},{-342,-353,-258,-353,-244,-249},{-305,-202,-344,-274,-244,-291},{-227,-258,-266,-288,-216,-356},{-319,-294,-210,-339,-202,-288},{-356,-263,-224,-204,-330,-207},{-358,-202,-342,-322,-308,-255}},{{-213,-300,-316,-266,-283,-322},{-255,-336,-232,-213,-218,-297},{-266,-336,-361,-252,-316,-255},{-347,-213,-196,-263,-302,-277},{-314,-210,-196,-246,-322,-347},{-249,-339,-316,-322,-316,-336},{-342,-339,-255,-232,-260,-311},{-263,-232,-277,-283,-356,-221},{-325,-216,-277,-311,-235,-241},{-339,-344,-353,-361,-204,-202},{-210,-221,-300,-294,-227,-213},{-353,-263,-358,-356,-286,-252},{-356,-316,-322,-277,-302,-216},{-246,-213,-213,-246,-238,-316},{-350,-204,-204,-216,-213,-202},{-218,-244,-361,-255,-356,-314},{-339,-241,-249,-361,-263,-344},{-308,-263,-291,-213,-274,-263},{-213,-350,-308,-311,-227,-238},{-336,-202,-353,-294,-330,-350}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={2070,261,23,150,170,304,400,300,160}; // initial inventory 
int ubiv[I]={2740,522,414,300,341,608,800,600,320}; // the upper bounds of inventory 
int len[I1][I2]={{3,6,2,2,3,3,2,1}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,7.19,13.32,4.32,2.64,5.16,6.85,4.63,1.82}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{6.54,12.11,3.93,2.4,4.69,6.23,4.21,1.65}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={5.23,5.23,5.23,4.58,4.58,4.58,3.92,3.92,3.92,9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,3.14,3.14,3.14,2.75,2.75,2.75,2.36,2.36,2.36,1.92,1.92,1.92,1.68,1.68,1.68,1.44,1.44,1.44,3.75,3.75,3.75,3.28,3.28,3.28,2.81,2.81,2.81,4.98,4.98,4.98,4.36,4.36,4.36,3.74,3.74,3.74,3.37,3.37,3.37,2.95,2.95,2.95,2.53,2.53,2.53,1.32,1.32,1.32,1.16,1.16,1.16,0.99,0.99,0.99}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={16,9,6,16,8,6,17,8,6,15,8,5,15,7,5,14,7,5,17,9,6,16,9,6,16,9,6,17,9,6,16,9,6,16,9,6,16,8,6,16,8,6,16,8,6,17,8,6,17,8,6,16,9,6,17,9,6,16,9,6,17,8,6,17,9,6,17,9,6,18,9,6}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15},{16,17,18,19,20,21,22,23,24},{25,26,27,28,29,30},{31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46},{47,48,49,50,51,52,53,54},{55,56,57,58,59,60},{61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77},{78,79,80,81,82,83,84,85},{86,87,88,89,90,91},{92,93,94,95,96,97,98,99,100,101,102,103,104,105,106},{107,108,109,110,111,112,113,114},{115,116,117,118,119},{120,121,122,123,124,125,126,127,128,129,130,131,132,133,134},{135,136,137,138,139,140,141},{142,143,144,145,146},{147,148,149,150,151,152,153,154,155,156,157,158,159,160},{161,162,163,164,165,166,167},{168,169,170,171,172},{173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189},{190,191,192,193,194,195,196,197,198},{199,200,201,202,203,204},{205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220},{221,222,223,224,225,226,227,228,229},{230,231,232,233,234,235},{236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251},{252,253,254,255,256,257,258,259,260},{261,262,263,264,265,266},{267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283},{284,285,286,287,288,289,290,291,292},{293,294,295,296,297,298},{299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314},{315,316,317,318,319,320,321,322,323},{324,325,326,327,328,329},{330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345},{346,347,348,349,350,351,352,353,354},{355,356,357,358,359,360},{361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376},{377,378,379,380,381,382,383,384},{385,386,387,388,389,390},{391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406},{407,408,409,410,411,412,413,414},{415,416,417,418,419,420},{421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436},{437,438,439,440,441,442,443,444},{445,446,447,448,449,450},{451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467},{468,469,470,471,472,473,474,475},{476,477,478,479,480,481},{482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498},{499,500,501,502,503,504,505,506},{507,508,509,510,511,512},{513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528},{529,530,531,532,533,534,535,536,537},{538,539,540,541,542,543},{544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560},{561,562,563,564,565,566,567,568,569},{570,571,572,573,574,575},{576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591},{592,593,594,595,596,597,598,599,600},{601,602,603,604,605,606},{607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623},{624,625,626,627,628,629,630,631},{632,633,634,635,636,637},{638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654},{655,656,657,658,659,660,661,662,663},{664,665,666,667,668,669},{670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686},{687,688,689,690,691,692,693,694,695},{696,697,698,699,700,701},{702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719},{720,721,722,723,724,725,726,727,728},{729,730,731,732,733,734}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,5,9,13,17,21,25,29,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,0,4,8,12,16,20,24,28,1,7,13,19,25,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,2,6,10,14,18,22,26,1,7,13,19,25,2,4,6,8,10,12,14,16,18,20,22,24,26,28,2,6,10,14,18,22,26,1,7,13,19,25,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,5,9,13,17,21,25,29,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,5,11,17,23,29,35,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,5,11,17,23,29,35,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,6,10,14,18,22,26,30,34,7,13,19,25,31,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,8,12,16,20,24,28,32,7,13,19,25,31,8,10,12,14,16,18,20,22,24,26,28,30,32,34,8,12,16,20,24,28,32,7,13,19,25,31,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,4,10,16,22,28,34,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,4,10,16,22,28,34,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,5,11,17,23,29,35,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33}; // set of end times of each shipment 
