int Dev = 30;// 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 = 346;//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]={{{{12267,0,0,0,0,0},{12316,0,0,0,0,0},{12795,0,0,0,0,0},{12812,0,0,0,0,0},{12853,0,0,0,0,0},{12332,0,0,0,0,0},{12324,0,0,0,0,0},{13003,0,0,0,0,0},{11870,0,0,0,0,0},{12711,0,0,0,0,0},{12238,0,0,0,0,0},{12098,0,0,0,0,0},{13053,0,0,0,0,0},{12232,0,0,0,0,0},{11960,0,0,0,0,0},{12372,0,0,0,0,0},{12926,0,0,0,0,0},{12677,0,0,0,0,0},{12512,0,0,0,0,0},{12368,0,0,0,0,0},{12793,0,0,0,0,0},{12669,0,0,0,0,0},{12669,0,0,0,0,0},{12886,0,0,0,0,0},{12072,0,0,0,0,0},{11985,0,0,0,0,0},{12302,0,0,0,0,0},{12391,0,0,0,0,0},{12436,0,0,0,0,0},{12939,0,0,0,0,0},{12431,0,0,0,0,0},{12267,0,0,0,0,0},{12413,0,0,0,0,0},{12633,0,0,0,0,0},{12917,0,0,0,0,0},{12281,0,0,0,0,0},{13169,0,0,0,0,0},{12439,0,0,0,0,0},{12325,0,0,0,0,0},{12251,0,0,0,0,0},{12548,0,0,0,0,0},{12883,0,0,0,0,0},{12469,0,0,0,0,0},{12464,0,0,0,0,0},{12592,0,0,0,0,0},{12624,0,0,0,0,0},{11641,0,0,0,0,0},{12499,0,0,0,0,0},{12009,0,0,0,0,0},{11910,0,0,0,0,0}},{{12023,0,0,0,0,0},{12546,0,0,0,0,0},{12140,0,0,0,0,0},{13004,0,0,0,0,0},{12526,0,0,0,0,0},{12233,0,0,0,0,0},{11979,0,0,0,0,0},{12312,0,0,0,0,0},{12518,0,0,0,0,0},{12613,0,0,0,0,0},{12899,0,0,0,0,0},{12755,0,0,0,0,0},{12379,0,0,0,0,0},{12588,0,0,0,0,0},{12057,0,0,0,0,0},{12319,0,0,0,0,0},{12413,0,0,0,0,0},{11988,0,0,0,0,0},{12020,0,0,0,0,0},{12501,0,0,0,0,0},{12743,0,0,0,0,0},{12091,0,0,0,0,0},{12256,0,0,0,0,0},{12843,0,0,0,0,0},{12809,0,0,0,0,0},{12287,0,0,0,0,0},{12227,0,0,0,0,0},{12716,0,0,0,0,0},{12375,0,0,0,0,0},{12032,0,0,0,0,0},{11761,0,0,0,0,0},{11786,0,0,0,0,0},{12050,0,0,0,0,0},{12890,0,0,0,0,0},{12510,0,0,0,0,0},{11791,0,0,0,0,0},{12262,0,0,0,0,0},{12434,0,0,0,0,0},{12747,0,0,0,0,0},{12393,0,0,0,0,0},{12591,0,0,0,0,0},{12236,0,0,0,0,0},{11828,0,0,0,0,0},{12513,0,0,0,0,0},{12408,0,0,0,0,0},{12315,0,0,0,0,0},{12788,0,0,0,0,0},{13144,0,0,0,0,0},{12466,0,0,0,0,0},{12198,0,0,0,0,0}},{{11295,0,0,0,0,0},{11188,0,0,0,0,0},{11790,0,0,0,0,0},{11524,0,0,0,0,0},{11390,0,0,0,0,0},{11581,0,0,0,0,0},{12025,0,0,0,0,0},{11104,0,0,0,0,0},{11903,0,0,0,0,0},{11408,0,0,0,0,0},{11592,0,0,0,0,0},{11865,0,0,0,0,0},{11455,0,0,0,0,0},{11889,0,0,0,0,0},{11503,0,0,0,0,0},{11234,0,0,0,0,0},{11621,0,0,0,0,0},{11459,0,0,0,0,0},{11828,0,0,0,0,0},{11589,0,0,0,0,0},{11243,0,0,0,0,0},{11176,0,0,0,0,0},{11477,0,0,0,0,0},{11397,0,0,0,0,0},{11591,0,0,0,0,0},{11519,0,0,0,0,0},{11728,0,0,0,0,0},{11496,0,0,0,0,0},{11527,0,0,0,0,0},{11934,0,0,0,0,0},{11386,0,0,0,0,0},{11334,0,0,0,0,0},{11413,0,0,0,0,0},{11742,0,0,0,0,0},{11502,0,0,0,0,0},{11759,0,0,0,0,0},{11588,0,0,0,0,0},{11197,0,0,0,0,0},{11408,0,0,0,0,0},{11650,0,0,0,0,0},{11404,0,0,0,0,0},{11359,0,0,0,0,0},{11243,0,0,0,0,0},{11668,0,0,0,0,0},{11723,0,0,0,0,0},{11142,0,0,0,0,0},{11725,0,0,0,0,0},{11103,0,0,0,0,0},{11032,0,0,0,0,0},{11629,0,0,0,0,0}}},{{{-306,-276,-306,-306,-256,-262},{-262,-244,-270,-229,-353,-273},{-379,-259,-323,-279,-303,-315},{-262,-259,-215,-253,-279,-226},{-338,-326,-250,-285,-294,-218},{-268,-232,-309,-238,-376,-226},{-306,-353,-344,-344,-356,-235},{-294,-315,-368,-220,-332,-329},{-376,-276,-276,-229,-232,-318},{-368,-326,-335,-338,-347,-382},{-285,-320,-229,-270,-359,-220},{-294,-350,-353,-215,-256,-315},{-291,-323,-368,-379,-350,-253},{-376,-376,-285,-256,-259,-241},{-332,-220,-250,-350,-220,-320},{-285,-262,-288,-232,-256,-379},{-332,-282,-347,-332,-250,-273},{-368,-318,-335,-326,-244,-359},{-329,-309,-326,-218,-273,-223},{-265,-362,-326,-323,-347,-350},{-332,-262,-370,-226,-323,-379},{-344,-247,-241,-379,-320,-238},{-297,-244,-253,-220,-218,-332},{-362,-335,-288,-376,-279,-365},{-223,-318,-312,-215,-373,-206},{-288,-244,-209,-247,-312,-291},{-373,-347,-332,-229,-226,-309},{-338,-356,-285,-318,-226,-238},{-209,-347,-356,-294,-270,-273},{-282,-353,-218,-370,-297,-312},{-332,-209,-253,-259,-329,-262},{-353,-370,-253,-356,-297,-226},{-344,-329,-276,-262,-356,-329},{-376,-253,-297,-256,-344,-332},{-356,-294,-279,-303,-320,-273},{-215,-206,-323,-285,-323,-315},{-365,-368,-288,-300,-347,-376},{-306,-247,-285,-288,-382,-306},{-226,-250,-220,-235,-356,-220},{-362,-359,-341,-323,-238,-323},{-335,-373,-353,-259,-268,-220},{-300,-309,-241,-209,-347,-323},{-353,-285,-362,-376,-226,-359},{-256,-362,-303,-300,-206,-215},{-323,-241,-353,-344,-373,-212},{-220,-320,-312,-318,-300,-312},{-259,-241,-238,-241,-250,-250},{-268,-268,-373,-250,-253,-229},{-312,-241,-320,-209,-209,-259},{-223,-338,-253,-382,-270,-229}},{{-339,-229,-347,-222,-187,-246},{-206,-237,-235,-334,-278,-194},{-241,-283,-333,-211,-280,-300},{-354,-369,-336,-310,-232,-324},{-360,-355,-221,-356,-200,-264},{-278,-263,-224,-342,-195,-231},{-281,-220,-196,-238,-315,-262},{-339,-269,-297,-211,-272,-249},{-220,-255,-308,-233,-339,-251},{-241,-269,-286,-277,-318,-205},{-281,-297,-344,-321,-347,-254},{-261,-360,-288,-348,-272,-202},{-328,-315,-364,-356,-264,-295},{-293,-260,-246,-252,-254,-186},{-339,-200,-258,-329,-310,-186},{-357,-306,-258,-353,-246,-246},{-281,-349,-294,-337,-270,-275},{-287,-220,-249,-312,-331,-225},{-310,-349,-342,-329,-203,-212},{-270,-272,-339,-216,-307,-218},{-304,-323,-255,-277,-315,-293},{-313,-306,-232,-329,-203,-311},{-290,-237,-308,-197,-339,-262},{-362,-349,-302,-351,-326,-267},{-264,-283,-316,-214,-307,-295},{-261,-269,-322,-307,-344,-262},{-310,-269,-252,-252,-214,-202},{-360,-249,-356,-269,-232,-199},{-293,-206,-286,-269,-267,-332},{-290,-283,-218,-304,-304,-313},{-252,-343,-286,-310,-211,-298},{-328,-355,-333,-299,-238,-238},{-304,-206,-344,-271,-227,-215},{-296,-358,-350,-208,-328,-231},{-284,-355,-286,-285,-288,-319},{-220,-323,-227,-274,-208,-275},{-316,-255,-213,-249,-302,-308},{-307,-272,-249,-290,-326,-298},{-374,-340,-238,-285,-219,-311},{-334,-277,-258,-282,-230,-212},{-244,-317,-328,-258,-270,-254},{-345,-249,-325,-252,-254,-228},{-336,-246,-356,-216,-246,-251},{-374,-303,-336,-208,-318,-324},{-241,-369,-339,-274,-227,-311},{-374,-295,-364,-288,-259,-236},{-348,-358,-269,-301,-320,-238},{-209,-366,-266,-332,-307,-249},{-322,-326,-288,-195,-294,-181},{-371,-332,-333,-318,-278,-207}},{{-210,-259,-247,-179,-171,-260},{-190,-218,-233,-273,-210,-235},{-200,-281,-277,-260,-165,-262},{-298,-206,-212,-168,-265,-214},{-320,-273,-235,-228,-197,-243},{-238,-225,-263,-235,-257,-210},{-300,-172,-235,-231,-220,-247},{-320,-184,-203,-226,-214,-233},{-268,-295,-177,-235,-270,-165},{-228,-283,-226,-215,-163,-222},{-280,-290,-273,-271,-248,-216},{-308,-312,-212,-253,-255,-146},{-210,-232,-261,-235,-173,-225},{-300,-218,-291,-251,-180,-251},{-325,-220,-203,-258,-210,-161},{-292,-201,-277,-168,-229,-165},{-202,-281,-219,-199,-212,-235},{-278,-295,-214,-231,-178,-152},{-280,-252,-259,-287,-210,-245},{-210,-225,-252,-246,-263,-210},{-205,-295,-172,-244,-225,-169},{-292,-184,-291,-242,-173,-247},{-265,-269,-196,-188,-272,-233},{-222,-227,-200,-271,-233,-200},{-192,-235,-182,-262,-201,-231},{-245,-211,-247,-184,-220,-144},{-190,-276,-273,-226,-261,-229},{-190,-213,-163,-181,-220,-169},{-202,-271,-303,-215,-199,-231},{-288,-298,-212,-172,-214,-253},{-322,-177,-207,-181,-208,-251},{-232,-247,-165,-273,-278,-229},{-265,-230,-219,-177,-190,-216},{-312,-244,-200,-237,-220,-212},{-278,-203,-191,-181,-193,-171},{-320,-312,-240,-208,-268,-235},{-270,-240,-282,-175,-173,-212},{-230,-184,-268,-271,-208,-202},{-232,-169,-196,-287,-190,-190},{-315,-223,-193,-262,-197,-243},{-185,-230,-217,-224,-165,-255},{-302,-254,-179,-211,-171,-255},{-282,-208,-238,-215,-152,-183},{-252,-305,-198,-157,-255,-222},{-318,-242,-289,-206,-265,-198},{-175,-182,-240,-226,-150,-255},{-202,-237,-296,-258,-188,-183},{-258,-288,-172,-157,-160,-235},{-278,-264,-245,-193,-240,-161},{-218,-182,-275,-206,-274,-169}}},{{{-151,-177,-201,-177,-234,-143},{-207,-208,-200,-220,-193,-208},{-141,-196,-133,-166,-190,-233},{-208,-137,-168,-161,-230,-155},{-208,-154,-203,-193,-153,-174},{-155,-183,-133,-229,-136,-218},{-118,-149,-184,-226,-136,-141},{-215,-218,-224,-161,-201,-218},{-202,-189,-168,-177,-180,-202},{-156,-140,-186,-177,-173,-239},{-203,-118,-168,-141,-184,-193},{-198,-149,-208,-179,-197,-147},{-166,-149,-156,-163,-166,-225},{-186,-159,-161,-213,-140,-138},{-131,-127,-166,-217,-151,-225},{-197,-122,-161,-138,-224,-193},{-143,-166,-170,-218,-223,-204},{-218,-127,-214,-127,-138,-199},{-126,-137,-147,-175,-134,-216},{-144,-144,-182,-136,-167,-164},{-212,-164,-215,-193,-226,-180},{-143,-220,-187,-193,-199,-227},{-133,-145,-131,-202,-226,-145},{-118,-191,-212,-233,-217,-187},{-146,-194,-210,-183,-151,-181},{-155,-132,-203,-172,-182,-160},{-123,-206,-191,-159,-232,-180},{-168,-162,-144,-179,-147,-151},{-210,-183,-210,-193,-142,-222},{-180,-174,-138,-197,-234,-155},{-118,-208,-186,-175,-237,-227},{-186,-210,-212,-127,-169,-153},{-128,-171,-131,-190,-145,-170},{-190,-220,-172,-199,-147,-176},{-193,-218,-191,-224,-208,-206},{-143,-154,-194,-197,-171,-155},{-138,-171,-200,-145,-226,-214},{-144,-145,-161,-218,-215,-157},{-126,-139,-186,-206,-136,-189},{-163,-191,-154,-141,-166,-223},{-126,-191,-214,-220,-178,-220},{-131,-132,-203,-186,-213,-138},{-133,-139,-130,-222,-199,-191},{-168,-125,-172,-208,-145,-225},{-166,-122,-140,-181,-226,-233},{-210,-167,-138,-141,-182,-189},{-195,-132,-184,-197,-219,-233},{-202,-201,-182,-190,-221,-170},{-207,-157,-173,-231,-188,-166},{-197,-191,-124,-192,-212,-197}},{{-182,-166,-260,-199,-252,-226},{-141,-193,-247,-232,-183,-195},{-196,-244,-243,-183,-256,-209},{-210,-182,-247,-241,-254,-293},{-158,-174,-275,-208,-208,-281},{-210,-217,-256,-259,-190,-307},{-232,-238,-164,-212,-286,-205},{-222,-228,-190,-256,-256,-262},{-178,-162,-245,-256,-250,-248},{-222,-238,-260,-267,-275,-236},{-255,-232,-164,-214,-163,-212},{-164,-262,-262,-155,-270,-181},{-145,-240,-260,-259,-275,-281},{-236,-230,-251,-230,-176,-243},{-194,-158,-207,-188,-268,-198},{-242,-256,-224,-248,-185,-233},{-154,-178,-204,-172,-192,-252},{-172,-250,-256,-265,-277,-183},{-198,-240,-183,-157,-231,-240},{-253,-242,-217,-267,-263,-202},{-251,-242,-168,-188,-291,-212},{-230,-264,-266,-239,-215,-207},{-176,-191,-266,-212,-245,-181},{-222,-244,-232,-245,-270,-286},{-202,-207,-151,-183,-295,-217},{-188,-164,-213,-252,-229,-236},{-208,-174,-262,-274,-222,-167},{-176,-191,-162,-186,-204,-190},{-246,-187,-234,-177,-254,-278},{-147,-221,-153,-241,-160,-257},{-162,-180,-213,-212,-215,-307},{-257,-201,-170,-219,-163,-305},{-257,-226,-219,-197,-256,-207},{-148,-262,-253,-170,-273,-248},{-206,-191,-170,-210,-240,-200},{-168,-176,-253,-175,-268,-183},{-238,-172,-230,-197,-263,-217},{-234,-187,-179,-228,-245,-293},{-170,-201,-262,-177,-197,-293},{-228,-166,-241,-245,-218,-238},{-244,-197,-185,-274,-254,-264},{-178,-148,-153,-177,-199,-281},{-242,-219,-253,-183,-215,-186},{-248,-205,-153,-199,-224,-302},{-160,-172,-209,-283,-266,-276},{-141,-178,-194,-203,-252,-302},{-244,-207,-239,-177,-247,-205},{-220,-152,-179,-287,-247,-300},{-226,-189,-196,-267,-202,-298},{-176,-252,-232,-259,-291,-200}},{{-203,-214,-280,-254,-271,-204},{-232,-217,-191,-302,-194,-252},{-225,-209,-299,-227,-324,-215},{-299,-303,-220,-319,-316,-289},{-306,-242,-202,-254,-283,-266},{-249,-321,-189,-254,-277,-255},{-306,-191,-314,-292,-263,-291},{-252,-232,-312,-200,-313,-342},{-287,-207,-304,-310,-216,-232},{-225,-255,-301,-335,-357,-331},{-227,-321,-304,-308,-202,-362},{-274,-242,-320,-224,-258,-354},{-190,-224,-186,-208,-316,-209},{-321,-268,-223,-230,-224,-362},{-264,-184,-233,-308,-330,-263},{-225,-270,-280,-202,-216,-365},{-230,-214,-317,-319,-294,-317},{-289,-252,-293,-232,-194,-246},{-289,-303,-223,-335,-291,-314},{-267,-212,-236,-235,-216,-207},{-195,-252,-238,-281,-288,-337},{-306,-270,-196,-230,-266,-328},{-291,-321,-183,-305,-258,-314},{-183,-309,-244,-194,-202,-294},{-222,-265,-341,-273,-324,-362},{-314,-189,-207,-324,-296,-291},{-205,-227,-204,-340,-244,-365},{-200,-293,-299,-340,-299,-328},{-178,-301,-186,-289,-341,-201},{-314,-219,-220,-351,-269,-354},{-267,-189,-246,-340,-258,-226},{-215,-201,-236,-243,-332,-323},{-232,-242,-330,-219,-305,-243},{-304,-311,-270,-219,-197,-272},{-220,-280,-272,-310,-238,-209},{-203,-263,-186,-316,-271,-221},{-254,-263,-335,-321,-213,-314},{-269,-189,-241,-313,-219,-204},{-321,-296,-262,-202,-307,-294},{-210,-316,-212,-335,-313,-348},{-309,-199,-333,-284,-205,-229},{-274,-278,-280,-281,-247,-283},{-230,-219,-280,-275,-291,-357},{-282,-214,-228,-197,-307,-317},{-314,-230,-288,-248,-255,-325},{-237,-298,-270,-302,-316,-289},{-205,-255,-314,-340,-260,-286},{-264,-224,-217,-232,-244,-317},{-178,-199,-215,-232,-280,-229},{-210,-235,-270,-294,-321,-328}}},{{{-398,-405,-247,-428,-421,-296},{-339,-424,-362,-250,-260,-319},{-375,-392,-309,-411,-339,-401},{-352,-388,-253,-415,-424,-247},{-378,-368,-316,-263,-415,-375},{-243,-253,-365,-326,-368,-342},{-405,-336,-303,-296,-316,-273},{-372,-322,-398,-345,-388,-405},{-266,-362,-266,-375,-257,-326},{-362,-266,-345,-424,-372,-418},{-326,-392,-306,-263,-352,-359},{-365,-395,-388,-253,-257,-273},{-290,-359,-405,-355,-257,-280},{-250,-280,-253,-276,-405,-428},{-398,-247,-322,-247,-250,-250},{-253,-336,-375,-313,-424,-401},{-424,-345,-329,-316,-342,-385},{-362,-299,-339,-336,-313,-286},{-342,-273,-283,-322,-345,-290},{-290,-415,-415,-263,-247,-398},{-339,-388,-368,-234,-355,-270},{-237,-355,-250,-247,-388,-428},{-408,-415,-339,-299,-375,-378},{-313,-365,-395,-355,-322,-382},{-332,-342,-290,-395,-247,-336},{-398,-240,-428,-316,-401,-408},{-424,-355,-270,-290,-270,-234},{-415,-260,-290,-283,-309,-345},{-237,-365,-398,-415,-342,-378},{-349,-411,-352,-306,-408,-349},{-392,-339,-428,-316,-276,-362},{-411,-296,-237,-362,-296,-322},{-421,-372,-336,-286,-345,-401},{-296,-398,-405,-355,-372,-405},{-428,-276,-392,-418,-296,-388},{-283,-395,-401,-280,-309,-382},{-411,-273,-352,-375,-336,-359},{-230,-336,-283,-299,-250,-405},{-382,-243,-362,-276,-349,-372},{-230,-250,-276,-415,-424,-336},{-293,-230,-322,-253,-230,-250},{-428,-339,-385,-365,-339,-355},{-385,-329,-345,-349,-299,-299},{-345,-257,-342,-263,-290,-375},{-368,-270,-276,-283,-273,-385},{-421,-296,-313,-237,-336,-303},{-326,-230,-395,-293,-319,-326},{-355,-280,-266,-395,-332,-336},{-276,-359,-290,-415,-283,-342},{-421,-322,-273,-296,-313,-299}},{{-230,-254,-383,-305,-323,-286},{-403,-299,-335,-301,-283,-373},{-335,-274,-348,-245,-286,-292},{-344,-316,-348,-232,-342,-367},{-289,-251,-338,-308,-388,-280},{-298,-309,-236,-273,-286,-244},{-298,-399,-306,-380,-280,-382},{-420,-254,-242,-279,-256,-352},{-348,-309,-408,-283,-394,-355},{-367,-370,-303,-273,-317,-232},{-384,-380,-300,-286,-290,-316},{-312,-412,-303,-396,-373,-211},{-321,-274,-325,-298,-330,-337},{-325,-390,-309,-273,-357,-286},{-338,-380,-262,-320,-243,-322},{-374,-277,-389,-245,-243,-259},{-377,-335,-412,-330,-268,-346},{-328,-287,-262,-283,-302,-235},{-230,-312,-415,-301,-231,-268},{-338,-235,-319,-261,-339,-301},{-338,-306,-345,-220,-342,-244},{-246,-415,-233,-261,-283,-250},{-348,-415,-297,-295,-271,-343},{-364,-274,-348,-295,-351,-268},{-367,-229,-408,-383,-363,-265},{-384,-274,-223,-273,-363,-259},{-331,-296,-242,-273,-394,-247},{-413,-325,-236,-389,-391,-250},{-387,-390,-329,-267,-296,-295},{-331,-319,-329,-323,-379,-232},{-253,-261,-262,-254,-222,-292},{-328,-319,-268,-264,-271,-277},{-315,-383,-252,-276,-216,-358},{-279,-370,-351,-380,-385,-379},{-374,-274,-348,-236,-382,-292},{-344,-322,-313,-355,-237,-229},{-305,-238,-376,-223,-228,-259},{-341,-287,-287,-261,-290,-259},{-285,-296,-399,-402,-333,-250},{-335,-280,-402,-377,-302,-331},{-394,-303,-303,-311,-342,-337},{-354,-254,-405,-383,-259,-340},{-239,-290,-287,-279,-262,-223},{-239,-390,-284,-323,-228,-250},{-315,-390,-242,-239,-302,-331},{-348,-399,-290,-229,-360,-349},{-325,-258,-335,-352,-262,-376},{-423,-357,-345,-374,-345,-277},{-289,-287,-329,-345,-246,-250},{-253,-357,-389,-232,-305,-229}},{{-260,-265,-316,-296,-337,-234},{-292,-340,-311,-237,-246,-188},{-221,-348,-260,-288,-326,-208},{-257,-354,-218,-220,-297,-301},{-292,-288,-241,-245,-212,-226},{-360,-245,-249,-286,-186,-329},{-384,-259,-350,-283,-307,-224},{-221,-236,-263,-329,-299,-298},{-330,-262,-347,-326,-323,-288},{-212,-366,-274,-277,-186,-206},{-372,-207,-241,-218,-331,-334},{-360,-308,-269,-291,-321,-252},{-357,-285,-232,-275,-220,-249},{-372,-288,-288,-239,-220,-278},{-274,-233,-238,-286,-342,-298},{-221,-337,-288,-209,-270,-290},{-266,-334,-255,-223,-260,-224},{-330,-337,-238,-242,-318,-193},{-357,-308,-218,-199,-220,-239},{-227,-274,-308,-239,-329,-211},{-239,-343,-216,-272,-265,-200},{-354,-251,-255,-245,-244,-244},{-295,-242,-213,-310,-262,-244},{-283,-274,-316,-258,-318,-188},{-221,-337,-325,-272,-249,-244},{-327,-363,-311,-242,-305,-244},{-280,-337,-330,-326,-289,-247},{-286,-320,-210,-248,-297,-242},{-292,-222,-300,-332,-260,-242},{-369,-348,-316,-354,-257,-316},{-236,-222,-238,-226,-254,-247},{-384,-323,-300,-277,-201,-203},{-313,-256,-213,-272,-326,-288},{-254,-288,-328,-354,-315,-283},{-245,-323,-272,-209,-337,-208},{-324,-351,-361,-199,-257,-244},{-251,-288,-199,-299,-225,-244},{-224,-320,-258,-280,-231,-260},{-319,-233,-302,-264,-307,-326},{-378,-320,-314,-204,-281,-239},{-260,-276,-252,-340,-199,-190},{-304,-334,-316,-288,-209,-231},{-206,-248,-252,-220,-236,-203},{-209,-294,-286,-193,-233,-332},{-310,-288,-353,-351,-321,-296},{-242,-366,-218,-193,-321,-285},{-342,-372,-277,-256,-294,-249},{-316,-213,-339,-291,-228,-218},{-283,-222,-246,-220,-318,-316},{-372,-343,-339,-196,-310,-198}}},{{{-81,-95,-103,-150,-121,-152},{-136,-92,-115,-130,-149,-133},{-101,-83,-144,-91,-123,-129},{-82,-90,-85,-147,-118,-100},{-107,-118,-103,-147,-92,-132},{-121,-111,-132,-109,-89,-145},{-110,-99,-97,-88,-156,-106},{-89,-78,-139,-101,-102,-148},{-75,-117,-78,-89,-93,-114},{-99,-100,-86,-99,-129,-116},{-87,-117,-86,-116,-107,-128},{-112,-137,-144,-88,-156,-159},{-112,-125,-119,-132,-93,-132},{-112,-136,-114,-130,-138,-104},{-92,-82,-118,-111,-109,-124},{-96,-90,-113,-145,-109,-164},{-125,-82,-112,-133,-102,-95},{-92,-136,-83,-125,-111,-118},{-110,-101,-100,-108,-112,-155},{-123,-80,-124,-130,-120,-166},{-83,-121,-83,-132,-149,-137},{-99,-112,-86,-88,-89,-133},{-130,-110,-139,-110,-142,-160},{-96,-107,-109,-96,-146,-152},{-92,-110,-87,-109,-123,-137},{-132,-75,-103,-113,-144,-161},{-80,-110,-80,-129,-93,-131},{-134,-125,-109,-149,-154,-148},{-113,-100,-109,-136,-122,-111},{-123,-135,-124,-90,-139,-104},{-90,-85,-78,-92,-132,-106},{-108,-81,-132,-103,-128,-104},{-129,-120,-82,-124,-106,-160},{-103,-128,-130,-112,-100,-163},{-91,-129,-141,-125,-101,-96},{-96,-123,-104,-118,-151,-148},{-103,-117,-101,-102,-94,-160},{-89,-112,-141,-116,-121,-129},{-133,-96,-84,-152,-143,-113},{-120,-113,-137,-113,-151,-131},{-121,-134,-146,-152,-151,-133},{-129,-134,-114,-118,-117,-93},{-114,-137,-82,-98,-87,-148},{-109,-96,-131,-125,-127,-133},{-88,-98,-141,-87,-120,-100},{-97,-137,-91,-99,-110,-102},{-84,-106,-80,-128,-102,-137},{-80,-75,-86,-140,-124,-134},{-88,-98,-104,-139,-149,-95},{-123,-93,-100,-150,-123,-159}},{{-165,-182,-160,-177,-155,-202},{-169,-99,-114,-183,-148,-153},{-109,-120,-176,-110,-193,-203},{-105,-128,-167,-177,-140,-218},{-136,-155,-151,-197,-121,-205},{-97,-130,-188,-115,-145,-178},{-96,-148,-163,-121,-164,-119},{-148,-102,-172,-167,-171,-213},{-127,-168,-179,-152,-127,-186},{-124,-154,-167,-166,-182,-156},{-171,-109,-184,-178,-179,-143},{-128,-131,-167,-127,-185,-128},{-96,-142,-138,-172,-132,-217},{-148,-158,-121,-118,-192,-148},{-104,-152,-110,-108,-127,-176},{-101,-124,-112,-192,-158,-170},{-119,-134,-155,-121,-143,-143},{-116,-125,-155,-141,-129,-136},{-117,-183,-105,-118,-159,-139},{-112,-183,-164,-188,-174,-163},{-143,-180,-105,-115,-129,-202},{-167,-180,-104,-113,-187,-165},{-122,-151,-124,-116,-175,-175},{-123,-123,-178,-112,-116,-144},{-96,-164,-170,-178,-166,-126},{-138,-176,-147,-147,-204,-213},{-99,-180,-164,-138,-126,-165},{-165,-118,-130,-197,-127,-173},{-108,-130,-152,-108,-130,-173},{-173,-142,-172,-113,-198,-121},{-146,-134,-135,-121,-167,-139},{-126,-127,-142,-169,-127,-170},{-146,-103,-107,-133,-184,-128},{-167,-147,-158,-150,-190,-123},{-144,-161,-112,-167,-209,-213},{-142,-131,-161,-198,-127,-175},{-169,-175,-160,-177,-142,-181},{-136,-164,-186,-167,-174,-121},{-157,-103,-115,-132,-200,-178},{-144,-147,-173,-113,-190,-188},{-174,-158,-164,-146,-121,-218},{-165,-118,-169,-184,-201,-207},{-99,-100,-108,-140,-153,-180},{-123,-121,-144,-194,-179,-119},{-127,-172,-154,-177,-172,-123},{-146,-155,-145,-127,-119,-217},{-130,-171,-114,-127,-195,-139},{-143,-137,-167,-163,-121,-133},{-162,-125,-133,-108,-114,-180},{-131,-165,-114,-135,-143,-158}},{{-219,-126,-186,-142,-169,-176},{-144,-196,-145,-241,-221,-182},{-187,-178,-240,-148,-225,-147},{-133,-229,-156,-203,-137,-210},{-140,-131,-229,-188,-194,-246},{-122,-212,-214,-169,-255,-212},{-159,-202,-186,-238,-143,-214},{-138,-164,-154,-211,-155,-168},{-177,-218,-180,-238,-153,-150},{-135,-184,-162,-230,-169,-206},{-122,-230,-190,-186,-245,-152},{-131,-187,-180,-165,-229,-242},{-133,-216,-179,-211,-221,-172},{-149,-176,-147,-190,-184,-249},{-163,-202,-136,-230,-249,-150},{-135,-130,-156,-133,-159,-148},{-152,-209,-227,-215,-194,-257},{-170,-135,-227,-228,-237,-251},{-149,-171,-143,-186,-165,-208},{-159,-229,-171,-150,-200,-176},{-154,-178,-141,-152,-192,-210},{-131,-189,-192,-133,-233,-147},{-154,-128,-232,-217,-196,-182},{-149,-157,-182,-241,-218,-214},{-222,-227,-221,-160,-241,-147},{-136,-178,-231,-184,-241,-196},{-186,-203,-173,-226,-174,-147},{-172,-148,-240,-234,-190,-253},{-149,-211,-234,-190,-237,-210},{-126,-194,-190,-238,-243,-214},{-222,-198,-164,-184,-212,-141},{-166,-146,-141,-245,-178,-224},{-158,-227,-184,-224,-255,-230},{-136,-128,-232,-133,-212,-184},{-191,-200,-231,-173,-208,-214},{-178,-189,-242,-209,-247,-208},{-145,-182,-205,-211,-141,-238},{-194,-146,-143,-144,-202,-176},{-193,-137,-158,-201,-159,-158},{-224,-175,-132,-152,-212,-230},{-133,-158,-240,-173,-249,-172},{-136,-126,-186,-230,-196,-145},{-136,-229,-167,-133,-157,-232},{-222,-221,-227,-165,-220,-192},{-158,-212,-227,-217,-194,-180},{-138,-142,-140,-158,-172,-216},{-191,-171,-218,-226,-218,-246},{-186,-164,-158,-213,-208,-170},{-212,-169,-190,-217,-180,-220},{-130,-207,-156,-156,-157,-220}}},{{{-235,-245,-188,-195,-305,-252},{-303,-271,-281,-236,-262,-176},{-170,-243,-233,-228,-281,-245},{-214,-295,-276,-257,-271,-176},{-217,-278,-286,-290,-219,-221},{-165,-300,-276,-209,-176,-202},{-275,-283,-195,-231,-202,-255},{-280,-231,-169,-183,-264,-195},{-245,-283,-305,-212,-209,-193},{-193,-193,-221,-278,-245,-174},{-172,-283,-176,-228,-243,-281},{-214,-252,-212,-212,-171,-271},{-301,-209,-307,-228,-305,-200},{-252,-195,-276,-307,-238,-178},{-261,-238,-240,-236,-231,-309},{-296,-212,-181,-181,-231,-283},{-198,-278,-186,-169,-295,-226},{-231,-167,-255,-286,-200,-281},{-287,-183,-214,-300,-293,-245},{-182,-267,-217,-264,-190,-212},{-266,-205,-171,-293,-186,-295},{-303,-214,-243,-236,-236,-200},{-182,-271,-276,-190,-233,-221},{-261,-281,-255,-202,-286,-228},{-200,-238,-264,-205,-231,-290},{-235,-214,-224,-264,-198,-176},{-226,-259,-278,-195,-233,-226},{-247,-198,-248,-240,-231,-271},{-240,-243,-298,-295,-221,-231},{-254,-176,-207,-178,-248,-186},{-256,-171,-221,-309,-188,-243},{-170,-193,-262,-283,-202,-269},{-170,-286,-226,-202,-295,-238},{-177,-193,-269,-219,-171,-221},{-224,-257,-236,-195,-271,-295},{-301,-202,-276,-267,-221,-300},{-207,-250,-281,-190,-231,-174},{-189,-238,-302,-302,-271,-283},{-226,-171,-302,-214,-221,-231},{-238,-169,-200,-224,-238,-212},{-224,-193,-288,-212,-178,-295},{-210,-278,-257,-255,-174,-183},{-242,-255,-209,-186,-307,-250},{-170,-269,-174,-224,-231,-183},{-254,-167,-240,-219,-269,-309},{-256,-288,-252,-178,-276,-243},{-219,-224,-238,-238,-231,-178},{-263,-240,-167,-283,-231,-183},{-200,-238,-178,-219,-267,-202},{-184,-295,-274,-286,-248,-171}},{{-274,-269,-230,-182,-276,-203},{-259,-276,-216,-259,-201,-265},{-212,-267,-303,-236,-221,-166},{-300,-243,-212,-215,-226,-208},{-233,-264,-240,-240,-224,-274},{-305,-226,-190,-217,-264,-241},{-250,-226,-179,-199,-201,-274},{-267,-281,-249,-240,-260,-283},{-250,-309,-298,-199,-278,-168},{-176,-274,-221,-286,-269,-166},{-248,-283,-266,-213,-231,-281},{-200,-226,-197,-203,-176,-159},{-248,-248,-214,-196,-219,-192},{-221,-181,-164,-284,-255,-219},{-198,-250,-291,-296,-174,-157},{-174,-224,-291,-182,-197,-199},{-264,-278,-244,-300,-197,-210},{-214,-248,-237,-206,-285,-287},{-181,-269,-233,-243,-287,-221},{-274,-202,-261,-233,-242,-168},{-300,-205,-197,-298,-192,-252},{-238,-283,-266,-213,-201,-161},{-181,-288,-296,-263,-183,-206},{-290,-202,-209,-245,-271,-274},{-307,-231,-200,-254,-240,-270},{-186,-228,-284,-286,-192,-261},{-195,-281,-197,-240,-160,-285},{-171,-271,-268,-286,-289,-155},{-198,-271,-270,-180,-251,-157},{-169,-193,-197,-256,-206,-168},{-190,-274,-212,-289,-219,-239},{-214,-190,-167,-289,-176,-194},{-302,-214,-174,-282,-172,-283},{-250,-269,-242,-178,-199,-177},{-262,-257,-223,-192,-287,-164},{-193,-278,-186,-252,-289,-190},{-271,-207,-306,-192,-276,-223},{-276,-257,-251,-245,-181,-265},{-202,-193,-273,-238,-244,-225},{-186,-245,-202,-256,-197,-190},{-252,-238,-195,-219,-244,-243},{-281,-207,-181,-273,-172,-239},{-302,-281,-197,-187,-282,-285},{-207,-295,-240,-275,-273,-241},{-264,-188,-235,-254,-237,-263},{-178,-233,-221,-252,-221,-270},{-214,-283,-223,-282,-190,-259},{-198,-248,-249,-298,-237,-206},{-248,-243,-221,-270,-294,-194},{-278,-212,-282,-208,-246,-177}},{{-181,-157,-248,-230,-224,-185},{-204,-180,-174,-148,-159,-142},{-215,-196,-224,-201,-234,-175},{-219,-150,-261,-179,-168,-176},{-239,-219,-200,-250,-166,-202},{-215,-148,-228,-215,-168,-221},{-252,-265,-170,-185,-221,-176},{-206,-207,-143,-170,-150,-216},{-168,-245,-204,-191,-224,-146},{-262,-209,-200,-189,-135,-205},{-249,-245,-174,-156,-172,-137},{-234,-213,-166,-174,-161,-182},{-232,-230,-196,-254,-157,-202},{-262,-196,-236,-168,-165,-216},{-157,-253,-202,-252,-202,-205},{-174,-222,-145,-160,-148,-202},{-168,-180,-192,-187,-157,-184},{-213,-213,-242,-148,-221,-185},{-234,-238,-200,-232,-209,-137},{-239,-203,-202,-238,-194,-203},{-204,-205,-168,-158,-150,-220},{-155,-272,-194,-140,-150,-146},{-174,-245,-145,-222,-135,-218},{-243,-178,-147,-205,-144,-164},{-178,-222,-186,-203,-168,-189},{-200,-190,-160,-236,-140,-194},{-174,-201,-242,-195,-131,-232},{-204,-259,-242,-138,-209,-218},{-174,-178,-257,-189,-178,-140},{-166,-240,-250,-154,-221,-135},{-254,-211,-143,-146,-163,-198},{-176,-230,-200,-199,-135,-229},{-213,-230,-250,-191,-221,-137},{-181,-240,-184,-228,-202,-191},{-183,-255,-234,-224,-142,-139},{-196,-263,-149,-168,-243,-126},{-176,-224,-154,-166,-234,-200},{-239,-171,-220,-215,-228,-203},{-187,-265,-184,-195,-234,-139},{-157,-150,-212,-201,-187,-137},{-234,-253,-196,-232,-226,-137},{-202,-265,-202,-197,-155,-230},{-189,-209,-162,-164,-241,-158},{-228,-165,-222,-189,-178,-205},{-234,-205,-192,-179,-198,-149},{-174,-207,-202,-181,-230,-149},{-176,-146,-174,-211,-180,-162},{-150,-153,-242,-177,-194,-232},{-234,-207,-149,-152,-163,-166},{-217,-259,-158,-209,-194,-223}}},{{{-255,-282,-311,-261,-346,-194},{-247,-215,-322,-213,-279,-200},{-221,-298,-258,-343,-245,-346},{-327,-207,-293,-343,-287,-250},{-279,-242,-229,-202,-263,-317},{-277,-285,-226,-210,-192,-207},{-218,-287,-205,-226,-194,-319},{-293,-269,-282,-207,-319,-242},{-277,-213,-277,-218,-245,-245},{-295,-293,-192,-250,-277,-335},{-346,-197,-303,-215,-277,-245},{-266,-239,-205,-303,-245,-205},{-346,-277,-332,-338,-295,-287},{-189,-242,-205,-309,-274,-332},{-277,-242,-226,-303,-298,-237},{-186,-234,-306,-202,-298,-189},{-327,-325,-253,-274,-282,-274},{-293,-346,-192,-229,-303,-306},{-282,-269,-295,-319,-303,-250},{-207,-309,-263,-205,-221,-325},{-231,-309,-330,-285,-200,-263},{-332,-242,-322,-298,-298,-332},{-295,-258,-253,-277,-258,-322},{-218,-253,-255,-215,-332,-200},{-295,-311,-258,-202,-282,-282},{-269,-192,-335,-186,-335,-231},{-229,-343,-194,-258,-332,-343},{-319,-231,-295,-298,-207,-229},{-271,-186,-234,-247,-189,-287},{-346,-200,-213,-301,-311,-205},{-263,-234,-309,-234,-242,-277},{-279,-237,-250,-303,-261,-279},{-247,-309,-261,-197,-194,-261},{-306,-285,-309,-306,-293,-306},{-231,-332,-200,-271,-207,-309},{-346,-210,-293,-293,-197,-215},{-271,-202,-207,-279,-223,-287},{-247,-319,-317,-218,-309,-338},{-317,-261,-269,-282,-309,-306},{-194,-279,-202,-269,-301,-226},{-207,-266,-332,-332,-258,-332},{-311,-271,-186,-205,-293,-261},{-221,-314,-253,-247,-295,-290},{-263,-303,-332,-213,-215,-327},{-340,-295,-261,-218,-327,-186},{-282,-322,-282,-247,-263,-311},{-263,-285,-223,-317,-186,-282},{-340,-258,-205,-317,-282,-245},{-205,-258,-303,-213,-338,-287},{-237,-330,-271,-314,-239,-239}},{{-189,-186,-261,-309,-299,-189},{-231,-234,-314,-335,-225,-181},{-226,-221,-314,-221,-254,-293},{-194,-303,-335,-200,-223,-326},{-210,-290,-309,-189,-338,-184},{-237,-218,-237,-242,-199,-275},{-239,-186,-200,-301,-272,-282},{-298,-327,-250,-293,-272,-197},{-213,-317,-194,-279,-280,-295},{-271,-261,-346,-338,-299,-313},{-301,-330,-271,-215,-293,-324},{-311,-258,-218,-258,-322,-334},{-202,-229,-250,-231,-286,-189},{-250,-332,-274,-274,-275,-269},{-317,-319,-237,-200,-254,-233},{-317,-340,-319,-242,-189,-321},{-253,-231,-189,-213,-335,-220},{-202,-338,-319,-290,-241,-285},{-290,-186,-189,-343,-267,-228},{-186,-311,-258,-237,-202,-218},{-327,-301,-311,-340,-270,-246},{-242,-221,-192,-282,-312,-223},{-221,-192,-226,-213,-252,-295},{-261,-319,-319,-266,-314,-238},{-215,-346,-202,-192,-278,-280},{-263,-247,-245,-332,-194,-254},{-200,-226,-197,-298,-259,-319},{-301,-325,-343,-237,-231,-246},{-210,-306,-271,-287,-228,-197},{-277,-287,-274,-317,-207,-324},{-194,-200,-210,-202,-196,-254},{-327,-186,-189,-311,-288,-205},{-282,-269,-226,-213,-314,-210},{-210,-194,-301,-327,-191,-223},{-285,-277,-322,-287,-299,-334},{-301,-207,-269,-221,-191,-251},{-200,-192,-279,-215,-312,-233},{-290,-263,-311,-309,-244,-267},{-311,-197,-309,-255,-267,-272},{-330,-343,-338,-327,-280,-197},{-266,-301,-290,-285,-215,-202},{-340,-332,-218,-239,-262,-205},{-250,-301,-247,-250,-244,-186},{-215,-229,-279,-189,-333,-215},{-293,-197,-266,-255,-244,-293},{-210,-229,-213,-317,-286,-264},{-325,-303,-346,-189,-259,-233},{-194,-221,-335,-322,-322,-326},{-258,-282,-335,-285,-333,-189},{-189,-271,-287,-269,-330,-186}},{{-186,-311,-262,-196,-228,-289},{-287,-187,-282,-216,-306,-188},{-285,-293,-242,-258,-176,-280},{-202,-311,-209,-317,-257,-210},{-272,-207,-280,-193,-287,-248},{-181,-235,-229,-263,-186,-287},{-306,-321,-275,-283,-233,-217},{-287,-218,-232,-233,-252,-210},{-295,-258,-257,-270,-318,-308},{-241,-223,-214,-196,-218,-224},{-251,-278,-199,-221,-243,-265},{-272,-185,-287,-290,-174,-243},{-236,-268,-292,-310,-225,-277},{-243,-238,-270,-285,-314,-246},{-264,-192,-209,-193,-287,-308},{-306,-230,-280,-315,-314,-195},{-316,-273,-270,-263,-309,-272},{-254,-185,-239,-260,-191,-287},{-192,-319,-247,-258,-314,-289},{-212,-225,-307,-283,-250,-284},{-207,-261,-214,-201,-304,-280},{-238,-278,-202,-193,-279,-193},{-332,-215,-229,-238,-255,-268},{-207,-326,-272,-280,-314,-258},{-282,-286,-199,-278,-223,-260},{-303,-207,-262,-211,-245,-178},{-272,-309,-292,-201,-279,-280},{-298,-215,-186,-231,-218,-176},{-337,-283,-202,-248,-243,-243},{-262,-278,-300,-221,-189,-188},{-264,-190,-320,-208,-279,-296},{-319,-283,-242,-322,-270,-229},{-215,-293,-295,-191,-218,-183},{-220,-218,-295,-283,-201,-222},{-280,-248,-262,-228,-318,-205},{-285,-263,-290,-248,-267,-251},{-285,-182,-199,-305,-296,-287},{-225,-187,-285,-250,-191,-311},{-241,-205,-290,-213,-206,-292},{-259,-311,-189,-211,-174,-306},{-337,-253,-197,-174,-294,-275},{-246,-306,-189,-278,-296,-231},{-264,-316,-232,-203,-247,-253},{-321,-276,-290,-310,-223,-214},{-329,-245,-219,-246,-208,-255},{-256,-177,-197,-241,-289,-270},{-220,-329,-255,-280,-247,-195},{-269,-281,-267,-265,-250,-193},{-241,-215,-219,-208,-181,-299},{-319,-271,-252,-186,-196,-174}}},{{{-274,-259,-223,-298,-295,-373},{-307,-316,-310,-241,-325,-266},{-235,-262,-343,-211,-250,-376},{-361,-235,-280,-280,-391,-337},{-385,-316,-379,-364,-223,-213},{-307,-220,-364,-331,-385,-281},{-286,-274,-265,-262,-337,-311},{-298,-364,-367,-277,-223,-213},{-232,-304,-337,-313,-235,-320},{-289,-322,-256,-232,-271,-207},{-298,-343,-358,-229,-391,-326},{-259,-298,-229,-238,-259,-343},{-388,-301,-310,-355,-256,-352},{-253,-373,-349,-256,-376,-263},{-226,-319,-358,-238,-382,-272},{-355,-361,-301,-340,-358,-296},{-385,-304,-325,-271,-391,-293},{-337,-331,-388,-325,-313,-302},{-322,-325,-391,-352,-328,-364},{-304,-340,-211,-346,-280,-240},{-325,-241,-226,-277,-361,-293},{-364,-325,-355,-325,-253,-213},{-376,-229,-379,-289,-370,-299},{-292,-223,-313,-301,-358,-355},{-385,-226,-346,-334,-304,-287},{-232,-226,-310,-352,-298,-213},{-349,-313,-322,-367,-238,-263},{-343,-391,-382,-388,-235,-323},{-271,-229,-220,-361,-337,-334},{-376,-277,-232,-274,-340,-326},{-250,-358,-367,-322,-286,-258},{-346,-238,-241,-217,-262,-243},{-271,-247,-268,-370,-319,-225},{-271,-286,-220,-358,-220,-343},{-256,-352,-247,-295,-259,-358},{-217,-262,-322,-280,-274,-349},{-382,-391,-286,-304,-346,-361},{-280,-295,-364,-211,-271,-329},{-241,-391,-310,-358,-328,-234},{-388,-250,-253,-241,-385,-249},{-361,-274,-280,-277,-211,-349},{-316,-340,-313,-331,-376,-355},{-241,-253,-388,-319,-307,-255},{-382,-256,-292,-310,-373,-269},{-322,-364,-316,-238,-352,-275},{-358,-334,-214,-316,-331,-308},{-241,-259,-328,-283,-214,-329},{-259,-361,-310,-238,-304,-346},{-214,-298,-217,-241,-307,-263},{-250,-268,-355,-253,-238,-210}},{{-261,-313,-288,-352,-217,-242},{-372,-261,-316,-314,-315,-332},{-211,-373,-224,-270,-297,-316},{-314,-344,-319,-349,-265,-224},{-316,-250,-356,-273,-289,-301},{-366,-250,-350,-273,-188,-244},{-267,-258,-266,-289,-284,-208},{-229,-227,-336,-221,-246,-278},{-369,-310,-204,-319,-334,-185},{-237,-247,-316,-213,-276,-236},{-322,-301,-308,-300,-284,-283},{-272,-373,-364,-232,-233,-275},{-264,-273,-302,-207,-217,-316},{-372,-347,-269,-243,-286,-321},{-334,-319,-280,-339,-231,-213},{-223,-284,-196,-319,-270,-218},{-366,-247,-260,-235,-344,-244},{-278,-201,-297,-251,-236,-200},{-252,-290,-274,-276,-212,-226},{-308,-362,-199,-268,-262,-311},{-372,-362,-260,-317,-193,-206},{-272,-221,-204,-268,-310,-265},{-308,-258,-224,-330,-225,-252},{-255,-227,-291,-349,-244,-290},{-214,-238,-218,-265,-334,-280},{-299,-264,-325,-210,-326,-193},{-319,-276,-269,-238,-207,-303},{-302,-347,-319,-292,-302,-182},{-299,-356,-322,-268,-344,-280},{-252,-221,-249,-207,-342,-321},{-334,-241,-302,-265,-252,-298},{-272,-290,-204,-210,-196,-236},{-284,-247,-364,-341,-217,-293},{-340,-321,-358,-278,-342,-234},{-299,-221,-252,-229,-278,-257},{-349,-215,-213,-336,-342,-198},{-340,-238,-232,-287,-270,-278},{-378,-307,-266,-199,-207,-319},{-231,-364,-333,-347,-212,-332},{-322,-324,-227,-259,-196,-218},{-334,-253,-308,-194,-305,-257},{-290,-276,-314,-248,-223,-278},{-311,-301,-269,-319,-186,-267},{-343,-373,-364,-319,-238,-206},{-355,-204,-302,-246,-257,-265},{-249,-250,-280,-235,-270,-296},{-278,-232,-283,-194,-231,-265},{-264,-250,-283,-240,-305,-198},{-322,-293,-266,-254,-273,-301},{-308,-290,-218,-216,-265,-242}},{{-238,-211,-197,-261,-220,-162},{-174,-278,-250,-188,-165,-234},{-320,-182,-291,-250,-189,-263},{-206,-173,-247,-254,-225,-261},{-241,-269,-163,-272,-148,-198},{-258,-209,-266,-236,-250,-208},{-315,-170,-192,-208,-240,-184},{-174,-194,-183,-270,-208,-194},{-275,-312,-190,-172,-193,-168},{-315,-173,-250,-208,-151,-190},{-196,-242,-256,-243,-153,-198},{-233,-286,-204,-265,-227,-158},{-263,-290,-172,-190,-265,-214},{-298,-242,-183,-197,-208,-204},{-213,-269,-245,-179,-261,-149},{-270,-194,-240,-234,-195,-212},{-236,-192,-298,-272,-182,-168},{-255,-194,-165,-199,-265,-184},{-265,-235,-185,-206,-271,-220},{-198,-238,-252,-267,-176,-178},{-315,-310,-291,-223,-199,-176},{-278,-302,-229,-157,-263,-250},{-305,-278,-247,-221,-269,-208},{-317,-197,-250,-179,-208,-162},{-315,-254,-215,-161,-161,-149},{-221,-300,-185,-201,-184,-259},{-176,-190,-202,-278,-159,-149},{-179,-305,-229,-190,-240,-250},{-236,-182,-261,-281,-227,-170},{-315,-211,-160,-217,-212,-158},{-253,-262,-293,-221,-184,-210},{-208,-178,-199,-201,-167,-143},{-255,-230,-165,-254,-214,-156},{-322,-271,-273,-259,-155,-182},{-186,-286,-169,-272,-165,-234},{-188,-266,-160,-214,-273,-147},{-300,-218,-167,-214,-148,-238},{-265,-173,-160,-221,-250,-204},{-238,-230,-206,-274,-216,-154},{-198,-310,-289,-263,-233,-166},{-303,-305,-197,-192,-214,-164},{-228,-180,-192,-263,-165,-206},{-188,-290,-218,-241,-201,-232},{-305,-173,-172,-281,-267,-208},{-179,-192,-289,-159,-210,-196},{-186,-293,-222,-281,-271,-232},{-203,-286,-261,-228,-174,-190},{-238,-209,-165,-214,-212,-156},{-317,-175,-284,-283,-180,-160},{-283,-223,-261,-183,-233,-202}}},{{{-256,-248,-385,-290,-318,-287},{-276,-262,-294,-410,-416,-312},{-410,-392,-399,-322,-312,-357},{-452,-424,-448,-395,-427,-332},{-371,-434,-304,-441,-420,-350},{-455,-392,-399,-420,-434,-312},{-441,-270,-406,-360,-332,-413},{-455,-410,-424,-406,-304,-346},{-245,-287,-406,-298,-434,-294},{-276,-399,-413,-343,-368,-406},{-280,-410,-318,-308,-406,-276},{-350,-395,-290,-382,-382,-290},{-276,-430,-259,-287,-448,-318},{-276,-287,-322,-326,-343,-395},{-438,-290,-248,-406,-248,-378},{-248,-322,-294,-336,-368,-438},{-410,-357,-424,-294,-382,-273},{-266,-354,-318,-413,-336,-332},{-270,-389,-259,-284,-424,-410},{-452,-378,-312,-346,-326,-290},{-290,-444,-455,-395,-298,-413},{-389,-455,-420,-256,-262,-346},{-304,-360,-304,-343,-434,-395},{-438,-326,-326,-329,-368,-270},{-284,-294,-266,-290,-402,-284},{-420,-322,-354,-252,-332,-301},{-322,-256,-301,-452,-259,-371},{-329,-357,-290,-280,-332,-294},{-392,-340,-270,-294,-256,-455},{-455,-452,-430,-402,-382,-368},{-336,-315,-402,-364,-448,-287},{-392,-332,-406,-389,-441,-280},{-371,-298,-332,-382,-357,-374},{-248,-455,-332,-346,-280,-290},{-332,-430,-318,-259,-424,-413},{-399,-322,-385,-301,-252,-326},{-452,-420,-430,-290,-392,-392},{-329,-438,-318,-262,-392,-252},{-382,-322,-374,-336,-392,-354},{-427,-343,-318,-276,-318,-371},{-378,-360,-424,-452,-329,-364},{-420,-266,-434,-430,-378,-392},{-392,-304,-382,-374,-290,-248},{-455,-416,-389,-332,-406,-402},{-413,-455,-248,-298,-399,-424},{-413,-395,-252,-326,-410,-416},{-318,-252,-262,-448,-410,-248},{-438,-455,-360,-294,-336,-374},{-259,-395,-364,-399,-410,-424},{-270,-371,-245,-276,-340,-266}},{{-285,-357,-332,-261,-233,-338},{-348,-408,-302,-424,-295,-328},{-271,-432,-288,-254,-243,-357},{-324,-333,-437,-324,-276,-274},{-338,-250,-363,-284,-400,-232},{-432,-288,-325,-434,-397,-364},{-334,-257,-437,-277,-276,-312},{-303,-240,-295,-284,-364,-245},{-296,-254,-315,-240,-354,-277},{-428,-285,-346,-234,-361,-309},{-275,-247,-237,-418,-358,-306},{-362,-309,-434,-421,-321,-399},{-355,-254,-261,-317,-410,-335},{-365,-422,-247,-347,-377,-312},{-285,-422,-295,-277,-321,-338},{-338,-398,-258,-418,-269,-335},{-351,-288,-414,-240,-285,-364},{-275,-322,-312,-304,-351,-283},{-292,-350,-295,-404,-276,-364},{-348,-446,-363,-314,-318,-367},{-372,-408,-288,-334,-321,-283},{-379,-271,-349,-307,-328,-364},{-299,-377,-292,-424,-367,-348},{-299,-381,-251,-418,-246,-232},{-452,-442,-424,-301,-394,-383},{-258,-274,-407,-284,-305,-322},{-449,-439,-359,-377,-377,-296},{-438,-329,-359,-424,-295,-316},{-268,-322,-288,-344,-397,-267},{-438,-322,-264,-324,-262,-232},{-407,-312,-427,-237,-384,-248},{-331,-340,-271,-311,-276,-419},{-268,-370,-271,-387,-308,-229},{-299,-319,-359,-324,-394,-357},{-264,-346,-264,-397,-236,-332},{-313,-316,-302,-250,-262,-383},{-331,-388,-417,-311,-417,-254},{-331,-254,-393,-254,-348,-238},{-306,-442,-302,-334,-367,-274},{-358,-271,-292,-317,-266,-341},{-282,-309,-353,-391,-305,-290},{-285,-364,-241,-387,-276,-277},{-313,-357,-278,-257,-230,-419},{-289,-329,-275,-407,-266,-325},{-244,-357,-247,-337,-348,-386},{-317,-418,-322,-277,-295,-242},{-445,-446,-441,-357,-335,-238},{-428,-408,-414,-411,-318,-370},{-428,-377,-332,-317,-325,-274},{-355,-343,-366,-277,-285,-238}},{{-391,-308,-309,-299,-299,-225},{-328,-336,-213,-355,-362,-342},{-302,-283,-351,-322,-202,-336},{-296,-360,-213,-363,-237,-206},{-227,-330,-210,-334,-245,-309},{-296,-342,-291,-208,-365,-264},{-362,-357,-219,-325,-302,-236},{-265,-277,-363,-272,-274,-239},{-403,-290,-315,-255,-288,-200},{-230,-345,-288,-293,-353,-348},{-224,-308,-210,-272,-328,-242},{-365,-363,-246,-278,-319,-247},{-309,-400,-297,-229,-228,-300},{-356,-326,-378,-231,-217,-311},{-277,-317,-234,-311,-225,-339},{-384,-363,-339,-293,-245,-208},{-365,-274,-219,-267,-294,-228},{-230,-339,-309,-293,-325,-303},{-261,-308,-234,-305,-265,-353},{-353,-317,-369,-378,-296,-275},{-243,-249,-318,-363,-282,-239},{-280,-283,-276,-319,-222,-234},{-315,-222,-324,-211,-211,-220},{-384,-271,-384,-237,-285,-208},{-255,-290,-219,-346,-362,-234},{-378,-268,-219,-278,-348,-322},{-290,-333,-369,-234,-351,-231},{-315,-314,-267,-214,-308,-356},{-306,-290,-312,-302,-200,-292},{-328,-222,-234,-325,-302,-317},{-324,-231,-375,-311,-325,-309},{-239,-345,-243,-231,-231,-353},{-353,-219,-258,-325,-211,-322},{-290,-302,-342,-284,-268,-284},{-346,-385,-369,-267,-248,-300},{-243,-246,-360,-331,-219,-311},{-343,-259,-384,-352,-288,-289},{-271,-351,-309,-270,-311,-311},{-331,-367,-276,-314,-237,-211},{-309,-314,-354,-234,-219,-239},{-340,-271,-267,-243,-339,-284},{-271,-280,-216,-308,-248,-289},{-287,-388,-342,-363,-225,-281},{-261,-240,-240,-346,-370,-256},{-252,-237,-267,-264,-234,-300},{-249,-237,-345,-249,-234,-239},{-268,-311,-264,-314,-231,-336},{-227,-363,-324,-267,-311,-272},{-312,-296,-258,-252,-274,-300},{-293,-400,-345,-231,-276,-275}}}}; // 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,6,3,2,6,3,2,7,4,3,7,4,3,7,4,3,7,4,3,8,4,3,7,4,3,8,4,3,8,4,3,8,4,3,9,5,3,8,4,3,8,5,3,9,5,3,9,4,3,8,4,3,8,4,3,7,4,3,8,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,345}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,1,5,9,2,8,1,3,5,7,9,11,1,5,9,2,8,2,4,6,8,10,12,1,5,9,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,1,7,13,1,3,5,7,9,11,13,1,5,9,13,1,7,13,2,4,6,8,10,12,14,2,6,10,14,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,0,4,8,12,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,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,16,0,4,8,12,16,0,6,12,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,0,6,12,0,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,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,0,6,12,0,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,0,6,12,0,2,4,6,8,10,12,14,1,5,9,13,1,7,13,2,4,6,8,10,12,14,2,6,10,14,2,8,14,2,4,6,8,10,12,14,0,4,8,12,0,6,12,2,4,6,8,10,12,14,2,6,10,14,2,8,14}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,6,10,14,7,13,6,8,10,12,14,16,6,10,14,7,13,7,9,11,13,15,17,6,10,14,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,4,10,16,4,6,8,10,12,14,16,4,8,12,16,4,10,16,4,6,8,10,12,14,16,4,8,12,16,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,2,6,10,14,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,4,8,12,16,3,9,15,2,4,6,8,10,12,14,16,4,8,12,16,4,10,16,1,3,5,7,9,11,13,15,17,1,5,9,13,17,1,7,13,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,1,7,13,1,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,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,3,7,11,15,3,9,15,4,6,8,10,12,14,16,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,3,9,15,5,7,9,11,13,15,17,5,9,13,17,5,11,17,5,7,9,11,13,15,17,3,7,11,15,3,9,15,5,7,9,11,13,15,17,5,9,13,17,5,11,17}; // set of end times of each shipment 
