int Dev = 50;// Deviation
extern const int CNN = 5;// 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 = 740;//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]={{{{11516,0,0,0,0,0},{12791,0,0,0,0,0},{11878,0,0,0,0,0},{12925,0,0,0,0,0},{11572,0,0,0,0,0},{11727,0,0,0,0,0},{13472,0,0,0,0,0},{12275,0,0,0,0,0},{13193,0,0,0,0,0},{11436,0,0,0,0,0},{12419,0,0,0,0,0},{12156,0,0,0,0,0},{11870,0,0,0,0,0},{13378,0,0,0,0,0},{12286,0,0,0,0,0},{12743,0,0,0,0,0},{12043,0,0,0,0,0},{12595,0,0,0,0,0},{12856,0,0,0,0,0},{12443,0,0,0,0,0}},{{12801,0,0,0,0,0},{12129,0,0,0,0,0},{12331,0,0,0,0,0},{12334,0,0,0,0,0},{12648,0,0,0,0,0},{12566,0,0,0,0,0},{12640,0,0,0,0,0},{12326,0,0,0,0,0},{13037,0,0,0,0,0},{12414,0,0,0,0,0},{11809,0,0,0,0,0},{12934,0,0,0,0,0},{12764,0,0,0,0,0},{13227,0,0,0,0,0},{11815,0,0,0,0,0},{12220,0,0,0,0,0},{12468,0,0,0,0,0},{12395,0,0,0,0,0},{12128,0,0,0,0,0},{12799,0,0,0,0,0}},{{11933,0,0,0,0,0},{12684,0,0,0,0,0},{11437,0,0,0,0,0},{10607,0,0,0,0,0},{11533,0,0,0,0,0},{11657,0,0,0,0,0},{11876,0,0,0,0,0},{11034,0,0,0,0,0},{11774,0,0,0,0,0},{11312,0,0,0,0,0},{11431,0,0,0,0,0},{11410,0,0,0,0,0},{11801,0,0,0,0,0},{12108,0,0,0,0,0},{11225,0,0,0,0,0},{11461,0,0,0,0,0},{11934,0,0,0,0,0},{10263,0,0,0,0,0},{11414,0,0,0,0,0},{10705,0,0,0,0,0}},{{9702,0,0,0,0,0},{10912,0,0,0,0,0},{10507,0,0,0,0,0},{10487,0,0,0,0,0},{10308,0,0,0,0,0},{10625,0,0,0,0,0},{9733,0,0,0,0,0},{10383,0,0,0,0,0},{11142,0,0,0,0,0},{10293,0,0,0,0,0},{10230,0,0,0,0,0},{9753,0,0,0,0,0},{10323,0,0,0,0,0},{10029,0,0,0,0,0},{10826,0,0,0,0,0},{10142,0,0,0,0,0},{9990,0,0,0,0,0},{9770,0,0,0,0,0},{10701,0,0,0,0,0},{10280,0,0,0,0,0}},{{8704,0,0,0,0,0},{9755,0,0,0,0,0},{9942,0,0,0,0,0},{9717,0,0,0,0,0},{9938,0,0,0,0,0},{9568,0,0,0,0,0},{10038,0,0,0,0,0},{8630,0,0,0,0,0},{9723,0,0,0,0,0},{8884,0,0,0,0,0},{9783,0,0,0,0,0},{9379,0,0,0,0,0},{9360,0,0,0,0,0},{9301,0,0,0,0,0},{10166,0,0,0,0,0},{9171,0,0,0,0,0},{9339,0,0,0,0,0},{9759,0,0,0,0,0},{9174,0,0,0,0,0},{9763,0,0,0,0,0}},{{9223,0,0,0,0,0},{9674,0,0,0,0,0},{9797,0,0,0,0,0},{9352,0,0,0,0,0},{9289,0,0,0,0,0},{8626,0,0,0,0,0},{9239,0,0,0,0,0},{8730,0,0,0,0,0},{8734,0,0,0,0,0},{10244,0,0,0,0,0},{9150,0,0,0,0,0},{9712,0,0,0,0,0},{9629,0,0,0,0,0},{9262,0,0,0,0,0},{9512,0,0,0,0,0},{8725,0,0,0,0,0},{9015,0,0,0,0,0},{9549,0,0,0,0,0},{9461,0,0,0,0,0},{9062,0,0,0,0,0}}},{{{-150,-379,-335,-244,-173,-226},{-438,-391,-400,-423,-350,-153},{-194,-288,-291,-200,-438,-335},{-244,-329,-365,-179,-373,-432},{-159,-209,-226,-412,-247,-341},{-441,-150,-223,-241,-215,-262},{-406,-376,-362,-420,-394,-350},{-318,-244,-379,-212,-259,-212},{-432,-297,-173,-420,-417,-341},{-185,-435,-153,-441,-294,-344},{-165,-235,-397,-270,-247,-197},{-265,-309,-394,-400,-335,-150},{-265,-376,-341,-341,-159,-279},{-438,-238,-235,-429,-359,-382},{-320,-320,-347,-373,-206,-262},{-179,-391,-256,-426,-438,-247},{-438,-441,-185,-288,-194,-409},{-388,-185,-173,-223,-238,-329},{-391,-435,-435,-194,-253,-370},{-353,-423,-218,-223,-262,-179}},{{-258,-400,-392,-222,-214,-189},{-145,-320,-204,-184,-320,-383},{-371,-312,-202,-156,-214,-161},{-328,-235,-375,-184,-224,-155},{-409,-157,-241,-236,-139,-373},{-397,-163,-347,-348,-328,-262},{-400,-429,-241,-340,-158,-194},{-270,-172,-185,-181,-344,-326},{-316,-295,-386,-266,-219,-298},{-206,-180,-165,-345,-347,-189},{-188,-169,-409,-288,-211,-267},{-197,-332,-252,-227,-400,-350},{-264,-209,-196,-403,-134,-285},{-400,-235,-412,-167,-275,-228},{-191,-149,-288,-170,-184,-158},{-409,-235,-199,-178,-160,-275},{-258,-352,-403,-181,-390,-207},{-188,-375,-162,-186,-376,-148},{-287,-317,-375,-290,-152,-337},{-220,-392,-190,-241,-184,-135}},{{-172,-150,-156,-224,-259,-282},{-328,-351,-317,-114,-308,-109},{-252,-305,-308,-305,-195,-278},{-338,-128,-154,-298,-268,-247},{-222,-213,-252,-289,-263,-159},{-148,-165,-175,-188,-216,-231},{-312,-317,-179,-177,-293,-251},{-160,-305,-170,-148,-227,-113},{-375,-121,-214,-116,-208,-264},{-365,-361,-130,-114,-210,-105},{-360,-167,-158,-278,-293,-181},{-360,-131,-189,-150,-118,-303},{-192,-358,-128,-311,-244,-154},{-225,-327,-186,-293,-240,-286},{-222,-348,-319,-130,-274,-185},{-358,-150,-203,-309,-120,-187},{-268,-298,-280,-316,-319,-237},{-260,-174,-245,-114,-118,-152},{-270,-189,-294,-273,-261,-117},{-250,-121,-119,-172,-190,-247}},{{-158,-131,-227,-163,-82,-173},{-296,-239,-93,-101,-135,-219},{-225,-275,-211,-155,-203,-80},{-290,-118,-188,-160,-127,-158},{-114,-125,-152,-117,-114,-99},{-195,-280,-131,-212,-101,-208},{-150,-172,-97,-244,-168,-163},{-124,-264,-129,-224,-205,-182},{-118,-262,-154,-174,-130,-224},{-296,-159,-97,-165,-101,-234},{-254,-142,-260,-175,-221,-154},{-128,-122,-145,-222,-148,-184},{-292,-273,-113,-230,-137,-162},{-130,-279,-172,-124,-231,-136},{-221,-107,-181,-227,-127,-128},{-254,-94,-263,-203,-125,-162},{-292,-165,-202,-162,-97,-115},{-290,-107,-199,-201,-160,-83},{-219,-112,-174,-184,-153,-85},{-187,-267,-158,-253,-241,-187}},{{-169,-125,-137,-203,-96,-85},{-102,-76,-144,-75,-75,-207},{-200,-210,-181,-178,-121,-151},{-103,-110,-216,-147,-146,-113},{-185,-206,-87,-134,-182,-210},{-91,-189,-190,-78,-134,-148},{-119,-212,-79,-168,-162,-204},{-88,-224,-194,-113,-151,-218},{-128,-127,-187,-107,-134,-126},{-117,-76,-91,-176,-97,-184},{-174,-148,-123,-169,-93,-94},{-162,-182,-93,-147,-134,-193},{-143,-100,-154,-143,-207,-154},{-112,-168,-94,-110,-93,-146},{-94,-146,-143,-141,-193,-179},{-131,-89,-128,-156,-215,-175},{-163,-77,-179,-201,-84,-75},{-189,-167,-165,-140,-203,-194},{-94,-186,-85,-168,-81,-175},{-166,-204,-216,-191,-162,-172}},{{-154,-109,-82,-203,-84,-200},{-160,-96,-100,-225,-187,-235},{-216,-216,-219,-136,-179,-180},{-87,-216,-213,-132,-201,-214},{-191,-154,-89,-100,-140,-222},{-98,-162,-116,-91,-80,-210},{-212,-90,-104,-137,-177,-130},{-209,-137,-109,-117,-167,-135},{-106,-206,-145,-143,-206,-114},{-213,-129,-110,-172,-209,-102},{-210,-129,-98,-112,-101,-202},{-100,-204,-226,-136,-109,-145},{-148,-144,-169,-169,-177,-169},{-188,-78,-94,-163,-208,-194},{-118,-76,-169,-220,-135,-224},{-97,-115,-98,-177,-142,-135},{-151,-173,-143,-179,-188,-147},{-207,-119,-83,-211,-214,-210},{-197,-112,-183,-163,-126,-140},{-123,-201,-205,-80,-140,-114}}},{{{-245,-189,-217,-177,-230,-275},{-134,-213,-119,-125,-171,-264},{-228,-248,-186,-156,-212,-197},{-87,-226,-172,-222,-202,-237},{-197,-194,-231,-131,-250,-164},{-163,-199,-117,-156,-182,-206},{-240,-128,-250,-249,-265,-187},{-133,-157,-124,-226,-144,-201},{-168,-113,-89,-208,-116,-229},{-151,-216,-180,-95,-169,-115},{-227,-139,-170,-197,-145,-277},{-171,-91,-96,-91,-112,-254},{-227,-233,-191,-116,-195,-277},{-89,-238,-130,-184,-267,-250},{-215,-196,-91,-143,-237,-147},{-165,-240,-259,-218,-241,-147},{-188,-144,-117,-251,-120,-145},{-86,-145,-131,-181,-190,-178},{-146,-91,-247,-163,-129,-243},{-222,-210,-256,-154,-127,-246}},{{-267,-201,-271,-137,-325,-319},{-162,-180,-224,-155,-142,-233},{-192,-299,-273,-228,-192,-226},{-265,-139,-198,-157,-339,-312},{-267,-162,-111,-298,-316,-224},{-297,-273,-258,-206,-158,-150},{-255,-283,-126,-192,-211,-233},{-216,-121,-215,-135,-222,-152},{-156,-254,-315,-325,-215,-264},{-105,-209,-168,-161,-327,-350},{-135,-228,-181,-327,-165,-181},{-297,-195,-285,-155,-181,-245},{-224,-291,-162,-276,-204,-129},{-246,-176,-253,-314,-192,-336},{-107,-107,-288,-309,-218,-331},{-196,-211,-313,-139,-142,-271},{-103,-303,-204,-296,-215,-138},{-253,-277,-315,-117,-309,-259},{-257,-148,-109,-252,-121,-131},{-182,-295,-281,-137,-172,-221}},{{-301,-309,-320,-362,-355,-368},{-264,-298,-348,-230,-285,-280},{-128,-260,-231,-343,-252,-209},{-321,-235,-309,-135,-399,-263},{-321,-306,-173,-186,-166,-294},{-277,-382,-343,-170,-382,-147},{-138,-382,-301,-302,-302,-218},{-230,-204,-228,-338,-249,-297},{-161,-240,-173,-178,-393,-209},{-242,-153,-338,-173,-307,-226},{-131,-354,-196,-270,-404,-266},{-153,-245,-314,-273,-296,-212},{-299,-319,-388,-165,-247,-294},{-230,-260,-144,-186,-291,-410},{-348,-184,-160,-194,-138,-272},{-338,-186,-333,-356,-199,-187},{-190,-240,-267,-375,-161,-402},{-168,-158,-210,-140,-302,-156},{-133,-135,-262,-340,-194,-422},{-230,-375,-307,-194,-163,-249}},{{-165,-312,-441,-223,-331,-319},{-338,-209,-206,-178,-406,-187},{-416,-400,-158,-286,-265,-334},{-419,-288,-381,-445,-193,-235},{-257,-429,-262,-361,-205,-415},{-367,-309,-405,-211,-376,-178},{-266,-218,-215,-229,-373,-256},{-419,-359,-408,-172,-412,-403},{-324,-397,-358,-325,-352,-373},{-344,-265,-209,-184,-199,-364},{-283,-370,-429,-424,-448,-150},{-407,-156,-250,-427,-394,-196},{-231,-212,-328,-313,-271,-280},{-234,-415,-280,-364,-304,-427},{-393,-312,-229,-373,-452,-265},{-199,-323,-152,-337,-259,-229},{-194,-306,-414,-271,-319,-442},{-283,-312,-325,-211,-253,-271},{-399,-220,-352,-406,-268,-301},{-373,-426,-375,-184,-319,-154}},{{-304,-262,-169,-306,-212,-218},{-265,-310,-208,-288,-391,-432},{-229,-385,-370,-180,-315,-334},{-352,-286,-421,-234,-244,-194},{-376,-283,-370,-192,-297,-287},{-310,-304,-361,-435,-423,-165},{-316,-391,-415,-435,-171,-400},{-373,-169,-280,-300,-300,-252},{-373,-301,-274,-438,-288,-304},{-310,-415,-331,-150,-297,-148},{-421,-316,-376,-273,-315,-267},{-427,-301,-367,-156,-171,-264},{-172,-244,-418,-426,-156,-412},{-412,-211,-436,-231,-244,-235},{-403,-421,-418,-243,-359,-336},{-163,-295,-319,-261,-250,-389},{-238,-166,-445,-393,-238,-281},{-274,-394,-187,-234,-341,-293},{-187,-301,-442,-402,-241,-183},{-232,-193,-452,-357,-303,-226}},{{-322,-190,-320,-222,-335,-268},{-185,-279,-152,-253,-182,-308},{-276,-246,-328,-343,-248,-347},{-165,-287,-230,-227,-340,-134},{-296,-354,-379,-293,-197,-260},{-202,-388,-238,-338,-248,-233},{-239,-151,-276,-224,-223,-263},{-202,-321,-209,-359,-218,-218},{-276,-156,-347,-145,-220,-141},{-351,-393,-293,-214,-335,-223},{-413,-290,-282,-253,-348,-223},{-259,-346,-293,-137,-369,-308},{-405,-357,-252,-251,-343,-345},{-331,-324,-192,-304,-284,-181},{-191,-140,-331,-333,-381,-154},{-428,-312,-406,-232,-200,-362},{-285,-153,-149,-364,-307,-367},{-291,-145,-287,-156,-328,-295},{-279,-251,-285,-248,-225,-211},{-291,-399,-304,-248,-210,-181}}},{{{-174,-438,-164,-234,-266,-201},{-164,-220,-382,-332,-240,-174},{-378,-164,-477,-424,-345,-171},{-385,-438,-385,-283,-438,-342},{-237,-296,-171,-447,-306,-181},{-164,-418,-184,-480,-388,-276},{-355,-461,-477,-201,-474,-382},{-329,-368,-299,-372,-424,-451},{-470,-290,-359,-424,-438,-247},{-197,-441,-220,-388,-349,-388},{-253,-365,-214,-257,-359,-280},{-250,-211,-197,-266,-421,-316},{-428,-204,-184,-375,-270,-178},{-494,-329,-484,-201,-421,-332},{-214,-342,-467,-322,-286,-316},{-214,-438,-421,-464,-263,-178},{-164,-345,-253,-421,-220,-207},{-378,-477,-405,-434,-290,-247},{-263,-204,-283,-431,-273,-464},{-464,-345,-352,-171,-247,-322}},{{-272,-380,-440,-421,-277,-331},{-285,-206,-383,-254,-231,-430},{-325,-351,-179,-339,-339,-388},{-430,-177,-456,-458,-172,-232},{-466,-444,-405,-374,-185,-193},{-236,-258,-373,-188,-314,-418},{-367,-261,-313,-443,-305,-181},{-351,-473,-169,-330,-305,-391},{-276,-187,-303,-289,-370,-439},{-259,-364,-431,-261,-354,-340},{-236,-312,-338,-323,-246,-307},{-266,-464,-418,-471,-228,-244},{-213,-248,-191,-411,-434,-295},{-177,-422,-396,-374,-268,-196},{-341,-428,-313,-166,-459,-163},{-449,-448,-258,-468,-163,-358},{-216,-216,-252,-210,-268,-283},{-328,-393,-293,-264,-320,-313},{-466,-161,-211,-314,-213,-295},{-417,-364,-453,-251,-363,-394}},{{-260,-406,-386,-231,-294,-368},{-363,-346,-372,-381,-284,-221},{-319,-190,-249,-386,-260,-144},{-174,-207,-143,-169,-286,-332},{-148,-420,-314,-207,-180,-280},{-404,-325,-272,-405,-273,-378},{-307,-348,-325,-253,-278,-272},{-153,-302,-190,-302,-209,-208},{-289,-210,-420,-253,-146,-172},{-156,-357,-277,-218,-382,-175},{-304,-173,-255,-209,-286,-157},{-150,-423,-381,-171,-199,-342},{-174,-305,-403,-332,-390,-275},{-336,-337,-300,-386,-297,-306},{-289,-386,-302,-326,-278,-257},{-174,-363,-193,-307,-183,-157},{-389,-173,-311,-199,-350,-254},{-257,-380,-165,-400,-270,-321},{-434,-156,-412,-155,-276,-188},{-148,-199,-160,-139,-257,-383}},{{-288,-347,-137,-132,-137,-241},{-230,-340,-244,-280,-327,-250},{-228,-197,-292,-254,-186,-313},{-202,-175,-182,-120,-329,-153},{-265,-126,-292,-303,-246,-320},{-143,-124,-192,-157,-157,-250},{-328,-209,-145,-155,-293,-158},{-370,-216,-147,-134,-132,-267},{-290,-287,-133,-307,-316,-201},{-155,-134,-190,-148,-289,-151},{-152,-151,-135,-208,-260,-328},{-205,-248,-133,-261,-152,-261},{-240,-146,-251,-129,-249,-208},{-188,-129,-218,-305,-226,-118},{-202,-243,-242,-215,-228,-328},{-332,-182,-263,-141,-112,-247},{-125,-182,-225,-275,-112,-278},{-148,-330,-118,-268,-130,-191},{-150,-190,-244,-342,-159,-326},{-325,-122,-147,-134,-267,-171}},{{-169,-168,-279,-246,-130,-185},{-210,-143,-309,-239,-284,-244},{-256,-229,-262,-136,-116,-260},{-193,-286,-267,-229,-307,-254},{-210,-279,-313,-302,-290,-248},{-165,-206,-162,-277,-170,-107},{-254,-193,-185,-204,-225,-151},{-174,-147,-214,-147,-296,-248},{-273,-235,-258,-260,-105,-239},{-226,-227,-202,-284,-212,-225},{-189,-208,-252,-239,-281,-120},{-260,-300,-231,-178,-298,-265},{-250,-164,-284,-195,-151,-176},{-289,-223,-143,-223,-193,-288},{-184,-149,-250,-210,-246,-281},{-306,-176,-200,-185,-160,-147},{-213,-122,-122,-258,-139,-151},{-250,-269,-181,-191,-174,-292},{-306,-284,-235,-212,-227,-256},{-308,-170,-260,-191,-206,-151}},{{-292,-267,-156,-247,-150,-241},{-181,-260,-251,-315,-255,-308},{-166,-128,-112,-306,-211,-112},{-296,-307,-135,-269,-130,-299},{-250,-212,-196,-174,-143,-146},{-269,-227,-310,-256,-163,-261},{-258,-172,-198,-156,-268,-209},{-141,-120,-167,-299,-218,-166},{-250,-158,-188,-202,-121,-173},{-130,-307,-150,-145,-304,-326},{-216,-195,-217,-143,-112,-328},{-118,-258,-224,-126,-251,-252},{-187,-250,-194,-247,-205,-212},{-218,-315,-308,-286,-260,-184},{-311,-252,-304,-141,-178,-198},{-233,-174,-249,-137,-128,-117},{-139,-116,-148,-293,-326,-304},{-254,-296,-162,-295,-145,-297},{-143,-233,-316,-254,-315,-277},{-233,-277,-137,-141,-139,-290}}},{{{-112,-122,-127,-62,-142,-137},{-110,-138,-156,-106,-73,-122},{-134,-105,-80,-115,-148,-96},{-112,-117,-91,-64,-146,-157},{-93,-80,-73,-83,-113,-76},{-130,-124,-67,-67,-83,-113},{-126,-157,-133,-172,-133,-70},{-124,-141,-129,-138,-100,-132},{-54,-63,-96,-149,-96,-119},{-104,-56,-106,-116,-89,-128},{-98,-130,-74,-128,-142,-124},{-89,-118,-105,-132,-98,-127},{-143,-85,-161,-129,-140,-120},{-129,-149,-142,-69,-148,-108},{-70,-68,-102,-113,-144,-97},{-113,-80,-128,-163,-95,-90},{-74,-147,-71,-166,-78,-113},{-96,-148,-113,-94,-113,-115},{-58,-114,-148,-92,-123,-150},{-82,-72,-60,-137,-123,-78}},{{-115,-175,-215,-232,-208,-131},{-138,-193,-142,-174,-230,-185},{-136,-158,-98,-110,-89,-144},{-124,-186,-117,-95,-93,-165},{-181,-138,-110,-153,-221,-165},{-135,-141,-135,-122,-225,-96},{-93,-152,-185,-140,-208,-178},{-146,-185,-213,-132,-84,-181},{-96,-179,-203,-135,-87,-210},{-120,-135,-201,-225,-87,-247},{-177,-82,-117,-166,-232,-151},{-69,-110,-189,-132,-187,-143},{-96,-183,-127,-229,-132,-181},{-139,-180,-216,-153,-101,-97},{-103,-99,-118,-152,-238,-223},{-107,-141,-115,-140,-225,-232},{-81,-96,-81,-220,-242,-121},{-123,-102,-195,-85,-180,-171},{-108,-195,-123,-181,-229,-215},{-69,-185,-145,-118,-179,-218}},{{-193,-194,-219,-165,-125,-269},{-180,-122,-136,-108,-184,-291},{-234,-256,-201,-247,-108,-152},{-140,-128,-138,-186,-122,-194},{-142,-157,-143,-124,-123,-295},{-138,-115,-95,-253,-284,-145},{-241,-121,-158,-236,-286,-186},{-112,-182,-115,-97,-282,-267},{-100,-270,-242,-99,-265,-285},{-163,-259,-264,-241,-206,-137},{-158,-203,-238,-274,-227,-184},{-226,-250,-128,-180,-233,-164},{-220,-122,-266,-228,-137,-115},{-152,-203,-134,-116,-284,-287},{-117,-117,-225,-260,-151,-267},{-96,-245,-140,-194,-174,-206},{-108,-191,-199,-238,-159,-200},{-187,-223,-149,-188,-227,-273},{-159,-243,-247,-152,-169,-178},{-110,-131,-223,-283,-172,-255}},{{-209,-164,-150,-164,-177,-258},{-213,-122,-270,-124,-154,-262},{-252,-156,-252,-164,-274,-197},{-142,-164,-162,-203,-211,-191},{-160,-240,-221,-175,-185,-124},{-268,-179,-185,-244,-207,-300},{-231,-102,-171,-302,-158,-260},{-162,-284,-282,-227,-112,-140},{-266,-292,-195,-215,-233,-207},{-300,-183,-278,-264,-252,-191},{-290,-258,-124,-203,-114,-197},{-244,-122,-144,-260,-260,-179},{-158,-197,-150,-207,-106,-156},{-250,-225,-140,-187,-229,-142},{-266,-231,-300,-124,-284,-217},{-152,-304,-213,-193,-140,-154},{-183,-120,-203,-284,-175,-122},{-296,-276,-262,-270,-124,-106},{-156,-144,-205,-244,-284,-160},{-126,-201,-148,-164,-240,-134}},{{-106,-175,-124,-246,-232,-228},{-300,-258,-169,-203,-234,-217},{-250,-282,-288,-99,-147,-265},{-162,-175,-217,-213,-217,-239},{-168,-177,-138,-135,-134,-208},{-213,-246,-191,-176,-117,-190},{-160,-148,-187,-248,-276,-101},{-215,-209,-102,-148,-212,-208},{-183,-292,-240,-109,-191,-234},{-162,-231,-195,-209,-214,-151},{-120,-189,-102,-162,-242,-92},{-215,-156,-207,-131,-110,-129},{-246,-140,-207,-111,-238,-241},{-209,-183,-294,-152,-102,-101},{-108,-128,-266,-168,-284,-206},{-191,-185,-187,-170,-280,-144},{-215,-260,-185,-275,-151,-155},{-177,-195,-262,-119,-180,-208},{-217,-296,-193,-283,-104,-195},{-231,-189,-238,-207,-181,-158}},{{-111,-251,-110,-144,-95,-210},{-233,-131,-92,-115,-119,-179},{-218,-157,-224,-86,-205,-184},{-183,-232,-192,-208,-191,-216},{-186,-244,-247,-187,-158,-90},{-122,-157,-192,-162,-165,-135},{-222,-201,-110,-211,-132,-144},{-174,-251,-130,-232,-184,-131},{-129,-93,-172,-106,-86,-209},{-206,-254,-102,-227,-129,-156},{-213,-254,-204,-139,-113,-101},{-154,-190,-147,-126,-170,-196},{-265,-199,-99,-182,-188,-140},{-168,-260,-217,-200,-220,-104},{-134,-251,-110,-146,-191,-209},{-197,-116,-114,-162,-208,-132},{-261,-256,-145,-88,-112,-209},{-267,-137,-95,-82,-190,-200},{-251,-189,-245,-162,-230,-100},{-199,-168,-220,-189,-173,-196}}},{{{-189,-209,-281,-148,-321,-338},{-156,-300,-333,-309,-145,-186},{-303,-345,-240,-288,-159,-152},{-231,-245,-245,-326,-121,-314},{-324,-164,-305,-290,-221,-345},{-207,-281,-243,-140,-298,-269},{-200,-298,-157,-326,-324,-202},{-121,-119,-224,-298,-293,-321},{-254,-252,-259,-250,-133,-305},{-207,-195,-162,-314,-119,-312},{-322,-157,-124,-309,-276,-226},{-310,-324,-124,-302,-288,-345},{-135,-119,-262,-129,-140,-238},{-130,-312,-217,-152,-302,-255},{-270,-152,-328,-290,-178,-298},{-312,-207,-157,-176,-271,-281},{-277,-164,-319,-298,-338,-355},{-133,-186,-350,-269,-148,-340},{-156,-228,-183,-331,-286,-209},{-158,-345,-300,-138,-202,-119}},{{-148,-212,-141,-252,-113,-290},{-352,-124,-204,-196,-122,-219},{-167,-183,-334,-289,-172,-303},{-176,-167,-294,-263,-307,-270},{-312,-195,-204,-254,-233,-239},{-202,-188,-317,-143,-136,-164},{-255,-331,-127,-178,-258,-283},{-252,-152,-277,-344,-292,-186},{-309,-145,-329,-185,-181,-219},{-162,-293,-226,-340,-332,-241},{-267,-350,-275,-217,-199,-234},{-250,-340,-284,-310,-278,-307},{-317,-324,-266,-321,-183,-161},{-252,-131,-167,-337,-307,-239},{-309,-295,-136,-222,-183,-212},{-148,-233,-207,-187,-278,-177},{-181,-317,-136,-307,-282,-221},{-217,-169,-266,-247,-199,-294},{-288,-259,-122,-280,-246,-294},{-152,-252,-150,-231,-314,-164}},{{-148,-240,-182,-240,-107,-205},{-183,-274,-131,-271,-150,-265},{-120,-305,-293,-209,-142,-126},{-112,-211,-149,-133,-208,-115},{-247,-173,-301,-283,-258,-191},{-110,-167,-208,-121,-191,-220},{-183,-157,-139,-154,-176,-113},{-170,-305,-210,-131,-95,-257},{-258,-232,-293,-252,-226,-209},{-316,-136,-216,-263,-110,-164},{-209,-286,-281,-160,-196,-261},{-267,-127,-299,-252,-251,-248},{-123,-301,-184,-121,-215,-196},{-284,-171,-234,-250,-267,-225},{-108,-245,-277,-129,-178,-234},{-322,-226,-261,-140,-267,-128},{-206,-219,-255,-250,-223,-167},{-120,-104,-261,-185,-243,-149},{-127,-230,-255,-273,-254,-265},{-146,-234,-107,-99,-172,-270}},{{-201,-221,-100,-129,-105,-110},{-93,-241,-193,-220,-140,-81},{-210,-148,-110,-129,-82,-134},{-194,-137,-127,-172,-161,-84},{-160,-145,-113,-178,-186,-207},{-217,-228,-177,-172,-157,-156},{-144,-170,-177,-214,-192,-69},{-222,-201,-124,-123,-88,-105},{-215,-201,-185,-222,-150,-94},{-117,-243,-184,-129,-114,-196},{-217,-175,-118,-135,-124,-190},{-157,-196,-163,-201,-111,-170},{-198,-226,-86,-87,-82,-86},{-155,-196,-168,-188,-82,-95},{-131,-175,-166,-160,-135,-161},{-212,-92,-188,-98,-140,-174},{-213,-183,-107,-78,-209,-203},{-146,-132,-209,-158,-85,-199},{-151,-224,-110,-188,-101,-86},{-249,-182,-119,-138,-105,-204}},{{-108,-117,-64,-156,-139,-142},{-198,-126,-157,-76,-165,-176},{-161,-145,-175,-81,-168,-161},{-176,-106,-176,-81,-148,-163},{-105,-164,-100,-140,-112,-89},{-176,-115,-139,-157,-74,-173},{-109,-127,-87,-175,-73,-178},{-77,-135,-125,-123,-132,-95},{-134,-88,-63,-79,-112,-93},{-93,-115,-99,-113,-90,-158},{-141,-101,-102,-138,-125,-112},{-161,-101,-66,-114,-132,-90},{-117,-76,-71,-105,-74,-155},{-128,-103,-170,-117,-94,-130},{-185,-163,-161,-62,-61,-124},{-169,-64,-165,-167,-108,-80},{-66,-96,-153,-67,-161,-140},{-84,-181,-181,-114,-109,-143},{-72,-89,-71,-84,-104,-73},{-172,-150,-184,-67,-121,-81}},{{-154,-79,-165,-88,-132,-161},{-152,-178,-157,-175,-138,-144},{-158,-117,-127,-129,-92,-73},{-159,-149,-69,-107,-99,-149},{-136,-109,-92,-106,-62,-160},{-99,-75,-96,-101,-81,-146},{-170,-152,-149,-156,-118,-112},{-143,-80,-139,-99,-74,-156},{-67,-70,-102,-177,-115,-147},{-113,-142,-145,-132,-159,-165},{-155,-126,-165,-70,-63,-155},{-142,-98,-149,-88,-127,-175},{-119,-64,-71,-144,-152,-108},{-117,-68,-156,-96,-90,-117},{-154,-67,-63,-61,-129,-115},{-112,-137,-102,-121,-121,-122},{-118,-73,-155,-84,-171,-103},{-95,-146,-170,-100,-131,-184},{-83,-118,-99,-86,-133,-134},{-68,-149,-60,-136,-117,-175}}},{{{-144,-277,-229,-325,-202,-370},{-343,-154,-293,-380,-287,-285},{-279,-338,-215,-149,-255,-202},{-261,-330,-144,-200,-186,-309},{-133,-255,-165,-157,-386,-388},{-215,-178,-205,-277,-223,-279},{-335,-277,-186,-218,-223,-370},{-176,-258,-274,-210,-255,-356},{-356,-194,-388,-141,-354,-197},{-221,-354,-181,-141,-359,-301},{-261,-348,-330,-237,-317,-293},{-162,-330,-277,-364,-210,-282},{-309,-317,-141,-162,-162,-340},{-346,-253,-245,-271,-245,-356},{-364,-200,-383,-200,-242,-210},{-356,-253,-330,-271,-391,-386},{-348,-160,-170,-271,-314,-245},{-301,-223,-221,-144,-271,-282},{-274,-295,-239,-396,-247,-231},{-340,-247,-258,-194,-186,-367}},{{-346,-266,-221,-207,-356,-241},{-253,-242,-330,-306,-280,-306},{-173,-173,-309,-160,-217,-218},{-218,-364,-253,-223,-246,-352},{-165,-250,-205,-378,-369,-238},{-200,-173,-293,-362,-320,-339},{-327,-144,-245,-295,-312,-311},{-330,-258,-234,-258,-369,-381},{-311,-279,-306,-354,-254,-334},{-226,-391,-136,-378,-249,-363},{-266,-394,-146,-285,-333,-140},{-263,-285,-314,-202,-204,-256},{-210,-200,-194,-380,-254,-329},{-332,-176,-205,-269,-189,-246},{-210,-210,-210,-274,-272,-319},{-197,-215,-133,-141,-254,-181},{-207,-207,-311,-245,-280,-215},{-327,-144,-181,-162,-348,-383},{-391,-394,-383,-154,-372,-142},{-317,-396,-255,-351,-377,-275}},{{-329,-228,-358,-134,-157,-248},{-332,-230,-139,-268,-363,-282},{-267,-263,-242,-159,-130,-304},{-269,-261,-164,-164,-350,-198},{-298,-377,-202,-193,-255,-164},{-246,-147,-295,-298,-174,-243},{-220,-142,-144,-260,-159,-299},{-181,-380,-307,-300,-365,-287},{-189,-258,-171,-303,-358,-222},{-243,-258,-219,-340,-358,-140},{-386,-342,-126,-136,-152,-342},{-347,-278,-232,-126,-164,-239},{-337,-324,-275,-164,-272,-190},{-306,-154,-149,-218,-331,-125},{-272,-154,-300,-288,-159,-125},{-339,-245,-126,-352,-299,-145},{-295,-144,-186,-201,-196,-181},{-220,-190,-139,-327,-247,-166},{-388,-276,-164,-141,-216,-340},{-158,-329,-129,-184,-211,-234}},{{-167,-157,-155,-327,-293,-161},{-314,-273,-129,-324,-327,-249},{-198,-181,-180,-120,-134,-336},{-357,-153,-245,-228,-190,-311},{-214,-284,-159,-191,-302,-114},{-262,-172,-289,-143,-206,-267},{-326,-336,-146,-120,-332,-152},{-352,-174,-330,-301,-116,-157},{-281,-155,-143,-313,-121,-224},{-245,-289,-236,-200,-226,-323},{-152,-197,-159,-193,-325,-190},{-126,-320,-291,-172,-226,-287},{-252,-226,-210,-320,-179,-237},{-155,-143,-219,-322,-114,-190},{-357,-179,-162,-329,-253,-188},{-231,-256,-303,-228,-193,-132},{-312,-207,-275,-340,-224,-132},{-314,-134,-213,-315,-125,-332},{-347,-190,-127,-285,-231,-175},{-174,-202,-344,-136,-206,-190}},{{-227,-132,-293,-137,-171,-269},{-147,-115,-204,-161,-308,-284},{-143,-234,-299,-293,-119,-224},{-180,-128,-321,-137,-184,-245},{-304,-297,-308,-152,-208,-267},{-139,-260,-269,-191,-278,-204},{-319,-243,-315,-304,-276,-184},{-121,-150,-208,-208,-206,-210},{-178,-167,-189,-308,-241,-167},{-119,-228,-161,-126,-228,-289},{-299,-265,-323,-165,-206,-286},{-220,-258,-191,-269,-180,-250},{-150,-189,-206,-239,-135,-282},{-211,-312,-213,-286,-178,-154},{-286,-163,-148,-284,-278,-193},{-172,-156,-291,-308,-171,-197},{-220,-291,-154,-271,-171,-247},{-143,-208,-163,-297,-265,-108},{-242,-291,-321,-152,-291,-237},{-117,-208,-319,-126,-122,-321}},{{-200,-150,-317,-111,-254,-115},{-202,-250,-182,-241,-197,-180},{-219,-124,-312,-189,-271,-252},{-193,-141,-280,-148,-158,-108},{-321,-237,-113,-273,-250,-232},{-200,-204,-230,-117,-152,-132},{-171,-295,-204,-284,-278,-226},{-163,-258,-315,-293,-191,-145},{-263,-197,-295,-224,-208,-152},{-282,-299,-210,-263,-200,-237},{-119,-167,-108,-310,-180,-323},{-317,-250,-252,-276,-258,-260},{-108,-278,-224,-291,-184,-282},{-215,-200,-167,-208,-252,-124},{-230,-228,-260,-282,-115,-256},{-171,-150,-286,-187,-130,-326},{-115,-265,-232,-247,-163,-278},{-171,-276,-150,-132,-161,-163},{-284,-254,-200,-132,-206,-210},{-291,-237,-117,-260,-273,-158}}},{{{-208,-319,-364,-169,-238,-160},{-400,-379,-187,-262,-268,-382},{-220,-166,-361,-193,-358,-266},{-172,-382,-202,-418,-271,-317},{-397,-349,-388,-166,-352,-172},{-172,-187,-397,-334,-244,-210},{-328,-352,-304,-160,-352,-317},{-232,-367,-205,-229,-379,-255},{-400,-430,-193,-262,-172,-240},{-397,-211,-154,-223,-322,-198},{-421,-280,-337,-157,-358,-403},{-406,-190,-265,-226,-376,-340},{-346,-334,-448,-211,-391,-432},{-310,-316,-442,-376,-169,-343},{-214,-382,-187,-367,-169,-192},{-352,-160,-271,-346,-259,-175},{-322,-295,-277,-199,-292,-225},{-274,-439,-418,-193,-226,-266},{-244,-256,-256,-358,-163,-154},{-259,-265,-358,-298,-448,-243}},{{-199,-155,-328,-177,-257,-355},{-428,-281,-196,-167,-148,-265},{-325,-399,-403,-207,-281,-170},{-340,-339,-244,-221,-342,-164},{-422,-364,-143,-322,-257,-370},{-425,-192,-171,-194,-315,-362},{-179,-405,-400,-268,-233,-306},{-220,-284,-235,-172,-347,-373},{-226,-396,-308,-153,-305,-208},{-199,-370,-157,-270,-196,-352},{-287,-235,-277,-404,-326,-272},{-328,-339,-398,-240,-355,-365},{-299,-373,-347,-147,-302,-203},{-360,-304,-361,-396,-297,-257},{-311,-241,-291,-385,-265,-149},{-434,-333,-266,-311,-315,-306},{-384,-430,-384,-265,-217,-316},{-264,-149,-384,-142,-178,-172},{-396,-189,-221,-325,-270,-275},{-243,-192,-174,-396,-294,-224}},{{-238,-190,-114,-318,-288,-216},{-176,-334,-273,-316,-231,-224},{-310,-180,-224,-137,-282,-105},{-275,-204,-137,-265,-286,-141},{-184,-182,-218,-144,-310,-279},{-255,-276,-293,-332,-259,-188},{-312,-161,-202,-177,-307,-289},{-186,-223,-126,-117,-310,-214},{-241,-262,-172,-117,-257,-299},{-332,-142,-119,-318,-307,-164},{-290,-185,-183,-197,-204,-166},{-169,-158,-275,-137,-155,-190},{-166,-197,-256,-283,-106,-152},{-270,-247,-252,-157,-295,-291},{-288,-139,-142,-307,-144,-301},{-233,-202,-222,-219,-112,-192},{-322,-355,-167,-272,-240,-240},{-327,-175,-325,-232,-129,-206},{-134,-257,-137,-307,-197,-127},{-367,-358,-344,-323,-246,-202}},{{-260,-149,-251,-110,-139,-187},{-262,-210,-246,-114,-193,-233},{-264,-270,-255,-181,-156,-158},{-142,-262,-224,-249,-93,-214},{-227,-251,-201,-93,-234,-166},{-223,-192,-178,-88,-124,-209},{-262,-160,-201,-122,-105,-126},{-244,-195,-206,-232,-163,-192},{-196,-240,-123,-239,-198,-137},{-173,-166,-235,-172,-191,-140},{-194,-130,-128,-246,-110,-187},{-140,-117,-169,-249,-193,-85},{-167,-199,-231,-258,-241,-222},{-274,-108,-205,-131,-184,-222},{-97,-121,-142,-174,-184,-134},{-200,-214,-157,-201,-232,-188},{-157,-210,-150,-89,-214,-159},{-215,-206,-103,-155,-136,-163},{-217,-175,-219,-117,-173,-200},{-97,-156,-215,-210,-219,-150}},{{-193,-77,-86,-169,-179,-213},{-187,-229,-92,-92,-192,-191},{-186,-80,-112,-174,-211,-214},{-129,-95,-156,-86,-172,-79},{-173,-114,-177,-146,-213,-179},{-103,-197,-139,-152,-165,-137},{-192,-142,-103,-205,-206,-165},{-164,-162,-188,-92,-80,-95},{-167,-114,-186,-191,-199,-91},{-119,-137,-99,-154,-160,-114},{-156,-143,-131,-199,-209,-114},{-125,-139,-176,-168,-134,-217},{-181,-228,-95,-182,-219,-125},{-158,-148,-108,-136,-202,-157},{-217,-157,-177,-169,-169,-97},{-86,-134,-159,-171,-169,-97},{-204,-119,-185,-154,-189,-99},{-140,-122,-119,-216,-225,-182},{-92,-131,-156,-91,-86,-89},{-206,-140,-217,-222,-123,-77}},{{-145,-137,-152,-176,-217,-226},{-85,-207,-206,-176,-172,-163},{-189,-234,-193,-215,-256,-195},{-205,-216,-86,-190,-220,-179},{-213,-169,-126,-133,-257,-177},{-83,-232,-133,-151,-105,-186},{-123,-127,-165,-237,-200,-176},{-103,-223,-89,-230,-122,-119},{-189,-140,-190,-181,-182,-214},{-183,-188,-230,-240,-187,-259},{-103,-159,-105,-237,-240,-250},{-189,-154,-167,-207,-124,-170},{-159,-178,-237,-126,-161,-118},{-102,-238,-99,-227,-108,-159},{-186,-178,-194,-148,-138,-199},{-122,-80,-99,-198,-173,-127},{-183,-97,-97,-185,-93,-210},{-159,-204,-211,-223,-256,-266},{-216,-181,-89,-123,-233,-203},{-125,-124,-159,-185,-93,-103}}},{{{-452,-336,-287,-329,-402,-200},{-332,-308,-382,-458,-364,-500},{-200,-245,-494,-266,-224,-350},{-273,-444,-241,-357,-462,-448},{-511,-228,-298,-200,-220,-241},{-518,-284,-497,-256,-508,-256},{-318,-175,-473,-266,-207,-336},{-395,-193,-298,-410,-427,-364},{-438,-378,-360,-487,-494,-448},{-399,-392,-175,-284,-266,-189},{-420,-290,-340,-511,-402,-210},{-298,-434,-287,-329,-448,-241},{-241,-248,-252,-228,-392,-476},{-374,-294,-438,-389,-182,-416},{-245,-522,-329,-207,-462,-497},{-430,-252,-196,-266,-357,-434},{-231,-298,-444,-420,-357,-245},{-395,-448,-476,-469,-276,-490},{-497,-438,-315,-490,-416,-494},{-487,-238,-455,-368,-364,-480}},{{-271,-456,-325,-247,-479,-367},{-418,-202,-376,-304,-485,-422},{-285,-432,-329,-374,-482,-464},{-174,-364,-298,-401,-289,-409},{-296,-377,-295,-234,-207,-351},{-477,-497,-231,-478,-272,-287},{-233,-281,-444,-501,-269,-167},{-191,-343,-346,-351,-207,-425},{-393,-473,-183,-377,-243,-483},{-383,-292,-254,-267,-348,-213},{-289,-206,-244,-317,-233,-177},{-275,-370,-285,-227,-203,-219},{-452,-497,-363,-501,-292,-332},{-442,-432,-475,-207,-410,-483},{-473,-439,-186,-247,-351,-322},{-411,-418,-173,-344,-298,-428},{-470,-391,-502,-237,-302,-325},{-487,-268,-390,-471,-367,-454},{-216,-209,-397,-177,-187,-454},{-397,-446,-319,-367,-485,-222}},{{-340,-391,-384,-158,-177,-175},{-447,-407,-198,-413,-296,-261},{-340,-357,-438,-240,-202,-250},{-302,-222,-318,-272,-390,-147},{-287,-314,-282,-381,-322,-311},{-258,-283,-366,-214,-382,-220},{-384,-311,-357,-434,-288,-325},{-372,-262,-342,-258,-390,-158},{-391,-453,-243,-425,-245,-295},{-261,-425,-171,-173,-314,-264},{-255,-311,-168,-398,-268,-203},{-410,-311,-366,-179,-408,-231},{-230,-400,-333,-290,-345,-275},{-306,-379,-225,-319,-234,-203},{-205,-385,-429,-281,-200,-186},{-400,-444,-267,-428,-239,-295},{-246,-360,-306,-214,-382,-183},{-217,-157,-303,-261,-182,-161},{-220,-296,-306,-214,-242,-389},{-410,-154,-270,-381,-142,-158}},{{-243,-287,-293,-156,-186,-186},{-327,-210,-357,-306,-213,-234},{-381,-145,-311,-306,-218,-127},{-346,-292,-306,-301,-336,-127},{-308,-234,-383,-241,-243,-167},{-281,-373,-285,-261,-306,-280},{-189,-139,-159,-376,-130,-323},{-165,-163,-131,-251,-135,-239},{-367,-271,-139,-299,-252,-244},{-332,-331,-267,-259,-206,-167},{-254,-187,-226,-126,-336,-201},{-151,-247,-157,-138,-265,-174},{-205,-302,-355,-261,-296,-358},{-316,-242,-170,-351,-198,-148},{-394,-205,-383,-324,-186,-191},{-378,-347,-157,-316,-255,-217},{-151,-145,-373,-176,-279,-141},{-184,-155,-221,-259,-201,-196},{-378,-132,-360,-339,-350,-349},{-270,-347,-283,-173,-333,-275}},{{-206,-136,-346,-201,-233,-136},{-282,-143,-203,-229,-256,-159},{-175,-270,-321,-118,-312,-122},{-194,-314,-337,-291,-307,-187},{-133,-275,-208,-192,-335,-136},{-161,-231,-300,-326,-196,-238},{-251,-199,-245,-171,-201,-164},{-135,-143,-208,-233,-180,-178},{-270,-291,-307,-178,-282,-222},{-145,-245,-166,-300,-346,-150},{-277,-298,-300,-219,-340,-169},{-299,-201,-166,-208,-252,-185},{-251,-118,-254,-215,-312,-249},{-246,-171,-136,-298,-280,-273},{-341,-219,-305,-217,-136,-298},{-344,-236,-148,-201,-305,-171},{-164,-321,-300,-176,-275,-330},{-239,-268,-155,-261,-312,-245},{-154,-240,-120,-146,-159,-330},{-351,-132,-268,-261,-146,-268}},{{-229,-256,-268,-145,-295,-288},{-259,-254,-287,-317,-344,-207},{-289,-307,-128,-138,-215,-332},{-259,-178,-322,-352,-131,-150},{-219,-132,-308,-226,-136,-194},{-243,-245,-345,-174,-123,-150},{-323,-169,-186,-136,-206,-369},{-236,-159,-186,-307,-138,-148},{-342,-224,-219,-274,-254,-216},{-155,-150,-291,-257,-218,-359},{-146,-139,-135,-126,-336,-337},{-293,-273,-203,-207,-344,-145},{-136,-203,-177,-209,-259,-344},{-118,-314,-151,-119,-283,-253},{-196,-284,-315,-262,-203,-352},{-129,-254,-268,-133,-363,-143},{-150,-166,-254,-286,-152,-135},{-176,-259,-247,-267,-271,-165},{-330,-273,-291,-167,-121,-160},{-263,-206,-268,-140,-167,-330}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1052,192,238,253,176,234,280,264,252}; // initial inventory 
int ubiv[I]={2104,384,476,507,352,468,350,495,504}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // 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,13.35,8.59,5.57,4.52,2.83,1.94,4.81,7.57}; // 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]={{12.14,7.81,5.06,4.11,2.57,1.76,4.37,6.88}}; // 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]={9.71,9.71,9.71,8.5,8.5,8.5,7.28,7.28,7.28,6.25,6.25,6.25,5.47,5.47,5.47,4.69,4.69,4.69,4.05,4.05,4.05,3.54,3.54,3.54,3.04,3.04,3.04,3.29,3.29,3.29,2.88,2.88,2.88,2.47,2.47,2.47,2.06,2.06,2.06,1.8,1.8,1.8,1.54,1.54,1.54,1.41,1.41,1.41,1.23,1.23,1.23,1.06,1.06,1.06,3.5,3.5,3.5,3.06,3.06,3.06,2.62,2.62,2.62,5.5,5.5,5.5,4.82,4.82,4.82,4.13,4.13,4.13}; // 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]={15,8,5,15,8,5,15,8,5,17,8,6,16,8,6,16,9,6,17,8,6,17,8,6,16,9,6,17,8,6,17,8,6,17,9,6,17,9,6,17,9,6,17,9,6,18,9,6,17,9,6,17,9,6,16,8,6,16,9,6,17,9,6,16,8,6,17,8,6,16,8,6}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14},{15,16,17,18,19,20,21,22},{23,24,25,26,27},{28,29,30,31,32,33,34,35,36,37,38,39,40,41,42},{43,44,45,46,47,48,49,50},{51,52,53,54,55},{56,57,58,59,60,61,62,63,64,65,66,67,68,69,70},{71,72,73,74,75,76,77,78},{79,80,81,82,83},{84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100},{101,102,103,104,105,106,107,108},{109,110,111,112,113,114},{115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130},{131,132,133,134,135,136,137,138},{139,140,141,142,143,144},{145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160},{161,162,163,164,165,166,167,168,169},{170,171,172,173,174,175},{176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192},{193,194,195,196,197,198,199,200},{201,202,203,204,205,206},{207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223},{224,225,226,227,228,229,230,231},{232,233,234,235,236,237},{238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253},{254,255,256,257,258,259,260,261,262},{263,264,265,266,267,268},{269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285},{286,287,288,289,290,291,292,293},{294,295,296,297,298,299},{300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316},{317,318,319,320,321,322,323,324},{325,326,327,328,329,330},{331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347},{348,349,350,351,352,353,354,355,356},{357,358,359,360,361,362},{363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379},{380,381,382,383,384,385,386,387,388},{389,390,391,392,393,394},{395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411},{412,413,414,415,416,417,418,419,420},{421,422,423,424,425,426},{427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443},{444,445,446,447,448,449,450,451,452},{453,454,455,456,457,458},{459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476},{477,478,479,480,481,482,483,484,485},{486,487,488,489,490,491},{492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508},{509,510,511,512,513,514,515,516,517},{518,519,520,521,522,523},{524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540},{541,542,543,544,545,546,547,548,549},{550,551,552,553,554,555},{556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571},{572,573,574,575,576,577,578,579},{580,581,582,583,584,585},{586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601},{602,603,604,605,606,607,608,609,610},{611,612,613,614,615,616},{617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633},{634,635,636,637,638,639,640,641,642},{643,644,645,646,647,648},{649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664},{665,666,667,668,669,670,671,672},{673,674,675,676,677,678},{679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695},{696,697,698,699,700,701,702,703},{704,705,706,707,708,709},{710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725},{726,727,728,729,730,731,732,733},{734,735,736,737,738,739}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,2,6,10,14,18,22,26,30,2,8,14,20,26,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,1,5,9,13,17,21,25,29,2,8,14,20,26,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,1,5,9,13,17,21,25,29,2,8,14,20,26,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,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,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,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,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,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,1,7,13,19,25,31,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,34,2,6,10,14,18,22,26,30,34,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,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,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,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,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,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,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,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,2,6,10,14,18,22,26,30,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,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,2,6,10,14,18,22,26,30,1,7,13,19,25,31}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,7,11,15,19,23,27,31,35,7,13,19,25,31,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,6,10,14,18,22,26,30,34,7,13,19,25,31,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,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,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,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,3,9,15,21,27,33,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,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,2,8,14,20,26,32,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,2,8,14,20,26,32,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,2,6,10,14,18,22,26,30,34,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,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,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,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,3,9,15,21,27,33,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,2,8,14,20,26,32,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,3,9,15,21,27,33,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,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,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,5,9,13,17,21,25,29,33,4,10,16,22,28,34}; // set of end times of each shipment 
