int Dev = 40;// 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 = 339;//Number of shipments
extern const int SN = 50;//Number of scenarios at each stage
extern const int MBSN = 8;//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]={{{{11305,0,0,0,0,0},{11539,0,0,0,0,0},{12045,0,0,0,0,0},{11566,0,0,0,0,0},{11738,0,0,0,0,0},{11029,0,0,0,0,0},{11323,0,0,0,0,0},{11595,0,0,0,0,0},{10802,0,0,0,0,0},{12351,0,0,0,0,0},{11630,0,0,0,0,0},{11348,0,0,0,0,0},{11238,0,0,0,0,0},{11000,0,0,0,0,0},{11132,0,0,0,0,0},{10880,0,0,0,0,0},{11291,0,0,0,0,0},{11022,0,0,0,0,0},{11415,0,0,0,0,0},{11466,0,0,0,0,0},{11774,0,0,0,0,0},{10964,0,0,0,0,0},{11266,0,0,0,0,0},{12242,0,0,0,0,0},{11217,0,0,0,0,0},{11440,0,0,0,0,0},{11489,0,0,0,0,0},{11533,0,0,0,0,0},{11102,0,0,0,0,0},{11732,0,0,0,0,0},{12331,0,0,0,0,0},{11528,0,0,0,0,0},{11427,0,0,0,0,0},{11441,0,0,0,0,0},{12195,0,0,0,0,0},{11675,0,0,0,0,0},{12010,0,0,0,0,0},{11165,0,0,0,0,0},{11192,0,0,0,0,0},{10910,0,0,0,0,0},{11552,0,0,0,0,0},{11684,0,0,0,0,0},{12106,0,0,0,0,0},{11642,0,0,0,0,0},{12011,0,0,0,0,0},{10659,0,0,0,0,0},{11108,0,0,0,0,0},{11146,0,0,0,0,0},{11739,0,0,0,0,0},{11252,0,0,0,0,0}},{{11532,0,0,0,0,0},{11259,0,0,0,0,0},{12152,0,0,0,0,0},{11882,0,0,0,0,0},{11733,0,0,0,0,0},{10970,0,0,0,0,0},{11816,0,0,0,0,0},{11657,0,0,0,0,0},{12011,0,0,0,0,0},{10454,0,0,0,0,0},{11621,0,0,0,0,0},{11255,0,0,0,0,0},{11544,0,0,0,0,0},{11340,0,0,0,0,0},{11190,0,0,0,0,0},{10938,0,0,0,0,0},{10830,0,0,0,0,0},{10841,0,0,0,0,0},{12019,0,0,0,0,0},{11853,0,0,0,0,0},{11568,0,0,0,0,0},{11499,0,0,0,0,0},{11887,0,0,0,0,0},{11927,0,0,0,0,0},{11946,0,0,0,0,0},{11965,0,0,0,0,0},{11556,0,0,0,0,0},{10990,0,0,0,0,0},{11821,0,0,0,0,0},{11527,0,0,0,0,0},{10928,0,0,0,0,0},{10931,0,0,0,0,0},{10897,0,0,0,0,0},{11012,0,0,0,0,0},{10811,0,0,0,0,0},{11561,0,0,0,0,0},{11716,0,0,0,0,0},{10947,0,0,0,0,0},{11709,0,0,0,0,0},{11521,0,0,0,0,0},{11237,0,0,0,0,0},{11356,0,0,0,0,0},{12315,0,0,0,0,0},{11761,0,0,0,0,0},{11043,0,0,0,0,0},{11158,0,0,0,0,0},{11635,0,0,0,0,0},{11529,0,0,0,0,0},{11650,0,0,0,0,0},{11385,0,0,0,0,0}},{{11064,0,0,0,0,0},{11260,0,0,0,0,0},{11422,0,0,0,0,0},{11985,0,0,0,0,0},{11813,0,0,0,0,0},{11404,0,0,0,0,0},{11375,0,0,0,0,0},{11240,0,0,0,0,0},{11559,0,0,0,0,0},{11851,0,0,0,0,0},{11258,0,0,0,0,0},{11960,0,0,0,0,0},{11291,0,0,0,0,0},{11344,0,0,0,0,0},{11475,0,0,0,0,0},{11650,0,0,0,0,0},{11003,0,0,0,0,0},{11455,0,0,0,0,0},{11092,0,0,0,0,0},{12108,0,0,0,0,0},{11525,0,0,0,0,0},{11382,0,0,0,0,0},{11606,0,0,0,0,0},{12052,0,0,0,0,0},{11344,0,0,0,0,0},{11398,0,0,0,0,0},{10577,0,0,0,0,0},{11765,0,0,0,0,0},{11671,0,0,0,0,0},{11155,0,0,0,0,0},{11446,0,0,0,0,0},{10796,0,0,0,0,0},{11646,0,0,0,0,0},{11625,0,0,0,0,0},{11956,0,0,0,0,0},{11667,0,0,0,0,0},{12105,0,0,0,0,0},{11749,0,0,0,0,0},{11667,0,0,0,0,0},{11262,0,0,0,0,0},{11589,0,0,0,0,0},{11631,0,0,0,0,0},{11677,0,0,0,0,0},{11409,0,0,0,0,0},{11892,0,0,0,0,0},{11839,0,0,0,0,0},{11615,0,0,0,0,0},{11284,0,0,0,0,0},{11134,0,0,0,0,0},{12406,0,0,0,0,0}}},{{{-282,-130,-146,-146,-272,-175},{-207,-193,-246,-187,-215,-203},{-136,-280,-240,-154,-183,-150},{-158,-211,-146,-148,-229,-262},{-215,-187,-284,-197,-264,-168},{-124,-284,-189,-195,-132,-124},{-130,-225,-262,-225,-244,-225},{-173,-126,-142,-282,-256,-164},{-144,-156,-244,-209,-258,-227},{-244,-223,-160,-260,-221,-233},{-171,-254,-266,-260,-185,-264},{-258,-284,-252,-124,-221,-177},{-250,-193,-126,-246,-144,-231},{-272,-150,-195,-248,-152,-166},{-175,-250,-276,-223,-197,-162},{-146,-189,-158,-280,-217,-168},{-207,-150,-203,-270,-144,-221},{-140,-181,-166,-189,-132,-179},{-144,-258,-183,-203,-203,-266},{-152,-254,-152,-128,-152,-258},{-278,-229,-181,-199,-268,-146},{-160,-246,-282,-219,-181,-160},{-124,-140,-260,-156,-195,-205},{-231,-191,-154,-227,-140,-246},{-156,-132,-134,-260,-193,-148},{-282,-223,-158,-235,-227,-189},{-242,-231,-258,-225,-258,-164},{-130,-171,-146,-282,-219,-264},{-136,-164,-132,-177,-268,-221},{-195,-138,-177,-258,-138,-231},{-152,-181,-270,-164,-252,-254},{-256,-164,-160,-221,-136,-264},{-203,-221,-146,-136,-219,-278},{-244,-183,-274,-154,-240,-148},{-144,-142,-215,-264,-235,-264},{-199,-207,-199,-233,-254,-146},{-201,-201,-132,-124,-136,-254},{-179,-278,-160,-256,-193,-215},{-130,-207,-246,-270,-209,-132},{-187,-156,-177,-229,-146,-260},{-223,-191,-225,-282,-203,-244},{-274,-132,-209,-256,-148,-221},{-148,-142,-235,-162,-175,-181},{-254,-223,-229,-280,-278,-128},{-256,-221,-270,-266,-205,-173},{-278,-233,-205,-122,-162,-138},{-209,-197,-221,-132,-272,-244},{-233,-221,-256,-244,-229,-252},{-270,-223,-219,-223,-256,-195},{-256,-233,-238,-189,-156,-185}},{{-179,-193,-235,-158,-209,-179},{-142,-278,-203,-213,-156,-152},{-270,-276,-264,-177,-276,-231},{-282,-262,-276,-235,-189,-166},{-122,-268,-221,-231,-152,-205},{-274,-171,-138,-219,-142,-197},{-223,-130,-185,-160,-250,-179},{-154,-235,-140,-173,-238,-213},{-233,-183,-217,-207,-205,-193},{-124,-219,-134,-164,-136,-134},{-262,-205,-213,-177,-211,-219},{-122,-256,-246,-246,-248,-250},{-244,-201,-258,-197,-211,-209},{-166,-185,-266,-213,-203,-223},{-181,-252,-203,-203,-272,-175},{-219,-262,-250,-276,-154,-171},{-189,-211,-266,-187,-193,-138},{-146,-130,-280,-197,-193,-185},{-242,-134,-252,-168,-235,-132},{-160,-126,-203,-183,-276,-134},{-227,-211,-258,-160,-162,-171},{-254,-250,-244,-280,-233,-144},{-193,-173,-195,-238,-215,-213},{-201,-215,-274,-164,-270,-138},{-254,-266,-266,-181,-254,-229},{-244,-171,-209,-144,-213,-270},{-254,-238,-183,-203,-146,-201},{-197,-154,-209,-248,-152,-128},{-148,-284,-262,-150,-231,-193},{-195,-144,-238,-268,-199,-183},{-211,-150,-162,-195,-156,-156},{-130,-242,-211,-160,-177,-215},{-264,-166,-154,-185,-162,-248},{-213,-282,-173,-162,-268,-150},{-179,-134,-166,-223,-282,-233},{-130,-221,-227,-191,-211,-150},{-225,-193,-156,-231,-235,-262},{-197,-124,-254,-199,-240,-140},{-211,-258,-160,-264,-144,-146},{-154,-164,-252,-205,-150,-189},{-191,-148,-162,-146,-138,-195},{-152,-128,-242,-284,-185,-150},{-195,-266,-223,-227,-240,-233},{-256,-158,-252,-246,-219,-132},{-122,-142,-219,-138,-150,-181},{-225,-171,-132,-250,-160,-175},{-284,-140,-152,-227,-144,-282},{-181,-240,-185,-197,-244,-134},{-156,-248,-213,-160,-266,-284},{-175,-124,-203,-124,-276,-124}},{{-221,-148,-282,-276,-270,-207},{-262,-246,-136,-217,-284,-235},{-225,-148,-171,-160,-211,-158},{-197,-138,-223,-146,-124,-150},{-130,-158,-179,-187,-140,-199},{-183,-227,-138,-205,-128,-268},{-146,-142,-201,-268,-162,-126},{-266,-189,-276,-177,-134,-284},{-173,-229,-183,-173,-238,-164},{-136,-233,-266,-181,-205,-268},{-235,-201,-225,-201,-185,-235},{-280,-215,-146,-276,-205,-175},{-132,-195,-262,-130,-221,-181},{-160,-175,-248,-207,-142,-122},{-162,-171,-278,-146,-144,-142},{-238,-136,-209,-207,-189,-274},{-191,-166,-227,-274,-229,-217},{-274,-221,-213,-158,-195,-124},{-140,-130,-193,-181,-193,-282},{-268,-140,-162,-229,-211,-238},{-270,-199,-221,-175,-205,-223},{-211,-260,-235,-173,-223,-223},{-193,-278,-162,-185,-282,-215},{-250,-171,-254,-280,-246,-197},{-136,-175,-162,-284,-211,-229},{-132,-252,-166,-205,-262,-274},{-227,-168,-246,-162,-248,-221},{-152,-209,-166,-284,-258,-197},{-231,-266,-211,-254,-122,-217},{-152,-238,-154,-160,-148,-282},{-177,-235,-142,-246,-124,-246},{-122,-205,-158,-252,-152,-171},{-235,-252,-175,-181,-274,-209},{-154,-124,-162,-173,-219,-260},{-262,-132,-260,-211,-146,-209},{-197,-238,-258,-177,-158,-274},{-264,-175,-246,-160,-215,-246},{-242,-211,-173,-260,-264,-238},{-207,-146,-175,-225,-183,-238},{-160,-136,-195,-209,-274,-229},{-268,-162,-171,-215,-191,-203},{-217,-238,-223,-225,-173,-162},{-278,-144,-205,-235,-260,-177},{-221,-252,-278,-211,-177,-274},{-140,-238,-156,-199,-278,-130},{-154,-148,-136,-268,-168,-207},{-242,-235,-248,-246,-162,-248},{-175,-164,-140,-252,-268,-211},{-148,-154,-138,-144,-177,-223},{-187,-238,-152,-235,-270,-270}}},{{{-196,-159,-185,-116,-179,-180},{-124,-174,-198,-225,-167,-98},{-140,-177,-164,-188,-193,-135},{-147,-163,-101,-203,-109,-179},{-150,-209,-129,-211,-184,-151},{-161,-171,-171,-174,-161,-182},{-132,-209,-203,-195,-167,-217},{-200,-159,-192,-175,-158,-182},{-167,-105,-201,-142,-138,-185},{-151,-188,-175,-196,-116,-163},{-134,-174,-113,-175,-164,-119},{-109,-195,-113,-106,-129,-172},{-121,-185,-97,-118,-214,-108},{-169,-164,-198,-203,-177,-163},{-156,-206,-206,-113,-145,-225},{-158,-124,-105,-126,-108,-114},{-188,-192,-163,-198,-221,-105},{-184,-203,-103,-172,-222,-177},{-108,-217,-100,-155,-187,-179},{-217,-134,-108,-103,-203,-105},{-179,-216,-214,-208,-188,-217},{-155,-126,-142,-169,-180,-188},{-137,-98,-172,-184,-138,-97},{-180,-134,-105,-200,-108,-196},{-172,-114,-196,-169,-155,-171},{-135,-217,-109,-121,-114,-185},{-111,-138,-184,-106,-147,-101},{-213,-137,-114,-151,-97,-129},{-208,-172,-158,-164,-111,-222},{-135,-135,-206,-221,-122,-216},{-213,-198,-127,-132,-166,-122},{-124,-209,-140,-195,-179,-106},{-182,-209,-224,-200,-147,-219},{-193,-225,-198,-174,-213,-126},{-209,-134,-172,-166,-98,-219},{-196,-140,-118,-187,-179,-97},{-124,-200,-213,-140,-137,-171},{-161,-111,-209,-100,-219,-185},{-109,-145,-109,-130,-150,-116},{-174,-101,-145,-113,-106,-127},{-116,-161,-164,-153,-153,-142},{-159,-118,-182,-132,-155,-122},{-148,-147,-130,-216,-208,-198},{-143,-150,-225,-142,-192,-111},{-101,-127,-129,-201,-151,-198},{-201,-200,-124,-143,-190,-103},{-216,-108,-124,-204,-116,-127},{-196,-135,-174,-138,-132,-221},{-161,-118,-118,-188,-219,-184},{-198,-147,-185,-175,-113,-193}},{{-156,-126,-122,-184,-138,-188},{-98,-201,-134,-195,-201,-121},{-158,-119,-203,-142,-151,-187},{-177,-116,-145,-132,-184,-163},{-185,-221,-200,-138,-105,-103},{-134,-134,-100,-182,-198,-196},{-216,-192,-100,-142,-140,-211},{-158,-195,-174,-219,-111,-109},{-127,-163,-156,-177,-132,-101},{-142,-116,-198,-179,-204,-184},{-213,-172,-140,-135,-163,-222},{-184,-167,-105,-137,-203,-208},{-185,-185,-118,-156,-211,-151},{-195,-171,-109,-116,-151,-145},{-127,-201,-203,-164,-121,-98},{-109,-127,-192,-109,-127,-172},{-155,-126,-203,-122,-161,-143},{-118,-97,-148,-129,-108,-222},{-209,-121,-140,-137,-116,-147},{-182,-116,-121,-204,-203,-174},{-177,-126,-126,-114,-135,-224},{-108,-190,-179,-184,-116,-140},{-122,-187,-105,-155,-161,-200},{-100,-101,-121,-185,-103,-153},{-187,-148,-193,-198,-209,-196},{-216,-211,-113,-147,-206,-158},{-134,-193,-111,-158,-206,-155},{-179,-132,-116,-204,-122,-130},{-208,-164,-127,-175,-114,-155},{-145,-180,-122,-103,-211,-150},{-172,-106,-114,-204,-153,-145},{-143,-184,-206,-219,-153,-185},{-206,-97,-185,-198,-150,-118},{-172,-195,-124,-159,-225,-97},{-145,-116,-193,-111,-163,-174},{-127,-185,-161,-187,-214,-161},{-179,-180,-187,-132,-147,-138},{-184,-150,-179,-142,-172,-153},{-222,-200,-97,-145,-221,-184},{-192,-98,-156,-135,-198,-156},{-151,-97,-103,-155,-221,-132},{-219,-113,-105,-204,-198,-129},{-129,-201,-153,-106,-119,-214},{-177,-122,-122,-225,-140,-151},{-159,-193,-127,-101,-204,-134},{-135,-134,-224,-156,-169,-219},{-113,-222,-130,-219,-185,-114},{-195,-108,-127,-105,-206,-135},{-213,-221,-217,-179,-169,-177},{-163,-171,-121,-221,-192,-140}},{{-169,-103,-196,-106,-140,-209},{-98,-209,-175,-116,-135,-150},{-135,-116,-204,-192,-203,-203},{-171,-147,-113,-219,-211,-138},{-222,-132,-161,-216,-172,-97},{-211,-224,-148,-182,-166,-114},{-132,-167,-138,-151,-193,-193},{-193,-140,-213,-101,-172,-185},{-114,-198,-118,-175,-217,-135},{-142,-135,-204,-100,-134,-130},{-196,-116,-105,-158,-174,-213},{-166,-126,-169,-213,-171,-196},{-122,-135,-116,-116,-214,-121},{-143,-130,-138,-106,-193,-206},{-200,-101,-209,-177,-97,-171},{-174,-179,-105,-209,-103,-201},{-137,-113,-132,-145,-217,-175},{-140,-148,-206,-100,-174,-126},{-216,-113,-219,-177,-137,-148},{-171,-201,-208,-143,-105,-206},{-161,-118,-138,-182,-150,-143},{-142,-221,-121,-217,-138,-171},{-222,-163,-111,-111,-97,-167},{-147,-185,-219,-142,-211,-108},{-101,-126,-100,-113,-179,-122},{-180,-206,-214,-167,-119,-224},{-106,-103,-217,-132,-169,-164},{-200,-116,-121,-185,-200,-103},{-171,-192,-153,-159,-153,-203},{-119,-222,-198,-97,-188,-167},{-182,-132,-134,-192,-142,-98},{-100,-187,-100,-172,-155,-213},{-184,-193,-190,-119,-200,-137},{-159,-122,-192,-132,-221,-158},{-196,-217,-219,-224,-182,-103},{-188,-151,-129,-172,-222,-134},{-222,-155,-201,-148,-113,-124},{-172,-179,-118,-204,-159,-150},{-172,-171,-127,-204,-203,-119},{-134,-184,-159,-174,-108,-209},{-180,-163,-113,-121,-156,-113},{-167,-116,-98,-171,-109,-169},{-127,-171,-204,-201,-109,-140},{-209,-217,-103,-190,-161,-179},{-106,-221,-156,-134,-198,-225},{-190,-214,-111,-203,-130,-185},{-196,-150,-132,-98,-166,-100},{-166,-129,-192,-225,-171,-209},{-185,-134,-188,-206,-150,-147},{-182,-158,-182,-135,-113,-213}}},{{{-321,-178,-284,-226,-219,-321},{-261,-146,-146,-162,-238,-236},{-166,-291,-196,-303,-208,-192},{-199,-210,-224,-182,-182,-219},{-159,-273,-298,-243,-192,-256},{-252,-280,-141,-312,-231,-261},{-305,-291,-139,-139,-171,-233},{-148,-148,-307,-266,-180,-247},{-146,-240,-215,-208,-323,-249},{-231,-270,-236,-159,-270,-296},{-217,-310,-206,-162,-314,-314},{-245,-162,-155,-157,-321,-224},{-305,-319,-233,-192,-173,-215},{-150,-162,-199,-157,-321,-215},{-282,-321,-307,-173,-148,-229},{-173,-226,-310,-245,-141,-273},{-291,-273,-252,-143,-178,-217},{-203,-224,-203,-280,-215,-256},{-280,-231,-213,-157,-307,-189},{-139,-307,-289,-182,-157,-143},{-277,-141,-252,-169,-245,-273},{-233,-224,-233,-286,-222,-187},{-194,-289,-189,-171,-222,-206},{-243,-157,-226,-270,-185,-247},{-233,-164,-169,-245,-187,-240},{-159,-229,-282,-226,-291,-222},{-238,-162,-252,-169,-291,-219},{-259,-141,-289,-296,-208,-247},{-199,-219,-229,-187,-321,-305},{-143,-275,-143,-298,-321,-201},{-226,-182,-312,-282,-319,-233},{-222,-268,-141,-164,-280,-312},{-266,-247,-169,-157,-159,-259},{-286,-148,-217,-296,-247,-187},{-314,-159,-312,-254,-321,-150},{-293,-268,-152,-229,-155,-268},{-291,-169,-296,-213,-289,-176},{-266,-240,-247,-166,-208,-280},{-277,-247,-291,-150,-157,-310},{-171,-210,-187,-307,-289,-249},{-213,-180,-203,-321,-222,-300},{-312,-259,-231,-245,-254,-323},{-224,-305,-282,-289,-280,-192},{-169,-280,-307,-178,-203,-314},{-280,-263,-296,-226,-219,-159},{-286,-171,-155,-215,-169,-199},{-180,-224,-173,-164,-150,-280},{-206,-266,-312,-164,-261,-164},{-286,-252,-152,-180,-314,-206},{-300,-289,-206,-159,-219,-194}},{{-300,-307,-213,-185,-178,-169},{-162,-280,-321,-298,-173,-210},{-293,-280,-162,-256,-150,-275},{-146,-259,-300,-256,-259,-208},{-310,-213,-323,-300,-226,-173},{-187,-173,-157,-203,-273,-157},{-187,-268,-213,-268,-303,-300},{-280,-310,-310,-148,-323,-155},{-189,-289,-245,-178,-155,-314},{-196,-141,-210,-169,-199,-139},{-312,-162,-296,-222,-321,-215},{-238,-268,-139,-171,-305,-293},{-263,-187,-199,-275,-146,-146},{-166,-201,-268,-164,-213,-289},{-206,-282,-231,-150,-141,-229},{-210,-226,-245,-275,-150,-141},{-180,-187,-206,-189,-215,-157},{-173,-164,-249,-307,-189,-143},{-280,-249,-217,-229,-323,-321},{-157,-236,-252,-173,-289,-280},{-178,-266,-312,-157,-173,-171},{-162,-280,-169,-284,-182,-164},{-243,-208,-319,-312,-152,-233},{-180,-321,-146,-252,-173,-148},{-226,-178,-310,-146,-199,-247},{-224,-316,-187,-236,-289,-252},{-173,-263,-213,-263,-182,-300},{-249,-215,-289,-152,-194,-300},{-203,-146,-289,-206,-243,-247},{-296,-296,-173,-282,-298,-224},{-208,-171,-298,-222,-236,-152},{-240,-189,-240,-312,-187,-155},{-159,-229,-159,-323,-249,-280},{-247,-189,-155,-310,-300,-162},{-194,-286,-222,-240,-189,-252},{-146,-162,-291,-226,-180,-155},{-321,-182,-219,-298,-233,-192},{-213,-143,-196,-159,-164,-261},{-171,-314,-263,-159,-305,-215},{-199,-323,-266,-206,-219,-164},{-233,-249,-303,-196,-238,-226},{-277,-139,-226,-273,-143,-275},{-238,-201,-187,-305,-254,-252},{-300,-238,-194,-316,-148,-146},{-263,-303,-245,-266,-245,-298},{-284,-266,-282,-277,-300,-240},{-185,-203,-289,-289,-206,-155},{-143,-316,-305,-226,-139,-210},{-247,-289,-307,-268,-146,-238},{-219,-263,-224,-261,-201,-310}},{{-159,-176,-213,-270,-185,-159},{-219,-203,-201,-233,-219,-249},{-291,-178,-180,-182,-291,-300},{-323,-266,-256,-203,-182,-300},{-305,-238,-231,-226,-305,-298},{-159,-208,-157,-247,-286,-273},{-321,-298,-176,-243,-146,-233},{-268,-185,-194,-238,-277,-169},{-284,-284,-303,-300,-180,-176},{-229,-268,-139,-286,-275,-201},{-323,-141,-169,-176,-254,-215},{-222,-300,-245,-259,-249,-247},{-256,-240,-273,-238,-155,-192},{-199,-166,-201,-171,-152,-192},{-182,-275,-305,-210,-249,-159},{-176,-238,-238,-303,-166,-215},{-229,-164,-178,-316,-208,-240},{-303,-273,-180,-312,-166,-187},{-293,-150,-150,-182,-222,-268},{-316,-256,-215,-259,-245,-277},{-141,-194,-280,-203,-150,-266},{-275,-139,-187,-206,-196,-245},{-231,-240,-247,-261,-236,-319},{-213,-254,-291,-303,-270,-314},{-254,-180,-152,-187,-219,-263},{-298,-256,-259,-245,-180,-152},{-203,-323,-159,-316,-150,-187},{-178,-277,-236,-146,-217,-208},{-166,-164,-252,-247,-222,-282},{-169,-252,-284,-266,-139,-310},{-296,-196,-243,-169,-219,-277},{-303,-166,-164,-224,-196,-240},{-256,-286,-307,-243,-182,-171},{-166,-307,-245,-240,-157,-268},{-263,-289,-206,-254,-233,-164},{-314,-210,-238,-201,-323,-203},{-182,-213,-173,-254,-296,-189},{-252,-139,-310,-236,-164,-219},{-182,-139,-323,-229,-312,-222},{-178,-321,-280,-222,-157,-222},{-208,-319,-259,-215,-187,-296},{-148,-254,-284,-280,-323,-180},{-286,-245,-157,-275,-245,-201},{-277,-210,-249,-280,-146,-231},{-277,-194,-176,-206,-219,-310},{-143,-240,-185,-270,-284,-199},{-310,-189,-236,-141,-254,-323},{-213,-282,-280,-270,-222,-152},{-192,-277,-152,-245,-139,-249},{-293,-310,-224,-293,-319,-213}}},{{{-247,-228,-221,-282,-280,-202},{-267,-254,-217,-154,-284,-293},{-193,-269,-178,-239,-265,-213},{-156,-167,-167,-239,-189,-154},{-139,-141,-237,-299,-258,-280},{-180,-230,-289,-206,-139,-230},{-132,-152,-219,-176,-143,-208},{-241,-302,-228,-189,-150,-256},{-219,-137,-137,-213,-202,-156},{-260,-241,-267,-243,-130,-206},{-252,-135,-230,-171,-152,-289},{-193,-221,-143,-208,-239,-252},{-243,-252,-165,-250,-171,-243},{-237,-213,-180,-191,-152,-195},{-178,-245,-180,-174,-176,-150},{-176,-228,-184,-152,-174,-250},{-299,-161,-304,-304,-145,-154},{-232,-150,-219,-293,-204,-143},{-193,-148,-286,-219,-243,-132},{-156,-280,-195,-258,-295,-280},{-276,-269,-152,-187,-284,-286},{-197,-167,-239,-224,-165,-135},{-263,-276,-276,-176,-267,-247},{-213,-284,-224,-282,-206,-280},{-295,-289,-273,-163,-297,-234},{-152,-171,-226,-148,-265,-241},{-130,-130,-176,-265,-182,-254},{-299,-258,-271,-132,-291,-210},{-163,-156,-293,-137,-132,-184},{-278,-299,-271,-282,-241,-228},{-174,-221,-237,-258,-245,-263},{-208,-299,-132,-145,-256,-219},{-228,-206,-158,-256,-252,-132},{-197,-156,-135,-215,-302,-187},{-289,-184,-241,-245,-228,-254},{-239,-286,-284,-158,-293,-143},{-171,-299,-158,-299,-271,-252},{-219,-137,-152,-239,-132,-148},{-139,-265,-237,-135,-280,-232},{-291,-189,-184,-189,-278,-150},{-256,-169,-304,-145,-141,-154},{-304,-260,-197,-176,-226,-299},{-161,-210,-258,-263,-247,-302},{-163,-156,-180,-297,-202,-158},{-137,-278,-289,-139,-143,-273},{-156,-237,-280,-200,-276,-217},{-234,-284,-148,-265,-161,-197},{-189,-139,-158,-176,-247,-295},{-232,-161,-258,-273,-289,-291},{-174,-135,-245,-278,-263,-137}},{{-286,-137,-241,-130,-195,-226},{-291,-158,-243,-295,-152,-254},{-245,-280,-254,-239,-252,-269},{-265,-260,-187,-291,-304,-191},{-156,-148,-193,-256,-145,-197},{-210,-263,-228,-165,-191,-243},{-258,-299,-171,-284,-150,-148},{-150,-165,-289,-174,-176,-267},{-226,-169,-247,-191,-165,-265},{-148,-200,-187,-189,-165,-178},{-158,-148,-195,-221,-260,-269},{-278,-286,-137,-132,-245,-180},{-299,-191,-245,-210,-167,-232},{-295,-167,-154,-221,-276,-263},{-221,-267,-282,-234,-184,-243},{-169,-219,-219,-130,-154,-258},{-276,-210,-297,-252,-141,-291},{-256,-263,-299,-193,-299,-291},{-200,-245,-200,-161,-234,-273},{-299,-289,-169,-152,-260,-145},{-204,-213,-258,-282,-278,-289},{-189,-182,-158,-219,-263,-284},{-197,-250,-165,-263,-234,-286},{-226,-302,-163,-293,-176,-258},{-280,-156,-156,-256,-221,-221},{-206,-237,-254,-224,-145,-224},{-169,-282,-293,-250,-132,-141},{-213,-165,-184,-254,-187,-273},{-176,-208,-252,-239,-195,-286},{-258,-291,-161,-237,-230,-256},{-250,-132,-293,-141,-250,-206},{-152,-213,-161,-150,-148,-247},{-135,-182,-169,-163,-267,-210},{-167,-247,-204,-204,-195,-215},{-271,-135,-197,-158,-210,-256},{-206,-228,-195,-215,-232,-217},{-291,-156,-226,-135,-219,-289},{-256,-239,-228,-297,-278,-137},{-252,-187,-237,-295,-237,-276},{-273,-180,-234,-206,-191,-295},{-265,-213,-202,-226,-304,-254},{-273,-243,-276,-139,-163,-135},{-150,-247,-282,-154,-269,-302},{-221,-245,-252,-150,-132,-260},{-269,-258,-132,-182,-230,-243},{-174,-243,-167,-245,-132,-130},{-230,-247,-215,-163,-241,-241},{-150,-269,-165,-267,-302,-154},{-132,-234,-150,-176,-269,-165},{-150,-299,-154,-260,-184,-230}},{{-180,-258,-260,-200,-145,-171},{-152,-176,-226,-241,-202,-263},{-237,-174,-247,-171,-182,-187},{-263,-297,-217,-239,-180,-289},{-132,-291,-135,-269,-258,-193},{-217,-284,-143,-245,-239,-226},{-148,-232,-286,-200,-204,-139},{-234,-174,-286,-132,-228,-265},{-256,-250,-276,-174,-152,-276},{-219,-260,-284,-224,-145,-234},{-278,-174,-293,-156,-156,-256},{-260,-291,-143,-193,-143,-156},{-243,-210,-150,-265,-210,-184},{-260,-289,-278,-243,-137,-184},{-221,-210,-250,-208,-245,-145},{-195,-167,-206,-197,-184,-295},{-165,-191,-221,-130,-187,-245},{-197,-182,-182,-265,-228,-182},{-145,-171,-228,-148,-169,-276},{-165,-230,-256,-174,-208,-135},{-150,-239,-202,-178,-265,-174},{-210,-180,-278,-276,-189,-193},{-299,-215,-291,-291,-202,-143},{-182,-221,-215,-271,-165,-299},{-234,-273,-139,-180,-139,-193},{-200,-176,-263,-161,-289,-150},{-219,-165,-204,-228,-135,-237},{-130,-217,-158,-171,-171,-219},{-208,-191,-158,-276,-169,-137},{-135,-273,-189,-178,-169,-295},{-165,-156,-232,-132,-184,-291},{-145,-269,-219,-182,-213,-282},{-293,-208,-284,-145,-197,-193},{-289,-267,-234,-132,-234,-256},{-174,-245,-193,-187,-193,-165},{-297,-213,-215,-241,-278,-224},{-286,-224,-224,-258,-174,-171},{-247,-245,-241,-293,-189,-252},{-260,-221,-284,-210,-291,-145},{-158,-178,-145,-145,-304,-293},{-141,-224,-263,-284,-130,-213},{-230,-297,-156,-241,-226,-273},{-163,-152,-137,-265,-197,-254},{-256,-280,-206,-263,-286,-224},{-161,-284,-239,-282,-152,-267},{-302,-241,-141,-299,-165,-200},{-189,-182,-293,-282,-267,-204},{-150,-230,-254,-215,-167,-171},{-295,-204,-145,-200,-169,-152},{-265,-250,-145,-247,-250,-219}}},{{{-197,-293,-309,-298,-338,-223},{-202,-176,-277,-271,-255,-306},{-250,-181,-255,-332,-351,-215},{-362,-253,-356,-356,-263,-367},{-178,-269,-250,-168,-314,-332},{-274,-186,-364,-237,-176,-298},{-247,-362,-359,-311,-340,-258},{-165,-282,-269,-301,-298,-285},{-253,-178,-285,-170,-370,-287},{-343,-330,-277,-207,-194,-295},{-271,-181,-170,-317,-207,-215},{-335,-285,-343,-306,-234,-253},{-200,-226,-295,-314,-309,-285},{-298,-274,-250,-290,-173,-370},{-303,-223,-359,-178,-173,-176},{-229,-354,-176,-370,-242,-301},{-314,-372,-301,-197,-279,-192},{-282,-197,-295,-346,-261,-168},{-332,-184,-338,-226,-213,-231},{-213,-221,-266,-173,-362,-226},{-239,-356,-181,-176,-266,-186},{-247,-223,-162,-279,-231,-255},{-215,-261,-239,-346,-322,-210},{-258,-247,-160,-213,-266,-340},{-242,-346,-319,-338,-181,-202},{-282,-263,-314,-194,-343,-242},{-253,-176,-356,-181,-258,-314},{-215,-258,-332,-255,-319,-356},{-362,-274,-287,-274,-359,-285},{-311,-221,-340,-160,-215,-335},{-218,-327,-356,-282,-346,-364},{-223,-250,-332,-309,-176,-356},{-332,-231,-186,-293,-231,-372},{-311,-319,-226,-186,-354,-367},{-298,-348,-266,-372,-274,-306},{-162,-311,-343,-165,-354,-354},{-322,-322,-215,-247,-330,-231},{-255,-168,-301,-250,-314,-356},{-213,-271,-237,-231,-285,-290},{-258,-269,-348,-173,-343,-186},{-242,-186,-327,-362,-330,-245},{-253,-293,-239,-279,-168,-372},{-311,-221,-322,-231,-370,-340},{-194,-282,-362,-327,-237,-205},{-226,-261,-303,-330,-362,-194},{-168,-210,-322,-359,-234,-343},{-168,-168,-287,-194,-338,-215},{-186,-282,-205,-207,-290,-162},{-165,-234,-266,-215,-372,-301},{-258,-250,-234,-170,-317,-295}},{{-207,-335,-218,-293,-309,-340},{-319,-364,-207,-362,-245,-165},{-271,-210,-223,-354,-239,-269},{-168,-348,-173,-343,-160,-340},{-351,-279,-213,-317,-367,-279},{-279,-218,-213,-309,-202,-263},{-263,-215,-178,-354,-271,-285},{-359,-160,-356,-237,-170,-359},{-237,-346,-338,-370,-282,-255},{-168,-221,-301,-343,-215,-245},{-168,-370,-165,-348,-303,-229},{-314,-160,-162,-207,-226,-332},{-234,-367,-343,-330,-295,-266},{-335,-309,-245,-279,-229,-301},{-282,-271,-221,-340,-234,-263},{-205,-340,-184,-261,-234,-370},{-301,-165,-223,-306,-301,-245},{-202,-351,-290,-372,-242,-168},{-218,-242,-295,-200,-372,-348},{-210,-322,-162,-325,-346,-200},{-332,-263,-319,-255,-354,-162},{-261,-343,-200,-295,-168,-207},{-340,-207,-277,-229,-317,-245},{-282,-210,-186,-314,-348,-255},{-282,-189,-168,-162,-242,-186},{-298,-255,-340,-335,-325,-255},{-200,-359,-332,-266,-250,-372},{-173,-178,-314,-287,-202,-231},{-335,-311,-372,-346,-245,-356},{-274,-168,-266,-160,-218,-234},{-210,-239,-226,-335,-229,-338},{-338,-274,-226,-205,-215,-253},{-239,-200,-359,-325,-271,-279},{-178,-271,-160,-231,-322,-231},{-359,-210,-210,-194,-168,-210},{-255,-332,-215,-346,-205,-271},{-165,-330,-293,-282,-311,-359},{-322,-194,-202,-287,-335,-309},{-231,-370,-330,-367,-218,-311},{-197,-223,-293,-255,-340,-223},{-356,-258,-274,-338,-176,-205},{-311,-287,-197,-181,-221,-207},{-213,-356,-346,-317,-258,-287},{-213,-343,-205,-184,-197,-184},{-285,-223,-229,-261,-335,-242},{-160,-197,-325,-343,-162,-279},{-237,-359,-340,-202,-231,-205},{-189,-261,-213,-263,-168,-218},{-202,-165,-362,-282,-210,-223},{-247,-170,-207,-213,-348,-229}},{{-362,-205,-178,-372,-194,-215},{-261,-372,-293,-200,-348,-287},{-237,-274,-303,-173,-202,-301},{-330,-231,-354,-301,-218,-202},{-223,-290,-258,-184,-343,-372},{-338,-186,-165,-293,-247,-258},{-317,-237,-364,-301,-178,-207},{-293,-237,-200,-266,-266,-274},{-218,-287,-189,-340,-202,-255},{-218,-263,-306,-354,-370,-317},{-170,-370,-317,-245,-253,-181},{-285,-356,-285,-325,-293,-192},{-186,-160,-253,-325,-327,-338},{-338,-215,-170,-293,-207,-311},{-207,-231,-348,-327,-346,-226},{-311,-362,-215,-301,-332,-242},{-335,-261,-202,-181,-210,-229},{-330,-362,-242,-218,-367,-348},{-258,-311,-282,-271,-327,-181},{-346,-181,-327,-317,-263,-301},{-362,-242,-340,-274,-330,-298},{-279,-165,-277,-322,-160,-274},{-194,-237,-194,-279,-253,-215},{-202,-184,-298,-317,-202,-325},{-274,-205,-319,-168,-277,-362},{-168,-295,-223,-309,-247,-290},{-197,-327,-298,-176,-269,-237},{-200,-309,-255,-362,-242,-213},{-186,-343,-332,-346,-295,-215},{-160,-210,-354,-343,-218,-279},{-186,-351,-311,-295,-309,-242},{-229,-170,-197,-170,-160,-202},{-322,-210,-319,-279,-218,-261},{-239,-335,-340,-295,-277,-317},{-367,-271,-351,-202,-277,-247},{-173,-186,-197,-330,-200,-303},{-173,-271,-362,-194,-194,-332},{-346,-255,-359,-194,-351,-237},{-184,-364,-282,-319,-210,-314},{-298,-364,-250,-317,-261,-242},{-298,-242,-340,-282,-173,-261},{-335,-197,-340,-362,-226,-234},{-325,-306,-340,-277,-239,-359},{-226,-364,-242,-282,-362,-189},{-207,-319,-269,-213,-226,-290},{-340,-226,-317,-234,-170,-338},{-274,-207,-210,-194,-271,-332},{-162,-338,-298,-239,-301,-255},{-173,-351,-290,-258,-237,-367},{-338,-354,-202,-332,-346,-346}}},{{{-179,-174,-190,-272,-255,-370},{-336,-252,-386,-308,-260,-179},{-235,-353,-258,-381,-255,-389},{-381,-342,-302,-344,-274,-389},{-199,-350,-241,-190,-361,-263},{-235,-308,-283,-246,-218,-392},{-258,-322,-274,-319,-274,-216},{-207,-367,-325,-370,-238,-378},{-221,-347,-224,-386,-190,-176},{-389,-358,-336,-353,-288,-361},{-244,-339,-305,-260,-272,-386},{-235,-272,-347,-196,-202,-381},{-249,-216,-322,-291,-350,-333},{-207,-308,-353,-347,-291,-176},{-269,-232,-302,-297,-174,-347},{-249,-328,-314,-179,-171,-266},{-277,-182,-221,-244,-224,-246},{-286,-213,-339,-227,-213,-358},{-213,-294,-244,-330,-339,-277},{-386,-353,-216,-179,-381,-244},{-392,-272,-249,-190,-370,-221},{-272,-213,-258,-241,-202,-381},{-342,-358,-255,-224,-249,-266},{-344,-185,-392,-342,-375,-392},{-286,-179,-176,-179,-272,-305},{-288,-266,-297,-258,-339,-305},{-316,-227,-277,-258,-252,-235},{-244,-274,-339,-193,-171,-305},{-182,-330,-266,-263,-204,-188},{-322,-199,-367,-274,-196,-328},{-280,-378,-392,-260,-249,-269},{-277,-196,-221,-249,-356,-364},{-344,-319,-221,-190,-272,-319},{-238,-241,-190,-246,-207,-308},{-269,-280,-182,-280,-353,-381},{-182,-241,-246,-188,-286,-358},{-291,-176,-213,-344,-280,-280},{-370,-213,-356,-171,-286,-190},{-241,-252,-182,-302,-176,-286},{-179,-204,-280,-196,-378,-336},{-272,-305,-249,-179,-372,-193},{-274,-392,-280,-185,-316,-188},{-227,-274,-266,-322,-367,-185},{-182,-272,-213,-246,-213,-193},{-269,-218,-347,-370,-202,-190},{-286,-193,-241,-202,-196,-266},{-367,-294,-370,-193,-230,-336},{-230,-255,-361,-353,-266,-224},{-230,-333,-283,-246,-188,-302},{-168,-188,-185,-244,-370,-252}},{{-330,-386,-221,-288,-216,-336},{-171,-244,-207,-202,-386,-221},{-291,-274,-361,-361,-241,-193},{-328,-367,-266,-328,-179,-218},{-235,-241,-188,-336,-311,-322},{-263,-249,-277,-375,-283,-361},{-294,-330,-322,-367,-314,-174},{-367,-319,-361,-288,-322,-316},{-277,-258,-235,-367,-316,-308},{-179,-356,-204,-255,-378,-384},{-179,-260,-274,-339,-361,-384},{-302,-218,-255,-227,-328,-199},{-386,-207,-333,-221,-350,-384},{-269,-319,-190,-375,-300,-185},{-246,-227,-311,-255,-350,-168},{-277,-291,-179,-255,-294,-260},{-202,-218,-305,-221,-280,-283},{-221,-196,-260,-224,-269,-188},{-280,-389,-232,-185,-330,-344},{-311,-305,-384,-350,-361,-291},{-196,-378,-277,-353,-386,-280},{-185,-322,-339,-216,-224,-283},{-361,-311,-199,-302,-381,-272},{-260,-389,-381,-367,-179,-274},{-372,-241,-384,-311,-241,-221},{-389,-241,-336,-280,-179,-235},{-288,-207,-168,-185,-185,-241},{-258,-238,-280,-280,-294,-213},{-260,-297,-286,-333,-221,-288},{-176,-353,-353,-375,-230,-235},{-364,-188,-350,-227,-316,-196},{-308,-204,-196,-370,-280,-171},{-302,-227,-202,-230,-230,-202},{-249,-232,-322,-269,-305,-330},{-179,-196,-266,-386,-174,-235},{-258,-171,-356,-210,-182,-361},{-238,-302,-347,-381,-204,-224},{-288,-193,-305,-176,-328,-213},{-288,-193,-244,-336,-255,-224},{-300,-174,-218,-370,-361,-174},{-179,-283,-174,-280,-336,-378},{-364,-269,-367,-280,-277,-213},{-322,-370,-199,-344,-294,-224},{-392,-314,-274,-378,-378,-199},{-269,-246,-168,-291,-372,-210},{-280,-196,-333,-218,-218,-199},{-308,-272,-263,-342,-350,-342},{-358,-207,-367,-174,-389,-244},{-291,-168,-216,-227,-305,-288},{-272,-356,-210,-176,-361,-280}},{{-392,-294,-358,-297,-196,-230},{-325,-308,-336,-249,-305,-188},{-344,-199,-288,-266,-266,-291},{-336,-210,-280,-291,-204,-196},{-193,-333,-294,-361,-244,-288},{-235,-325,-241,-246,-221,-260},{-328,-386,-319,-319,-328,-333},{-174,-364,-179,-255,-389,-171},{-294,-210,-300,-344,-272,-185},{-283,-325,-232,-305,-336,-244},{-314,-232,-347,-238,-204,-283},{-389,-305,-347,-291,-347,-280},{-188,-274,-188,-283,-199,-255},{-367,-386,-389,-272,-358,-230},{-302,-168,-241,-370,-258,-260},{-288,-325,-347,-305,-190,-392},{-241,-182,-381,-389,-168,-179},{-266,-342,-274,-190,-283,-386},{-308,-224,-176,-218,-179,-336},{-294,-386,-216,-356,-384,-272},{-322,-218,-308,-171,-258,-227},{-314,-263,-308,-347,-213,-179},{-260,-305,-333,-339,-274,-297},{-255,-241,-244,-241,-263,-308},{-305,-216,-199,-339,-221,-370},{-188,-322,-381,-260,-221,-216},{-174,-286,-204,-176,-353,-218},{-202,-210,-389,-361,-356,-389},{-218,-319,-336,-378,-314,-213},{-316,-356,-196,-344,-342,-350},{-300,-342,-263,-297,-356,-230},{-190,-188,-182,-361,-384,-190},{-316,-381,-224,-246,-325,-235},{-224,-381,-291,-227,-283,-266},{-302,-277,-224,-168,-210,-182},{-238,-207,-249,-179,-339,-356},{-255,-272,-344,-179,-238,-322},{-210,-232,-238,-330,-378,-224},{-232,-269,-269,-300,-386,-288},{-353,-280,-199,-179,-210,-252},{-316,-319,-179,-314,-347,-216},{-308,-269,-311,-336,-179,-389},{-356,-210,-232,-280,-171,-372},{-179,-199,-269,-216,-283,-171},{-350,-305,-328,-319,-300,-386},{-193,-297,-325,-358,-302,-230},{-196,-269,-389,-316,-255,-179},{-174,-269,-190,-193,-311,-263},{-196,-213,-305,-389,-336,-330},{-210,-235,-302,-325,-185,-347}}},{{{-174,-216,-182,-305,-249,-305},{-308,-364,-193,-378,-269,-238},{-241,-319,-370,-308,-381,-375},{-350,-224,-193,-224,-314,-316},{-246,-241,-179,-319,-389,-339},{-333,-221,-294,-207,-171,-378},{-246,-202,-235,-358,-196,-241},{-176,-294,-344,-378,-176,-305},{-297,-171,-260,-269,-241,-185},{-190,-218,-210,-291,-389,-367},{-277,-185,-330,-252,-266,-347},{-179,-238,-221,-350,-179,-361},{-291,-193,-330,-325,-182,-213},{-182,-300,-277,-230,-266,-185},{-294,-249,-272,-202,-288,-235},{-246,-244,-294,-361,-319,-179},{-328,-244,-294,-297,-372,-302},{-274,-286,-216,-319,-207,-339},{-361,-283,-330,-350,-291,-227},{-328,-356,-361,-350,-325,-202},{-260,-210,-258,-302,-288,-375},{-258,-361,-168,-288,-210,-389},{-230,-244,-244,-221,-386,-308},{-308,-372,-297,-252,-297,-330},{-356,-291,-356,-342,-196,-168},{-235,-328,-218,-204,-386,-171},{-325,-302,-367,-216,-297,-350},{-266,-330,-291,-258,-230,-202},{-350,-291,-244,-174,-269,-168},{-305,-389,-182,-260,-218,-294},{-381,-227,-218,-375,-260,-260},{-216,-308,-241,-188,-263,-260},{-174,-235,-238,-218,-232,-347},{-283,-266,-258,-207,-305,-272},{-291,-196,-356,-316,-386,-375},{-277,-258,-297,-272,-392,-241},{-381,-277,-370,-361,-249,-297},{-294,-190,-347,-174,-179,-280},{-353,-319,-221,-381,-204,-221},{-227,-241,-294,-216,-190,-188},{-311,-272,-358,-350,-230,-246},{-269,-221,-283,-386,-305,-353},{-314,-381,-210,-291,-221,-372},{-190,-277,-356,-322,-389,-244},{-188,-171,-392,-311,-370,-347},{-218,-213,-182,-319,-319,-193},{-244,-336,-280,-174,-305,-347},{-367,-274,-171,-314,-302,-216},{-213,-356,-269,-288,-314,-342},{-216,-350,-266,-336,-218,-378}},{{-241,-218,-328,-347,-358,-221},{-171,-375,-238,-204,-364,-328},{-260,-347,-274,-353,-336,-316},{-311,-283,-266,-361,-356,-179},{-325,-272,-274,-370,-232,-232},{-221,-269,-213,-249,-230,-204},{-361,-274,-384,-188,-258,-381},{-266,-207,-266,-238,-280,-274},{-235,-328,-297,-325,-176,-356},{-171,-392,-302,-179,-207,-350},{-255,-330,-342,-353,-179,-386},{-353,-182,-274,-182,-325,-322},{-333,-196,-302,-190,-300,-224},{-207,-308,-330,-196,-244,-182},{-232,-171,-196,-350,-347,-336},{-252,-255,-347,-193,-227,-174},{-171,-389,-274,-330,-174,-232},{-182,-204,-188,-314,-356,-356},{-300,-316,-305,-235,-260,-389},{-297,-319,-308,-252,-308,-350},{-347,-227,-171,-308,-364,-193},{-168,-370,-358,-238,-238,-244},{-375,-252,-238,-297,-204,-342},{-372,-367,-322,-260,-283,-389},{-286,-339,-314,-325,-375,-392},{-241,-319,-389,-300,-305,-274},{-272,-235,-297,-347,-386,-370},{-344,-260,-302,-308,-386,-174},{-238,-235,-294,-249,-356,-314},{-255,-182,-244,-316,-190,-263},{-244,-176,-266,-258,-210,-328},{-286,-174,-210,-272,-266,-297},{-322,-210,-319,-202,-232,-221},{-227,-235,-196,-311,-286,-319},{-252,-230,-266,-361,-193,-263},{-182,-179,-269,-339,-384,-392},{-252,-174,-258,-389,-199,-176},{-210,-224,-168,-255,-269,-364},{-384,-384,-308,-322,-168,-258},{-336,-252,-333,-286,-358,-204},{-316,-375,-356,-221,-280,-230},{-238,-339,-325,-316,-277,-389},{-378,-213,-370,-378,-311,-196},{-319,-358,-370,-280,-230,-330},{-207,-244,-179,-342,-207,-213},{-280,-272,-336,-210,-300,-308},{-347,-272,-375,-319,-193,-230},{-372,-389,-294,-266,-288,-344},{-378,-353,-252,-392,-190,-269},{-190,-370,-207,-193,-297,-319}},{{-344,-193,-286,-266,-255,-364},{-207,-224,-210,-171,-185,-300},{-294,-221,-168,-339,-330,-344},{-353,-330,-232,-347,-361,-378},{-202,-199,-302,-389,-291,-272},{-216,-384,-258,-325,-227,-258},{-358,-204,-232,-202,-238,-302},{-269,-283,-386,-333,-176,-224},{-308,-297,-280,-367,-322,-207},{-221,-305,-193,-288,-389,-260},{-384,-202,-274,-266,-182,-230},{-302,-288,-241,-168,-358,-252},{-305,-249,-316,-308,-350,-286},{-392,-241,-263,-302,-384,-386},{-300,-266,-266,-384,-213,-353},{-356,-286,-241,-207,-272,-305},{-260,-322,-224,-286,-288,-227},{-244,-218,-280,-224,-336,-244},{-204,-342,-294,-286,-249,-277},{-232,-232,-342,-269,-269,-375},{-288,-314,-375,-356,-325,-361},{-286,-277,-202,-333,-210,-384},{-316,-319,-210,-202,-316,-230},{-168,-241,-333,-291,-179,-392},{-300,-378,-350,-263,-193,-325},{-174,-176,-305,-272,-305,-308},{-202,-364,-179,-196,-291,-241},{-333,-199,-358,-353,-311,-244},{-392,-230,-216,-272,-288,-274},{-218,-386,-168,-210,-330,-218},{-179,-356,-353,-386,-263,-204},{-252,-182,-322,-386,-269,-260},{-216,-274,-288,-213,-325,-235},{-216,-283,-193,-316,-213,-347},{-378,-381,-342,-288,-350,-392},{-305,-291,-230,-339,-364,-328},{-347,-297,-375,-322,-330,-361},{-199,-319,-347,-244,-249,-249},{-176,-199,-305,-255,-322,-300},{-171,-277,-263,-266,-193,-249},{-364,-370,-356,-174,-288,-227},{-344,-291,-353,-328,-232,-174},{-193,-266,-258,-202,-297,-339},{-255,-218,-213,-174,-258,-196},{-255,-302,-207,-353,-188,-342},{-342,-384,-230,-314,-328,-258},{-314,-246,-188,-297,-386,-277},{-210,-224,-269,-274,-218,-168},{-372,-370,-224,-188,-302,-353},{-227,-356,-199,-367,-339,-286}}},{{{-260,-235,-246,-255,-277,-328},{-255,-241,-274,-325,-308,-283},{-274,-384,-342,-300,-241,-202},{-288,-246,-235,-255,-367,-221},{-204,-291,-344,-356,-392,-199},{-367,-182,-199,-216,-249,-176},{-171,-305,-171,-241,-286,-389},{-392,-213,-176,-202,-297,-286},{-319,-277,-358,-207,-272,-238},{-288,-347,-392,-235,-210,-344},{-308,-344,-230,-241,-288,-364},{-300,-370,-230,-216,-375,-280},{-291,-227,-232,-263,-255,-252},{-280,-171,-325,-356,-224,-238},{-378,-230,-272,-238,-188,-356},{-185,-308,-202,-249,-328,-361},{-213,-302,-263,-277,-196,-171},{-182,-347,-308,-227,-176,-286},{-204,-235,-280,-168,-300,-364},{-188,-263,-294,-280,-305,-347},{-297,-227,-227,-330,-344,-224},{-221,-263,-358,-291,-266,-207},{-356,-258,-344,-272,-244,-190},{-333,-238,-344,-384,-347,-297},{-344,-174,-342,-235,-232,-367},{-322,-333,-300,-216,-196,-333},{-350,-389,-235,-308,-370,-244},{-333,-266,-182,-238,-330,-392},{-218,-319,-274,-350,-258,-255},{-227,-255,-336,-266,-241,-339},{-252,-188,-325,-358,-342,-241},{-361,-375,-381,-196,-266,-364},{-319,-302,-288,-367,-300,-224},{-199,-291,-358,-316,-246,-302},{-171,-280,-213,-232,-378,-179},{-358,-280,-305,-353,-168,-361},{-364,-339,-294,-224,-333,-353},{-347,-266,-202,-300,-342,-314},{-224,-347,-342,-316,-300,-325},{-370,-361,-347,-196,-333,-182},{-232,-244,-286,-185,-339,-372},{-244,-294,-176,-294,-216,-210},{-277,-283,-328,-358,-207,-325},{-294,-375,-350,-361,-316,-280},{-280,-347,-375,-244,-353,-361},{-311,-370,-221,-182,-255,-196},{-224,-230,-350,-235,-302,-291},{-199,-316,-238,-230,-202,-288},{-333,-258,-221,-218,-342,-182},{-336,-252,-300,-174,-244,-384}},{{-179,-272,-255,-330,-286,-384},{-193,-235,-353,-244,-188,-342},{-260,-190,-277,-174,-283,-386},{-333,-294,-188,-384,-238,-218},{-277,-316,-339,-216,-328,-322},{-277,-344,-297,-246,-235,-358},{-246,-179,-322,-291,-216,-372},{-381,-171,-344,-193,-196,-361},{-381,-370,-300,-356,-288,-283},{-288,-252,-272,-213,-196,-328},{-235,-182,-168,-193,-291,-216},{-241,-372,-176,-221,-367,-266},{-210,-361,-216,-224,-179,-207},{-283,-294,-188,-392,-260,-300},{-244,-227,-232,-232,-277,-308},{-235,-244,-336,-300,-328,-333},{-235,-174,-325,-246,-286,-249},{-308,-302,-286,-174,-199,-210},{-269,-347,-283,-330,-372,-213},{-308,-258,-274,-319,-297,-213},{-246,-235,-263,-171,-249,-367},{-336,-389,-263,-356,-333,-305},{-190,-227,-353,-204,-392,-353},{-316,-300,-322,-356,-218,-314},{-336,-266,-392,-210,-171,-364},{-260,-319,-370,-199,-221,-204},{-216,-316,-269,-322,-322,-308},{-308,-185,-370,-174,-252,-333},{-244,-176,-255,-288,-333,-288},{-202,-283,-344,-389,-288,-389},{-381,-266,-325,-255,-255,-263},{-314,-196,-241,-252,-392,-372},{-361,-381,-272,-263,-188,-202},{-199,-196,-221,-353,-224,-330},{-274,-370,-277,-372,-193,-244},{-386,-300,-339,-353,-372,-286},{-274,-302,-188,-381,-297,-364},{-193,-319,-193,-372,-291,-232},{-227,-196,-218,-199,-190,-325},{-218,-367,-361,-246,-392,-235},{-283,-252,-255,-199,-188,-297},{-364,-300,-216,-322,-249,-176},{-392,-199,-283,-255,-305,-358},{-339,-204,-347,-325,-330,-266},{-375,-210,-224,-227,-330,-350},{-249,-260,-322,-356,-185,-280},{-260,-193,-260,-260,-372,-227},{-274,-344,-182,-381,-378,-263},{-286,-322,-330,-252,-210,-353},{-227,-386,-260,-375,-389,-314}},{{-277,-252,-207,-218,-227,-179},{-182,-311,-353,-280,-249,-269},{-384,-386,-274,-322,-249,-221},{-322,-336,-266,-246,-294,-375},{-300,-249,-372,-266,-384,-330},{-227,-381,-370,-364,-249,-252},{-314,-174,-311,-224,-210,-344},{-342,-266,-213,-179,-280,-241},{-294,-168,-386,-232,-333,-241},{-274,-375,-246,-227,-311,-311},{-185,-356,-381,-283,-204,-322},{-221,-381,-196,-350,-185,-277},{-319,-372,-356,-238,-316,-339},{-168,-316,-174,-280,-244,-216},{-238,-322,-274,-339,-204,-375},{-216,-241,-308,-188,-252,-364},{-274,-241,-339,-330,-305,-252},{-190,-238,-235,-305,-286,-311},{-314,-370,-378,-174,-224,-378},{-269,-339,-196,-378,-272,-274},{-277,-305,-286,-238,-168,-255},{-210,-218,-280,-378,-325,-269},{-221,-210,-378,-185,-356,-322},{-336,-316,-339,-269,-311,-389},{-389,-218,-336,-342,-286,-358},{-269,-207,-347,-330,-230,-325},{-216,-389,-246,-218,-199,-232},{-280,-322,-372,-342,-294,-350},{-330,-241,-230,-305,-328,-266},{-244,-188,-202,-269,-249,-221},{-319,-305,-272,-241,-204,-272},{-297,-210,-336,-347,-344,-378},{-370,-325,-378,-188,-168,-216},{-252,-378,-339,-350,-188,-204},{-260,-328,-241,-314,-386,-291},{-185,-319,-386,-202,-246,-260},{-386,-294,-342,-378,-249,-375},{-260,-260,-361,-311,-218,-221},{-336,-210,-263,-244,-392,-260},{-302,-344,-336,-286,-364,-232},{-269,-311,-358,-238,-370,-182},{-249,-218,-272,-232,-176,-316},{-367,-333,-305,-372,-232,-218},{-294,-325,-266,-238,-392,-218},{-336,-199,-238,-356,-272,-384},{-227,-372,-218,-353,-384,-316},{-300,-386,-216,-347,-274,-199},{-364,-339,-356,-384,-252,-325},{-305,-199,-266,-221,-235,-241},{-375,-255,-319,-333,-193,-272}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={2070,261,23,150,170,304,400,300,160}; // initial inventory 
int ubiv[I]={2740,522,414,300,341,608,800,600,320}; // the upper bounds of inventory 
int len[I1][I2]={{3,6,2,2,3,3,2,1}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,7.19,13.32,4.32,2.64,5.16,6.85,4.63,1.82}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{6.54,12.11,3.93,2.4,4.69,6.23,4.21,1.65}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={5.23,5.23,5.23,4.58,4.58,4.58,3.92,3.92,3.92,9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,3.14,3.14,3.14,2.75,2.75,2.75,2.36,2.36,2.36,1.92,1.92,1.92,1.68,1.68,1.68,1.44,1.44,1.44,3.75,3.75,3.75,3.28,3.28,3.28,2.81,2.81,2.81,4.98,4.98,4.98,4.36,4.36,4.36,3.74,3.74,3.74,3.37,3.37,3.37,2.95,2.95,2.95,2.53,2.53,2.53,1.32,1.32,1.32,1.16,1.16,1.16,0.99,0.99,0.99}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={8,4,3,7,4,3,7,4,3,5,3,2,6,3,2,6,3,2,8,4,3,7,4,3,8,4,3,8,4,3,7,4,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,8,4,3,8,5,3,8,4,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}}; // set of shipments in each bid 
int SHsts[SPN]={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,2,8,14,1,3,5,7,9,11,13,1,5,9,13,2,8,14,2,4,6,8,10,2,6,10,1,7,1,3,5,7,9,11,2,6,10,2,8,0,2,4,6,8,10,1,5,9,1,7,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,2,4,6,8,10,12,14,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,0,4,8,12,2,8,14,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,0,6,12,0,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,0,2,4,6,8,10,12,14,1,5,9,13,1,7,13,1,3,5,7,9,11,13,2,6,10,14,1,7,13,1,3,5,7,9,11,13,0,4,8,12,0,6,12,1,3,5,7,9,11,13,1,5,9,13,1,7,13,2,4,6,8,10,12,14,1,5,9,13,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,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,16,1,7,13,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14}; // set of start times of each shipment 
int SHets[SPN]={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,5,11,17,4,6,8,10,12,14,16,4,8,12,16,5,11,17,8,10,12,14,16,8,12,16,7,13,7,9,11,13,15,17,8,12,16,8,14,6,8,10,12,14,16,7,11,15,7,13,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,4,6,8,10,12,14,16,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,2,6,10,14,4,10,16,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,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,5,9,13,17,5,11,17,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,4,6,8,10,12,14,16,5,9,13,17,4,10,16,4,6,8,10,12,14,16,3,7,11,15,3,9,15,4,6,8,10,12,14,16,4,8,12,16,4,10,16,5,7,9,11,13,15,17,4,8,12,16,5,11,17,4,6,8,10,12,14,16,2,6,10,14,4,10,16,3,5,7,9,11,13,15,17,2,6,10,14,4,10,16,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,17,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15}; // set of end times of each shipment 
