int Dev = 50;// Deviation
extern const int CNN = 3;// 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 = 345;//Number of shipments
extern const int SN = 50;//Number of scenarios at each stage
extern const int MBSN = 9;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{12173,0,0,0,0,0},{12216,0,0,0,0,0},{12540,0,0,0,0,0},{12056,0,0,0,0,0},{12490,0,0,0,0,0},{12289,0,0,0,0,0},{11316,0,0,0,0,0},{12051,0,0,0,0,0},{12503,0,0,0,0,0},{12325,0,0,0,0,0},{12842,0,0,0,0,0},{11987,0,0,0,0,0},{13674,0,0,0,0,0},{13231,0,0,0,0,0},{12127,0,0,0,0,0},{11810,0,0,0,0,0},{12032,0,0,0,0,0},{11511,0,0,0,0,0},{12263,0,0,0,0,0},{12499,0,0,0,0,0},{12716,0,0,0,0,0},{12552,0,0,0,0,0},{12179,0,0,0,0,0},{12300,0,0,0,0,0},{12798,0,0,0,0,0},{12292,0,0,0,0,0},{12067,0,0,0,0,0},{12381,0,0,0,0,0},{11936,0,0,0,0,0},{11869,0,0,0,0,0},{12554,0,0,0,0,0},{12536,0,0,0,0,0},{12203,0,0,0,0,0},{12058,0,0,0,0,0},{12511,0,0,0,0,0},{12303,0,0,0,0,0},{11665,0,0,0,0,0},{12374,0,0,0,0,0},{12386,0,0,0,0,0},{12560,0,0,0,0,0},{12035,0,0,0,0,0},{11238,0,0,0,0,0},{12575,0,0,0,0,0},{13129,0,0,0,0,0},{12641,0,0,0,0,0},{11237,0,0,0,0,0},{12245,0,0,0,0,0},{12337,0,0,0,0,0},{13227,0,0,0,0,0},{11965,0,0,0,0,0}},{{12372,0,0,0,0,0},{11982,0,0,0,0,0},{12197,0,0,0,0,0},{12679,0,0,0,0,0},{11426,0,0,0,0,0},{11865,0,0,0,0,0},{12427,0,0,0,0,0},{12871,0,0,0,0,0},{13035,0,0,0,0,0},{11894,0,0,0,0,0},{12324,0,0,0,0,0},{12430,0,0,0,0,0},{12512,0,0,0,0,0},{11909,0,0,0,0,0},{12126,0,0,0,0,0},{12623,0,0,0,0,0},{13103,0,0,0,0,0},{13025,0,0,0,0,0},{13205,0,0,0,0,0},{12462,0,0,0,0,0},{12385,0,0,0,0,0},{11829,0,0,0,0,0},{11922,0,0,0,0,0},{11949,0,0,0,0,0},{13007,0,0,0,0,0},{13494,0,0,0,0,0},{11822,0,0,0,0,0},{11962,0,0,0,0,0},{12249,0,0,0,0,0},{12648,0,0,0,0,0},{12519,0,0,0,0,0},{12413,0,0,0,0,0},{11689,0,0,0,0,0},{12302,0,0,0,0,0},{12828,0,0,0,0,0},{13469,0,0,0,0,0},{11817,0,0,0,0,0},{12202,0,0,0,0,0},{12136,0,0,0,0,0},{12475,0,0,0,0,0},{11389,0,0,0,0,0},{13108,0,0,0,0,0},{12167,0,0,0,0,0},{12294,0,0,0,0,0},{12604,0,0,0,0,0},{12729,0,0,0,0,0},{11307,0,0,0,0,0},{12020,0,0,0,0,0},{12844,0,0,0,0,0},{12258,0,0,0,0,0}},{{10844,0,0,0,0,0},{10627,0,0,0,0,0},{11226,0,0,0,0,0},{11914,0,0,0,0,0},{11600,0,0,0,0,0},{11485,0,0,0,0,0},{11903,0,0,0,0,0},{11334,0,0,0,0,0},{11143,0,0,0,0,0},{12100,0,0,0,0,0},{11815,0,0,0,0,0},{11470,0,0,0,0,0},{11037,0,0,0,0,0},{10458,0,0,0,0,0},{11440,0,0,0,0,0},{11575,0,0,0,0,0},{10824,0,0,0,0,0},{10996,0,0,0,0,0},{12011,0,0,0,0,0},{11303,0,0,0,0,0},{10463,0,0,0,0,0},{11750,0,0,0,0,0},{12433,0,0,0,0,0},{11468,0,0,0,0,0},{11369,0,0,0,0,0},{11218,0,0,0,0,0},{11333,0,0,0,0,0},{11771,0,0,0,0,0},{11260,0,0,0,0,0},{11273,0,0,0,0,0},{11755,0,0,0,0,0},{10935,0,0,0,0,0},{12733,0,0,0,0,0},{11254,0,0,0,0,0},{11504,0,0,0,0,0},{11423,0,0,0,0,0},{10861,0,0,0,0,0},{10851,0,0,0,0,0},{11203,0,0,0,0,0},{11671,0,0,0,0,0},{11372,0,0,0,0,0},{11713,0,0,0,0,0},{11424,0,0,0,0,0},{11438,0,0,0,0,0},{11881,0,0,0,0,0},{11716,0,0,0,0,0},{12268,0,0,0,0,0},{11699,0,0,0,0,0},{11977,0,0,0,0,0},{12100,0,0,0,0,0}}},{{{-288,-294,-168,-191,-312,-223},{-179,-162,-394,-338,-441,-356},{-168,-244,-406,-232,-173,-412},{-250,-400,-256,-435,-279,-179},{-347,-197,-265,-191,-388,-356},{-350,-332,-353,-294,-229,-215},{-203,-362,-309,-273,-188,-200},{-318,-323,-335,-173,-273,-294},{-426,-182,-165,-335,-400,-441},{-288,-185,-394,-226,-347,-244},{-368,-229,-294,-309,-273,-385},{-335,-253,-359,-344,-232,-203},{-417,-262,-400,-268,-303,-420},{-391,-420,-223,-368,-429,-247},{-326,-294,-344,-288,-223,-270},{-223,-373,-382,-323,-159,-294},{-347,-200,-417,-379,-212,-359},{-176,-412,-215,-291,-368,-379},{-256,-200,-332,-323,-153,-391},{-438,-429,-335,-273,-306,-253},{-279,-288,-350,-153,-220,-220},{-335,-238,-388,-165,-394,-306},{-441,-262,-356,-350,-394,-262},{-279,-273,-156,-309,-209,-247},{-376,-279,-332,-332,-306,-426},{-244,-370,-197,-356,-376,-241},{-168,-253,-382,-385,-226,-235},{-350,-394,-244,-329,-162,-147},{-179,-153,-441,-253,-282,-291},{-309,-365,-350,-417,-323,-185},{-341,-344,-435,-147,-338,-203},{-412,-153,-438,-435,-338,-238},{-291,-265,-341,-247,-350,-259},{-247,-223,-385,-420,-253,-438},{-291,-359,-273,-306,-159,-318},{-279,-244,-232,-400,-309,-220},{-247,-323,-300,-382,-441,-409},{-265,-232,-173,-285,-382,-270},{-247,-276,-415,-215,-368,-329},{-318,-235,-359,-159,-353,-409},{-441,-162,-344,-197,-326,-215},{-300,-159,-182,-273,-373,-379},{-376,-335,-426,-179,-382,-159},{-403,-359,-259,-159,-179,-212},{-365,-438,-238,-223,-203,-415},{-223,-415,-212,-329,-279,-379},{-315,-150,-312,-220,-320,-403},{-435,-368,-406,-273,-415,-150},{-165,-420,-306,-285,-276,-359},{-400,-165,-229,-435,-159,-150}},{{-258,-369,-406,-189,-136,-368},{-197,-429,-235,-230,-366,-249},{-284,-349,-328,-310,-296,-342},{-293,-340,-330,-252,-243,-150},{-229,-286,-218,-140,-302,-231},{-203,-317,-291,-175,-368,-246},{-241,-146,-384,-211,-280,-365},{-386,-172,-168,-395,-334,-184},{-165,-214,-342,-296,-288,-228},{-397,-418,-143,-175,-243,-347},{-342,-232,-174,-153,-336,-236},{-406,-398,-162,-164,-315,-262},{-165,-194,-358,-411,-216,-308},{-336,-320,-213,-195,-318,-150},{-162,-263,-322,-186,-139,-205},{-177,-194,-190,-290,-278,-228},{-223,-260,-204,-386,-235,-303},{-339,-352,-249,-318,-371,-161},{-409,-260,-297,-375,-342,-329},{-360,-426,-263,-312,-155,-142},{-171,-283,-336,-375,-179,-324},{-310,-143,-182,-400,-382,-337},{-328,-380,-314,-181,-246,-212},{-223,-143,-412,-195,-219,-241},{-186,-275,-190,-370,-310,-262},{-412,-335,-386,-375,-320,-272},{-276,-214,-182,-375,-248,-321},{-168,-197,-255,-145,-384,-148},{-188,-429,-174,-178,-312,-264},{-220,-286,-154,-156,-195,-360},{-345,-223,-162,-219,-294,-207},{-365,-163,-232,-340,-267,-347},{-336,-352,-224,-323,-168,-319},{-345,-386,-202,-359,-366,-171},{-223,-429,-162,-342,-334,-249},{-299,-146,-386,-353,-323,-381},{-267,-189,-176,-334,-360,-388},{-334,-320,-238,-233,-155,-176},{-313,-166,-294,-186,-374,-290},{-148,-246,-157,-195,-187,-233},{-200,-286,-210,-359,-251,-231},{-412,-426,-218,-282,-366,-350},{-287,-160,-162,-359,-150,-220},{-302,-292,-207,-164,-323,-181},{-284,-395,-344,-266,-155,-161},{-296,-315,-143,-364,-278,-326},{-235,-252,-224,-345,-206,-319},{-406,-415,-356,-206,-224,-259},{-432,-157,-344,-307,-275,-357},{-284,-317,-255,-162,-363,-163}},{{-320,-237,-189,-204,-180,-290},{-135,-278,-315,-152,-265,-290},{-340,-259,-263,-199,-203,-243},{-220,-346,-163,-296,-216,-212},{-172,-322,-149,-125,-235,-303},{-135,-286,-238,-215,-195,-128},{-240,-346,-289,-193,-270,-138},{-230,-302,-345,-255,-118,-146},{-345,-232,-331,-181,-173,-159},{-360,-358,-308,-193,-293,-175},{-175,-172,-291,-220,-272,-175},{-295,-177,-310,-311,-150,-165},{-312,-332,-210,-237,-244,-214},{-282,-348,-142,-177,-280,-175},{-152,-278,-126,-134,-220,-161},{-370,-278,-308,-269,-197,-270},{-260,-189,-172,-284,-126,-148},{-155,-177,-137,-300,-263,-247},{-138,-177,-287,-293,-160,-185},{-358,-194,-270,-336,-128,-192},{-152,-148,-142,-242,-165,-119},{-348,-341,-137,-224,-186,-264},{-250,-302,-245,-264,-235,-247},{-145,-346,-233,-264,-285,-200},{-138,-298,-287,-208,-248,-136},{-350,-220,-133,-184,-270,-130},{-368,-237,-144,-284,-285,-185},{-312,-206,-256,-278,-289,-299},{-125,-341,-123,-179,-124,-258},{-362,-317,-256,-195,-113,-107},{-170,-244,-326,-152,-208,-111},{-368,-220,-158,-278,-146,-225},{-348,-348,-312,-186,-231,-301},{-172,-218,-338,-258,-116,-222},{-272,-361,-249,-213,-148,-214},{-212,-273,-142,-235,-268,-253},{-218,-332,-184,-255,-270,-284},{-132,-227,-219,-116,-261,-161},{-258,-261,-184,-215,-214,-142},{-170,-211,-305,-334,-308,-130},{-240,-281,-305,-251,-302,-225},{-150,-264,-130,-228,-175,-214},{-245,-155,-273,-278,-163,-210},{-225,-227,-214,-287,-131,-255},{-370,-281,-179,-159,-148,-295},{-280,-300,-294,-188,-300,-181},{-350,-327,-350,-139,-135,-163},{-342,-220,-175,-134,-231,-237},{-225,-327,-191,-311,-270,-206},{-305,-174,-247,-168,-229,-173}}},{{{-108,-134,-234,-249,-254,-187},{-156,-166,-88,-179,-256,-223},{-86,-196,-203,-218,-96,-218},{-235,-243,-238,-132,-129,-222},{-247,-132,-119,-222,-224,-107},{-228,-232,-164,-174,-202,-162},{-128,-171,-170,-211,-199,-109},{-215,-139,-245,-93,-147,-143},{-207,-149,-177,-100,-245,-214},{-144,-228,-172,-174,-212,-220},{-247,-101,-241,-229,-212,-237},{-96,-125,-163,-102,-215,-246},{-235,-101,-240,-215,-197,-286},{-228,-188,-117,-152,-158,-235},{-87,-150,-180,-252,-182,-134},{-113,-140,-105,-200,-125,-227},{-218,-128,-130,-141,-224,-197},{-128,-159,-135,-199,-103,-107},{-166,-127,-184,-159,-241,-191},{-101,-218,-256,-211,-197,-122},{-148,-132,-238,-122,-173,-105},{-116,-198,-240,-217,-221,-283},{-158,-193,-214,-217,-204,-208},{-109,-215,-245,-193,-188,-172},{-111,-86,-228,-226,-164,-180},{-215,-118,-140,-243,-164,-124},{-200,-198,-259,-256,-258,-191},{-146,-112,-193,-166,-178,-258},{-134,-166,-130,-267,-99,-115},{-133,-125,-89,-145,-162,-189},{-192,-120,-93,-208,-217,-115},{-245,-243,-189,-179,-153,-262},{-195,-113,-256,-247,-237,-256},{-237,-110,-164,-145,-149,-254},{-151,-189,-154,-165,-259,-187},{-237,-188,-247,-267,-184,-218},{-168,-112,-248,-211,-201,-271},{-84,-199,-214,-177,-99,-267},{-151,-252,-107,-145,-197,-281},{-205,-243,-247,-158,-219,-210},{-210,-198,-200,-154,-114,-244},{-91,-172,-115,-172,-153,-281},{-244,-105,-217,-170,-223,-189},{-218,-140,-112,-113,-204,-155},{-195,-86,-128,-122,-178,-277},{-225,-91,-152,-172,-120,-185},{-138,-225,-198,-240,-131,-195},{-150,-177,-214,-150,-149,-239},{-161,-199,-189,-177,-261,-216},{-141,-221,-135,-145,-123,-143}},{{-287,-111,-181,-117,-268,-186},{-261,-197,-296,-133,-275,-200},{-119,-287,-211,-144,-323,-126},{-99,-164,-288,-318,-291,-140},{-206,-176,-151,-230,-250,-236},{-148,-111,-166,-161,-247,-169},{-291,-279,-309,-135,-309,-162},{-178,-258,-253,-172,-325,-328},{-255,-301,-236,-115,-275,-286},{-214,-162,-119,-219,-211,-167},{-121,-182,-204,-122,-128,-345},{-279,-246,-317,-270,-337,-121},{-214,-164,-196,-152,-305,-305},{-174,-215,-245,-208,-325,-355},{-263,-141,-309,-199,-236,-188},{-295,-191,-132,-126,-270,-150},{-162,-213,-298,-214,-266,-355},{-137,-199,-232,-316,-314,-271},{-210,-269,-160,-214,-149,-143},{-182,-152,-198,-305,-167,-309},{-137,-297,-213,-199,-282,-214},{-178,-207,-219,-232,-114,-231},{-145,-285,-258,-141,-114,-350},{-263,-119,-313,-265,-247,-345},{-263,-117,-217,-267,-151,-157},{-166,-123,-213,-316,-300,-221},{-297,-197,-285,-188,-199,-119},{-248,-107,-320,-210,-176,-148},{-202,-281,-164,-157,-176,-164},{-246,-180,-224,-301,-266,-290},{-109,-248,-266,-183,-263,-162},{-101,-193,-241,-248,-268,-157},{-287,-221,-279,-314,-268,-328},{-293,-197,-155,-208,-220,-171},{-230,-301,-166,-212,-256,-129},{-224,-107,-204,-309,-298,-159},{-145,-172,-168,-128,-234,-121},{-164,-174,-192,-144,-181,-309},{-257,-217,-204,-248,-126,-214},{-273,-238,-251,-159,-156,-278},{-226,-127,-136,-192,-179,-176},{-220,-281,-126,-170,-220,-283},{-255,-293,-109,-230,-270,-219},{-154,-215,-294,-276,-172,-138},{-135,-102,-121,-164,-176,-214},{-283,-158,-207,-141,-128,-238},{-222,-150,-313,-164,-140,-148},{-143,-135,-251,-164,-275,-159},{-222,-223,-106,-267,-273,-212},{-249,-226,-260,-314,-142,-286}},{{-370,-184,-217,-265,-158,-153},{-341,-135,-236,-338,-188,-142},{-289,-140,-286,-157,-252,-153},{-203,-306,-362,-370,-191,-178},{-188,-135,-356,-151,-385,-207},{-158,-196,-333,-381,-332,-291},{-240,-191,-212,-397,-138,-283},{-287,-189,-241,-230,-324,-258},{-242,-163,-262,-157,-230,-187},{-158,-344,-176,-157,-199,-413},{-336,-347,-325,-154,-219,-351},{-333,-214,-194,-213,-241,-388},{-259,-128,-288,-143,-180,-156},{-264,-311,-134,-192,-199,-221},{-245,-240,-296,-227,-385,-379},{-175,-171,-322,-154,-274,-323},{-220,-224,-147,-259,-249,-192},{-215,-250,-320,-194,-227,-246},{-326,-298,-217,-294,-155,-311},{-264,-260,-362,-138,-163,-184},{-161,-128,-152,-243,-138,-342},{-170,-296,-390,-302,-280,-181},{-336,-260,-312,-186,-357,-289},{-168,-166,-176,-281,-343,-308},{-237,-252,-346,-378,-366,-359},{-124,-133,-207,-192,-244,-269},{-165,-143,-215,-275,-199,-258},{-264,-334,-189,-351,-172,-195},{-356,-370,-393,-267,-194,-158},{-249,-176,-149,-405,-169,-297},{-269,-219,-265,-300,-208,-419},{-156,-181,-217,-148,-172,-334},{-227,-286,-194,-313,-321,-314},{-294,-214,-170,-157,-332,-164},{-178,-196,-328,-373,-366,-408},{-306,-209,-314,-321,-374,-391},{-212,-189,-196,-138,-163,-396},{-222,-326,-238,-254,-255,-294},{-247,-199,-186,-248,-255,-212},{-366,-178,-238,-184,-283,-308},{-124,-227,-252,-321,-379,-255},{-257,-273,-272,-405,-366,-342},{-240,-370,-173,-389,-191,-150},{-141,-332,-312,-383,-294,-286},{-264,-360,-338,-143,-316,-413},{-306,-191,-362,-335,-296,-337},{-198,-314,-346,-329,-249,-357},{-301,-365,-162,-159,-152,-354},{-242,-196,-207,-297,-382,-275},{-264,-178,-207,-181,-305,-348}}},{{{-293,-428,-411,-253,-164,-401},{-401,-181,-434,-204,-365,-276},{-431,-345,-487,-480,-362,-178},{-276,-227,-168,-263,-234,-421},{-240,-477,-441,-411,-451,-293},{-375,-480,-457,-470,-326,-230},{-283,-240,-424,-234,-431,-181},{-178,-194,-405,-447,-171,-276},{-368,-441,-178,-408,-480,-286},{-368,-197,-250,-464,-339,-164},{-464,-487,-273,-398,-181,-181},{-434,-234,-464,-477,-194,-368},{-401,-339,-339,-392,-378,-457},{-260,-316,-438,-362,-372,-424},{-487,-243,-438,-342,-257,-220},{-184,-168,-171,-375,-336,-401},{-299,-194,-316,-438,-276,-243},{-178,-286,-355,-313,-220,-494},{-197,-454,-375,-359,-296,-257},{-415,-368,-424,-237,-293,-313},{-424,-240,-444,-477,-484,-428},{-470,-359,-405,-191,-290,-418},{-188,-332,-431,-487,-181,-303},{-368,-355,-345,-451,-266,-392},{-415,-319,-494,-431,-273,-418},{-257,-444,-253,-168,-313,-395},{-220,-415,-401,-191,-299,-487},{-392,-184,-280,-306,-309,-395},{-421,-332,-359,-415,-336,-240},{-303,-336,-194,-408,-191,-428},{-234,-494,-168,-201,-211,-457},{-415,-388,-181,-444,-240,-197},{-234,-178,-253,-392,-494,-214},{-477,-211,-168,-178,-247,-428},{-365,-494,-487,-316,-280,-227},{-181,-378,-332,-352,-490,-444},{-322,-451,-342,-339,-428,-303},{-168,-168,-313,-467,-461,-329},{-349,-470,-336,-243,-313,-260},{-280,-395,-474,-388,-290,-240},{-319,-290,-375,-382,-398,-345},{-266,-375,-395,-293,-194,-355},{-253,-283,-401,-237,-447,-438},{-306,-480,-454,-217,-385,-467},{-309,-326,-230,-464,-273,-266},{-257,-372,-188,-257,-234,-339},{-299,-303,-375,-237,-309,-276},{-329,-408,-306,-326,-273,-385},{-237,-428,-309,-253,-447,-467},{-415,-490,-372,-230,-332,-299}},{{-482,-277,-408,-358,-317,-310},{-262,-377,-169,-251,-185,-274},{-308,-435,-204,-210,-222,-184},{-453,-393,-217,-166,-253,-340},{-482,-390,-284,-333,-320,-343},{-449,-364,-373,-333,-182,-274},{-223,-248,-281,-327,-293,-298},{-308,-393,-348,-411,-323,-193},{-207,-374,-360,-214,-234,-262},{-200,-306,-459,-236,-188,-150},{-312,-319,-459,-462,-277,-295},{-443,-303,-431,-327,-216,-370},{-413,-296,-364,-367,-194,-409},{-289,-248,-434,-436,-271,-325},{-226,-390,-345,-323,-277,-286},{-190,-290,-287,-157,-422,-199},{-479,-274,-303,-210,-379,-196},{-390,-390,-453,-367,-256,-220},{-476,-428,-338,-283,-425,-247},{-236,-441,-412,-214,-219,-379},{-433,-412,-360,-389,-379,-202},{-426,-419,-274,-305,-416,-202},{-485,-338,-313,-160,-262,-259},{-400,-225,-226,-389,-416,-193},{-295,-467,-456,-339,-400,-319},{-364,-283,-466,-380,-434,-316},{-210,-319,-236,-383,-237,-313},{-371,-242,-169,-210,-274,-256},{-207,-441,-309,-320,-305,-295},{-449,-428,-214,-236,-400,-208},{-321,-328,-421,-185,-379,-286},{-233,-386,-281,-462,-320,-271},{-377,-438,-290,-408,-256,-250},{-384,-467,-338,-286,-453,-259},{-207,-435,-469,-314,-234,-232},{-338,-451,-211,-367,-314,-436},{-325,-164,-207,-195,-440,-316},{-279,-184,-364,-411,-209,-286},{-246,-464,-169,-374,-357,-361},{-230,-274,-230,-339,-450,-421},{-479,-280,-226,-452,-397,-214},{-177,-470,-357,-377,-157,-325},{-482,-441,-380,-276,-459,-283},{-344,-374,-466,-458,-462,-154},{-413,-345,-453,-339,-437,-452},{-426,-196,-207,-289,-345,-283},{-226,-206,-169,-308,-191,-337},{-177,-167,-249,-414,-416,-406},{-364,-374,-357,-257,-228,-346},{-190,-354,-188,-333,-403,-376}},{{-148,-150,-353,-403,-329,-128},{-257,-236,-330,-256,-196,-152},{-271,-228,-395,-356,-204,-347},{-286,-383,-213,-150,-238,-249},{-324,-305,-210,-370,-204,-200},{-251,-210,-370,-408,-382,-182},{-425,-372,-314,-226,-170,-278},{-292,-305,-218,-215,-132,-149},{-286,-202,-381,-245,-350,-249},{-159,-331,-319,-136,-337,-321},{-292,-389,-230,-248,-207,-185},{-428,-147,-364,-335,-398,-247},{-204,-259,-272,-177,-148,-357},{-171,-204,-277,-163,-148,-380},{-428,-418,-400,-359,-236,-200},{-351,-248,-398,-364,-334,-278},{-153,-271,-204,-291,-175,-249},{-351,-271,-252,-348,-217,-216},{-295,-429,-372,-337,-286,-180},{-434,-170,-336,-147,-233,-342},{-277,-251,-364,-160,-374,-244},{-248,-202,-274,-291,-170,-139},{-342,-366,-403,-218,-363,-362},{-310,-372,-269,-193,-220,-262},{-171,-291,-367,-228,-238,-152},{-159,-357,-185,-337,-342,-164},{-286,-242,-148,-397,-201,-136},{-419,-144,-246,-397,-265,-311},{-224,-392,-342,-166,-350,-152},{-413,-170,-238,-354,-172,-267},{-189,-415,-364,-226,-186,-175},{-386,-294,-258,-239,-292,-329},{-401,-323,-406,-373,-305,-254},{-330,-395,-417,-258,-151,-270},{-333,-251,-381,-343,-186,-177},{-224,-314,-297,-223,-231,-308},{-183,-400,-255,-329,-265,-316},{-319,-423,-266,-362,-241,-296},{-425,-325,-395,-160,-138,-326},{-206,-354,-151,-277,-223,-296},{-177,-429,-151,-340,-138,-298},{-389,-305,-300,-264,-225,-283},{-437,-343,-280,-305,-302,-218},{-392,-268,-342,-337,-183,-218},{-209,-285,-174,-321,-318,-185},{-201,-210,-227,-174,-231,-278},{-268,-409,-168,-316,-148,-146},{-230,-400,-258,-386,-360,-380},{-221,-210,-342,-239,-289,-247},{-363,-412,-381,-348,-387,-252}}},{{{-156,-90,-67,-83,-85,-159},{-149,-59,-116,-95,-170,-83},{-94,-102,-155,-97,-176,-192},{-85,-135,-57,-96,-66,-99},{-151,-59,-57,-91,-84,-173},{-67,-84,-122,-170,-110,-114},{-113,-86,-86,-139,-89,-83},{-99,-122,-148,-92,-159,-148},{-158,-137,-134,-85,-70,-108},{-87,-136,-66,-75,-82,-179},{-134,-134,-130,-157,-142,-174},{-99,-77,-120,-85,-99,-173},{-88,-132,-136,-115,-83,-184},{-136,-146,-123,-133,-154,-114},{-80,-156,-94,-103,-110,-147},{-156,-64,-134,-95,-150,-156},{-89,-63,-129,-119,-61,-116},{-81,-154,-73,-144,-113,-87},{-146,-66,-102,-94,-120,-134},{-54,-138,-143,-62,-68,-72},{-152,-116,-151,-172,-165,-104},{-135,-136,-108,-143,-106,-96},{-68,-129,-168,-62,-124,-113},{-68,-146,-97,-111,-129,-124},{-80,-107,-56,-105,-101,-82},{-145,-83,-137,-74,-143,-157},{-139,-64,-121,-165,-150,-188},{-122,-123,-155,-146,-143,-143},{-55,-128,-141,-87,-96,-175},{-125,-104,-103,-64,-134,-77},{-63,-147,-73,-125,-149,-191},{-105,-130,-166,-144,-176,-69},{-108,-87,-166,-102,-182,-93},{-119,-132,-112,-99,-124,-147},{-71,-54,-123,-137,-73,-151},{-155,-104,-75,-80,-128,-151},{-59,-148,-81,-88,-165,-91},{-80,-147,-95,-152,-90,-183},{-59,-82,-71,-73,-144,-101},{-156,-124,-134,-89,-134,-170},{-59,-76,-122,-156,-68,-143},{-111,-75,-63,-76,-131,-178},{-110,-110,-165,-140,-93,-116},{-139,-158,-85,-157,-166,-169},{-89,-54,-156,-173,-172,-141},{-150,-66,-96,-132,-170,-97},{-94,-87,-134,-90,-171,-102},{-147,-142,-131,-103,-181,-88},{-129,-57,-146,-130,-172,-69},{-84,-140,-132,-63,-166,-186}},{{-85,-161,-222,-150,-124,-223},{-85,-197,-136,-175,-198,-176},{-116,-107,-86,-95,-89,-240},{-196,-102,-203,-172,-156,-202},{-186,-123,-101,-121,-129,-136},{-93,-148,-126,-88,-89,-185},{-184,-158,-213,-85,-206,-104},{-119,-142,-212,-158,-211,-143},{-163,-157,-151,-132,-196,-195},{-132,-135,-195,-135,-242,-202},{-72,-78,-170,-229,-180,-163},{-176,-76,-104,-138,-85,-222},{-161,-133,-120,-118,-174,-139},{-77,-94,-189,-135,-101,-171},{-136,-73,-105,-181,-151,-240},{-190,-79,-222,-147,-169,-136},{-155,-188,-179,-180,-172,-96},{-138,-164,-152,-113,-116,-190},{-192,-154,-163,-140,-192,-205},{-188,-89,-89,-127,-85,-89},{-193,-169,-186,-105,-103,-111},{-111,-148,-117,-178,-89,-210},{-158,-94,-149,-113,-114,-87},{-170,-192,-108,-81,-198,-86},{-127,-155,-83,-195,-240,-250},{-85,-128,-89,-96,-195,-101},{-115,-141,-121,-112,-171,-113},{-192,-200,-219,-158,-164,-237},{-184,-102,-176,-203,-206,-129},{-134,-189,-207,-81,-106,-223},{-201,-192,-218,-108,-87,-165},{-182,-110,-138,-215,-219,-222},{-162,-82,-114,-88,-216,-131},{-200,-79,-219,-79,-177,-237},{-150,-182,-104,-169,-93,-129},{-140,-206,-155,-160,-143,-205},{-73,-202,-185,-84,-145,-186},{-139,-144,-182,-203,-222,-106},{-126,-206,-188,-84,-92,-247},{-170,-133,-215,-152,-172,-223},{-165,-87,-200,-81,-90,-249},{-158,-79,-98,-104,-233,-139},{-181,-90,-123,-232,-82,-151},{-112,-120,-96,-107,-98,-101},{-123,-173,-105,-101,-97,-113},{-138,-151,-219,-212,-225,-148},{-94,-109,-98,-107,-142,-181},{-136,-93,-189,-112,-204,-190},{-201,-94,-182,-108,-87,-143},{-69,-192,-90,-214,-138,-138}},{{-103,-117,-95,-171,-231,-289},{-257,-95,-149,-163,-178,-188},{-243,-259,-214,-139,-243,-139},{-124,-203,-275,-272,-106,-249},{-161,-189,-162,-222,-194,-206},{-150,-202,-113,-200,-276,-206},{-161,-153,-268,-101,-174,-293},{-186,-207,-259,-249,-251,-261},{-178,-193,-227,-251,-157,-224},{-262,-194,-262,-232,-153,-281},{-241,-198,-197,-158,-272,-230},{-191,-153,-257,-152,-243,-206},{-233,-187,-219,-245,-206,-267},{-112,-94,-93,-205,-220,-289},{-222,-97,-182,-203,-131,-190},{-124,-157,-134,-179,-204,-285},{-161,-124,-184,-241,-249,-220},{-248,-203,-249,-182,-100,-261},{-177,-92,-180,-177,-259,-224},{-114,-122,-173,-184,-200,-261},{-229,-202,-273,-163,-171,-200},{-142,-211,-244,-285,-157,-244},{-173,-248,-232,-169,-145,-279},{-142,-144,-197,-218,-135,-133},{-88,-232,-218,-129,-182,-249},{-105,-194,-110,-211,-167,-220},{-140,-169,-192,-247,-137,-271},{-133,-191,-279,-180,-180,-131},{-243,-97,-205,-276,-108,-216},{-220,-187,-206,-148,-167,-117},{-159,-155,-208,-264,-196,-204},{-208,-106,-117,-274,-220,-176},{-261,-232,-147,-200,-259,-119},{-254,-99,-223,-222,-157,-210},{-228,-230,-205,-251,-176,-196},{-144,-241,-147,-241,-198,-267},{-200,-122,-166,-108,-161,-121},{-119,-126,-138,-175,-225,-216},{-259,-130,-229,-192,-225,-244},{-256,-178,-268,-226,-139,-246},{-122,-115,-102,-156,-251,-103},{-214,-191,-104,-228,-167,-297},{-128,-169,-260,-270,-141,-224},{-138,-259,-143,-114,-294,-125},{-250,-241,-268,-276,-204,-240},{-103,-259,-218,-201,-110,-251},{-173,-178,-117,-283,-153,-275},{-206,-187,-125,-141,-253,-121},{-261,-254,-260,-274,-284,-123},{-133,-232,-253,-99,-133,-222}}},{{{-282,-302,-231,-205,-283,-155},{-119,-228,-286,-228,-293,-300},{-121,-178,-143,-202,-338,-214},{-322,-286,-214,-200,-267,-157},{-193,-131,-190,-124,-186,-212},{-315,-143,-264,-298,-243,-188},{-163,-250,-207,-138,-350,-178},{-319,-274,-209,-290,-231,-293},{-200,-202,-212,-145,-288,-219},{-263,-312,-159,-267,-338,-305},{-123,-338,-290,-264,-152,-202},{-154,-293,-283,-202,-231,-121},{-144,-157,-140,-278,-181,-276},{-196,-131,-343,-150,-290,-343},{-140,-228,-174,-257,-338,-138},{-252,-245,-267,-169,-312,-174},{-205,-333,-314,-317,-140,-157},{-347,-267,-169,-300,-345,-126},{-294,-143,-336,-347,-355,-174},{-266,-238,-269,-307,-152,-200},{-312,-162,-131,-331,-119,-224},{-219,-143,-238,-281,-219,-276},{-256,-305,-176,-138,-126,-205},{-135,-240,-333,-231,-357,-233},{-154,-219,-309,-274,-317,-209},{-315,-276,-343,-181,-300,-305},{-191,-183,-240,-293,-145,-219},{-119,-302,-228,-240,-252,-178},{-329,-205,-202,-357,-228,-326},{-254,-255,-336,-157,-129,-198},{-345,-221,-162,-338,-143,-259},{-317,-324,-293,-169,-333,-278},{-177,-245,-331,-193,-188,-193},{-149,-171,-343,-347,-317,-209},{-163,-214,-136,-259,-217,-314},{-135,-169,-321,-264,-352,-124},{-182,-188,-140,-129,-281,-138},{-163,-169,-321,-328,-233,-264},{-231,-240,-317,-224,-269,-136},{-343,-195,-207,-200,-347,-181},{-350,-136,-176,-190,-138,-338},{-172,-278,-200,-309,-350,-205},{-350,-174,-278,-178,-290,-252},{-340,-343,-333,-333,-190,-129},{-331,-264,-248,-314,-293,-312},{-319,-336,-119,-245,-209,-126},{-205,-143,-302,-345,-231,-150},{-123,-243,-259,-269,-231,-162},{-324,-143,-274,-278,-195,-324},{-233,-290,-252,-264,-126,-255}},{{-338,-217,-313,-122,-273,-301},{-167,-217,-169,-199,-156,-318},{-209,-167,-306,-243,-118,-320},{-333,-331,-345,-116,-129,-298},{-245,-133,-249,-203,-174,-272},{-214,-295,-122,-129,-167,-320},{-328,-157,-122,-316,-142,-314},{-126,-276,-345,-199,-167,-168},{-347,-305,-200,-316,-337,-294},{-190,-248,-263,-208,-145,-298},{-300,-214,-143,-326,-160,-181},{-124,-200,-216,-182,-192,-305},{-269,-286,-233,-249,-262,-166},{-171,-124,-291,-148,-118,-144},{-183,-245,-134,-344,-332,-168},{-355,-355,-352,-217,-237,-139},{-307,-290,-139,-180,-287,-228},{-298,-257,-148,-337,-262,-110},{-283,-214,-249,-139,-337,-290},{-186,-217,-143,-328,-294,-283},{-159,-255,-244,-300,-154,-206},{-202,-176,-277,-129,-194,-261},{-331,-257,-202,-238,-149,-150},{-205,-174,-141,-224,-156,-117},{-148,-347,-313,-132,-339,-194},{-345,-198,-237,-346,-305,-323},{-259,-226,-200,-169,-120,-290},{-129,-214,-160,-266,-249,-181},{-119,-243,-277,-120,-217,-197},{-340,-119,-157,-298,-136,-148},{-214,-188,-228,-282,-231,-327},{-231,-271,-350,-289,-296,-124},{-219,-121,-249,-254,-203,-128},{-352,-121,-207,-157,-217,-248},{-324,-255,-240,-314,-217,-256},{-212,-228,-200,-319,-339,-230},{-250,-126,-235,-210,-127,-278},{-302,-300,-125,-328,-154,-294},{-162,-131,-221,-254,-228,-119},{-357,-236,-329,-146,-282,-329},{-181,-324,-155,-159,-253,-276},{-269,-257,-329,-224,-197,-285},{-288,-129,-280,-303,-172,-245},{-140,-309,-352,-314,-188,-122},{-250,-240,-150,-196,-253,-115},{-200,-262,-188,-210,-316,-152},{-205,-312,-310,-335,-285,-139},{-281,-207,-160,-164,-136,-307},{-136,-343,-148,-319,-206,-234},{-167,-281,-150,-152,-301,-307}},{{-303,-171,-147,-265,-123,-126},{-260,-150,-137,-123,-112,-196},{-256,-165,-212,-125,-213,-131},{-127,-265,-208,-158,-209,-135},{-166,-245,-281,-166,-170,-169},{-176,-203,-265,-148,-247,-97},{-237,-249,-297,-98,-153,-248},{-150,-219,-279,-292,-208,-108},{-120,-301,-244,-226,-245,-259},{-299,-249,-135,-133,-256,-128},{-183,-245,-255,-283,-258,-106},{-280,-280,-105,-201,-269,-254},{-303,-136,-172,-189,-170,-90},{-150,-125,-277,-115,-193,-198},{-159,-192,-240,-127,-247,-252},{-198,-274,-244,-146,-99,-205},{-138,-167,-234,-103,-133,-191},{-166,-253,-131,-174,-135,-94},{-312,-311,-119,-238,-208,-257},{-290,-199,-139,-115,-236,-92},{-277,-234,-255,-152,-137,-103},{-202,-236,-170,-232,-101,-232},{-163,-255,-141,-162,-232,-202},{-178,-301,-190,-252,-135,-212},{-112,-228,-135,-125,-224,-108},{-239,-232,-218,-230,-95,-108},{-252,-115,-259,-181,-159,-211},{-217,-111,-287,-101,-198,-243},{-243,-167,-196,-172,-232,-185},{-224,-184,-236,-287,-123,-117},{-112,-171,-257,-115,-234,-155},{-123,-280,-182,-111,-258,-169},{-228,-276,-273,-215,-153,-164},{-224,-119,-101,-252,-165,-261},{-170,-194,-210,-213,-112,-248},{-209,-257,-210,-240,-120,-160},{-196,-274,-182,-232,-163,-182},{-209,-314,-297,-125,-163,-128},{-318,-228,-190,-181,-262,-207},{-299,-180,-259,-215,-219,-214},{-256,-230,-259,-213,-118,-167},{-150,-161,-192,-172,-208,-157},{-108,-144,-101,-189,-99,-97},{-288,-148,-156,-117,-107,-126},{-226,-186,-192,-166,-112,-92},{-209,-209,-107,-129,-258,-95},{-202,-119,-158,-271,-252,-117},{-314,-284,-145,-172,-219,-176},{-264,-303,-164,-144,-191,-103},{-187,-268,-238,-287,-181,-146}}},{{{-335,-317,-383,-340,-136,-311},{-319,-149,-378,-293,-317,-362},{-149,-194,-346,-133,-192,-205},{-149,-399,-287,-327,-362,-303},{-335,-279,-277,-380,-327,-192},{-189,-282,-194,-231,-162,-186},{-239,-271,-375,-231,-234,-271},{-165,-263,-229,-367,-215,-346},{-293,-335,-223,-261,-210,-354},{-335,-298,-173,-317,-157,-205},{-370,-287,-375,-221,-247,-317},{-375,-226,-229,-325,-258,-202},{-327,-194,-295,-234,-290,-383},{-186,-210,-253,-173,-229,-388},{-218,-221,-354,-202,-274,-221},{-250,-388,-332,-388,-192,-343},{-266,-181,-170,-293,-149,-253},{-322,-138,-202,-215,-213,-293},{-298,-149,-207,-335,-271,-138},{-335,-370,-378,-279,-319,-301},{-226,-303,-282,-226,-317,-189},{-330,-378,-325,-157,-245,-375},{-303,-138,-330,-269,-263,-197},{-152,-282,-144,-327,-303,-314},{-186,-189,-165,-266,-186,-359},{-213,-197,-261,-221,-317,-380},{-231,-154,-170,-144,-346,-330},{-149,-301,-290,-319,-309,-168},{-144,-189,-266,-192,-343,-200},{-176,-293,-154,-298,-202,-314},{-372,-266,-335,-330,-332,-399},{-386,-391,-184,-314,-133,-274},{-255,-189,-223,-282,-332,-367},{-343,-160,-348,-221,-362,-293},{-348,-202,-189,-194,-157,-364},{-282,-226,-274,-162,-181,-184},{-245,-184,-378,-255,-154,-372},{-383,-250,-186,-250,-370,-242},{-213,-178,-258,-298,-223,-354},{-152,-317,-245,-170,-325,-218},{-301,-332,-170,-146,-274,-218},{-213,-285,-144,-234,-335,-136},{-213,-200,-356,-332,-205,-250},{-221,-351,-213,-386,-327,-234},{-295,-205,-226,-133,-309,-162},{-367,-192,-306,-277,-144,-173},{-332,-141,-340,-234,-258,-255},{-154,-223,-160,-205,-274,-351},{-192,-186,-213,-277,-178,-295},{-197,-372,-346,-263,-194,-282}},{{-194,-271,-192,-237,-131,-329},{-269,-173,-303,-359,-249,-295},{-372,-277,-234,-279,-173,-181},{-375,-287,-234,-311,-162,-236},{-388,-226,-165,-226,-364,-207},{-396,-242,-293,-279,-388,-161},{-271,-157,-301,-250,-217,-158},{-290,-160,-370,-266,-223,-236},{-247,-237,-332,-391,-265,-207},{-141,-287,-194,-314,-257,-352},{-263,-231,-202,-234,-165,-298},{-154,-149,-168,-386,-236,-163},{-346,-215,-205,-311,-204,-342},{-149,-388,-290,-287,-380,-326},{-266,-229,-311,-378,-162,-275},{-234,-261,-298,-295,-380,-347},{-346,-399,-325,-255,-257,-153},{-383,-380,-367,-184,-309,-153},{-213,-364,-372,-301,-191,-210},{-348,-146,-165,-325,-223,-342},{-311,-319,-223,-186,-231,-166},{-149,-170,-218,-247,-162,-176},{-149,-170,-141,-176,-377,-365},{-378,-380,-218,-383,-186,-207},{-380,-162,-327,-247,-364,-155},{-189,-383,-388,-330,-320,-280},{-255,-290,-343,-144,-202,-275},{-391,-330,-178,-261,-286,-378},{-330,-200,-375,-295,-364,-148},{-229,-364,-351,-330,-162,-181},{-245,-178,-269,-367,-338,-251},{-261,-378,-247,-287,-354,-225},{-205,-168,-141,-160,-254,-378},{-178,-152,-181,-396,-254,-251},{-149,-293,-266,-279,-375,-290},{-168,-293,-255,-285,-375,-264},{-223,-394,-274,-351,-189,-212},{-266,-213,-287,-309,-343,-262},{-372,-396,-200,-388,-275,-220},{-202,-207,-356,-200,-333,-130},{-154,-149,-160,-242,-215,-251},{-327,-295,-152,-168,-348,-308},{-319,-152,-247,-263,-333,-207},{-285,-309,-207,-399,-312,-243},{-295,-346,-234,-372,-322,-321},{-237,-253,-380,-181,-375,-199},{-194,-271,-194,-325,-223,-174},{-311,-162,-346,-309,-267,-249},{-340,-359,-202,-332,-377,-357},{-176,-231,-186,-218,-186,-192}},{{-145,-326,-340,-144,-201,-275},{-267,-342,-297,-154,-184,-207},{-148,-126,-280,-218,-363,-145},{-300,-200,-328,-206,-211,-342},{-373,-319,-328,-191,-159,-359},{-321,-288,-275,-357,-164,-251},{-376,-339,-222,-136,-243,-296},{-275,-215,-219,-270,-284,-154},{-383,-288,-328,-228,-179,-159},{-352,-197,-199,-154,-348,-299},{-363,-352,-169,-248,-167,-263},{-166,-271,-146,-176,-152,-212},{-329,-134,-249,-347,-262,-178},{-264,-233,-134,-290,-157,-253},{-329,-268,-280,-208,-191,-159},{-176,-154,-131,-273,-358,-123},{-238,-263,-320,-149,-186,-130},{-306,-202,-166,-206,-159,-294},{-166,-354,-297,-280,-218,-311},{-132,-172,-212,-171,-201,-321},{-243,-324,-202,-345,-122,-186},{-360,-157,-181,-226,-252,-354},{-275,-230,-204,-270,-145,-306},{-334,-288,-247,-156,-318,-333},{-155,-296,-353,-198,-174,-342},{-350,-276,-184,-124,-225,-219},{-381,-367,-315,-280,-257,-198},{-212,-147,-257,-131,-125,-280},{-176,-354,-262,-310,-252,-123},{-298,-347,-290,-206,-208,-272},{-381,-344,-375,-206,-167,-296},{-176,-283,-330,-191,-142,-236},{-155,-271,-295,-243,-279,-289},{-202,-268,-184,-305,-235,-140},{-231,-185,-330,-156,-196,-224},{-176,-190,-239,-221,-270,-248},{-132,-215,-161,-365,-255,-304},{-298,-228,-181,-211,-262,-120},{-135,-258,-363,-350,-201,-258},{-236,-195,-262,-283,-301,-253},{-132,-354,-199,-365,-220,-243},{-158,-339,-343,-280,-301,-166},{-332,-349,-270,-218,-318,-217},{-329,-339,-176,-198,-196,-195},{-254,-167,-300,-203,-350,-347},{-282,-344,-270,-312,-355,-200},{-378,-240,-237,-317,-282,-166},{-158,-170,-335,-352,-267,-178},{-132,-268,-214,-332,-154,-133},{-238,-187,-126,-330,-211,-265}}},{{{-361,-346,-436,-307,-319,-355},{-229,-241,-286,-319,-271,-343},{-445,-205,-163,-424,-379,-406},{-178,-340,-208,-418,-226,-249},{-193,-172,-439,-259,-364,-157},{-193,-295,-226,-181,-250,-432},{-274,-150,-217,-316,-283,-305},{-256,-208,-334,-150,-322,-423},{-409,-292,-277,-223,-223,-444},{-202,-193,-259,-241,-424,-332},{-433,-283,-379,-415,-150,-314},{-376,-199,-172,-259,-277,-320},{-418,-445,-394,-166,-349,-367},{-304,-433,-220,-250,-415,-287},{-310,-157,-394,-280,-193,-163},{-319,-199,-373,-277,-280,-186},{-403,-205,-157,-181,-157,-391},{-241,-331,-184,-175,-157,-302},{-244,-226,-271,-205,-346,-438},{-247,-175,-193,-424,-271,-184},{-388,-265,-394,-403,-418,-435},{-160,-253,-313,-379,-202,-189},{-172,-421,-397,-370,-247,-429},{-193,-184,-340,-412,-262,-255},{-292,-253,-232,-382,-385,-388},{-256,-211,-259,-415,-310,-201},{-169,-286,-238,-286,-250,-435},{-364,-241,-397,-166,-190,-326},{-157,-391,-385,-436,-190,-222},{-256,-154,-268,-235,-346,-444},{-415,-190,-175,-199,-256,-222},{-181,-169,-202,-421,-400,-157},{-427,-388,-325,-265,-214,-240},{-364,-271,-262,-241,-403,-151},{-382,-346,-232,-448,-187,-352},{-169,-253,-418,-229,-301,-376},{-190,-150,-376,-280,-226,-225},{-271,-160,-412,-379,-373,-361},{-406,-403,-160,-316,-244,-154},{-214,-265,-283,-169,-150,-266},{-202,-307,-334,-415,-385,-160},{-181,-373,-292,-286,-154,-317},{-409,-439,-370,-163,-259,-163},{-211,-436,-316,-271,-220,-169},{-439,-424,-430,-187,-370,-403},{-187,-154,-283,-202,-310,-406},{-166,-340,-226,-190,-307,-204},{-427,-166,-304,-160,-430,-406},{-280,-415,-268,-304,-409,-326},{-262,-289,-280,-169,-412,-388}},{{-305,-284,-185,-374,-156,-146},{-185,-301,-143,-325,-148,-316},{-290,-410,-311,-347,-175,-203},{-305,-304,-246,-202,-344,-188},{-284,-227,-207,-268,-172,-190},{-208,-370,-386,-268,-162,-167},{-237,-327,-328,-224,-143,-234},{-398,-155,-342,-306,-260,-170},{-334,-258,-260,-311,-337,-368},{-252,-255,-140,-213,-273,-362},{-199,-402,-370,-341,-193,-206},{-322,-347,-218,-188,-281,-350},{-440,-253,-249,-210,-151,-365},{-369,-276,-185,-284,-313,-146},{-393,-382,-249,-319,-350,-141},{-431,-396,-319,-407,-231,-254},{-419,-270,-246,-311,-337,-329},{-384,-410,-235,-145,-231,-368},{-261,-198,-353,-363,-268,-257},{-352,-232,-375,-199,-323,-362},{-319,-267,-269,-259,-204,-188},{-393,-192,-179,-303,-299,-229},{-173,-367,-336,-186,-294,-321},{-249,-261,-417,-161,-164,-218},{-422,-146,-367,-224,-310,-131},{-434,-164,-305,-289,-262,-344},{-349,-212,-218,-385,-217,-242},{-173,-250,-274,-292,-352,-339},{-278,-344,-300,-410,-156,-175},{-314,-293,-288,-248,-337,-380},{-290,-290,-319,-281,-178,-344},{-311,-169,-305,-292,-299,-131},{-226,-250,-227,-142,-140,-134},{-255,-310,-216,-235,-225,-154},{-319,-172,-260,-349,-366,-218},{-416,-178,-392,-183,-276,-355},{-305,-319,-311,-303,-191,-380},{-369,-364,-196,-248,-384,-242},{-413,-215,-216,-401,-231,-193},{-381,-428,-179,-410,-225,-211},{-437,-224,-316,-287,-204,-185},{-328,-399,-381,-289,-360,-370},{-346,-281,-218,-188,-270,-200},{-152,-330,-286,-303,-337,-175},{-270,-146,-400,-207,-252,-342},{-325,-370,-188,-363,-159,-177},{-226,-198,-356,-371,-329,-242},{-202,-149,-378,-183,-257,-236},{-372,-235,-398,-259,-268,-149},{-355,-152,-280,-262,-146,-262}},{{-159,-161,-137,-270,-265,-198},{-174,-326,-119,-254,-301,-194},{-278,-137,-273,-144,-189,-295},{-144,-211,-229,-115,-280,-303},{-171,-281,-190,-214,-204,-285},{-365,-319,-268,-110,-127,-166},{-161,-218,-247,-194,-227,-222},{-223,-228,-119,-119,-146,-265},{-258,-144,-256,-128,-276,-303},{-372,-295,-169,-186,-180,-279},{-253,-218,-172,-234,-191,-220},{-211,-182,-240,-298,-303,-152},{-179,-192,-293,-130,-257,-127},{-260,-266,-286,-241,-204,-156},{-211,-144,-181,-225,-138,-190},{-149,-151,-220,-201,-182,-147},{-255,-310,-137,-201,-310,-188},{-275,-286,-149,-181,-161,-176},{-159,-360,-279,-283,-206,-261},{-280,-343,-291,-219,-187,-295},{-258,-348,-135,-159,-214,-269},{-325,-211,-252,-256,-140,-236},{-255,-262,-339,-225,-161,-196},{-151,-276,-238,-265,-112,-105},{-238,-290,-165,-232,-165,-198},{-370,-295,-323,-261,-312,-184},{-228,-223,-195,-270,-218,-261},{-141,-322,-243,-296,-273,-166},{-126,-353,-119,-276,-261,-216},{-176,-343,-234,-290,-153,-200},{-126,-228,-220,-252,-110,-240},{-347,-214,-197,-278,-117,-156},{-278,-336,-305,-115,-134,-265},{-280,-334,-131,-152,-259,-129},{-146,-310,-224,-152,-117,-246},{-161,-204,-183,-150,-318,-149},{-156,-336,-176,-161,-148,-101},{-146,-166,-220,-276,-121,-204},{-250,-274,-156,-133,-223,-149},{-268,-214,-174,-225,-108,-127},{-223,-156,-140,-290,-138,-200},{-139,-226,-176,-139,-180,-182},{-360,-293,-305,-219,-212,-174},{-221,-209,-197,-303,-138,-252},{-218,-139,-314,-210,-125,-261},{-275,-314,-151,-197,-246,-269},{-325,-324,-298,-248,-157,-202},{-136,-178,-311,-137,-206,-220},{-365,-170,-289,-230,-151,-141},{-327,-257,-263,-197,-182,-226}}},{{{-175,-231,-276,-469,-193,-193},{-322,-252,-332,-315,-203,-360},{-217,-413,-458,-473,-273,-518},{-256,-416,-304,-360,-371,-332},{-452,-483,-298,-508,-273,-343},{-497,-466,-438,-193,-224,-259},{-462,-360,-318,-217,-210,-385},{-238,-248,-476,-487,-186,-385},{-178,-308,-245,-487,-224,-357},{-508,-385,-322,-364,-238,-487},{-378,-189,-340,-280,-308,-207},{-469,-497,-189,-318,-287,-228},{-476,-326,-214,-438,-332,-462},{-413,-340,-368,-514,-332,-329},{-444,-448,-438,-487,-441,-200},{-392,-224,-452,-389,-175,-178},{-389,-518,-322,-276,-438,-522},{-273,-410,-511,-266,-256,-298},{-420,-210,-395,-476,-364,-298},{-504,-329,-364,-234,-217,-217},{-203,-217,-511,-343,-256,-276},{-406,-308,-483,-238,-193,-284},{-434,-346,-189,-217,-182,-224},{-385,-497,-203,-228,-399,-444},{-318,-189,-430,-280,-413,-476},{-175,-336,-301,-294,-350,-518},{-210,-259,-395,-360,-304,-378},{-424,-389,-462,-252,-438,-500},{-294,-371,-511,-238,-245,-220},{-518,-413,-234,-326,-318,-332},{-522,-487,-203,-424,-385,-308},{-238,-368,-196,-340,-294,-234},{-406,-287,-262,-427,-175,-252},{-189,-416,-262,-262,-220,-287},{-378,-290,-360,-276,-406,-508},{-389,-217,-234,-462,-280,-406},{-231,-371,-224,-252,-182,-182},{-395,-200,-262,-416,-343,-343},{-458,-273,-276,-354,-476,-441},{-483,-308,-455,-182,-469,-427},{-290,-354,-371,-402,-284,-224},{-371,-220,-178,-287,-360,-196},{-238,-234,-483,-248,-273,-420},{-395,-490,-427,-500,-294,-304},{-231,-318,-186,-245,-287,-508},{-399,-224,-276,-430,-238,-175},{-522,-424,-448,-301,-500,-357},{-234,-326,-266,-238,-522,-259},{-395,-364,-304,-483,-508,-434},{-374,-298,-413,-238,-189,-224}},{{-205,-436,-508,-297,-269,-296},{-306,-182,-502,-220,-489,-438},{-341,-278,-275,-347,-459,-467},{-390,-477,-366,-267,-331,-341},{-310,-226,-234,-294,-321,-238},{-177,-408,-329,-471,-394,-213},{-348,-394,-427,-371,-472,-457},{-463,-394,-431,-247,-440,-325},{-418,-254,-508,-177,-341,-345},{-459,-490,-329,-317,-174,-338},{-292,-453,-508,-267,-308,-477},{-289,-412,-471,-331,-262,-316},{-177,-477,-495,-177,-387,-167},{-188,-261,-200,-451,-177,-419},{-282,-250,-319,-391,-194,-483},{-473,-398,-322,-197,-407,-309},{-285,-295,-441,-344,-321,-409},{-487,-460,-231,-281,-184,-213},{-397,-199,-203,-468,-308,-367},{-345,-326,-217,-404,-479,-309},{-341,-477,-247,-200,-489,-319},{-258,-429,-424,-484,-194,-254},{-258,-429,-353,-284,-308,-422},{-191,-261,-488,-387,-276,-438},{-491,-312,-420,-434,-371,-180},{-285,-192,-339,-194,-315,-351},{-296,-278,-336,-377,-390,-377},{-226,-446,-319,-374,-226,-470},{-223,-436,-261,-484,-489,-242},{-477,-298,-427,-374,-187,-457},{-334,-309,-492,-351,-358,-283},{-230,-223,-251,-397,-354,-177},{-289,-364,-190,-194,-394,-428},{-365,-192,-420,-431,-180,-354},{-494,-247,-451,-297,-282,-364},{-407,-501,-349,-254,-295,-380},{-334,-316,-434,-317,-341,-193},{-470,-453,-183,-220,-377,-164},{-456,-288,-197,-261,-213,-283},{-421,-319,-431,-257,-354,-222},{-184,-453,-183,-458,-243,-203},{-351,-264,-264,-237,-272,-406},{-174,-350,-210,-307,-466,-325},{-212,-374,-180,-471,-436,-248},{-466,-484,-431,-374,-216,-254},{-379,-466,-417,-441,-469,-306},{-306,-326,-214,-397,-318,-171},{-393,-508,-302,-317,-289,-161},{-317,-364,-197,-214,-371,-431},{-466,-401,-400,-464,-492,-325}},{{-394,-299,-264,-314,-222,-311},{-441,-326,-294,-185,-165,-147},{-343,-191,-216,-287,-416,-253},{-306,-422,-417,-375,-345,-267},{-416,-293,-297,-152,-362,-334},{-236,-351,-201,-152,-157,-403},{-410,-302,-255,-240,-416,-245},{-271,-360,-228,-360,-390,-303},{-186,-231,-153,-302,-177,-164},{-302,-400,-228,-249,-325,-245},{-331,-290,-213,-202,-348,-367},{-186,-459,-213,-170,-265,-167},{-205,-185,-300,-305,-425,-403},{-321,-336,-261,-316,-171,-170},{-394,-185,-240,-431,-268,-272},{-318,-394,-309,-173,-410,-373},{-432,-425,-399,-314,-217,-392},{-173,-407,-336,-302,-271,-364},{-277,-157,-246,-170,-368,-325},{-416,-274,-348,-278,-274,-253},{-274,-317,-171,-267,-200,-231},{-265,-330,-261,-401,-305,-339},{-444,-277,-177,-396,-202,-331},{-334,-388,-369,-366,-157,-253},{-375,-407,-276,-287,-291,-197},{-422,-191,-297,-407,-390,-259},{-428,-367,-294,-158,-234,-158},{-406,-416,-255,-334,-200,-389},{-299,-280,-309,-217,-148,-325},{-202,-274,-267,-173,-376,-339},{-387,-219,-423,-422,-308,-375},{-205,-176,-282,-419,-308,-253},{-387,-339,-264,-425,-225,-158},{-397,-271,-270,-413,-296,-225},{-224,-166,-342,-319,-142,-384},{-243,-228,-231,-275,-319,-289},{-205,-317,-225,-419,-251,-242},{-249,-274,-216,-314,-154,-364},{-214,-203,-234,-220,-202,-325},{-454,-360,-366,-164,-288,-172},{-343,-413,-294,-293,-276,-306},{-403,-234,-279,-434,-237,-414},{-239,-320,-156,-308,-262,-220},{-441,-286,-216,-261,-228,-411},{-217,-290,-327,-437,-325,-186},{-208,-216,-450,-387,-214,-186},{-410,-425,-327,-314,-316,-292},{-466,-410,-192,-208,-308,-278},{-460,-373,-405,-372,-225,-261},{-466,-348,-228,-199,-396,-353}}}}; // 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]={7,4,2,6,3,3,6,4,2,7,4,3,7,4,3,8,4,3,7,4,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3,8,4,3,8,5,3,9,4,3,8,4,3,8,4,3,8,5,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3,7,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,339,340,341},{342,343,344}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,0,4,8,12,1,7,2,4,6,8,10,12,2,6,10,0,6,12,2,4,6,8,10,12,0,4,8,12,1,7,2,4,6,8,10,12,14,2,6,10,14,0,6,12,1,3,5,7,9,11,13,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,0,4,8,12,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,0,4,8,12,2,8,14,2,4,6,8,10,12,14,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,2,4,6,8,10,12,14,16,0,4,8,12,16,1,7,13,0,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14,0,2,4,6,8,10,12,14,0,4,8,12,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,1,5,9,13,0,6,12,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,0,4,8,12,0,6,12,1,3,5,7,9,11,13,2,6,10,14,1,7,13}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,5,9,13,17,6,12,7,9,11,13,15,17,7,11,15,5,11,17,7,9,11,13,15,17,5,9,13,17,6,12,5,7,9,11,13,15,17,5,9,13,17,3,9,15,4,6,8,10,12,14,16,5,9,13,17,5,11,17,3,5,7,9,11,13,15,17,5,9,13,17,3,9,15,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,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,4,6,8,10,12,14,16,4,8,12,16,3,9,15,4,6,8,10,12,14,16,2,6,10,14,4,10,16,4,6,8,10,12,14,16,3,7,11,15,3,9,15,2,4,6,8,10,12,14,16,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,1,5,9,13,17,2,8,14,1,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15,2,4,6,8,10,12,14,16,2,6,10,14,4,10,16,2,4,6,8,10,12,14,16,4,8,12,16,2,8,14,4,6,8,10,12,14,16,3,7,11,15,2,8,14,5,7,9,11,13,15,17,5,9,13,17,3,9,15,5,7,9,11,13,15,17,3,7,11,15,3,9,15,4,6,8,10,12,14,16,5,9,13,17,4,10,16}; // set of end times of each shipment 
