int Dev = 50;// Deviation
extern const int CNN = 5;// 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 = 347;//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]={{{{12834,0,0,0,0,0},{12248,0,0,0,0,0},{12538,0,0,0,0,0},{11815,0,0,0,0,0},{13007,0,0,0,0,0},{11878,0,0,0,0,0},{11163,0,0,0,0,0},{13079,0,0,0,0,0},{12491,0,0,0,0,0},{12993,0,0,0,0,0},{12273,0,0,0,0,0},{12110,0,0,0,0,0},{11780,0,0,0,0,0},{12536,0,0,0,0,0},{12534,0,0,0,0,0},{11163,0,0,0,0,0},{12898,0,0,0,0,0},{13093,0,0,0,0,0},{12903,0,0,0,0,0},{11822,0,0,0,0,0},{13001,0,0,0,0,0},{12700,0,0,0,0,0},{12243,0,0,0,0,0},{12076,0,0,0,0,0},{12569,0,0,0,0,0},{12595,0,0,0,0,0},{12771,0,0,0,0,0},{12111,0,0,0,0,0},{12083,0,0,0,0,0},{12180,0,0,0,0,0},{12000,0,0,0,0,0},{13402,0,0,0,0,0},{13572,0,0,0,0,0},{12590,0,0,0,0,0},{12533,0,0,0,0,0},{12200,0,0,0,0,0},{12085,0,0,0,0,0},{11872,0,0,0,0,0},{12195,0,0,0,0,0},{12584,0,0,0,0,0},{13094,0,0,0,0,0},{13480,0,0,0,0,0},{11960,0,0,0,0,0},{13310,0,0,0,0,0},{13141,0,0,0,0,0},{12543,0,0,0,0,0},{12382,0,0,0,0,0},{13276,0,0,0,0,0},{11789,0,0,0,0,0},{12099,0,0,0,0,0}},{{11996,0,0,0,0,0},{12233,0,0,0,0,0},{12664,0,0,0,0,0},{12138,0,0,0,0,0},{12916,0,0,0,0,0},{12536,0,0,0,0,0},{12709,0,0,0,0,0},{12537,0,0,0,0,0},{12522,0,0,0,0,0},{12756,0,0,0,0,0},{12397,0,0,0,0,0},{12414,0,0,0,0,0},{12435,0,0,0,0,0},{11647,0,0,0,0,0},{12557,0,0,0,0,0},{11923,0,0,0,0,0},{12125,0,0,0,0,0},{11580,0,0,0,0,0},{11842,0,0,0,0,0},{12548,0,0,0,0,0},{12286,0,0,0,0,0},{12115,0,0,0,0,0},{12392,0,0,0,0,0},{11243,0,0,0,0,0},{12275,0,0,0,0,0},{12634,0,0,0,0,0},{12751,0,0,0,0,0},{12740,0,0,0,0,0},{12825,0,0,0,0,0},{12253,0,0,0,0,0},{11895,0,0,0,0,0},{12715,0,0,0,0,0},{13138,0,0,0,0,0},{12936,0,0,0,0,0},{12234,0,0,0,0,0},{12967,0,0,0,0,0},{12643,0,0,0,0,0},{12969,0,0,0,0,0},{12207,0,0,0,0,0},{11863,0,0,0,0,0},{13167,0,0,0,0,0},{12658,0,0,0,0,0},{12527,0,0,0,0,0},{12324,0,0,0,0,0},{12551,0,0,0,0,0},{12431,0,0,0,0,0},{11315,0,0,0,0,0},{12210,0,0,0,0,0},{13153,0,0,0,0,0},{12519,0,0,0,0,0}},{{11862,0,0,0,0,0},{11259,0,0,0,0,0},{11773,0,0,0,0,0},{11023,0,0,0,0,0},{11023,0,0,0,0,0},{11463,0,0,0,0,0},{12553,0,0,0,0,0},{11004,0,0,0,0,0},{11832,0,0,0,0,0},{11504,0,0,0,0,0},{11472,0,0,0,0,0},{11335,0,0,0,0,0},{11292,0,0,0,0,0},{11367,0,0,0,0,0},{12353,0,0,0,0,0},{11078,0,0,0,0,0},{11420,0,0,0,0,0},{11266,0,0,0,0,0},{11400,0,0,0,0,0},{11398,0,0,0,0,0},{10590,0,0,0,0,0},{10218,0,0,0,0,0},{11872,0,0,0,0,0},{12553,0,0,0,0,0},{12115,0,0,0,0,0},{11229,0,0,0,0,0},{10885,0,0,0,0,0},{11960,0,0,0,0,0},{10737,0,0,0,0,0},{11894,0,0,0,0,0},{11899,0,0,0,0,0},{11146,0,0,0,0,0},{11358,0,0,0,0,0},{11915,0,0,0,0,0},{12347,0,0,0,0,0},{11831,0,0,0,0,0},{11483,0,0,0,0,0},{11757,0,0,0,0,0},{12004,0,0,0,0,0},{11061,0,0,0,0,0},{10910,0,0,0,0,0},{11855,0,0,0,0,0},{12017,0,0,0,0,0},{11857,0,0,0,0,0},{11461,0,0,0,0,0},{11000,0,0,0,0,0},{11897,0,0,0,0,0},{10478,0,0,0,0,0},{11464,0,0,0,0,0},{11086,0,0,0,0,0}}},{{{-303,-400,-147,-412,-429,-165},{-191,-365,-223,-250,-320,-229},{-223,-297,-147,-341,-335,-376},{-309,-147,-394,-273,-179,-420},{-420,-197,-344,-432,-188,-359},{-185,-194,-276,-315,-341,-391},{-206,-344,-194,-268,-185,-306},{-356,-338,-232,-291,-394,-435},{-244,-323,-179,-279,-300,-226},{-409,-156,-203,-353,-265,-300},{-359,-312,-312,-150,-329,-206},{-232,-297,-265,-379,-344,-229},{-171,-244,-356,-253,-409,-256},{-391,-291,-341,-341,-291,-218},{-388,-147,-423,-362,-350,-179},{-191,-241,-294,-223,-194,-253},{-206,-412,-297,-409,-332,-315},{-282,-226,-350,-368,-285,-268},{-438,-188,-209,-315,-288,-188},{-173,-385,-441,-153,-350,-344},{-329,-350,-226,-270,-329,-397},{-417,-315,-226,-291,-262,-147},{-226,-179,-226,-359,-256,-412},{-376,-432,-150,-409,-268,-285},{-420,-250,-303,-212,-370,-297},{-162,-294,-191,-259,-191,-247},{-303,-168,-356,-347,-438,-397},{-306,-253,-250,-259,-194,-429},{-259,-359,-176,-417,-406,-171},{-273,-162,-406,-435,-165,-220},{-168,-382,-370,-156,-259,-191},{-426,-415,-171,-188,-150,-388},{-238,-179,-417,-282,-379,-329},{-394,-329,-412,-262,-412,-209},{-220,-318,-176,-432,-394,-373},{-173,-335,-403,-441,-335,-200},{-350,-376,-218,-347,-370,-315},{-276,-423,-397,-291,-341,-150},{-438,-232,-265,-338,-285,-309},{-273,-300,-294,-276,-282,-250},{-320,-232,-394,-147,-388,-376},{-382,-173,-247,-353,-373,-397},{-279,-212,-262,-409,-176,-176},{-350,-350,-168,-388,-147,-353},{-218,-223,-247,-409,-417,-341},{-232,-282,-370,-382,-215,-253},{-359,-276,-409,-306,-356,-350},{-370,-323,-382,-403,-297,-412},{-376,-265,-179,-179,-417,-268},{-338,-270,-247,-441,-382,-182}},{{-258,-192,-202,-408,-184,-202},{-160,-343,-353,-400,-184,-357},{-383,-240,-218,-408,-355,-324},{-200,-203,-176,-312,-171,-199},{-435,-380,-168,-216,-246,-287},{-244,-315,-241,-408,-310,-155},{-325,-406,-328,-249,-187,-233},{-377,-223,-160,-233,-323,-388},{-290,-169,-154,-225,-347,-181},{-180,-306,-280,-356,-371,-290},{-412,-206,-381,-342,-280,-344},{-420,-383,-367,-395,-347,-176},{-392,-206,-174,-274,-171,-145},{-284,-163,-412,-408,-179,-184},{-241,-300,-358,-400,-334,-339},{-365,-275,-342,-236,-302,-225},{-368,-395,-272,-381,-227,-236},{-188,-329,-291,-186,-270,-210},{-186,-420,-412,-408,-200,-306},{-429,-149,-210,-321,-198,-161},{-188,-223,-179,-192,-195,-241},{-168,-263,-193,-175,-387,-186},{-339,-177,-400,-356,-331,-332},{-220,-277,-389,-178,-259,-166},{-218,-380,-300,-326,-334,-251},{-302,-378,-216,-323,-272,-174},{-160,-183,-266,-395,-174,-145},{-354,-149,-188,-364,-190,-269},{-307,-289,-235,-397,-168,-370},{-258,-206,-224,-255,-246,-155},{-203,-335,-336,-140,-259,-236},{-174,-415,-218,-247,-323,-350},{-151,-378,-160,-304,-371,-285},{-296,-372,-409,-299,-400,-241},{-409,-355,-165,-373,-206,-220},{-429,-286,-358,-386,-384,-373},{-218,-277,-179,-406,-291,-161},{-307,-329,-367,-342,-187,-280},{-296,-372,-414,-170,-208,-176},{-313,-252,-263,-364,-176,-179},{-392,-400,-356,-408,-304,-350},{-406,-220,-384,-353,-315,-202},{-186,-303,-179,-175,-384,-264},{-415,-249,-403,-356,-342,-243},{-406,-372,-143,-290,-392,-373},{-174,-240,-367,-216,-168,-378},{-165,-246,-255,-282,-296,-155},{-420,-214,-319,-216,-320,-186},{-299,-269,-294,-263,-363,-264},{-188,-183,-216,-362,-368,-153}},{{-360,-288,-296,-320,-141,-128},{-218,-145,-224,-197,-297,-305},{-308,-184,-242,-141,-231,-231},{-268,-305,-156,-314,-165,-111},{-170,-194,-238,-215,-218,-111},{-258,-252,-270,-217,-154,-130},{-135,-319,-207,-184,-317,-136},{-240,-358,-144,-233,-107,-173},{-225,-150,-336,-181,-278,-126},{-185,-155,-214,-325,-265,-305},{-375,-138,-170,-327,-240,-115},{-330,-235,-287,-305,-227,-241},{-345,-167,-156,-166,-291,-115},{-308,-186,-226,-112,-308,-194},{-338,-152,-294,-302,-137,-260},{-320,-167,-196,-235,-201,-266},{-350,-288,-247,-139,-120,-179},{-350,-353,-217,-130,-302,-266},{-135,-278,-177,-255,-139,-165},{-170,-269,-322,-276,-190,-179},{-300,-341,-116,-195,-128,-157},{-180,-172,-277,-228,-126,-113},{-310,-290,-284,-164,-240,-239},{-172,-186,-186,-273,-310,-169},{-362,-131,-277,-289,-135,-247},{-200,-155,-296,-276,-193,-293},{-128,-218,-179,-211,-261,-187},{-262,-121,-128,-155,-293,-237},{-320,-165,-116,-242,-233,-237},{-330,-208,-177,-161,-274,-249},{-362,-254,-172,-237,-128,-204},{-368,-237,-165,-134,-225,-241},{-212,-220,-298,-300,-109,-148},{-318,-201,-301,-318,-229,-309},{-170,-273,-298,-260,-193,-295},{-310,-269,-331,-220,-111,-192},{-135,-157,-254,-235,-220,-225},{-158,-235,-126,-235,-229,-255},{-372,-150,-182,-199,-295,-284},{-322,-165,-268,-116,-197,-249},{-190,-184,-165,-125,-175,-115},{-148,-208,-245,-128,-182,-241},{-198,-136,-133,-161,-250,-154},{-362,-150,-252,-332,-180,-231},{-185,-211,-123,-260,-158,-152},{-308,-157,-137,-161,-295,-278},{-140,-143,-193,-307,-255,-140},{-170,-356,-231,-211,-137,-309},{-152,-191,-221,-334,-321,-274},{-205,-184,-161,-150,-154,-239}}},{{{-87,-152,-203,-97,-259,-197},{-113,-152,-163,-149,-276,-260},{-183,-210,-130,-177,-199,-220},{-155,-144,-96,-260,-272,-159},{-111,-164,-247,-163,-103,-225},{-171,-250,-224,-240,-120,-155},{-84,-183,-115,-188,-149,-214},{-150,-248,-108,-240,-145,-285},{-171,-186,-136,-107,-274,-244},{-178,-96,-142,-120,-132,-153},{-195,-128,-259,-206,-120,-160},{-181,-237,-124,-249,-223,-99},{-126,-245,-194,-227,-213,-202},{-185,-125,-257,-229,-136,-122},{-250,-230,-178,-106,-149,-170},{-128,-84,-178,-107,-190,-250},{-207,-167,-231,-140,-259,-109},{-247,-203,-233,-261,-129,-214},{-237,-93,-180,-186,-195,-191},{-92,-93,-156,-136,-144,-201},{-131,-110,-248,-267,-144,-99},{-153,-238,-172,-145,-169,-235},{-252,-112,-124,-149,-149,-223},{-121,-162,-210,-158,-160,-185},{-109,-127,-215,-136,-94,-210},{-185,-186,-254,-186,-121,-115},{-170,-240,-219,-122,-236,-103},{-212,-155,-114,-125,-199,-225},{-158,-243,-229,-268,-217,-178},{-163,-144,-245,-90,-239,-199},{-200,-171,-105,-188,-171,-243},{-240,-216,-154,-168,-204,-147},{-210,-208,-164,-209,-149,-168},{-99,-248,-261,-145,-276,-223},{-193,-108,-196,-138,-269,-157},{-109,-95,-147,-247,-247,-149},{-99,-206,-103,-150,-224,-235},{-222,-183,-144,-154,-123,-155},{-134,-88,-256,-227,-243,-164},{-146,-245,-220,-136,-241,-285},{-228,-186,-219,-229,-186,-202},{-208,-194,-206,-150,-204,-273},{-168,-112,-219,-231,-201,-241},{-242,-201,-191,-175,-94,-248},{-188,-174,-88,-134,-99,-107},{-139,-132,-149,-93,-92,-233},{-249,-198,-210,-152,-193,-214},{-97,-183,-217,-251,-140,-113},{-128,-220,-196,-233,-265,-281},{-163,-112,-206,-200,-247,-105}},{{-202,-291,-222,-110,-195,-302},{-216,-275,-113,-115,-266,-319},{-135,-197,-126,-177,-330,-162},{-127,-266,-317,-177,-252,-233},{-145,-281,-234,-250,-167,-212},{-261,-258,-215,-256,-174,-340},{-180,-127,-317,-327,-337,-264},{-109,-207,-130,-285,-243,-302},{-121,-293,-300,-166,-147,-312},{-113,-203,-277,-298,-240,-171},{-246,-133,-298,-144,-137,-152},{-147,-273,-196,-263,-169,-295},{-194,-131,-266,-148,-197,-338},{-214,-172,-192,-287,-153,-124},{-230,-187,-162,-312,-202,-236},{-178,-148,-175,-183,-224,-200},{-125,-189,-198,-256,-234,-131},{-103,-113,-198,-159,-124,-259},{-121,-287,-196,-164,-321,-281},{-121,-164,-119,-301,-279,-345},{-295,-217,-275,-298,-153,-181},{-263,-201,-136,-190,-332,-305},{-212,-148,-298,-305,-133,-174},{-234,-166,-192,-278,-206,-178},{-291,-160,-136,-130,-204,-224},{-127,-234,-253,-267,-229,-264},{-222,-166,-196,-186,-309,-352},{-257,-242,-126,-243,-151,-193},{-297,-226,-170,-234,-156,-209},{-206,-271,-155,-190,-334,-317},{-154,-178,-302,-241,-160,-259},{-190,-215,-192,-278,-218,-259},{-277,-144,-253,-332,-176,-328},{-251,-113,-166,-181,-323,-340},{-240,-139,-243,-115,-156,-317},{-152,-230,-121,-208,-282,-345},{-182,-148,-177,-314,-165,-209},{-214,-301,-273,-119,-181,-224},{-135,-264,-198,-161,-121,-238},{-228,-119,-204,-122,-199,-281},{-283,-148,-121,-113,-250,-136},{-190,-109,-204,-259,-208,-174},{-273,-193,-121,-210,-142,-119},{-107,-189,-181,-245,-114,-283},{-220,-102,-106,-312,-163,-345},{-103,-236,-275,-161,-311,-205},{-123,-176,-153,-124,-240,-207},{-214,-187,-198,-323,-311,-129},{-160,-146,-187,-254,-158,-290},{-293,-217,-217,-137,-236,-262}},{{-235,-365,-176,-362,-343,-252},{-163,-128,-377,-259,-227,-328},{-153,-380,-183,-394,-357,-323},{-173,-337,-207,-178,-374,-413},{-212,-143,-367,-202,-219,-187},{-136,-291,-328,-259,-222,-226},{-282,-339,-249,-346,-274,-260},{-161,-207,-270,-300,-283,-215},{-205,-329,-267,-178,-249,-147},{-356,-362,-293,-294,-327,-365},{-351,-354,-220,-281,-252,-277},{-203,-273,-236,-359,-294,-320},{-301,-319,-233,-192,-260,-218},{-331,-135,-270,-321,-252,-348},{-324,-265,-328,-405,-299,-173},{-284,-166,-385,-211,-138,-226},{-356,-263,-149,-329,-382,-150},{-279,-372,-335,-275,-299,-323},{-126,-380,-267,-267,-238,-416},{-306,-344,-139,-381,-230,-365},{-193,-150,-170,-159,-138,-144},{-296,-286,-228,-394,-144,-190},{-203,-347,-144,-383,-305,-368},{-311,-347,-388,-381,-241,-161},{-235,-309,-212,-256,-349,-379},{-225,-352,-280,-327,-197,-348},{-329,-270,-220,-194,-202,-207},{-366,-150,-183,-238,-310,-388},{-309,-143,-155,-400,-141,-153},{-368,-352,-354,-248,-352,-337},{-254,-314,-173,-294,-402,-156},{-267,-362,-369,-405,-175,-170},{-183,-143,-346,-405,-188,-178},{-168,-367,-236,-286,-335,-416},{-291,-150,-367,-243,-379,-291},{-299,-380,-189,-373,-260,-345},{-170,-240,-181,-240,-158,-226},{-240,-209,-194,-338,-183,-331},{-329,-189,-343,-392,-166,-306},{-146,-201,-307,-286,-141,-408},{-284,-247,-139,-178,-191,-351},{-277,-133,-377,-343,-291,-413},{-225,-237,-157,-251,-294,-399},{-249,-227,-176,-324,-385,-303},{-190,-332,-320,-289,-269,-405},{-249,-214,-291,-184,-349,-156},{-264,-293,-362,-278,-391,-184},{-128,-130,-223,-297,-199,-357},{-326,-263,-246,-140,-138,-376},{-309,-280,-259,-170,-360,-269}}},{{{-362,-368,-359,-395,-217,-444},{-411,-365,-270,-401,-359,-415},{-293,-299,-336,-441,-464,-487},{-293,-296,-336,-293,-494,-296},{-266,-290,-234,-480,-171,-280},{-352,-339,-201,-224,-299,-428},{-444,-474,-441,-257,-247,-326},{-326,-444,-283,-368,-474,-326},{-461,-309,-480,-257,-408,-230},{-441,-273,-283,-441,-247,-385},{-378,-431,-464,-280,-234,-220},{-217,-342,-253,-388,-388,-201},{-339,-168,-477,-355,-257,-290},{-418,-372,-424,-434,-243,-470},{-290,-220,-490,-174,-345,-378},{-405,-204,-362,-352,-494,-372},{-424,-395,-408,-250,-392,-207},{-263,-405,-322,-477,-260,-487},{-316,-188,-447,-392,-332,-352},{-421,-388,-194,-184,-467,-470},{-441,-253,-415,-490,-385,-336},{-401,-352,-332,-313,-181,-322},{-283,-171,-398,-339,-240,-355},{-270,-342,-290,-201,-388,-178},{-441,-434,-227,-339,-234,-474},{-490,-211,-461,-184,-290,-368},{-286,-204,-184,-309,-178,-257},{-421,-362,-174,-418,-428,-362},{-211,-197,-444,-368,-217,-438},{-299,-434,-411,-451,-250,-395},{-211,-385,-424,-197,-359,-454},{-408,-398,-461,-345,-220,-434},{-392,-290,-375,-411,-217,-470},{-467,-234,-464,-188,-395,-401},{-382,-487,-290,-293,-204,-418},{-257,-441,-286,-316,-326,-316},{-276,-303,-181,-480,-211,-303},{-395,-230,-329,-296,-263,-164},{-405,-411,-296,-375,-191,-280},{-457,-461,-444,-280,-368,-217},{-418,-365,-434,-438,-253,-263},{-263,-451,-467,-368,-201,-191},{-480,-266,-467,-454,-434,-372},{-355,-474,-424,-168,-487,-355},{-480,-224,-494,-227,-444,-296},{-178,-441,-316,-467,-240,-392},{-421,-345,-355,-342,-484,-263},{-451,-408,-494,-332,-316,-263},{-461,-336,-457,-253,-296,-303},{-411,-411,-362,-181,-411,-201}},{{-259,-399,-367,-248,-367,-172},{-364,-193,-169,-399,-206,-349},{-367,-248,-258,-308,-363,-406},{-492,-264,-408,-443,-453,-442},{-298,-419,-322,-279,-326,-172},{-403,-187,-290,-185,-231,-211},{-492,-319,-195,-411,-163,-157},{-410,-332,-166,-433,-462,-331},{-374,-473,-412,-298,-259,-400},{-417,-293,-402,-358,-437,-283},{-331,-190,-405,-170,-299,-172},{-407,-464,-367,-405,-176,-253},{-426,-460,-255,-217,-225,-292},{-318,-167,-166,-336,-413,-370},{-413,-415,-287,-214,-237,-295},{-174,-393,-472,-298,-274,-268},{-403,-193,-179,-157,-194,-172},{-239,-258,-281,-342,-176,-304},{-430,-209,-345,-308,-191,-265},{-344,-399,-201,-305,-286,-328},{-164,-219,-278,-386,-345,-343},{-315,-270,-447,-170,-163,-346},{-236,-406,-284,-374,-237,-286},{-423,-209,-271,-436,-213,-319},{-426,-367,-418,-279,-354,-247},{-223,-167,-188,-314,-370,-280},{-443,-164,-360,-323,-299,-397},{-410,-367,-364,-358,-246,-346},{-308,-438,-338,-430,-440,-181},{-367,-470,-322,-210,-262,-217},{-413,-299,-271,-214,-262,-202},{-249,-235,-290,-386,-462,-430},{-384,-483,-335,-402,-339,-220},{-394,-161,-287,-367,-194,-193},{-194,-229,-258,-399,-440,-370},{-446,-270,-207,-179,-428,-316},{-492,-283,-380,-358,-336,-403},{-315,-393,-440,-468,-391,-304},{-210,-473,-373,-452,-357,-196},{-223,-354,-201,-170,-437,-304},{-364,-200,-262,-427,-169,-253},{-266,-161,-463,-170,-320,-376},{-377,-402,-188,-449,-154,-307},{-315,-393,-418,-157,-447,-262},{-256,-406,-329,-283,-188,-403},{-321,-254,-313,-198,-169,-364},{-269,-357,-389,-383,-419,-244},{-459,-225,-367,-427,-157,-388},{-269,-457,-450,-358,-357,-313},{-325,-203,-472,-342,-400,-373}},{{-239,-147,-204,-169,-186,-355},{-171,-161,-283,-180,-215,-216},{-345,-397,-314,-364,-220,-159},{-298,-314,-252,-280,-379,-375},{-236,-204,-344,-199,-292,-326},{-336,-274,-216,-305,-196,-190},{-239,-325,-266,-386,-201,-326},{-260,-337,-333,-150,-207,-375},{-304,-320,-389,-351,-310,-139},{-224,-262,-235,-218,-278,-285},{-206,-317,-308,-166,-236,-252},{-372,-400,-210,-182,-162,-175},{-298,-202,-406,-239,-162,-167},{-301,-242,-305,-381,-228,-244},{-274,-389,-322,-248,-249,-342},{-301,-179,-330,-329,-278,-290},{-239,-348,-280,-160,-204,-226},{-221,-294,-356,-248,-188,-329},{-198,-369,-146,-351,-207,-375},{-257,-259,-210,-220,-374,-262},{-221,-314,-207,-166,-307,-280},{-357,-170,-160,-351,-156,-128},{-327,-420,-325,-147,-331,-370},{-428,-348,-140,-373,-299,-260},{-233,-400,-165,-310,-387,-329},{-431,-144,-260,-150,-387,-370},{-198,-156,-336,-239,-284,-275},{-401,-406,-367,-299,-262,-306},{-442,-334,-249,-277,-329,-360},{-330,-265,-260,-228,-215,-383},{-378,-153,-269,-231,-268,-203},{-174,-360,-288,-250,-175,-316},{-233,-415,-325,-190,-395,-324},{-292,-389,-190,-169,-180,-288},{-171,-285,-414,-367,-148,-208},{-171,-279,-204,-228,-289,-342},{-434,-343,-193,-215,-318,-329},{-263,-363,-165,-362,-318,-247},{-271,-181,-176,-288,-241,-290},{-245,-282,-171,-403,-249,-357},{-174,-354,-356,-242,-257,-203},{-410,-268,-224,-223,-167,-154},{-419,-288,-190,-256,-225,-339},{-419,-288,-300,-335,-379,-208},{-266,-156,-347,-201,-278,-221},{-186,-429,-224,-245,-347,-188},{-372,-242,-246,-400,-286,-203},{-319,-176,-146,-326,-374,-164},{-153,-213,-364,-318,-186,-283},{-242,-374,-319,-277,-315,-188}}},{{{-62,-70,-151,-88,-129,-137},{-66,-80,-108,-146,-105,-161},{-61,-83,-65,-62,-167,-105},{-153,-63,-130,-80,-62,-77},{-153,-124,-151,-153,-102,-184},{-71,-81,-76,-138,-155,-150},{-96,-81,-76,-108,-148,-78},{-91,-127,-128,-85,-110,-92},{-100,-59,-164,-74,-181,-108},{-142,-137,-86,-159,-152,-131},{-108,-113,-102,-151,-134,-69},{-101,-154,-149,-90,-161,-157},{-67,-98,-120,-149,-155,-116},{-109,-57,-99,-75,-110,-125},{-131,-55,-92,-89,-161,-109},{-114,-70,-105,-154,-165,-106},{-138,-57,-73,-75,-96,-110},{-102,-71,-144,-104,-145,-161},{-52,-65,-56,-154,-167,-131},{-154,-60,-85,-159,-105,-70},{-102,-124,-127,-113,-155,-163},{-74,-55,-124,-61,-134,-87},{-74,-137,-78,-161,-133,-175},{-60,-155,-152,-68,-73,-134},{-91,-98,-155,-111,-182,-116},{-139,-96,-140,-142,-144,-151},{-130,-61,-114,-161,-178,-69},{-131,-135,-88,-71,-67,-124},{-156,-71,-109,-172,-121,-136},{-56,-64,-81,-88,-93,-154},{-58,-159,-157,-132,-85,-123},{-66,-80,-157,-133,-183,-192},{-120,-141,-81,-129,-132,-179},{-84,-117,-166,-166,-115,-166},{-87,-129,-96,-151,-109,-183},{-65,-100,-87,-69,-109,-164},{-86,-137,-73,-132,-96,-114},{-146,-147,-144,-139,-126,-77},{-114,-102,-56,-170,-98,-154},{-114,-110,-123,-64,-109,-114},{-116,-124,-157,-166,-123,-114},{-141,-60,-132,-168,-170,-182},{-83,-146,-156,-126,-70,-169},{-110,-154,-111,-132,-89,-160},{-92,-68,-84,-78,-92,-91},{-98,-111,-119,-75,-145,-64},{-70,-78,-132,-128,-77,-68},{-129,-78,-164,-96,-146,-97},{-93,-123,-129,-136,-99,-105},{-79,-124,-66,-118,-171,-161}},{{-181,-196,-182,-90,-238,-185},{-166,-196,-135,-91,-101,-143},{-82,-133,-77,-205,-158,-207},{-201,-166,-112,-90,-238,-185},{-126,-196,-148,-188,-121,-170},{-190,-195,-74,-107,-145,-225},{-171,-111,-178,-112,-143,-186},{-197,-175,-133,-116,-138,-242},{-119,-137,-184,-141,-224,-222},{-190,-159,-178,-133,-118,-153},{-70,-171,-130,-115,-195,-102},{-88,-117,-112,-180,-142,-102},{-131,-196,-149,-107,-208,-215},{-74,-138,-92,-122,-130,-111},{-196,-171,-192,-104,-217,-190},{-196,-109,-77,-112,-109,-202},{-86,-133,-163,-225,-217,-210},{-169,-188,-184,-118,-143,-87},{-178,-75,-175,-105,-116,-249},{-140,-188,-81,-232,-166,-212},{-124,-133,-186,-140,-222,-186},{-174,-118,-84,-181,-116,-180},{-119,-94,-78,-108,-242,-228},{-185,-210,-96,-98,-119,-101},{-70,-193,-87,-180,-151,-150},{-182,-199,-81,-211,-213,-207},{-85,-172,-186,-212,-224,-121},{-173,-152,-188,-143,-174,-183},{-68,-169,-124,-212,-98,-141},{-177,-190,-98,-115,-184,-94},{-73,-190,-99,-229,-166,-138},{-130,-176,-108,-215,-130,-160},{-123,-128,-212,-231,-182,-109},{-104,-103,-147,-84,-135,-244},{-163,-159,-126,-219,-85,-171},{-123,-149,-197,-143,-195,-205},{-176,-94,-101,-198,-198,-213},{-184,-140,-138,-104,-196,-128},{-178,-104,-117,-90,-192,-123},{-153,-195,-161,-84,-237,-202},{-142,-154,-118,-116,-179,-148},{-184,-149,-83,-206,-232,-168},{-161,-189,-173,-124,-119,-223},{-157,-120,-81,-202,-150,-87},{-143,-137,-212,-135,-122,-244},{-159,-202,-210,-166,-143,-202},{-94,-169,-161,-141,-188,-212},{-127,-154,-80,-105,-127,-192},{-126,-87,-163,-197,-119,-91},{-173,-209,-108,-208,-138,-131}},{{-133,-207,-177,-105,-165,-135},{-122,-230,-193,-220,-192,-230},{-229,-151,-249,-167,-165,-234},{-142,-232,-97,-106,-98,-244},{-168,-203,-126,-108,-143,-244},{-163,-263,-251,-268,-247,-226},{-257,-104,-126,-272,-108,-182},{-103,-149,-223,-245,-116,-228},{-254,-90,-266,-260,-259,-109},{-210,-148,-145,-283,-145,-168},{-133,-106,-128,-255,-255,-220},{-198,-184,-154,-194,-139,-105},{-142,-209,-268,-129,-265,-212},{-124,-167,-188,-276,-200,-145},{-206,-106,-136,-283,-288,-152},{-136,-115,-143,-129,-172,-115},{-96,-268,-253,-142,-251,-170},{-138,-101,-238,-108,-147,-148},{-130,-203,-147,-230,-143,-196},{-229,-160,-253,-105,-174,-105},{-112,-207,-134,-127,-253,-194},{-177,-164,-102,-177,-174,-133},{-229,-212,-205,-124,-110,-135},{-173,-194,-257,-203,-267,-180},{-159,-200,-262,-158,-259,-226},{-110,-106,-169,-239,-267,-170},{-98,-131,-93,-105,-190,-269},{-196,-248,-227,-186,-194,-238},{-124,-207,-117,-95,-172,-101},{-217,-133,-272,-228,-133,-269},{-89,-270,-193,-196,-261,-105},{-144,-241,-145,-103,-104,-133},{-124,-130,-93,-99,-102,-295},{-103,-155,-128,-260,-245,-295},{-212,-162,-201,-135,-127,-182},{-198,-124,-197,-247,-137,-117},{-163,-221,-232,-108,-233,-293},{-261,-164,-188,-274,-225,-281},{-159,-221,-169,-218,-167,-253},{-121,-225,-106,-285,-182,-192},{-170,-178,-138,-173,-265,-115},{-259,-146,-225,-160,-174,-236},{-112,-95,-199,-182,-286,-234},{-220,-139,-184,-133,-155,-248},{-110,-227,-236,-245,-178,-222},{-88,-95,-97,-213,-167,-236},{-206,-261,-145,-247,-272,-147},{-119,-130,-240,-103,-169,-129},{-105,-158,-136,-198,-243,-192},{-259,-119,-173,-194,-143,-107}}},{{{-212,-188,-271,-302,-124,-298},{-259,-131,-317,-202,-178,-257},{-329,-343,-307,-290,-121,-321},{-317,-347,-181,-138,-174,-300},{-277,-298,-178,-226,-145,-126},{-249,-276,-317,-300,-338,-198},{-142,-350,-202,-183,-169,-202},{-259,-333,-174,-195,-228,-171},{-224,-181,-333,-209,-326,-278},{-350,-355,-183,-162,-224,-326},{-126,-188,-267,-155,-276,-145},{-156,-209,-326,-121,-228,-243},{-305,-350,-355,-157,-259,-133},{-191,-290,-207,-259,-207,-202},{-151,-328,-219,-314,-355,-159},{-268,-143,-202,-257,-333,-257},{-123,-309,-281,-155,-138,-290},{-310,-326,-328,-143,-124,-195},{-270,-355,-167,-126,-312,-262},{-147,-267,-133,-255,-281,-236},{-340,-195,-259,-338,-152,-124},{-305,-281,-248,-252,-295,-283},{-163,-181,-164,-231,-309,-207},{-198,-209,-252,-181,-131,-167},{-333,-281,-281,-226,-198,-302},{-156,-309,-221,-302,-202,-281},{-319,-250,-336,-155,-224,-245},{-119,-250,-243,-236,-283,-190},{-121,-250,-217,-155,-205,-278},{-228,-178,-181,-183,-271,-136},{-235,-152,-145,-202,-250,-286},{-254,-267,-148,-274,-338,-324},{-263,-181,-169,-345,-319,-321},{-133,-319,-350,-126,-240,-157},{-296,-283,-126,-133,-124,-221},{-331,-143,-295,-252,-224,-305},{-338,-169,-219,-226,-124,-283},{-214,-126,-317,-326,-307,-347},{-226,-195,-352,-248,-307,-233},{-238,-307,-162,-352,-224,-183},{-165,-245,-295,-283,-121,-119},{-268,-148,-357,-307,-317,-243},{-221,-224,-226,-143,-162,-138},{-284,-278,-150,-217,-347,-171},{-326,-164,-338,-231,-238,-148},{-263,-269,-169,-150,-276,-178},{-242,-271,-257,-167,-290,-124},{-130,-350,-240,-205,-228,-274},{-130,-124,-328,-355,-181,-126},{-191,-302,-221,-181,-269,-198}},{{-269,-174,-212,-213,-253,-181},{-357,-324,-200,-231,-188,-186},{-124,-209,-284,-215,-142,-296},{-178,-207,-345,-293,-264,-126},{-283,-288,-352,-146,-145,-274},{-324,-278,-334,-120,-332,-157},{-305,-162,-345,-199,-278,-119},{-148,-136,-221,-277,-147,-256},{-126,-126,-291,-307,-289,-329},{-307,-195,-226,-180,-276,-133},{-159,-326,-162,-275,-145,-208},{-352,-286,-226,-247,-183,-276},{-338,-357,-308,-139,-156,-146},{-119,-321,-141,-323,-181,-294},{-162,-224,-320,-275,-280,-252},{-136,-343,-204,-189,-124,-212},{-345,-257,-136,-189,-165,-186},{-255,-167,-249,-187,-221,-248},{-193,-324,-247,-132,-113,-124},{-181,-357,-235,-344,-203,-146},{-257,-326,-317,-289,-330,-197},{-174,-328,-186,-284,-298,-188},{-338,-157,-331,-134,-210,-203},{-148,-157,-118,-122,-264,-126},{-326,-124,-270,-159,-201,-241},{-302,-183,-261,-164,-231,-261},{-350,-190,-254,-185,-305,-332},{-174,-186,-313,-206,-312,-327},{-190,-214,-343,-233,-206,-137},{-198,-138,-132,-155,-219,-332},{-131,-259,-200,-122,-115,-146},{-238,-281,-348,-132,-231,-292},{-324,-214,-266,-157,-147,-265},{-293,-314,-322,-162,-167,-245},{-233,-193,-212,-312,-160,-318},{-286,-136,-261,-303,-185,-168},{-248,-345,-143,-233,-264,-194},{-195,-340,-153,-159,-240,-130},{-228,-271,-233,-298,-271,-256},{-119,-281,-334,-219,-226,-148},{-333,-312,-345,-300,-138,-175},{-347,-171,-280,-162,-124,-152},{-343,-338,-329,-206,-301,-234},{-355,-288,-120,-178,-217,-148},{-347,-119,-289,-284,-242,-230},{-202,-345,-134,-312,-228,-190},{-231,-350,-143,-127,-231,-130},{-133,-162,-242,-222,-312,-144},{-171,-302,-270,-224,-226,-214},{-221,-186,-280,-178,-160,-170}},{{-129,-293,-198,-113,-176,-144},{-198,-167,-277,-273,-133,-207},{-290,-272,-129,-101,-262,-106},{-168,-125,-285,-170,-114,-131},{-282,-130,-281,-177,-166,-203},{-269,-276,-198,-242,-108,-247},{-305,-157,-109,-263,-269,-153},{-196,-219,-200,-123,-146,-211},{-114,-217,-105,-215,-196,-117},{-148,-213,-194,-263,-127,-180},{-252,-196,-154,-156,-187,-196},{-269,-291,-101,-254,-226,-103},{-215,-180,-168,-152,-232,-131},{-131,-125,-279,-281,-120,-124},{-320,-132,-147,-215,-120,-160},{-163,-282,-143,-232,-161,-259},{-234,-240,-111,-113,-206,-200},{-254,-288,-200,-131,-101,-248},{-260,-140,-303,-242,-114,-220},{-153,-274,-303,-199,-224,-229},{-144,-236,-109,-238,-249,-97},{-138,-234,-127,-115,-181,-121},{-316,-173,-293,-187,-209,-122},{-247,-270,-238,-193,-226,-110},{-299,-226,-275,-246,-208,-171},{-256,-203,-252,-218,-105,-160},{-226,-194,-184,-195,-232,-256},{-172,-253,-234,-261,-148,-220},{-241,-222,-117,-131,-146,-182},{-159,-301,-240,-162,-172,-137},{-189,-245,-192,-211,-279,-176},{-273,-167,-271,-283,-105,-90},{-127,-111,-194,-213,-108,-122},{-181,-314,-172,-291,-157,-207},{-269,-109,-275,-144,-170,-175},{-254,-282,-281,-257,-144,-95},{-174,-253,-271,-129,-264,-175},{-258,-117,-244,-271,-172,-187},{-299,-184,-143,-109,-112,-173},{-273,-115,-107,-261,-223,-115},{-206,-142,-273,-271,-153,-166},{-196,-307,-275,-125,-155,-245},{-252,-253,-273,-172,-277,-234},{-176,-234,-279,-191,-150,-108},{-221,-307,-265,-259,-215,-169},{-256,-311,-186,-135,-237,-193},{-234,-259,-257,-289,-191,-194},{-181,-286,-297,-242,-159,-227},{-155,-173,-156,-136,-241,-245},{-262,-176,-289,-250,-123,-92}}},{{{-317,-343,-301,-239,-348,-303},{-202,-253,-234,-354,-356,-370},{-325,-282,-152,-325,-197,-229},{-253,-317,-247,-253,-144,-189},{-364,-375,-274,-186,-309,-354},{-282,-298,-378,-319,-186,-170},{-200,-295,-160,-178,-346,-378},{-258,-325,-186,-242,-165,-279},{-160,-293,-218,-383,-266,-184},{-242,-322,-370,-237,-367,-314},{-338,-261,-298,-354,-309,-234},{-372,-231,-348,-319,-340,-231},{-189,-332,-295,-146,-136,-146},{-218,-176,-157,-146,-282,-215},{-311,-378,-293,-380,-362,-399},{-136,-138,-258,-173,-205,-303},{-282,-154,-383,-338,-149,-271},{-309,-242,-221,-215,-314,-210},{-223,-399,-239,-271,-207,-210},{-309,-282,-346,-152,-149,-245},{-375,-178,-162,-165,-245,-133},{-213,-340,-279,-343,-162,-340},{-178,-343,-327,-202,-165,-170},{-319,-141,-205,-146,-306,-354},{-263,-242,-245,-229,-245,-314},{-282,-165,-290,-165,-394,-210},{-229,-184,-372,-247,-367,-186},{-144,-136,-343,-184,-186,-247},{-176,-301,-173,-234,-375,-149},{-229,-229,-309,-314,-266,-231},{-149,-146,-317,-245,-314,-189},{-343,-285,-154,-154,-375,-221},{-218,-338,-229,-306,-226,-386},{-322,-194,-271,-149,-386,-168},{-311,-295,-245,-356,-375,-250},{-364,-287,-192,-279,-221,-247},{-362,-144,-271,-192,-239,-146},{-295,-266,-306,-207,-375,-266},{-317,-245,-189,-231,-247,-170},{-335,-367,-165,-237,-202,-340},{-364,-253,-274,-301,-138,-200},{-274,-165,-317,-285,-309,-253},{-146,-176,-136,-271,-168,-343},{-287,-218,-327,-154,-394,-162},{-364,-144,-343,-380,-314,-367},{-282,-210,-327,-359,-279,-189},{-149,-290,-301,-186,-287,-277},{-359,-263,-391,-149,-367,-138},{-138,-141,-189,-258,-311,-146},{-213,-168,-383,-229,-184,-229}},{{-311,-364,-215,-370,-293,-363},{-144,-210,-245,-229,-189,-168},{-293,-234,-383,-255,-296,-148},{-202,-239,-141,-253,-225,-137},{-396,-200,-399,-306,-293,-218},{-165,-165,-160,-375,-369,-344},{-380,-362,-391,-231,-215,-378},{-152,-335,-394,-223,-388,-192},{-144,-309,-388,-309,-152,-293},{-263,-298,-178,-298,-356,-194},{-370,-301,-364,-229,-283,-282},{-234,-157,-165,-136,-139,-329},{-396,-202,-261,-383,-204,-280},{-234,-396,-239,-290,-134,-241},{-173,-322,-293,-266,-288,-238},{-181,-210,-215,-375,-246,-194},{-386,-223,-261,-332,-291,-246},{-317,-309,-197,-274,-312,-324},{-250,-274,-154,-223,-388,-262},{-370,-311,-338,-165,-183,-355},{-362,-215,-359,-170,-304,-137},{-170,-346,-356,-279,-157,-262},{-285,-306,-356,-202,-317,-285},{-301,-237,-218,-194,-309,-360},{-154,-242,-317,-332,-320,-319},{-303,-356,-266,-327,-202,-145},{-293,-309,-245,-178,-270,-311},{-223,-255,-378,-239,-139,-168},{-359,-330,-186,-207,-212,-251},{-157,-218,-372,-396,-194,-350},{-223,-348,-226,-173,-210,-254},{-146,-178,-226,-170,-267,-197},{-253,-346,-364,-141,-354,-334},{-157,-287,-301,-210,-380,-381},{-192,-218,-362,-266,-252,-236},{-394,-332,-330,-335,-388,-215},{-388,-207,-303,-237,-238,-197},{-274,-165,-335,-229,-173,-179},{-309,-370,-210,-287,-144,-319},{-173,-266,-383,-197,-252,-186},{-215,-383,-375,-330,-223,-344},{-396,-359,-309,-192,-270,-259},{-136,-250,-378,-271,-304,-161},{-173,-213,-234,-298,-194,-215},{-247,-271,-396,-319,-202,-205},{-271,-245,-303,-215,-291,-378},{-210,-165,-234,-253,-307,-168},{-367,-327,-258,-269,-338,-166},{-367,-325,-338,-340,-204,-321},{-277,-367,-319,-223,-155,-218}},{{-321,-200,-224,-367,-208,-357},{-303,-170,-199,-201,-250,-149},{-254,-314,-280,-156,-140,-306},{-251,-245,-287,-221,-211,-174},{-150,-273,-335,-169,-255,-292},{-295,-268,-307,-342,-360,-137},{-228,-369,-345,-360,-363,-164},{-254,-207,-156,-141,-355,-176},{-171,-354,-184,-243,-145,-349},{-360,-283,-338,-151,-137,-195},{-329,-207,-161,-171,-194,-224},{-236,-157,-184,-193,-328,-301},{-197,-306,-166,-365,-279,-169},{-344,-200,-249,-340,-172,-145},{-215,-283,-222,-273,-316,-313},{-142,-377,-318,-335,-333,-157},{-334,-223,-176,-310,-350,-323},{-275,-159,-136,-131,-225,-212},{-285,-197,-307,-181,-233,-236},{-184,-374,-277,-141,-243,-186},{-174,-293,-202,-327,-240,-137},{-368,-342,-126,-238,-235,-176},{-293,-175,-159,-228,-208,-333},{-378,-185,-302,-136,-270,-352},{-368,-288,-144,-181,-267,-313},{-290,-319,-229,-146,-176,-265},{-174,-129,-315,-141,-225,-171},{-373,-197,-335,-188,-218,-227},{-220,-240,-136,-270,-152,-280},{-158,-230,-181,-174,-304,-311},{-269,-319,-340,-191,-279,-352},{-155,-248,-282,-357,-233,-248},{-256,-126,-350,-181,-238,-253},{-376,-324,-214,-176,-179,-210},{-197,-339,-318,-273,-181,-275},{-174,-132,-318,-151,-365,-265},{-153,-142,-348,-342,-208,-296},{-140,-205,-348,-298,-294,-171},{-324,-304,-151,-288,-240,-268},{-199,-164,-129,-372,-235,-296},{-262,-309,-267,-171,-353,-149},{-207,-149,-169,-268,-304,-316},{-212,-263,-237,-308,-238,-357},{-264,-235,-139,-298,-122,-362},{-378,-129,-192,-236,-328,-186},{-233,-154,-229,-131,-220,-265},{-135,-263,-204,-193,-184,-289},{-259,-314,-189,-357,-321,-328},{-174,-374,-166,-188,-328,-349},{-150,-185,-335,-352,-176,-272}}},{{{-430,-283,-271,-199,-358,-352},{-241,-193,-406,-202,-406,-317},{-247,-172,-169,-283,-199,-219},{-217,-259,-169,-430,-373,-429},{-262,-268,-343,-442,-430,-408},{-199,-187,-202,-235,-166,-169},{-379,-190,-334,-442,-202,-349},{-196,-223,-202,-400,-361,-317},{-229,-442,-181,-187,-301,-314},{-382,-331,-325,-226,-421,-444},{-289,-445,-256,-211,-436,-192},{-150,-268,-150,-373,-196,-184},{-292,-331,-421,-259,-235,-258},{-301,-412,-382,-337,-274,-420},{-166,-448,-205,-346,-400,-181},{-262,-268,-259,-319,-199,-323},{-313,-319,-190,-214,-436,-260},{-436,-232,-361,-364,-199,-394},{-172,-406,-283,-418,-352,-361},{-250,-310,-328,-205,-334,-361},{-334,-415,-178,-298,-331,-269},{-232,-355,-343,-412,-337,-394},{-295,-445,-208,-409,-193,-269},{-340,-244,-319,-382,-292,-394},{-337,-253,-187,-265,-271,-219},{-355,-364,-271,-292,-283,-423},{-241,-322,-388,-364,-388,-420},{-452,-241,-223,-391,-388,-296},{-226,-241,-418,-304,-220,-258},{-253,-157,-241,-169,-277,-210},{-358,-271,-352,-184,-409,-299},{-367,-316,-307,-442,-364,-311},{-349,-352,-406,-385,-385,-379},{-361,-150,-253,-184,-331,-186},{-340,-328,-172,-442,-403,-204},{-214,-355,-199,-202,-361,-361},{-268,-340,-406,-400,-343,-364},{-277,-205,-187,-217,-235,-219},{-367,-196,-301,-166,-223,-299},{-262,-247,-286,-385,-412,-373},{-166,-427,-247,-427,-421,-210},{-223,-229,-397,-412,-247,-352},{-388,-163,-268,-202,-358,-343},{-319,-355,-439,-412,-358,-355},{-346,-265,-409,-385,-409,-272},{-247,-256,-412,-280,-244,-432},{-340,-322,-217,-154,-157,-263},{-358,-190,-442,-265,-289,-148},{-166,-235,-211,-436,-325,-213},{-208,-400,-199,-229,-364,-175}},{{-158,-307,-328,-379,-170,-375},{-249,-324,-283,-224,-278,-154},{-226,-408,-199,-317,-292,-362},{-413,-175,-151,-197,-262,-229},{-249,-187,-370,-191,-390,-321},{-272,-264,-328,-169,-355,-344},{-270,-250,-188,-298,-228,-149},{-416,-416,-342,-158,-284,-157},{-272,-146,-140,-390,-368,-383},{-360,-218,-157,-366,-297,-198},{-211,-273,-255,-183,-276,-221},{-437,-238,-398,-306,-180,-195},{-170,-298,-378,-235,-294,-303},{-234,-385,-367,-363,-249,-193},{-202,-175,-300,-270,-246,-136},{-346,-382,-400,-147,-344,-180},{-287,-425,-280,-202,-278,-362},{-155,-350,-325,-254,-270,-229},{-164,-169,-286,-158,-233,-185},{-428,-204,-314,-298,-358,-314},{-193,-218,-294,-287,-329,-314},{-270,-344,-230,-358,-151,-370},{-261,-370,-336,-240,-178,-170},{-270,-227,-406,-153,-334,-154},{-264,-347,-143,-224,-140,-272},{-434,-416,-342,-210,-148,-203},{-272,-166,-168,-289,-223,-213},{-217,-310,-291,-232,-199,-224},{-390,-198,-151,-352,-162,-213},{-375,-330,-280,-308,-313,-352},{-363,-261,-333,-385,-252,-200},{-416,-359,-143,-180,-228,-339},{-234,-146,-171,-259,-151,-275},{-264,-342,-174,-268,-231,-296},{-343,-425,-190,-175,-140,-380},{-161,-387,-409,-147,-188,-139},{-237,-304,-356,-169,-331,-386},{-357,-187,-269,-401,-313,-221},{-264,-327,-244,-218,-164,-316},{-278,-402,-185,-238,-162,-144},{-413,-164,-342,-306,-162,-170},{-311,-430,-330,-199,-350,-167},{-343,-175,-403,-360,-170,-278},{-360,-373,-353,-404,-223,-311},{-337,-339,-171,-401,-188,-200},{-179,-278,-392,-240,-376,-380},{-252,-390,-224,-325,-175,-164},{-190,-204,-277,-325,-337,-180},{-416,-393,-339,-254,-254,-262},{-290,-189,-188,-363,-387,-324}},{{-129,-302,-231,-130,-295,-222},{-320,-300,-270,-314,-195,-137},{-134,-214,-268,-261,-165,-244},{-208,-355,-245,-232,-119,-287},{-347,-194,-190,-117,-140,-172},{-233,-262,-252,-332,-138,-164},{-295,-302,-325,-261,-229,-293},{-335,-336,-190,-194,-167,-190},{-330,-247,-318,-301,-131,-283},{-198,-235,-151,-217,-159,-240},{-250,-259,-277,-223,-216,-303},{-365,-223,-169,-287,-314,-240},{-285,-235,-298,-199,-269,-190},{-258,-146,-314,-259,-269,-299},{-146,-134,-234,-312,-293,-275},{-300,-226,-259,-318,-125,-141},{-201,-305,-218,-119,-305,-131},{-126,-142,-128,-248,-138,-297},{-171,-329,-229,-327,-307,-103},{-236,-185,-211,-287,-220,-141},{-169,-355,-195,-301,-233,-127},{-275,-353,-247,-126,-276,-240},{-270,-228,-323,-228,-161,-261},{-131,-259,-286,-164,-214,-255},{-270,-286,-144,-170,-276,-113},{-238,-329,-119,-137,-271,-261},{-345,-238,-149,-119,-261,-234},{-216,-127,-197,-285,-220,-230},{-253,-134,-163,-148,-189,-234},{-223,-269,-261,-316,-208,-164},{-360,-178,-163,-287,-176,-224},{-265,-264,-140,-181,-299,-275},{-213,-286,-263,-225,-180,-184},{-352,-278,-220,-263,-246,-190},{-362,-324,-247,-316,-119,-119},{-203,-230,-183,-190,-199,-236},{-303,-312,-131,-168,-131,-244},{-196,-293,-149,-150,-288,-281},{-355,-348,-218,-179,-265,-162},{-126,-156,-254,-254,-220,-184},{-283,-353,-199,-201,-191,-147},{-176,-348,-325,-290,-151,-125},{-367,-166,-204,-172,-252,-246},{-151,-305,-302,-197,-305,-190},{-360,-286,-318,-263,-134,-162},{-275,-216,-197,-294,-250,-206},{-312,-206,-334,-179,-212,-143},{-238,-175,-190,-135,-144,-212},{-216,-144,-218,-183,-231,-261},{-255,-214,-279,-192,-178,-244}}},{{{-336,-189,-217,-304,-522,-494},{-175,-241,-473,-252,-357,-294},{-364,-462,-395,-438,-241,-427},{-203,-416,-214,-434,-178,-252},{-455,-402,-336,-186,-395,-427},{-343,-262,-196,-427,-332,-473},{-189,-200,-273,-178,-200,-210},{-522,-368,-301,-497,-402,-399},{-238,-490,-462,-196,-427,-469},{-270,-298,-438,-220,-350,-452},{-266,-368,-452,-382,-346,-259},{-193,-452,-360,-220,-525,-455},{-290,-406,-207,-196,-189,-406},{-374,-280,-315,-220,-406,-402},{-182,-259,-430,-214,-287,-301},{-354,-290,-220,-214,-315,-231},{-466,-452,-217,-476,-476,-497},{-228,-480,-514,-231,-392,-318},{-490,-287,-525,-193,-504,-511},{-378,-214,-350,-241,-438,-186},{-511,-413,-262,-500,-522,-298},{-480,-340,-228,-522,-220,-290},{-452,-287,-518,-410,-458,-448},{-343,-504,-315,-504,-410,-193},{-329,-487,-500,-270,-203,-444},{-329,-452,-487,-245,-480,-430},{-511,-241,-494,-228,-343,-487},{-458,-476,-262,-329,-332,-200},{-385,-238,-220,-238,-476,-504},{-340,-483,-452,-448,-364,-514},{-378,-182,-500,-312,-290,-487},{-220,-458,-469,-416,-182,-469},{-290,-522,-469,-231,-266,-368},{-284,-217,-413,-420,-389,-354},{-312,-276,-196,-458,-336,-248},{-385,-238,-200,-410,-504,-214},{-441,-399,-196,-368,-284,-178},{-262,-382,-318,-200,-234,-469},{-214,-476,-424,-430,-224,-284},{-357,-346,-294,-200,-245,-256},{-343,-494,-458,-483,-312,-270},{-368,-448,-354,-350,-483,-420},{-413,-518,-207,-228,-368,-241},{-368,-466,-238,-304,-483,-298},{-406,-424,-406,-374,-511,-262},{-525,-473,-378,-220,-427,-480},{-473,-427,-203,-340,-256,-354},{-427,-487,-228,-430,-234,-522},{-444,-256,-245,-378,-326,-329},{-389,-189,-424,-514,-178,-473}},{{-188,-257,-214,-277,-174,-299},{-355,-394,-376,-438,-394,-480},{-459,-182,-278,-468,-318,-409},{-264,-436,-458,-384,-239,-193},{-237,-346,-376,-444,-426,-293},{-209,-456,-176,-428,-328,-464},{-522,-172,-363,-301,-328,-357},{-310,-425,-258,-377,-194,-216},{-282,-264,-281,-397,-243,-345},{-233,-418,-390,-387,-377,-245},{-519,-511,-400,-234,-469,-316},{-320,-206,-383,-207,-367,-203},{-498,-391,-407,-217,-361,-196},{-362,-223,-173,-438,-371,-167},{-237,-367,-224,-438,-354,-283},{-184,-453,-431,-481,-174,-235},{-285,-226,-427,-404,-417,-171},{-348,-278,-451,-257,-243,-441},{-198,-346,-383,-381,-482,-225},{-397,-213,-359,-367,-220,-209},{-480,-206,-278,-387,-397,-277},{-240,-367,-407,-418,-276,-293},{-411,-244,-397,-187,-403,-174},{-324,-237,-176,-237,-371,-377},{-275,-453,-475,-210,-272,-319},{-390,-381,-458,-200,-384,-393},{-421,-453,-437,-404,-456,-287},{-313,-446,-471,-341,-479,-467},{-505,-377,-410,-407,-394,-393},{-466,-357,-268,-314,-239,-267},{-345,-422,-254,-488,-462,-364},{-306,-470,-241,-448,-430,-399},{-473,-487,-295,-311,-433,-431},{-501,-261,-498,-311,-371,-396},{-271,-237,-481,-294,-397,-196},{-390,-244,-214,-207,-459,-277},{-348,-466,-373,-167,-318,-232},{-362,-336,-295,-424,-485,-422},{-202,-209,-176,-498,-318,-457},{-480,-405,-315,-381,-220,-448},{-522,-350,-336,-484,-269,-383},{-219,-240,-471,-421,-423,-274},{-501,-319,-485,-180,-315,-332},{-198,-257,-505,-401,-187,-203},{-345,-216,-322,-214,-269,-316},{-202,-192,-278,-401,-426,-438},{-456,-422,-207,-244,-292,-167},{-428,-384,-207,-391,-174,-328},{-275,-285,-363,-291,-466,-319},{-442,-312,-390,-314,-472,-180}},{{-378,-394,-435,-357,-396,-375},{-365,-351,-336,-340,-373,-150},{-214,-302,-420,-211,-239,-370},{-217,-206,-309,-155,-154,-336},{-243,-323,-447,-302,-416,-350},{-211,-182,-216,-337,-162,-247},{-224,-453,-279,-384,-305,-278},{-315,-431,-189,-278,-214,-364},{-208,-360,-408,-372,-331,-411},{-400,-453,-258,-152,-205,-200},{-255,-203,-405,-340,-396,-236},{-293,-209,-162,-190,-299,-156},{-224,-234,-441,-404,-296,-195},{-208,-188,-168,-375,-428,-153},{-403,-194,-387,-231,-408,-348},{-318,-157,-306,-220,-316,-178},{-346,-373,-291,-375,-200,-147},{-460,-388,-249,-293,-245,-175},{-340,-240,-423,-275,-239,-161},{-183,-400,-261,-270,-291,-147},{-372,-462,-324,-357,-225,-311},{-211,-259,-156,-246,-145,-400},{-290,-191,-372,-188,-182,-270},{-406,-444,-219,-416,-274,-331},{-359,-265,-372,-229,-165,-211},{-233,-166,-186,-190,-390,-145},{-268,-299,-345,-425,-410,-370},{-353,-431,-162,-372,-202,-178},{-428,-410,-234,-196,-265,-325},{-359,-351,-162,-152,-393,-164},{-403,-271,-294,-366,-419,-150},{-381,-206,-291,-226,-185,-170},{-413,-462,-429,-357,-390,-222},{-189,-172,-264,-357,-194,-211},{-425,-450,-393,-346,-285,-414},{-394,-428,-285,-369,-376,-208},{-425,-447,-291,-378,-180,-195},{-343,-237,-357,-179,-396,-339},{-406,-348,-321,-413,-197,-356},{-183,-367,-366,-205,-219,-414},{-312,-274,-423,-316,-325,-195},{-302,-388,-366,-322,-419,-295},{-416,-453,-408,-246,-299,-292},{-161,-225,-426,-366,-200,-292},{-252,-194,-330,-264,-154,-278},{-299,-216,-405,-249,-296,-253},{-189,-382,-345,-419,-237,-270},{-205,-160,-213,-176,-174,-153},{-362,-437,-180,-428,-274,-314},{-202,-308,-165,-337,-311,-289}}}}; // 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,3,2,7,3,2,6,3,2,8,4,3,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,9,4,3,8,4,3,8,5,3,9,4,3,8,4,3,8,4,3,7,4,3,7,4,3,8,4,3,8,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,345,346}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,2,6,10,1,7,0,2,4,6,8,10,12,2,6,10,1,7,1,3,5,7,9,11,1,5,9,1,7,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,1,7,13,1,3,5,7,9,11,13,0,4,8,12,0,6,12,2,4,6,8,10,12,14,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,0,6,12,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,16,1,5,9,13,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,16,1,7,13,0,2,4,6,8,10,12,14,16,2,6,10,14,0,6,12,2,4,6,8,10,12,14,16,1,5,9,13,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,0,6,12,2,4,6,8,10,12,14,1,5,9,13,1,7,13,2,4,6,8,10,12,14,0,4,8,12,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,2,4,6,8,10,12,14,1,5,9,13,1,7,13}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,7,11,15,6,12,5,7,9,11,13,15,17,7,11,15,6,12,6,8,10,12,14,16,6,10,14,6,12,3,5,7,9,11,13,15,17,5,9,13,17,3,9,15,5,7,9,11,13,15,17,4,8,12,16,4,10,16,4,6,8,10,12,14,16,3,7,11,15,3,9,15,4,6,8,10,12,14,16,4,8,12,16,2,8,14,2,4,6,8,10,12,14,16,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,4,8,12,16,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,4,8,12,16,4,10,16,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,1,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,1,7,13,2,4,6,8,10,12,14,16,1,5,9,13,17,2,8,14,1,3,5,7,9,11,13,15,17,3,7,11,15,1,7,13,3,5,7,9,11,13,15,17,2,6,10,14,1,7,13,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,4,6,8,10,12,14,16,3,7,11,15,3,9,15,4,6,8,10,12,14,16,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,5,9,13,17,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,5,7,9,11,13,15,17,4,8,12,16,4,10,16}; // set of end times of each shipment 
