int Dev = 30;// 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 = 344;//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]={{{{12973,0,0,0,0,0},{12191,0,0,0,0,0},{12209,0,0,0,0,0},{12429,0,0,0,0,0},{12681,0,0,0,0,0},{12062,0,0,0,0,0},{12887,0,0,0,0,0},{12469,0,0,0,0,0},{12342,0,0,0,0,0},{12146,0,0,0,0,0},{12980,0,0,0,0,0},{12280,0,0,0,0,0},{13143,0,0,0,0,0},{12283,0,0,0,0,0},{12306,0,0,0,0,0},{12544,0,0,0,0,0},{12414,0,0,0,0,0},{12460,0,0,0,0,0},{12875,0,0,0,0,0},{12497,0,0,0,0,0},{12100,0,0,0,0,0},{11605,0,0,0,0,0},{12505,0,0,0,0,0},{12397,0,0,0,0,0},{12550,0,0,0,0,0},{12504,0,0,0,0,0},{12456,0,0,0,0,0},{12929,0,0,0,0,0},{12399,0,0,0,0,0},{12637,0,0,0,0,0},{12488,0,0,0,0,0},{13194,0,0,0,0,0},{12578,0,0,0,0,0},{11698,0,0,0,0,0},{12336,0,0,0,0,0},{12582,0,0,0,0,0},{12639,0,0,0,0,0},{12321,0,0,0,0,0},{12204,0,0,0,0,0},{12211,0,0,0,0,0},{12559,0,0,0,0,0},{12130,0,0,0,0,0},{12280,0,0,0,0,0},{13286,0,0,0,0,0},{12337,0,0,0,0,0},{12518,0,0,0,0,0},{12512,0,0,0,0,0},{13112,0,0,0,0,0},{12403,0,0,0,0,0},{12621,0,0,0,0,0}},{{12553,0,0,0,0,0},{11986,0,0,0,0,0},{12791,0,0,0,0,0},{12759,0,0,0,0,0},{12602,0,0,0,0,0},{12538,0,0,0,0,0},{12747,0,0,0,0,0},{12678,0,0,0,0,0},{12153,0,0,0,0,0},{12360,0,0,0,0,0},{12446,0,0,0,0,0},{12437,0,0,0,0,0},{12639,0,0,0,0,0},{12516,0,0,0,0,0},{12872,0,0,0,0,0},{12765,0,0,0,0,0},{12610,0,0,0,0,0},{12306,0,0,0,0,0},{12777,0,0,0,0,0},{12269,0,0,0,0,0},{12750,0,0,0,0,0},{12528,0,0,0,0,0},{12825,0,0,0,0,0},{12475,0,0,0,0,0},{12535,0,0,0,0,0},{12243,0,0,0,0,0},{12495,0,0,0,0,0},{12287,0,0,0,0,0},{12364,0,0,0,0,0},{12398,0,0,0,0,0},{12557,0,0,0,0,0},{12031,0,0,0,0,0},{11956,0,0,0,0,0},{12598,0,0,0,0,0},{12299,0,0,0,0,0},{12888,0,0,0,0,0},{12752,0,0,0,0,0},{12493,0,0,0,0,0},{12393,0,0,0,0,0},{12511,0,0,0,0,0},{12170,0,0,0,0,0},{12781,0,0,0,0,0},{12313,0,0,0,0,0},{12052,0,0,0,0,0},{12646,0,0,0,0,0},{12769,0,0,0,0,0},{12410,0,0,0,0,0},{12925,0,0,0,0,0},{12537,0,0,0,0,0},{13207,0,0,0,0,0}},{{12391,0,0,0,0,0},{11679,0,0,0,0,0},{11785,0,0,0,0,0},{11114,0,0,0,0,0},{11823,0,0,0,0,0},{11390,0,0,0,0,0},{11630,0,0,0,0,0},{11435,0,0,0,0,0},{11588,0,0,0,0,0},{10889,0,0,0,0,0},{10893,0,0,0,0,0},{11996,0,0,0,0,0},{11505,0,0,0,0,0},{11697,0,0,0,0,0},{11701,0,0,0,0,0},{11608,0,0,0,0,0},{11162,0,0,0,0,0},{11814,0,0,0,0,0},{11668,0,0,0,0,0},{11481,0,0,0,0,0},{11585,0,0,0,0,0},{11666,0,0,0,0,0},{11616,0,0,0,0,0},{11199,0,0,0,0,0},{10873,0,0,0,0,0},{11349,0,0,0,0,0},{11744,0,0,0,0,0},{11476,0,0,0,0,0},{11364,0,0,0,0,0},{11616,0,0,0,0,0},{11618,0,0,0,0,0},{11637,0,0,0,0,0},{11138,0,0,0,0,0},{10746,0,0,0,0,0},{12282,0,0,0,0,0},{11527,0,0,0,0,0},{11068,0,0,0,0,0},{11522,0,0,0,0,0},{11419,0,0,0,0,0},{11844,0,0,0,0,0},{11357,0,0,0,0,0},{11092,0,0,0,0,0},{11225,0,0,0,0,0},{11292,0,0,0,0,0},{11623,0,0,0,0,0},{11684,0,0,0,0,0},{11521,0,0,0,0,0},{11915,0,0,0,0,0},{11144,0,0,0,0,0},{11474,0,0,0,0,0}}},{{{-329,-300,-315,-379,-256,-373},{-338,-209,-341,-270,-300,-226},{-244,-309,-238,-265,-318,-256},{-259,-370,-223,-232,-209,-365},{-370,-206,-362,-347,-323,-282},{-359,-223,-206,-285,-362,-300},{-212,-285,-315,-256,-270,-273},{-320,-215,-347,-350,-306,-329},{-315,-244,-344,-326,-262,-323},{-288,-262,-335,-368,-300,-244},{-206,-250,-362,-279,-312,-294},{-368,-215,-306,-306,-356,-329},{-323,-362,-312,-259,-376,-297},{-235,-326,-347,-250,-285,-262},{-238,-329,-318,-335,-320,-323},{-303,-226,-309,-359,-344,-306},{-318,-209,-373,-241,-220,-312},{-282,-382,-256,-291,-306,-288},{-350,-273,-341,-288,-332,-235},{-373,-256,-341,-356,-353,-373},{-379,-350,-268,-256,-244,-309},{-294,-265,-250,-215,-265,-270},{-247,-259,-312,-279,-288,-229},{-229,-282,-265,-365,-220,-329},{-347,-335,-223,-256,-285,-300},{-338,-268,-332,-320,-226,-359},{-241,-300,-350,-291,-238,-338},{-306,-288,-312,-259,-276,-300},{-382,-344,-379,-318,-235,-229},{-329,-247,-223,-365,-244,-373},{-320,-350,-229,-344,-376,-250},{-359,-359,-335,-370,-332,-350},{-341,-285,-279,-376,-365,-250},{-291,-344,-312,-223,-279,-220},{-265,-285,-353,-238,-368,-353},{-368,-320,-306,-300,-282,-329},{-235,-282,-365,-359,-220,-303},{-262,-297,-326,-256,-232,-229},{-294,-265,-229,-218,-226,-212},{-300,-238,-223,-270,-218,-376},{-306,-350,-373,-223,-235,-276},{-209,-379,-279,-297,-265,-232},{-359,-247,-379,-288,-370,-250},{-323,-344,-350,-365,-356,-376},{-259,-315,-326,-206,-223,-368},{-259,-376,-353,-235,-356,-329},{-323,-223,-247,-285,-218,-382},{-332,-235,-300,-356,-309,-309},{-356,-300,-303,-332,-341,-288},{-376,-270,-350,-268,-294,-238}},{{-232,-246,-361,-310,-270,-251},{-235,-286,-232,-323,-230,-303},{-331,-372,-280,-236,-283,-337},{-218,-300,-241,-310,-246,-243},{-307,-217,-339,-299,-326,-280},{-246,-229,-283,-271,-302,-251},{-319,-286,-347,-252,-264,-316},{-360,-349,-288,-301,-238,-280},{-223,-332,-280,-332,-310,-290},{-345,-266,-274,-258,-331,-212},{-218,-212,-353,-277,-190,-313},{-348,-323,-356,-244,-192,-300},{-365,-343,-364,-214,-192,-238},{-319,-269,-283,-277,-312,-287},{-203,-332,-319,-299,-286,-280},{-377,-329,-221,-348,-208,-254},{-310,-260,-283,-304,-296,-238},{-334,-306,-202,-329,-216,-269},{-249,-206,-266,-348,-219,-298},{-310,-360,-204,-258,-208,-275},{-238,-292,-252,-323,-275,-207},{-362,-309,-294,-288,-280,-259},{-351,-300,-294,-296,-232,-241},{-299,-329,-330,-200,-262,-212},{-331,-337,-311,-197,-315,-334},{-270,-243,-204,-353,-299,-199},{-241,-329,-291,-211,-195,-267},{-232,-223,-302,-353,-198,-316},{-244,-209,-260,-340,-286,-298},{-278,-283,-235,-206,-230,-324},{-220,-326,-319,-238,-347,-319},{-302,-346,-210,-285,-294,-197},{-235,-369,-235,-318,-235,-205},{-252,-337,-322,-353,-222,-238},{-377,-243,-246,-211,-331,-254},{-371,-366,-241,-260,-206,-267},{-345,-292,-356,-266,-304,-215},{-235,-226,-246,-342,-256,-210},{-339,-363,-356,-329,-296,-287},{-296,-214,-358,-307,-307,-246},{-258,-212,-277,-288,-331,-238},{-339,-349,-297,-329,-304,-205},{-293,-209,-283,-312,-296,-197},{-267,-289,-241,-277,-342,-181},{-206,-289,-266,-348,-227,-316},{-273,-297,-350,-200,-264,-231},{-334,-335,-325,-203,-264,-313},{-223,-220,-319,-263,-339,-282},{-284,-326,-353,-340,-248,-264},{-290,-300,-358,-192,-206,-207}},{{-185,-191,-196,-215,-278,-262},{-255,-194,-280,-224,-276,-146},{-235,-264,-256,-224,-248,-190},{-175,-281,-280,-170,-278,-179},{-228,-305,-268,-289,-233,-163},{-295,-286,-212,-242,-171,-222},{-252,-249,-277,-190,-205,-177},{-230,-223,-165,-211,-246,-171},{-270,-220,-196,-215,-244,-194},{-235,-194,-184,-188,-248,-190},{-198,-264,-184,-181,-188,-241},{-280,-307,-298,-181,-253,-208},{-235,-184,-168,-177,-212,-222},{-215,-286,-198,-161,-216,-231},{-255,-215,-277,-278,-220,-231},{-288,-179,-198,-264,-233,-179},{-322,-191,-182,-251,-156,-179},{-215,-298,-175,-262,-203,-198},{-270,-213,-184,-168,-278,-225},{-228,-247,-200,-271,-272,-196},{-220,-281,-245,-267,-156,-212},{-315,-307,-233,-231,-255,-192},{-180,-172,-301,-159,-246,-185},{-210,-242,-228,-161,-257,-163},{-215,-198,-203,-260,-220,-260},{-255,-286,-245,-249,-203,-175},{-285,-261,-268,-253,-223,-239},{-278,-271,-247,-199,-182,-196},{-195,-264,-301,-228,-152,-206},{-255,-223,-289,-287,-205,-264},{-298,-273,-170,-164,-225,-251},{-252,-288,-179,-287,-156,-212},{-292,-261,-175,-235,-218,-175},{-210,-172,-289,-168,-184,-266},{-318,-182,-266,-258,-235,-229},{-210,-206,-231,-282,-244,-175},{-260,-276,-193,-224,-218,-235},{-310,-244,-210,-260,-274,-239},{-232,-295,-184,-235,-152,-194},{-175,-247,-296,-202,-274,-243},{-310,-242,-303,-269,-150,-194},{-252,-307,-233,-246,-210,-233},{-278,-257,-198,-157,-214,-220},{-318,-169,-233,-177,-182,-239},{-300,-269,-228,-202,-180,-165},{-298,-179,-175,-231,-201,-247},{-318,-206,-303,-258,-212,-208},{-262,-225,-252,-190,-259,-225},{-282,-240,-200,-253,-218,-144},{-190,-298,-212,-264,-268,-229}}},{{{-124,-150,-168,-184,-228,-201},{-136,-150,-131,-215,-202,-208},{-134,-188,-140,-136,-166,-241},{-207,-154,-189,-170,-223,-206},{-143,-145,-184,-136,-144,-243},{-205,-189,-201,-172,-132,-227},{-139,-181,-219,-206,-173,-168},{-119,-145,-161,-145,-173,-227},{-175,-216,-170,-192,-180,-172},{-118,-176,-191,-125,-167,-159},{-173,-157,-168,-195,-156,-139},{-210,-171,-164,-204,-180,-185},{-200,-215,-130,-227,-217,-195},{-210,-172,-182,-202,-239,-233},{-170,-140,-161,-131,-136,-145},{-205,-184,-161,-199,-182,-151},{-190,-152,-206,-217,-140,-187},{-170,-159,-210,-168,-208,-216},{-129,-183,-208,-140,-153,-199},{-133,-199,-212,-158,-212,-185},{-210,-127,-144,-158,-178,-170},{-151,-123,-187,-145,-210,-244},{-131,-166,-222,-184,-153,-197},{-197,-161,-159,-227,-129,-170},{-217,-120,-191,-175,-136,-201},{-181,-194,-214,-127,-156,-246},{-138,-145,-193,-208,-197,-176},{-153,-191,-158,-215,-171,-229},{-148,-167,-144,-231,-151,-201},{-197,-203,-189,-127,-234,-145},{-171,-218,-170,-168,-167,-201},{-171,-161,-219,-204,-190,-181},{-141,-213,-159,-200,-212,-139},{-210,-167,-149,-175,-160,-227},{-141,-137,-193,-134,-175,-145},{-155,-130,-154,-200,-178,-162},{-195,-150,-177,-229,-202,-212},{-160,-194,-131,-149,-149,-149},{-202,-198,-214,-158,-206,-223},{-213,-174,-217,-152,-228,-210},{-168,-140,-135,-188,-212,-231},{-218,-134,-189,-206,-202,-149},{-213,-208,-145,-206,-186,-138},{-190,-149,-203,-193,-204,-216},{-175,-216,-154,-136,-210,-166},{-165,-140,-198,-200,-234,-139},{-195,-203,-154,-181,-186,-183},{-215,-144,-164,-140,-202,-223},{-150,-208,-228,-152,-153,-183},{-161,-181,-228,-200,-144,-157}},{{-176,-258,-170,-248,-199,-257},{-236,-164,-187,-270,-234,-188},{-248,-205,-175,-261,-197,-228},{-216,-228,-179,-250,-202,-295},{-182,-199,-192,-228,-176,-271},{-212,-266,-192,-232,-282,-269},{-246,-246,-239,-210,-286,-274},{-218,-221,-275,-168,-227,-231},{-158,-226,-222,-263,-268,-169},{-172,-213,-162,-219,-259,-274},{-180,-182,-166,-208,-213,-302},{-208,-228,-166,-274,-202,-257},{-244,-217,-253,-272,-169,-193},{-248,-205,-194,-197,-197,-212},{-249,-150,-258,-267,-179,-167},{-240,-262,-200,-236,-192,-267},{-224,-160,-170,-252,-197,-188},{-230,-203,-196,-252,-190,-209},{-166,-166,-241,-270,-250,-281},{-152,-168,-200,-214,-234,-209},{-220,-221,-209,-256,-222,-286},{-240,-164,-243,-192,-275,-212},{-224,-168,-194,-172,-229,-286},{-222,-264,-224,-285,-243,-245},{-160,-158,-258,-210,-254,-221},{-249,-256,-228,-208,-169,-214},{-208,-238,-217,-281,-227,-224},{-168,-223,-236,-285,-284,-257},{-139,-162,-213,-164,-220,-274},{-255,-162,-239,-217,-266,-278},{-251,-238,-268,-201,-206,-217},{-194,-244,-168,-228,-185,-236},{-230,-193,-158,-234,-174,-245},{-141,-162,-232,-177,-236,-307},{-147,-244,-192,-203,-222,-224},{-226,-246,-262,-232,-224,-309},{-240,-240,-264,-252,-275,-240},{-248,-178,-192,-175,-181,-217},{-162,-191,-228,-157,-286,-202},{-192,-219,-219,-161,-295,-293},{-214,-254,-273,-194,-268,-174},{-202,-172,-149,-221,-227,-309},{-253,-264,-155,-197,-261,-183},{-208,-226,-173,-281,-215,-228},{-216,-187,-187,-221,-286,-281},{-152,-176,-239,-278,-231,-238},{-218,-180,-213,-239,-266,-250},{-210,-244,-173,-208,-213,-193},{-180,-258,-251,-274,-263,-238},{-182,-150,-277,-179,-174,-300}},{{-306,-280,-307,-254,-341,-337},{-237,-224,-252,-319,-332,-249},{-316,-303,-228,-348,-224,-342},{-215,-247,-220,-197,-280,-277},{-227,-303,-341,-316,-213,-328},{-212,-280,-249,-346,-352,-368},{-178,-286,-199,-267,-296,-221},{-193,-270,-241,-294,-285,-238},{-287,-311,-220,-332,-274,-317},{-272,-186,-212,-324,-230,-204},{-279,-219,-223,-310,-263,-277},{-237,-283,-196,-351,-294,-258},{-193,-329,-257,-202,-219,-269},{-222,-196,-293,-213,-341,-226},{-262,-301,-275,-327,-360,-229},{-235,-245,-280,-262,-260,-306},{-277,-314,-333,-302,-244,-246},{-279,-265,-254,-278,-338,-317},{-249,-321,-325,-194,-244,-306},{-287,-306,-191,-248,-269,-255},{-247,-275,-257,-351,-274,-362},{-193,-186,-249,-300,-260,-218},{-232,-314,-249,-335,-352,-258},{-235,-201,-217,-265,-299,-306},{-220,-189,-199,-240,-343,-246},{-272,-258,-223,-324,-283,-241},{-282,-291,-236,-340,-258,-280},{-230,-189,-280,-224,-316,-297},{-277,-201,-291,-313,-269,-221},{-316,-199,-183,-321,-310,-317},{-245,-181,-238,-281,-346,-224},{-175,-324,-225,-300,-307,-252},{-262,-212,-246,-232,-274,-365},{-178,-263,-215,-262,-197,-303},{-284,-245,-191,-273,-352,-368},{-222,-321,-283,-224,-319,-357},{-215,-199,-304,-294,-211,-314},{-245,-191,-215,-308,-241,-351},{-232,-214,-325,-338,-202,-201},{-183,-178,-275,-243,-335,-317},{-314,-247,-272,-270,-335,-314},{-173,-186,-309,-248,-310,-232},{-299,-189,-293,-197,-230,-221},{-183,-316,-328,-351,-202,-241},{-175,-286,-338,-200,-263,-308},{-269,-245,-259,-321,-249,-323},{-291,-181,-328,-278,-332,-272},{-235,-191,-307,-267,-352,-311},{-205,-224,-183,-300,-227,-320},{-249,-196,-191,-243,-321,-252}}},{{{-401,-319,-378,-362,-385,-395},{-283,-257,-234,-395,-290,-293},{-319,-342,-326,-359,-319,-293},{-230,-401,-368,-332,-234,-382},{-352,-395,-365,-428,-266,-352},{-309,-322,-326,-332,-240,-365},{-424,-283,-293,-336,-329,-428},{-352,-352,-411,-415,-306,-336},{-421,-316,-316,-421,-375,-247},{-283,-395,-266,-230,-293,-237},{-395,-260,-296,-398,-428,-411},{-349,-276,-405,-280,-398,-280},{-299,-352,-273,-290,-372,-230},{-319,-342,-290,-385,-283,-418},{-345,-276,-273,-418,-266,-296},{-382,-339,-428,-234,-234,-401},{-326,-253,-349,-237,-270,-286},{-283,-428,-388,-263,-280,-424},{-286,-405,-401,-355,-352,-372},{-260,-349,-405,-329,-234,-349},{-257,-382,-401,-260,-405,-266},{-283,-276,-372,-408,-237,-303},{-290,-368,-290,-319,-408,-349},{-329,-316,-355,-266,-428,-342},{-326,-329,-395,-316,-247,-266},{-299,-392,-392,-339,-319,-266},{-368,-405,-395,-250,-316,-355},{-395,-336,-286,-362,-408,-336},{-355,-243,-392,-329,-362,-372},{-313,-266,-309,-415,-260,-273},{-342,-349,-342,-392,-313,-359},{-405,-257,-339,-368,-372,-266},{-243,-359,-418,-326,-316,-345},{-290,-243,-424,-230,-316,-280},{-273,-322,-421,-368,-385,-375},{-329,-362,-382,-342,-280,-237},{-345,-293,-415,-385,-250,-273},{-234,-372,-365,-329,-290,-313},{-395,-240,-276,-290,-293,-332},{-306,-270,-345,-270,-230,-378},{-283,-392,-240,-362,-329,-424},{-388,-372,-339,-362,-270,-316},{-372,-424,-365,-290,-257,-237},{-401,-392,-401,-405,-296,-237},{-415,-313,-418,-313,-253,-250},{-349,-418,-237,-382,-309,-424},{-260,-368,-411,-260,-332,-395},{-388,-345,-365,-388,-349,-428},{-257,-280,-286,-388,-415,-250},{-253,-395,-257,-362,-266,-345}},{{-367,-361,-249,-380,-219,-253},{-367,-316,-255,-330,-373,-229},{-341,-242,-338,-276,-348,-304},{-302,-229,-386,-374,-320,-229},{-344,-386,-284,-295,-259,-253},{-364,-251,-309,-352,-228,-319},{-259,-264,-278,-383,-290,-250},{-249,-229,-380,-267,-348,-262},{-289,-229,-360,-311,-400,-358},{-377,-322,-249,-355,-237,-316},{-302,-277,-335,-371,-382,-337},{-348,-341,-281,-229,-231,-316},{-344,-345,-370,-264,-280,-256},{-367,-229,-370,-323,-240,-289},{-423,-316,-412,-289,-388,-223},{-305,-287,-402,-405,-354,-211},{-364,-251,-335,-223,-342,-268},{-272,-390,-383,-279,-305,-265},{-371,-287,-383,-405,-342,-367},{-289,-325,-290,-371,-333,-385},{-276,-386,-396,-374,-246,-271},{-387,-225,-332,-254,-274,-376},{-387,-283,-306,-345,-219,-211},{-335,-251,-278,-254,-268,-340},{-325,-261,-265,-251,-385,-367},{-233,-341,-345,-396,-231,-265},{-262,-357,-402,-358,-216,-268},{-374,-393,-226,-286,-240,-217},{-338,-335,-313,-292,-357,-226},{-348,-267,-386,-226,-397,-391},{-364,-390,-274,-323,-320,-373},{-282,-277,-287,-236,-397,-289},{-269,-361,-316,-264,-274,-244},{-417,-374,-303,-345,-302,-373},{-335,-293,-230,-264,-367,-337},{-348,-409,-354,-292,-317,-253},{-253,-299,-364,-374,-237,-295},{-331,-296,-402,-336,-391,-235},{-266,-264,-389,-289,-234,-322},{-335,-357,-370,-317,-385,-295},{-420,-296,-230,-270,-219,-277},{-423,-274,-287,-236,-360,-235},{-272,-412,-341,-261,-314,-373},{-351,-338,-415,-283,-379,-232},{-338,-306,-392,-257,-314,-238},{-397,-338,-396,-261,-333,-286},{-236,-367,-338,-361,-274,-298},{-266,-393,-329,-383,-330,-325},{-305,-393,-415,-292,-385,-232},{-397,-412,-367,-386,-400,-328}},{{-372,-302,-286,-283,-284,-293},{-268,-346,-269,-354,-204,-275},{-212,-251,-322,-261,-252,-326},{-280,-343,-291,-307,-284,-182},{-342,-288,-277,-313,-268,-193},{-378,-285,-308,-288,-209,-182},{-301,-210,-213,-196,-323,-239},{-384,-314,-266,-310,-270,-288},{-274,-259,-244,-291,-292,-195},{-277,-302,-358,-286,-199,-249},{-215,-210,-347,-234,-281,-224},{-381,-360,-232,-345,-262,-319},{-304,-210,-311,-199,-220,-211},{-339,-357,-300,-237,-321,-308},{-221,-334,-302,-296,-284,-185},{-360,-259,-364,-239,-233,-195},{-212,-216,-294,-212,-342,-301},{-304,-297,-342,-218,-249,-308},{-313,-328,-308,-277,-299,-324},{-224,-228,-319,-264,-310,-203},{-263,-282,-364,-226,-191,-208},{-369,-369,-336,-264,-299,-306},{-357,-285,-342,-212,-307,-334},{-339,-213,-199,-351,-215,-231},{-360,-245,-258,-267,-241,-270},{-304,-259,-252,-318,-289,-221},{-345,-300,-272,-321,-199,-262},{-280,-253,-333,-326,-223,-326},{-322,-233,-350,-231,-220,-200},{-263,-366,-210,-234,-289,-288},{-363,-256,-224,-264,-329,-321},{-304,-360,-325,-305,-199,-272},{-233,-216,-272,-201,-294,-244},{-224,-251,-280,-348,-193,-200},{-354,-348,-204,-288,-289,-324},{-212,-285,-356,-264,-310,-218},{-277,-225,-283,-291,-254,-247},{-292,-305,-238,-220,-262,-226},{-260,-285,-277,-209,-257,-296},{-363,-357,-347,-207,-217,-280},{-242,-274,-260,-199,-342,-249},{-263,-357,-218,-242,-188,-213},{-354,-233,-342,-354,-344,-226},{-233,-245,-305,-286,-186,-198},{-295,-348,-311,-269,-188,-203},{-360,-328,-283,-209,-228,-319},{-230,-308,-232,-294,-278,-249},{-336,-294,-238,-228,-191,-211},{-209,-204,-356,-324,-286,-319},{-354,-337,-260,-234,-337,-203}}},{{{-98,-136,-142,-88,-104,-122},{-132,-120,-129,-91,-120,-105},{-112,-105,-103,-95,-107,-137},{-112,-112,-114,-87,-135,-122},{-126,-121,-108,-85,-131,-116},{-116,-118,-100,-143,-98,-119},{-91,-122,-97,-123,-109,-146},{-82,-95,-123,-128,-87,-118},{-121,-96,-134,-105,-134,-138},{-89,-80,-96,-104,-101,-141},{-129,-136,-129,-96,-115,-161},{-80,-92,-82,-105,-113,-105},{-120,-102,-140,-135,-127,-96},{-135,-80,-99,-102,-90,-97},{-101,-135,-85,-117,-123,-115},{-113,-121,-142,-116,-99,-159},{-105,-81,-92,-104,-120,-120},{-103,-123,-140,-119,-90,-136},{-112,-98,-103,-116,-100,-125},{-117,-90,-144,-110,-104,-166},{-107,-117,-122,-116,-109,-115},{-131,-128,-86,-140,-124,-122},{-89,-83,-120,-145,-145,-123},{-136,-96,-99,-129,-93,-147},{-123,-130,-130,-152,-112,-128},{-128,-109,-108,-122,-146,-96},{-108,-95,-91,-136,-105,-93},{-126,-125,-140,-152,-110,-166},{-82,-114,-82,-102,-109,-132},{-121,-134,-95,-150,-115,-95},{-83,-85,-85,-125,-156,-95},{-96,-96,-112,-140,-133,-129},{-108,-116,-91,-98,-139,-118},{-99,-113,-108,-103,-149,-134},{-121,-86,-121,-122,-121,-105},{-114,-117,-127,-118,-105,-93},{-87,-81,-113,-150,-135,-146},{-80,-118,-82,-112,-113,-160},{-114,-131,-136,-121,-120,-100},{-113,-95,-96,-94,-156,-155},{-98,-89,-127,-124,-112,-100},{-130,-88,-87,-128,-138,-104},{-98,-102,-80,-94,-135,-165},{-108,-114,-136,-97,-156,-163},{-132,-117,-110,-124,-139,-104},{-77,-80,-128,-84,-90,-133},{-130,-74,-144,-85,-109,-101},{-120,-99,-104,-138,-123,-161},{-121,-77,-95,-106,-120,-155},{-136,-94,-90,-121,-151,-152}},{{-176,-106,-176,-192,-155,-141},{-169,-157,-152,-138,-130,-129},{-170,-162,-178,-175,-116,-156},{-170,-172,-191,-189,-172,-168},{-140,-169,-127,-124,-200,-186},{-171,-125,-117,-155,-113,-215},{-138,-130,-192,-194,-192,-183},{-155,-118,-185,-183,-143,-171},{-111,-110,-148,-153,-171,-156},{-130,-178,-176,-192,-126,-210},{-97,-114,-157,-136,-129,-200},{-159,-133,-148,-132,-135,-213},{-139,-109,-148,-200,-185,-160},{-163,-110,-112,-186,-127,-176},{-146,-140,-120,-194,-138,-207},{-135,-155,-132,-152,-130,-210},{-142,-158,-144,-140,-198,-143},{-115,-154,-175,-119,-163,-188},{-132,-149,-127,-113,-158,-197},{-170,-165,-121,-202,-147,-190},{-174,-157,-164,-135,-184,-144},{-136,-168,-108,-146,-203,-197},{-159,-155,-182,-192,-187,-210},{-143,-152,-158,-124,-130,-166},{-127,-165,-185,-197,-204,-171},{-123,-110,-121,-161,-143,-190},{-105,-140,-161,-178,-190,-212},{-103,-114,-111,-127,-196,-198},{-176,-173,-167,-129,-169,-185},{-123,-176,-110,-146,-114,-185},{-132,-169,-104,-116,-150,-186},{-126,-116,-118,-112,-180,-176},{-173,-145,-154,-118,-130,-139},{-176,-175,-176,-140,-148,-155},{-97,-104,-169,-180,-177,-146},{-150,-141,-178,-112,-200,-119},{-171,-162,-149,-177,-150,-129},{-142,-154,-105,-178,-132,-146},{-165,-149,-105,-167,-206,-148},{-131,-141,-135,-143,-159,-183},{-174,-152,-170,-113,-192,-136},{-103,-173,-124,-170,-127,-150},{-131,-111,-191,-191,-147,-207},{-111,-111,-118,-135,-163,-202},{-131,-162,-163,-153,-130,-150},{-153,-172,-169,-169,-150,-156},{-153,-176,-184,-198,-127,-136},{-157,-178,-186,-184,-182,-197},{-104,-100,-179,-129,-113,-197},{-140,-145,-112,-192,-135,-143}},{{-206,-184,-162,-228,-206,-228},{-184,-212,-190,-220,-243,-234},{-147,-216,-223,-236,-145,-174},{-194,-202,-216,-239,-176,-192},{-147,-151,-229,-213,-214,-204},{-147,-225,-153,-217,-194,-162},{-214,-230,-153,-200,-182,-180},{-161,-200,-182,-167,-176,-143},{-126,-167,-132,-135,-241,-172},{-145,-131,-141,-135,-172,-182},{-156,-157,-199,-160,-251,-186},{-161,-223,-151,-211,-176,-148},{-203,-189,-195,-217,-229,-242},{-147,-164,-208,-200,-190,-184},{-182,-153,-162,-239,-143,-244},{-186,-203,-205,-203,-182,-238},{-193,-180,-219,-162,-169,-160},{-175,-126,-223,-209,-139,-172},{-173,-194,-208,-162,-176,-240},{-196,-149,-199,-243,-214,-182},{-126,-169,-192,-205,-216,-145},{-124,-166,-192,-201,-223,-257},{-172,-173,-160,-200,-202,-186},{-128,-151,-205,-211,-225,-246},{-138,-169,-225,-203,-151,-147},{-224,-155,-184,-236,-161,-174},{-186,-194,-234,-203,-153,-182},{-217,-178,-171,-194,-218,-176},{-180,-232,-151,-220,-161,-154},{-172,-205,-153,-184,-182,-249},{-193,-175,-138,-158,-229,-246},{-178,-198,-188,-230,-180,-164},{-124,-151,-234,-218,-169,-172},{-187,-144,-162,-180,-214,-251},{-170,-229,-145,-226,-176,-178},{-194,-194,-179,-160,-206,-166},{-184,-131,-212,-207,-182,-182},{-140,-166,-132,-243,-159,-249},{-152,-216,-136,-192,-188,-198},{-177,-169,-231,-215,-204,-248},{-184,-139,-166,-218,-137,-200},{-142,-175,-154,-175,-221,-220},{-163,-151,-227,-139,-255,-170},{-226,-160,-195,-154,-253,-139},{-187,-173,-177,-232,-214,-158},{-220,-194,-184,-211,-137,-190},{-226,-232,-179,-162,-171,-184},{-186,-162,-216,-186,-216,-232},{-212,-191,-166,-203,-245,-246},{-144,-157,-197,-175,-171,-255}}},{{{-259,-276,-305,-264,-300,-257},{-249,-193,-274,-198,-193,-217},{-298,-281,-305,-267,-193,-186},{-226,-186,-176,-255,-250,-224},{-214,-200,-209,-276,-286,-248},{-296,-217,-271,-250,-231,-269},{-273,-302,-248,-190,-278,-226},{-280,-248,-309,-188,-305,-176},{-165,-217,-290,-202,-178,-200},{-261,-290,-271,-219,-252,-259},{-270,-233,-224,-209,-274,-288},{-275,-231,-302,-262,-200,-219},{-280,-267,-236,-276,-209,-288},{-266,-307,-226,-259,-233,-252},{-294,-183,-176,-219,-219,-226},{-275,-236,-281,-176,-281,-262},{-270,-302,-231,-290,-286,-300},{-261,-278,-198,-233,-240,-255},{-289,-290,-288,-188,-259,-255},{-212,-295,-276,-283,-214,-219},{-228,-293,-186,-207,-307,-226},{-182,-233,-281,-167,-176,-233},{-270,-259,-202,-181,-226,-169},{-275,-276,-240,-238,-221,-248},{-198,-283,-269,-264,-193,-269},{-210,-167,-305,-202,-271,-236},{-296,-207,-178,-228,-295,-281},{-268,-238,-300,-259,-240,-286},{-282,-190,-264,-221,-305,-228},{-179,-283,-181,-231,-174,-212},{-226,-281,-271,-281,-262,-224},{-226,-302,-264,-238,-298,-290},{-170,-238,-302,-181,-200,-188},{-245,-255,-214,-174,-255,-307},{-184,-224,-288,-183,-231,-300},{-182,-288,-300,-262,-207,-252},{-284,-183,-183,-300,-300,-264},{-282,-205,-212,-300,-278,-307},{-282,-217,-212,-236,-269,-276},{-249,-257,-212,-309,-286,-209},{-256,-198,-295,-224,-305,-221},{-268,-274,-193,-205,-186,-276},{-228,-195,-281,-288,-257,-198},{-168,-240,-224,-240,-209,-217},{-177,-252,-286,-214,-293,-231},{-184,-286,-209,-202,-278,-176},{-259,-276,-174,-193,-224,-226},{-233,-298,-205,-307,-193,-248},{-196,-224,-236,-221,-295,-298},{-177,-305,-178,-309,-286,-226}},{{-252,-250,-266,-213,-285,-155},{-186,-233,-202,-300,-217,-278},{-278,-193,-275,-199,-188,-267},{-250,-300,-237,-298,-292,-265},{-288,-295,-277,-185,-219,-159},{-169,-276,-230,-240,-197,-252},{-240,-200,-284,-173,-158,-285},{-193,-233,-244,-291,-181,-272},{-171,-195,-247,-280,-249,-250},{-226,-267,-181,-261,-203,-166},{-171,-262,-212,-226,-194,-214},{-283,-228,-268,-210,-194,-217},{-198,-228,-266,-280,-194,-276},{-207,-259,-261,-189,-278,-179},{-240,-188,-291,-189,-292,-265},{-305,-252,-261,-187,-233,-243},{-295,-224,-284,-284,-233,-259},{-207,-290,-169,-182,-199,-168},{-288,-293,-179,-201,-237,-236},{-183,-217,-273,-284,-217,-267},{-300,-183,-193,-289,-181,-217},{-305,-250,-200,-203,-179,-199},{-264,-298,-263,-224,-197,-206},{-193,-198,-249,-192,-201,-170},{-255,-169,-181,-263,-201,-241},{-307,-176,-216,-185,-262,-243},{-271,-243,-207,-298,-172,-223},{-240,-257,-266,-293,-163,-210},{-255,-271,-261,-293,-194,-192},{-171,-302,-235,-229,-287,-203},{-181,-252,-200,-298,-199,-230},{-205,-200,-169,-169,-219,-228},{-178,-231,-263,-176,-253,-172},{-169,-274,-235,-224,-201,-190},{-224,-186,-242,-203,-287,-261},{-178,-186,-223,-286,-253,-243},{-290,-200,-254,-219,-228,-217},{-226,-240,-174,-249,-212,-274},{-214,-283,-301,-180,-235,-210},{-267,-278,-183,-268,-174,-281},{-295,-236,-277,-256,-179,-210},{-269,-236,-266,-210,-158,-225},{-190,-205,-230,-194,-194,-274},{-171,-307,-207,-245,-174,-217},{-221,-278,-204,-273,-258,-221},{-295,-171,-301,-226,-294,-157},{-195,-267,-306,-277,-269,-172},{-238,-202,-233,-259,-253,-245},{-224,-248,-181,-296,-278,-232},{-305,-209,-214,-298,-217,-261}},{{-183,-261,-212,-232,-180,-155},{-168,-238,-244,-218,-215,-166},{-211,-245,-164,-215,-181,-142},{-234,-194,-172,-207,-131,-176},{-172,-247,-246,-144,-219,-144},{-271,-153,-143,-242,-131,-130},{-155,-163,-236,-228,-150,-232},{-230,-190,-212,-189,-172,-187},{-215,-153,-164,-211,-165,-140},{-189,-159,-145,-187,-168,-193},{-217,-173,-147,-238,-174,-185},{-168,-238,-178,-185,-137,-169},{-211,-240,-214,-166,-204,-184},{-256,-178,-174,-224,-215,-202},{-280,-171,-154,-193,-236,-148},{-219,-222,-188,-252,-144,-198},{-194,-188,-176,-146,-243,-133},{-196,-249,-244,-226,-142,-220},{-224,-270,-252,-174,-193,-142},{-206,-155,-230,-144,-135,-202},{-172,-270,-210,-187,-187,-155},{-168,-255,-236,-142,-189,-128},{-226,-188,-259,-250,-189,-133},{-239,-157,-172,-226,-243,-193},{-275,-176,-152,-195,-131,-137},{-211,-272,-182,-138,-232,-193},{-258,-182,-180,-179,-208,-212},{-245,-240,-263,-136,-209,-209},{-157,-194,-234,-199,-150,-157},{-234,-184,-162,-226,-140,-133},{-206,-167,-212,-240,-206,-167},{-200,-238,-218,-250,-163,-160},{-200,-249,-238,-150,-234,-205},{-150,-199,-244,-156,-135,-131},{-275,-207,-246,-254,-170,-167},{-155,-176,-255,-207,-168,-158},{-183,-169,-234,-222,-208,-220},{-155,-161,-172,-238,-194,-162},{-200,-238,-226,-232,-181,-202},{-273,-238,-184,-252,-159,-212},{-159,-184,-210,-176,-208,-153},{-161,-272,-232,-242,-172,-218},{-189,-209,-147,-250,-142,-131},{-191,-180,-145,-252,-142,-162},{-172,-255,-259,-174,-230,-140},{-204,-215,-232,-246,-241,-164},{-215,-157,-190,-176,-181,-234},{-256,-178,-208,-216,-153,-207},{-260,-171,-149,-254,-146,-155},{-232,-173,-208,-187,-221,-131}}},{{{-277,-197,-221,-314,-253,-250},{-221,-322,-327,-266,-330,-303},{-186,-314,-239,-202,-229,-271},{-306,-266,-317,-226,-263,-332},{-301,-343,-229,-247,-269,-223},{-274,-197,-314,-239,-205,-221},{-247,-247,-293,-327,-314,-319},{-282,-330,-239,-186,-215,-202},{-327,-287,-319,-311,-269,-245},{-245,-239,-261,-197,-253,-285},{-205,-322,-306,-237,-309,-311},{-338,-274,-189,-202,-335,-277},{-250,-277,-237,-343,-335,-231},{-231,-261,-186,-234,-317,-223},{-239,-274,-277,-279,-277,-258},{-186,-335,-295,-285,-213,-258},{-258,-332,-277,-263,-261,-327},{-269,-340,-295,-327,-239,-298},{-298,-215,-311,-293,-266,-250},{-210,-301,-247,-226,-319,-247},{-340,-213,-218,-279,-237,-266},{-340,-223,-192,-226,-239,-298},{-311,-346,-295,-205,-245,-322},{-200,-317,-197,-263,-330,-269},{-338,-210,-327,-295,-237,-327},{-245,-330,-231,-282,-202,-231},{-229,-295,-234,-290,-258,-314},{-258,-325,-295,-258,-343,-301},{-250,-319,-303,-242,-277,-319},{-330,-303,-215,-314,-303,-253},{-223,-258,-274,-311,-213,-301},{-210,-314,-327,-327,-338,-319},{-338,-242,-309,-269,-325,-327},{-266,-197,-282,-213,-213,-239},{-266,-207,-285,-330,-215,-309},{-247,-290,-200,-253,-207,-247},{-287,-263,-309,-247,-311,-250},{-237,-237,-234,-266,-197,-314},{-277,-210,-237,-207,-290,-330},{-269,-192,-202,-205,-301,-319},{-301,-237,-293,-317,-237,-207},{-202,-285,-255,-189,-202,-306},{-301,-261,-311,-205,-287,-194},{-271,-319,-295,-221,-218,-271},{-205,-290,-266,-237,-261,-343},{-192,-346,-314,-322,-247,-226},{-269,-186,-330,-266,-335,-242},{-285,-340,-277,-295,-253,-287},{-309,-293,-274,-306,-189,-346},{-335,-271,-303,-277,-221,-215}},{{-338,-250,-221,-338,-231,-298},{-247,-229,-261,-192,-212,-228},{-269,-293,-271,-189,-202,-197},{-311,-245,-255,-322,-341,-285},{-202,-290,-255,-295,-307,-194},{-279,-311,-309,-325,-314,-321},{-266,-327,-332,-192,-317,-308},{-327,-309,-226,-258,-194,-277},{-200,-279,-237,-325,-267,-298},{-343,-189,-340,-255,-202,-264},{-223,-258,-309,-202,-196,-306},{-271,-279,-205,-210,-312,-246},{-293,-253,-194,-269,-254,-337},{-266,-200,-295,-239,-212,-231},{-340,-221,-311,-202,-262,-220},{-335,-245,-330,-279,-322,-246},{-258,-301,-192,-285,-217,-285},{-226,-218,-247,-207,-265,-210},{-194,-200,-234,-274,-267,-249},{-271,-250,-215,-245,-194,-197},{-327,-274,-245,-295,-283,-223},{-301,-309,-242,-253,-314,-275},{-298,-266,-293,-298,-225,-218},{-207,-223,-317,-327,-280,-295},{-327,-287,-200,-301,-202,-197},{-226,-269,-210,-221,-320,-246},{-223,-327,-218,-255,-254,-293},{-261,-274,-221,-245,-341,-285},{-186,-303,-285,-322,-252,-243},{-197,-263,-245,-266,-233,-337},{-271,-279,-226,-226,-254,-303},{-237,-346,-317,-338,-286,-225},{-266,-237,-237,-210,-330,-303},{-247,-319,-293,-340,-231,-306},{-215,-277,-327,-274,-278,-231},{-298,-221,-245,-319,-267,-218},{-258,-290,-218,-269,-322,-228},{-311,-327,-314,-266,-267,-228},{-298,-343,-213,-258,-186,-272},{-340,-221,-258,-207,-191,-329},{-226,-237,-221,-343,-231,-277},{-279,-250,-330,-253,-278,-290},{-229,-279,-290,-250,-325,-243},{-263,-226,-231,-343,-246,-186},{-319,-218,-303,-306,-262,-243},{-271,-223,-309,-250,-307,-215},{-229,-194,-330,-245,-207,-202},{-279,-192,-279,-261,-314,-181},{-279,-189,-215,-213,-262,-306},{-258,-285,-306,-298,-252,-275}},{{-326,-283,-255,-258,-181,-287},{-316,-311,-282,-305,-223,-241},{-259,-220,-227,-255,-306,-265},{-249,-182,-257,-184,-257,-176},{-326,-306,-207,-228,-247,-296},{-218,-256,-202,-258,-208,-253},{-267,-304,-181,-226,-318,-280},{-293,-311,-285,-317,-186,-241},{-225,-304,-287,-208,-262,-282},{-256,-296,-302,-238,-318,-243},{-202,-225,-297,-246,-287,-224},{-249,-202,-310,-265,-203,-239},{-290,-321,-300,-275,-287,-231},{-316,-192,-275,-298,-213,-212},{-249,-271,-255,-236,-211,-217},{-181,-256,-318,-280,-294,-239},{-334,-245,-199,-303,-179,-174},{-306,-293,-280,-298,-230,-198},{-321,-266,-202,-188,-243,-181},{-264,-245,-239,-315,-272,-275},{-231,-225,-275,-320,-270,-200},{-306,-233,-227,-280,-240,-243},{-184,-250,-287,-305,-186,-239},{-238,-213,-219,-181,-257,-210},{-277,-180,-249,-250,-304,-190},{-329,-316,-199,-270,-223,-198},{-207,-321,-219,-188,-318,-246},{-259,-182,-214,-288,-179,-263},{-223,-316,-219,-290,-260,-183},{-303,-197,-244,-260,-287,-188},{-316,-250,-318,-228,-316,-188},{-267,-326,-224,-241,-262,-308},{-321,-215,-186,-186,-172,-212},{-236,-253,-222,-233,-294,-227},{-326,-268,-315,-250,-277,-308},{-184,-205,-272,-188,-218,-289},{-311,-195,-265,-221,-176,-284},{-300,-321,-252,-253,-304,-195},{-192,-190,-192,-273,-265,-210},{-267,-268,-244,-201,-211,-205},{-233,-225,-204,-285,-292,-234},{-220,-233,-252,-213,-208,-169},{-184,-210,-186,-196,-309,-217},{-319,-321,-199,-268,-203,-217},{-316,-324,-219,-188,-316,-301},{-218,-329,-214,-201,-311,-260},{-324,-210,-262,-305,-198,-239},{-194,-238,-318,-196,-304,-268},{-243,-261,-290,-201,-172,-183},{-243,-316,-244,-278,-223,-246}}},{{{-307,-211,-289,-328,-379,-275},{-253,-268,-340,-295,-259,-299},{-334,-280,-262,-367,-283,-237},{-283,-274,-373,-325,-268,-249},{-223,-292,-229,-253,-265,-323},{-211,-268,-325,-364,-343,-210},{-304,-217,-352,-367,-220,-385},{-271,-238,-352,-364,-244,-343},{-307,-283,-331,-253,-259,-305},{-283,-292,-304,-376,-256,-329},{-379,-271,-364,-223,-358,-382},{-361,-286,-211,-250,-316,-287},{-391,-271,-352,-334,-313,-290},{-361,-340,-292,-247,-235,-219},{-259,-337,-358,-388,-277,-346},{-295,-295,-286,-313,-244,-326},{-253,-244,-361,-373,-289,-216},{-241,-391,-223,-211,-232,-352},{-352,-292,-259,-352,-217,-249},{-229,-292,-331,-385,-325,-349},{-376,-358,-304,-373,-214,-225},{-223,-220,-223,-235,-298,-358},{-328,-316,-256,-313,-382,-373},{-286,-220,-265,-364,-337,-272},{-250,-259,-232,-382,-241,-311},{-211,-253,-364,-373,-217,-228},{-277,-211,-367,-340,-355,-361},{-235,-238,-247,-259,-319,-293},{-232,-280,-247,-319,-220,-225},{-364,-286,-376,-253,-370,-278},{-307,-316,-226,-274,-289,-287},{-253,-310,-280,-298,-238,-281},{-265,-286,-247,-355,-286,-281},{-322,-214,-226,-238,-319,-278},{-229,-316,-232,-211,-265,-269},{-358,-295,-346,-211,-367,-255},{-274,-289,-259,-391,-346,-284},{-301,-331,-295,-352,-385,-293},{-391,-250,-340,-277,-289,-308},{-325,-247,-316,-373,-316,-260},{-352,-391,-334,-250,-256,-376},{-343,-316,-376,-331,-298,-343},{-250,-343,-289,-253,-388,-326},{-349,-304,-331,-301,-376,-334},{-235,-328,-370,-238,-283,-222},{-298,-277,-259,-370,-286,-346},{-256,-286,-262,-346,-376,-281},{-277,-295,-334,-319,-370,-284},{-241,-379,-223,-217,-313,-252},{-241,-391,-325,-226,-286,-293}},{{-357,-250,-291,-207,-193,-239},{-378,-373,-288,-289,-225,-265},{-352,-301,-311,-262,-228,-324},{-272,-232,-291,-325,-321,-249},{-311,-276,-274,-330,-329,-216},{-360,-364,-353,-268,-307,-275},{-255,-235,-263,-330,-292,-303},{-270,-307,-347,-213,-305,-308},{-208,-321,-210,-238,-212,-180},{-220,-270,-241,-344,-238,-265},{-284,-339,-319,-300,-252,-306},{-284,-327,-221,-349,-305,-314},{-220,-319,-207,-352,-209,-239},{-363,-281,-333,-347,-302,-262},{-369,-313,-269,-254,-268,-198},{-211,-267,-232,-240,-199,-275},{-340,-287,-333,-278,-334,-290},{-243,-364,-353,-257,-305,-326},{-296,-287,-339,-319,-191,-303},{-278,-347,-336,-251,-193,-290},{-284,-221,-316,-314,-299,-252},{-231,-359,-241,-207,-299,-239},{-287,-356,-356,-325,-329,-260},{-314,-264,-300,-355,-299,-218},{-308,-356,-204,-273,-339,-182},{-211,-264,-319,-278,-286,-221},{-381,-261,-280,-319,-244,-262},{-252,-247,-283,-352,-262,-185},{-349,-290,-216,-202,-249,-308},{-220,-330,-283,-243,-199,-288},{-255,-298,-294,-210,-231,-319},{-252,-221,-325,-336,-278,-231},{-296,-244,-252,-199,-302,-316},{-211,-201,-274,-197,-331,-236},{-381,-310,-241,-333,-228,-254},{-252,-310,-260,-268,-337,-265},{-264,-316,-230,-207,-302,-301},{-314,-241,-361,-232,-342,-296},{-366,-301,-319,-298,-217,-254},{-308,-258,-213,-227,-292,-211},{-240,-253,-305,-251,-268,-208},{-375,-333,-344,-322,-318,-290},{-290,-230,-227,-254,-268,-301},{-220,-273,-218,-246,-217,-218},{-346,-244,-283,-205,-281,-303},{-319,-204,-305,-292,-188,-306},{-343,-255,-196,-246,-270,-308},{-363,-350,-361,-262,-342,-278},{-240,-359,-258,-213,-294,-288},{-340,-367,-358,-289,-262,-321}},{{-300,-271,-279,-188,-218,-214},{-176,-211,-192,-161,-269,-178},{-253,-190,-259,-276,-187,-208},{-305,-216,-192,-256,-208,-180},{-320,-178,-240,-225,-159,-212},{-248,-221,-289,-155,-263,-152},{-300,-288,-224,-281,-182,-162},{-312,-295,-266,-228,-214,-234},{-268,-274,-268,-285,-254,-164},{-253,-293,-172,-261,-267,-192},{-233,-173,-167,-197,-231,-206},{-263,-223,-291,-201,-252,-162},{-191,-307,-238,-248,-189,-222},{-206,-259,-208,-245,-261,-152},{-253,-286,-163,-283,-261,-255},{-216,-235,-259,-190,-261,-257},{-218,-283,-259,-241,-242,-176},{-288,-185,-284,-285,-165,-180},{-263,-178,-293,-265,-184,-242},{-260,-245,-197,-252,-267,-158},{-191,-187,-275,-270,-246,-204},{-208,-168,-169,-267,-223,-158},{-186,-250,-224,-155,-206,-200},{-285,-290,-245,-164,-165,-182},{-246,-192,-218,-276,-178,-252},{-278,-269,-179,-179,-231,-246},{-201,-194,-195,-192,-276,-174},{-260,-194,-273,-159,-148,-176},{-203,-226,-275,-236,-248,-166},{-283,-221,-204,-270,-159,-198},{-303,-206,-165,-166,-170,-218},{-193,-298,-174,-172,-178,-198},{-258,-185,-275,-281,-246,-224},{-320,-204,-222,-221,-170,-178},{-208,-206,-259,-170,-189,-154},{-300,-286,-169,-234,-240,-180},{-191,-175,-160,-203,-250,-160},{-208,-185,-179,-281,-223,-154},{-241,-293,-261,-159,-212,-226},{-231,-266,-208,-175,-180,-234},{-196,-182,-220,-179,-180,-158},{-206,-286,-199,-256,-252,-214},{-258,-206,-199,-157,-223,-160},{-253,-223,-213,-263,-261,-196},{-201,-206,-286,-243,-263,-143},{-228,-211,-199,-263,-172,-158},{-303,-226,-165,-164,-153,-206},{-193,-206,-293,-228,-161,-259},{-218,-290,-256,-243,-155,-158},{-176,-250,-298,-245,-229,-170}}},{{{-280,-438,-270,-410,-336,-340},{-424,-406,-416,-371,-298,-294},{-389,-452,-368,-308,-430,-276},{-273,-332,-448,-385,-374,-382},{-410,-322,-441,-416,-389,-343},{-332,-452,-252,-256,-301,-315},{-385,-287,-452,-392,-448,-336},{-256,-273,-416,-326,-392,-392},{-427,-290,-259,-273,-266,-336},{-395,-385,-308,-382,-346,-410},{-444,-318,-270,-368,-368,-402},{-304,-248,-427,-360,-287,-280},{-455,-385,-448,-326,-298,-402},{-252,-346,-444,-374,-287,-308},{-322,-368,-276,-385,-318,-455},{-346,-301,-276,-329,-441,-312},{-364,-360,-424,-252,-395,-378},{-256,-340,-284,-413,-270,-301},{-402,-273,-434,-438,-343,-406},{-308,-266,-248,-364,-273,-270},{-248,-308,-276,-318,-332,-318},{-360,-248,-301,-430,-364,-326},{-301,-245,-452,-318,-374,-420},{-416,-444,-343,-270,-350,-287},{-455,-389,-304,-290,-430,-357},{-343,-434,-382,-340,-434,-336},{-280,-318,-273,-315,-410,-312},{-270,-441,-284,-448,-392,-332},{-389,-350,-343,-280,-270,-441},{-448,-343,-406,-382,-402,-329},{-245,-389,-252,-301,-360,-427},{-371,-364,-430,-262,-280,-430},{-389,-329,-350,-434,-301,-329},{-259,-413,-290,-301,-312,-420},{-357,-392,-298,-427,-455,-256},{-332,-312,-350,-452,-427,-452},{-276,-371,-280,-354,-340,-392},{-402,-350,-276,-336,-427,-402},{-416,-360,-392,-308,-248,-389},{-395,-312,-259,-424,-252,-395},{-248,-287,-382,-252,-371,-452},{-304,-399,-262,-332,-245,-259},{-256,-308,-389,-248,-294,-322},{-382,-340,-284,-430,-441,-346},{-357,-368,-448,-371,-354,-266},{-308,-308,-343,-360,-399,-287},{-382,-312,-340,-430,-420,-392},{-399,-350,-371,-315,-266,-374},{-385,-357,-315,-350,-378,-262},{-290,-364,-399,-420,-434,-360}},{{-449,-439,-431,-307,-305,-235},{-282,-302,-308,-274,-256,-328},{-404,-319,-407,-354,-417,-332},{-317,-274,-302,-250,-338,-357},{-442,-254,-397,-321,-371,-332},{-320,-247,-244,-287,-266,-270},{-425,-329,-336,-301,-233,-325},{-418,-326,-414,-244,-298,-377},{-264,-257,-366,-374,-321,-335},{-411,-374,-356,-364,-295,-232},{-449,-439,-312,-424,-315,-283},{-244,-374,-427,-337,-298,-270},{-397,-292,-410,-327,-400,-361},{-452,-261,-308,-428,-426,-245},{-345,-425,-298,-334,-400,-393},{-428,-415,-431,-277,-305,-235},{-244,-370,-244,-397,-387,-399},{-435,-295,-308,-418,-380,-290},{-400,-312,-336,-387,-384,-380},{-268,-381,-258,-387,-272,-415},{-313,-425,-400,-267,-374,-367},{-442,-244,-363,-381,-249,-319},{-261,-346,-370,-387,-298,-377},{-435,-401,-434,-334,-233,-322},{-358,-381,-325,-401,-321,-274},{-261,-357,-386,-428,-426,-374},{-317,-264,-332,-414,-279,-380},{-379,-302,-292,-344,-262,-409},{-432,-326,-390,-304,-279,-293},{-435,-415,-349,-257,-305,-264},{-445,-316,-373,-261,-292,-293},{-362,-326,-363,-240,-325,-348},{-334,-384,-441,-274,-331,-309},{-407,-264,-393,-267,-364,-361},{-292,-350,-359,-327,-236,-390},{-345,-350,-420,-304,-351,-406},{-313,-264,-410,-431,-279,-393},{-355,-446,-437,-254,-315,-258},{-372,-247,-308,-311,-256,-251},{-320,-305,-298,-234,-426,-364},{-407,-322,-407,-294,-269,-328},{-278,-333,-295,-331,-367,-386},{-449,-405,-264,-274,-230,-364},{-438,-333,-383,-237,-410,-277},{-278,-340,-403,-344,-417,-332},{-445,-333,-400,-387,-272,-390},{-345,-405,-254,-341,-318,-248},{-244,-326,-400,-344,-403,-319},{-254,-264,-336,-297,-289,-399},{-264,-405,-366,-394,-282,-409}},{{-410,-305,-312,-322,-251,-322},{-255,-268,-261,-296,-242,-256},{-337,-385,-360,-255,-225,-217},{-277,-271,-237,-208,-370,-270},{-362,-391,-213,-258,-208,-222},{-328,-231,-291,-308,-245,-211},{-372,-391,-348,-311,-296,-297},{-328,-222,-255,-217,-217,-206},{-406,-277,-381,-328,-237,-222},{-227,-231,-237,-208,-296,-314},{-220,-323,-258,-325,-228,-270},{-397,-293,-258,-372,-348,-278},{-239,-305,-276,-328,-325,-317},{-284,-363,-213,-314,-345,-339},{-268,-274,-354,-205,-256,-247},{-274,-326,-228,-284,-291,-200},{-261,-271,-324,-302,-211,-203},{-265,-256,-378,-261,-271,-270},{-243,-323,-327,-231,-276,-208},{-265,-308,-210,-275,-325,-336},{-284,-253,-261,-337,-302,-339},{-258,-262,-315,-355,-302,-289},{-277,-271,-309,-319,-276,-334},{-403,-290,-318,-328,-222,-261},{-280,-219,-222,-252,-202,-353},{-299,-216,-228,-205,-254,-211},{-224,-382,-339,-214,-276,-292},{-302,-271,-306,-305,-302,-289},{-318,-385,-342,-372,-205,-234},{-220,-388,-291,-243,-322,-295},{-296,-388,-387,-293,-200,-220},{-280,-323,-309,-205,-276,-314},{-243,-234,-351,-322,-259,-217},{-296,-357,-246,-205,-228,-278},{-384,-367,-303,-275,-288,-284},{-230,-367,-363,-337,-239,-289},{-280,-339,-213,-243,-245,-303},{-372,-240,-339,-278,-339,-297},{-372,-345,-297,-360,-251,-331},{-274,-400,-273,-337,-208,-361},{-306,-305,-351,-267,-339,-281},{-230,-249,-240,-246,-345,-270},{-403,-225,-276,-322,-359,-356},{-337,-305,-264,-352,-279,-228},{-293,-286,-315,-237,-248,-339},{-353,-259,-345,-234,-322,-245},{-337,-225,-303,-305,-291,-220},{-372,-363,-306,-328,-345,-353},{-340,-231,-312,-246,-214,-239},{-224,-388,-270,-240,-259,-286}}}}; // 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]={6,3,2,6,3,3,7,3,2,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,7,4,3,8,4,3,7,4,3,8,4,3,8,4,3,8,5,3,8,4,3,8,4,3,8,4,3,9,5,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3,7,4,3}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5},{6,7,8},{9,10},{11,12,13,14,15,16},{17,18,19},{20,21,22},{23,24,25,26,27,28,29},{30,31,32},{33,34},{35,36,37,38,39,40,41},{42,43,44,45},{46,47,48},{49,50,51,52,53,54,55},{56,57,58,59},{60,61,62},{63,64,65,66,67,68,69},{70,71,72,73},{74,75,76},{77,78,79,80,81,82,83,84},{85,86,87,88},{89,90,91},{92,93,94,95,96,97,98,99},{100,101,102,103},{104,105,106},{107,108,109,110,111,112,113},{114,115,116,117},{118,119,120},{121,122,123,124,125,126,127,128},{129,130,131,132},{133,134,135},{136,137,138,139,140,141,142},{143,144,145,146},{147,148,149},{150,151,152,153,154,155,156,157},{158,159,160,161},{162,163,164},{165,166,167,168,169,170,171,172},{173,174,175,176},{177,178,179},{180,181,182,183,184,185,186,187},{188,189,190,191,192},{193,194,195},{196,197,198,199,200,201,202,203},{204,205,206,207},{208,209,210},{211,212,213,214,215,216,217,218},{219,220,221,222},{223,224,225},{226,227,228,229,230,231,232,233},{234,235,236,237},{238,239,240},{241,242,243,244,245,246,247,248,249},{250,251,252,253,254},{255,256,257},{258,259,260,261,262,263,264,265},{266,267,268,269},{270,271,272},{273,274,275,276,277,278,279,280},{281,282,283,284},{285,286,287},{288,289,290,291,292,293,294},{295,296,297,298},{299,300,301},{302,303,304,305,306,307,308},{309,310,311,312},{313,314,315},{316,317,318,319,320,321,322},{323,324,325,326},{327,328,329},{330,331,332,333,334,335,336},{337,338,339,340},{341,342,343}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,2,6,10,1,7,2,4,6,8,10,12,2,6,10,0,6,12,0,2,4,6,8,10,12,2,6,10,2,8,1,3,5,7,9,11,13,1,5,9,13,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,0,6,12,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,0,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,1,3,5,7,9,11,13,15,0,4,8,12,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,0,4,8,12,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,16,0,6,12,1,3,5,7,9,11,13,15,1,5,9,13,0,6,12,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,1,7,13,0,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,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,2,8,14,1,3,5,7,9,11,13,1,5,9,13,2,8,14,2,4,6,8,10,12,14,1,5,9,13,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]={6,8,10,12,14,16,7,11,15,6,12,7,9,11,13,15,17,7,11,15,5,11,17,5,7,9,11,13,15,17,7,11,15,7,13,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,4,10,16,5,7,9,11,13,15,17,5,9,13,17,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,3,9,15,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,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,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,2,6,10,14,4,10,16,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,17,1,7,13,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,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,2,8,14,1,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,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,4,10,16,4,6,8,10,12,14,16,4,8,12,16,5,11,17,5,7,9,11,13,15,17,4,8,12,16,4,10,16,5,7,9,11,13,15,17,4,8,12,16,4,10,16}; // set of end times of each shipment 
