int Dev = 40;// 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 = 340;//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]={{{{11658,0,0,0,0,0},{12750,0,0,0,0,0},{12934,0,0,0,0,0},{12342,0,0,0,0,0},{12879,0,0,0,0,0},{11913,0,0,0,0,0},{12375,0,0,0,0,0},{12735,0,0,0,0,0},{12067,0,0,0,0,0},{12598,0,0,0,0,0},{12843,0,0,0,0,0},{12230,0,0,0,0,0},{12691,0,0,0,0,0},{12147,0,0,0,0,0},{12100,0,0,0,0,0},{12716,0,0,0,0,0},{12298,0,0,0,0,0},{12699,0,0,0,0,0},{12511,0,0,0,0,0},{13670,0,0,0,0,0},{12195,0,0,0,0,0},{12341,0,0,0,0,0},{12159,0,0,0,0,0},{11466,0,0,0,0,0},{12424,0,0,0,0,0},{12378,0,0,0,0,0},{13037,0,0,0,0,0},{11524,0,0,0,0,0},{12926,0,0,0,0,0},{12197,0,0,0,0,0},{13015,0,0,0,0,0},{12100,0,0,0,0,0},{12807,0,0,0,0,0},{12178,0,0,0,0,0},{12821,0,0,0,0,0},{12033,0,0,0,0,0},{11898,0,0,0,0,0},{13117,0,0,0,0,0},{11916,0,0,0,0,0},{12635,0,0,0,0,0},{12350,0,0,0,0,0},{12708,0,0,0,0,0},{12936,0,0,0,0,0},{12149,0,0,0,0,0},{11620,0,0,0,0,0},{12313,0,0,0,0,0},{11587,0,0,0,0,0},{12673,0,0,0,0,0},{13051,0,0,0,0,0},{13216,0,0,0,0,0}},{{12390,0,0,0,0,0},{12588,0,0,0,0,0},{11994,0,0,0,0,0},{12815,0,0,0,0,0},{12489,0,0,0,0,0},{12791,0,0,0,0,0},{12001,0,0,0,0,0},{12773,0,0,0,0,0},{11525,0,0,0,0,0},{11905,0,0,0,0,0},{12115,0,0,0,0,0},{12920,0,0,0,0,0},{12732,0,0,0,0,0},{13229,0,0,0,0,0},{12704,0,0,0,0,0},{12201,0,0,0,0,0},{11624,0,0,0,0,0},{12525,0,0,0,0,0},{11946,0,0,0,0,0},{12183,0,0,0,0,0},{12549,0,0,0,0,0},{12522,0,0,0,0,0},{11988,0,0,0,0,0},{12099,0,0,0,0,0},{12682,0,0,0,0,0},{11981,0,0,0,0,0},{12616,0,0,0,0,0},{11981,0,0,0,0,0},{11912,0,0,0,0,0},{11916,0,0,0,0,0},{13255,0,0,0,0,0},{12387,0,0,0,0,0},{12935,0,0,0,0,0},{13017,0,0,0,0,0},{11769,0,0,0,0,0},{12436,0,0,0,0,0},{12233,0,0,0,0,0},{12403,0,0,0,0,0},{12847,0,0,0,0,0},{12183,0,0,0,0,0},{13098,0,0,0,0,0},{12233,0,0,0,0,0},{12514,0,0,0,0,0},{12124,0,0,0,0,0},{12085,0,0,0,0,0},{11778,0,0,0,0,0},{12274,0,0,0,0,0},{12089,0,0,0,0,0},{12225,0,0,0,0,0},{12753,0,0,0,0,0}},{{11867,0,0,0,0,0},{11473,0,0,0,0,0},{11502,0,0,0,0,0},{11338,0,0,0,0,0},{11833,0,0,0,0,0},{10935,0,0,0,0,0},{11083,0,0,0,0,0},{11583,0,0,0,0,0},{12104,0,0,0,0,0},{11423,0,0,0,0,0},{11465,0,0,0,0,0},{10942,0,0,0,0,0},{11442,0,0,0,0,0},{11758,0,0,0,0,0},{11587,0,0,0,0,0},{11887,0,0,0,0,0},{11179,0,0,0,0,0},{11296,0,0,0,0,0},{11210,0,0,0,0,0},{11834,0,0,0,0,0},{11964,0,0,0,0,0},{11705,0,0,0,0,0},{11747,0,0,0,0,0},{11203,0,0,0,0,0},{11437,0,0,0,0,0},{11815,0,0,0,0,0},{11605,0,0,0,0,0},{11456,0,0,0,0,0},{11864,0,0,0,0,0},{11423,0,0,0,0,0},{11626,0,0,0,0,0},{11429,0,0,0,0,0},{10622,0,0,0,0,0},{11424,0,0,0,0,0},{11241,0,0,0,0,0},{11203,0,0,0,0,0},{11969,0,0,0,0,0},{11666,0,0,0,0,0},{11416,0,0,0,0,0},{11265,0,0,0,0,0},{11564,0,0,0,0,0},{11697,0,0,0,0,0},{11533,0,0,0,0,0},{11366,0,0,0,0,0},{11791,0,0,0,0,0},{11464,0,0,0,0,0},{11616,0,0,0,0,0},{11873,0,0,0,0,0},{12271,0,0,0,0,0},{11676,0,0,0,0,0}}},{{{-223,-250,-412,-332,-344,-218},{-276,-182,-353,-223,-194,-197},{-329,-179,-353,-276,-353,-370},{-250,-394,-306,-268,-376,-356},{-256,-391,-226,-306,-268,-409},{-256,-376,-206,-191,-291,-273},{-370,-191,-268,-268,-338,-268},{-394,-365,-315,-318,-303,-394},{-282,-203,-176,-373,-382,-306},{-365,-303,-247,-291,-265,-265},{-362,-318,-326,-373,-182,-229},{-306,-244,-359,-268,-320,-206},{-285,-294,-341,-179,-185,-403},{-297,-229,-282,-344,-315,-182},{-315,-412,-247,-235,-288,-209},{-247,-376,-194,-391,-356,-382},{-368,-326,-359,-279,-379,-344},{-332,-223,-400,-182,-359,-282},{-276,-218,-341,-197,-273,-376},{-400,-268,-262,-247,-291,-326},{-379,-194,-323,-268,-406,-303},{-353,-270,-220,-244,-279,-400},{-265,-303,-397,-373,-347,-412},{-365,-200,-223,-270,-235,-382},{-200,-250,-332,-270,-247,-279},{-241,-303,-253,-394,-350,-268},{-356,-368,-359,-341,-332,-315},{-179,-309,-397,-315,-197,-323},{-344,-262,-385,-262,-312,-315},{-259,-203,-194,-197,-194,-335},{-370,-238,-182,-379,-335,-373},{-370,-323,-226,-247,-400,-250},{-329,-388,-203,-306,-320,-253},{-291,-303,-256,-320,-368,-176},{-385,-309,-412,-373,-226,-259},{-338,-397,-373,-235,-200,-294},{-209,-332,-247,-362,-368,-220},{-282,-215,-303,-406,-285,-288},{-250,-320,-326,-176,-268,-279},{-388,-288,-259,-294,-350,-379},{-235,-182,-253,-385,-326,-179},{-259,-268,-256,-223,-320,-412},{-223,-406,-268,-397,-338,-176},{-306,-238,-291,-262,-312,-218},{-176,-306,-385,-391,-229,-244},{-218,-268,-191,-191,-365,-220},{-206,-256,-229,-341,-241,-203},{-382,-285,-379,-288,-403,-253},{-253,-341,-315,-323,-276,-388},{-368,-297,-376,-191,-229,-412}},{{-267,-172,-372,-362,-219,-329},{-191,-340,-305,-282,-286,-344},{-334,-229,-277,-233,-347,-350},{-209,-289,-202,-323,-278,-329},{-235,-309,-330,-247,-246,-199},{-235,-249,-356,-230,-336,-280},{-328,-272,-311,-222,-163,-207},{-386,-349,-241,-318,-206,-290},{-241,-206,-230,-167,-222,-212},{-246,-317,-336,-192,-200,-207},{-328,-240,-308,-255,-246,-329},{-220,-237,-364,-241,-291,-259},{-244,-366,-311,-342,-216,-186},{-377,-174,-288,-225,-248,-300},{-252,-237,-294,-318,-315,-241},{-316,-172,-185,-238,-190,-313},{-264,-246,-199,-195,-302,-168},{-322,-400,-294,-315,-294,-347},{-180,-203,-344,-285,-235,-272},{-215,-300,-389,-370,-318,-256},{-270,-335,-384,-269,-163,-176},{-281,-392,-269,-282,-174,-231},{-278,-366,-308,-279,-206,-231},{-325,-315,-311,-315,-246,-344},{-238,-189,-322,-342,-168,-181},{-212,-343,-370,-329,-219,-246},{-331,-306,-213,-351,-187,-300},{-264,-349,-269,-225,-334,-282},{-383,-252,-361,-279,-304,-308},{-246,-192,-235,-315,-299,-179},{-307,-355,-224,-216,-302,-225},{-357,-289,-356,-238,-318,-334},{-362,-392,-221,-290,-328,-236},{-400,-335,-283,-348,-190,-218},{-200,-389,-339,-181,-174,-189},{-232,-315,-199,-178,-214,-163},{-206,-337,-263,-378,-211,-254},{-368,-315,-370,-206,-286,-249},{-232,-277,-381,-315,-355,-228},{-319,-220,-221,-334,-339,-324},{-249,-363,-319,-373,-310,-311},{-246,-246,-367,-332,-184,-228},{-400,-283,-193,-310,-206,-360},{-392,-283,-185,-334,-291,-308},{-194,-295,-244,-222,-224,-207},{-304,-232,-370,-367,-374,-231},{-316,-320,-283,-367,-291,-179},{-296,-286,-269,-277,-310,-168},{-200,-398,-308,-345,-374,-205},{-180,-174,-294,-362,-352,-326}},{{-218,-182,-179,-139,-169,-249},{-248,-307,-315,-202,-169,-225},{-288,-257,-179,-172,-246,-124},{-348,-293,-179,-134,-276,-229},{-250,-329,-189,-307,-244,-146},{-262,-223,-224,-202,-175,-210},{-192,-211,-224,-296,-195,-154},{-275,-179,-238,-314,-160,-181},{-298,-230,-303,-291,-180,-239},{-190,-249,-207,-184,-190,-148},{-155,-283,-270,-224,-218,-128},{-320,-162,-256,-235,-214,-233},{-205,-244,-158,-193,-139,-247},{-170,-218,-149,-175,-242,-233},{-342,-261,-270,-226,-282,-175},{-272,-281,-198,-150,-250,-249},{-292,-334,-193,-155,-227,-161},{-330,-305,-310,-255,-208,-142},{-265,-257,-207,-155,-163,-208},{-202,-242,-284,-249,-208,-239},{-335,-167,-268,-220,-218,-138},{-345,-165,-182,-231,-190,-200},{-235,-177,-217,-211,-227,-227},{-180,-244,-231,-262,-229,-216},{-225,-215,-207,-179,-203,-126},{-222,-244,-219,-152,-233,-146},{-348,-315,-156,-150,-274,-235},{-342,-310,-294,-249,-148,-190},{-215,-336,-235,-271,-270,-196},{-345,-191,-233,-208,-255,-173},{-172,-165,-226,-307,-212,-284},{-162,-174,-212,-193,-261,-268},{-170,-220,-140,-204,-143,-185},{-248,-218,-249,-253,-171,-288},{-200,-213,-319,-271,-195,-204},{-190,-152,-158,-204,-233,-288},{-332,-271,-259,-161,-167,-222},{-230,-225,-219,-273,-212,-187},{-205,-312,-179,-249,-265,-161},{-288,-281,-219,-193,-131,-187},{-158,-264,-245,-300,-233,-187},{-340,-264,-289,-177,-143,-183},{-185,-315,-170,-228,-233,-157},{-178,-196,-280,-305,-163,-241},{-232,-336,-214,-287,-278,-258},{-202,-266,-263,-213,-135,-185},{-332,-242,-177,-296,-253,-218},{-220,-259,-324,-217,-263,-225},{-340,-213,-210,-311,-287,-204},{-255,-206,-326,-280,-152,-148}}},{{{-178,-183,-203,-159,-258,-134},{-108,-149,-210,-188,-248,-189},{-136,-128,-212,-107,-129,-199},{-227,-101,-126,-118,-171,-162},{-139,-179,-210,-231,-149,-120},{-227,-216,-233,-224,-204,-159},{-215,-174,-110,-195,-144,-199},{-114,-128,-191,-118,-182,-191},{-213,-144,-229,-179,-213,-134},{-186,-216,-245,-190,-224,-166},{-188,-147,-149,-229,-210,-218},{-139,-140,-226,-234,-136,-208},{-225,-201,-201,-174,-125,-235},{-131,-204,-240,-124,-125,-115},{-133,-122,-201,-174,-186,-164},{-166,-117,-107,-159,-120,-157},{-158,-211,-224,-116,-138,-138},{-141,-220,-236,-163,-166,-122},{-185,-147,-172,-145,-226,-122},{-197,-181,-208,-240,-208,-210},{-163,-105,-203,-177,-131,-239},{-181,-183,-150,-150,-245,-174},{-136,-226,-205,-174,-239,-264},{-119,-152,-243,-136,-123,-176},{-128,-123,-147,-238,-169,-210},{-121,-228,-240,-220,-247,-136},{-124,-171,-245,-150,-175,-264},{-213,-140,-220,-134,-138,-164},{-198,-233,-210,-107,-121,-210},{-232,-118,-198,-141,-118,-139},{-228,-237,-219,-120,-158,-218},{-195,-162,-224,-124,-243,-151},{-109,-194,-164,-247,-202,-115},{-205,-215,-201,-132,-134,-241},{-143,-101,-156,-208,-153,-258},{-148,-110,-231,-236,-177,-218},{-111,-235,-214,-118,-164,-202},{-235,-142,-236,-234,-247,-139},{-134,-218,-140,-206,-184,-258},{-104,-166,-220,-131,-221,-244},{-207,-204,-196,-245,-213,-199},{-210,-204,-136,-147,-118,-115},{-126,-223,-154,-220,-241,-265},{-217,-211,-198,-213,-213,-201},{-153,-105,-142,-186,-144,-185},{-124,-218,-180,-247,-167,-254},{-144,-134,-229,-181,-147,-120},{-190,-123,-107,-170,-158,-124},{-223,-103,-186,-220,-241,-256},{-178,-228,-229,-229,-193,-256}},{{-196,-232,-251,-236,-247,-148},{-143,-125,-170,-259,-229,-167},{-166,-230,-147,-263,-252,-298},{-267,-232,-266,-230,-252,-309},{-218,-137,-262,-168,-190,-155},{-154,-191,-168,-210,-293,-293},{-196,-131,-222,-265,-273,-143},{-125,-240,-288,-190,-298,-264},{-139,-238,-202,-194,-215,-274},{-168,-184,-160,-303,-295,-286},{-271,-164,-288,-276,-309,-250},{-249,-258,-251,-192,-321,-333},{-246,-221,-209,-186,-218,-271},{-273,-230,-147,-270,-195,-238},{-180,-240,-162,-245,-238,-188},{-194,-230,-192,-164,-261,-157},{-202,-158,-251,-245,-314,-290},{-255,-164,-158,-263,-227,-238},{-196,-209,-236,-179,-282,-328},{-148,-226,-247,-172,-284,-174},{-244,-211,-230,-287,-224,-250},{-249,-203,-153,-303,-259,-245},{-210,-250,-162,-290,-188,-255},{-275,-250,-277,-303,-165,-171},{-253,-234,-228,-254,-279,-174},{-123,-221,-151,-208,-250,-181},{-240,-180,-296,-236,-229,-226},{-150,-213,-164,-292,-147,-259},{-160,-178,-264,-208,-252,-312},{-152,-150,-226,-234,-213,-183},{-166,-269,-138,-234,-153,-245},{-184,-168,-145,-197,-234,-157},{-200,-195,-258,-177,-252,-255},{-184,-189,-187,-265,-318,-269},{-133,-176,-153,-152,-160,-333},{-228,-125,-232,-159,-259,-186},{-194,-162,-149,-194,-218,-278},{-238,-238,-198,-221,-270,-193},{-178,-207,-222,-263,-252,-188},{-133,-144,-136,-217,-277,-331},{-174,-205,-264,-234,-279,-157},{-265,-240,-179,-294,-279,-262},{-236,-178,-134,-270,-197,-324},{-168,-264,-134,-248,-206,-207},{-271,-150,-268,-188,-222,-145},{-127,-166,-145,-137,-295,-186},{-131,-246,-234,-179,-256,-174},{-139,-213,-179,-225,-234,-224},{-249,-182,-155,-137,-169,-307},{-164,-170,-160,-272,-270,-150}},{{-252,-291,-362,-251,-352,-269},{-148,-349,-317,-251,-169,-252},{-210,-212,-317,-378,-180,-317},{-225,-201,-278,-178,-263,-357},{-257,-194,-262,-235,-285,-331},{-321,-278,-244,-356,-327,-212},{-198,-199,-202,-192,-188,-306},{-269,-245,-160,-305,-252,-215},{-178,-337,-283,-308,-233,-396},{-212,-204,-215,-305,-388,-195},{-304,-319,-270,-316,-366,-260},{-175,-219,-265,-230,-177,-226},{-235,-178,-170,-302,-186,-362},{-170,-268,-312,-216,-247,-340},{-329,-232,-202,-327,-371,-232},{-249,-217,-343,-246,-379,-258},{-153,-252,-341,-243,-172,-280},{-245,-324,-304,-278,-324,-207},{-161,-191,-189,-176,-213,-269},{-217,-344,-314,-167,-183,-359},{-249,-214,-309,-286,-238,-175},{-343,-214,-202,-224,-371,-328},{-190,-219,-283,-292,-294,-382},{-301,-247,-173,-243,-183,-204},{-183,-268,-356,-243,-288,-190},{-299,-222,-354,-332,-222,-388},{-170,-306,-165,-254,-388,-275},{-156,-342,-244,-197,-313,-294},{-193,-298,-178,-273,-341,-263},{-240,-178,-170,-313,-294,-357},{-272,-255,-183,-316,-202,-351},{-175,-247,-267,-227,-332,-249},{-180,-153,-307,-181,-238,-325},{-252,-224,-181,-310,-296,-204},{-203,-301,-299,-267,-332,-184},{-343,-263,-270,-364,-307,-300},{-282,-349,-233,-273,-346,-365},{-242,-342,-354,-310,-241,-173},{-168,-270,-341,-275,-260,-331},{-336,-293,-233,-265,-310,-266},{-267,-209,-338,-197,-188,-195},{-259,-191,-291,-338,-235,-260},{-343,-342,-312,-324,-175,-195},{-254,-293,-246,-378,-266,-348},{-252,-171,-241,-248,-385,-249},{-309,-189,-249,-265,-271,-226},{-289,-309,-320,-189,-379,-170},{-247,-288,-236,-359,-194,-187},{-207,-298,-210,-184,-188,-362},{-252,-158,-254,-230,-222,-187}}},{{{-247,-368,-276,-299,-345,-306},{-355,-438,-372,-230,-418,-355},{-332,-299,-388,-303,-382,-296},{-368,-303,-224,-250,-349,-461},{-454,-220,-405,-378,-247,-392},{-339,-237,-352,-316,-303,-280},{-431,-352,-270,-319,-276,-326},{-375,-336,-415,-306,-454,-405},{-388,-243,-306,-378,-280,-303},{-211,-260,-342,-234,-408,-375},{-434,-283,-336,-362,-447,-447},{-365,-395,-451,-204,-342,-306},{-217,-322,-234,-230,-441,-434},{-418,-378,-388,-197,-316,-276},{-401,-451,-280,-220,-368,-418},{-309,-457,-293,-352,-313,-296},{-428,-349,-316,-237,-322,-303},{-401,-247,-214,-411,-234,-405},{-368,-342,-336,-299,-385,-332},{-411,-286,-299,-253,-296,-382},{-336,-227,-306,-322,-392,-247},{-260,-326,-336,-401,-322,-421},{-243,-316,-293,-204,-204,-382},{-207,-395,-211,-234,-385,-319},{-434,-352,-411,-227,-224,-273},{-365,-368,-270,-339,-234,-313},{-296,-415,-237,-345,-342,-349},{-207,-382,-408,-214,-273,-253},{-332,-421,-201,-342,-382,-398},{-217,-293,-444,-349,-217,-355},{-306,-454,-415,-365,-434,-257},{-322,-339,-382,-220,-214,-424},{-461,-372,-332,-372,-243,-411},{-273,-266,-276,-257,-250,-451},{-392,-398,-316,-362,-395,-224},{-375,-359,-224,-260,-461,-336},{-395,-247,-401,-457,-293,-365},{-395,-372,-339,-326,-375,-365},{-273,-342,-342,-418,-362,-359},{-303,-352,-230,-260,-240,-322},{-247,-342,-217,-243,-243,-388},{-398,-234,-253,-388,-372,-316},{-359,-326,-283,-461,-451,-392},{-375,-270,-447,-444,-286,-339},{-438,-217,-424,-227,-270,-293},{-339,-392,-220,-365,-309,-276},{-234,-378,-322,-359,-408,-211},{-441,-240,-322,-392,-342,-385},{-197,-405,-441,-257,-359,-214},{-372,-336,-293,-424,-415,-388}},{{-200,-444,-421,-367,-216,-406},{-384,-386,-287,-383,-351,-343},{-453,-193,-255,-349,-339,-208},{-456,-229,-396,-286,-253,-322},{-351,-242,-418,-317,-320,-421},{-453,-409,-223,-383,-286,-358},{-384,-451,-408,-414,-280,-241},{-305,-393,-306,-367,-351,-391},{-440,-280,-376,-198,-222,-382},{-276,-322,-367,-204,-222,-268},{-367,-316,-338,-236,-391,-343},{-417,-196,-360,-427,-382,-232},{-413,-277,-204,-392,-354,-307},{-262,-386,-306,-411,-431,-328},{-318,-299,-341,-333,-191,-397},{-384,-232,-258,-371,-271,-256},{-407,-328,-191,-204,-293,-277},{-298,-306,-405,-204,-391,-217},{-302,-351,-402,-232,-345,-244},{-440,-367,-204,-201,-249,-367},{-239,-364,-392,-355,-351,-316},{-253,-412,-268,-267,-370,-325},{-426,-396,-211,-214,-394,-274},{-210,-322,-195,-273,-249,-319},{-200,-277,-376,-371,-219,-262},{-417,-193,-364,-251,-209,-193},{-210,-409,-421,-440,-422,-226},{-220,-203,-376,-195,-333,-226},{-282,-386,-447,-201,-225,-304},{-348,-254,-284,-301,-200,-397},{-403,-319,-418,-427,-342,-412},{-364,-319,-281,-389,-428,-238},{-364,-399,-335,-380,-249,-202},{-420,-277,-421,-289,-413,-250},{-344,-251,-354,-289,-243,-400},{-312,-348,-217,-345,-419,-382},{-272,-299,-367,-289,-290,-337},{-344,-200,-274,-424,-256,-385},{-417,-448,-313,-264,-320,-397},{-364,-328,-332,-188,-354,-301},{-338,-325,-396,-402,-422,-421},{-364,-193,-252,-264,-209,-391},{-279,-312,-405,-383,-271,-337},{-289,-267,-211,-311,-277,-235},{-230,-270,-201,-226,-249,-289},{-279,-354,-329,-330,-277,-208},{-449,-312,-357,-276,-228,-388},{-256,-451,-405,-242,-400,-250},{-374,-316,-278,-396,-228,-400},{-325,-216,-306,-330,-410,-355}},{{-410,-230,-182,-296,-284,-170},{-369,-259,-266,-359,-193,-252},{-180,-343,-286,-275,-223,-236},{-209,-242,-356,-283,-254,-314},{-233,-193,-269,-196,-170,-180},{-212,-213,-370,-171,-228,-203},{-289,-334,-381,-182,-225,-226},{-289,-173,-333,-180,-246,-298},{-316,-400,-384,-302,-257,-342},{-339,-348,-179,-299,-352,-288},{-248,-193,-196,-335,-236,-213},{-215,-190,-246,-354,-289,-308},{-363,-395,-202,-324,-371,-162},{-330,-392,-386,-253,-167,-254},{-274,-228,-174,-359,-302,-311},{-201,-340,-246,-258,-159,-182},{-177,-193,-263,-193,-313,-306},{-212,-176,-213,-204,-178,-159},{-357,-199,-328,-182,-363,-332},{-254,-216,-168,-324,-284,-260},{-245,-369,-333,-332,-220,-265},{-354,-380,-207,-354,-329,-175},{-363,-251,-291,-237,-257,-221},{-209,-343,-230,-356,-186,-301},{-398,-305,-308,-250,-305,-342},{-180,-302,-204,-332,-162,-164},{-333,-204,-294,-310,-276,-229},{-301,-400,-392,-351,-191,-342},{-233,-308,-367,-209,-368,-329},{-363,-276,-325,-256,-337,-244},{-221,-331,-182,-316,-223,-360},{-298,-193,-342,-275,-286,-350},{-268,-317,-193,-302,-170,-260},{-248,-386,-286,-277,-246,-298},{-260,-325,-333,-269,-223,-164},{-236,-202,-255,-196,-262,-272},{-401,-274,-325,-231,-228,-198},{-298,-193,-255,-256,-220,-247},{-351,-374,-347,-245,-170,-280},{-407,-253,-171,-188,-193,-167},{-392,-204,-336,-324,-241,-208},{-227,-302,-193,-351,-297,-311},{-221,-204,-300,-190,-199,-324},{-324,-196,-286,-201,-334,-337},{-313,-397,-171,-231,-223,-190},{-242,-193,-241,-193,-305,-188},{-218,-282,-269,-316,-371,-337},{-395,-297,-389,-381,-299,-308},{-201,-403,-300,-362,-347,-360},{-195,-403,-224,-280,-331,-355}}},{{{-130,-83,-75,-163,-83,-111},{-120,-101,-106,-136,-93,-175},{-99,-136,-140,-115,-160,-157},{-70,-114,-119,-87,-129,-111},{-97,-99,-136,-160,-87,-118},{-88,-65,-93,-143,-87,-161},{-112,-72,-141,-118,-123,-125},{-136,-111,-101,-90,-156,-79},{-143,-84,-119,-147,-104,-165},{-105,-92,-150,-115,-134,-133},{-96,-123,-132,-111,-148,-154},{-141,-117,-120,-109,-144,-138},{-141,-74,-143,-98,-111,-102},{-109,-106,-111,-92,-85,-131},{-110,-65,-143,-84,-110,-96},{-109,-131,-128,-110,-126,-154},{-89,-96,-90,-150,-99,-157},{-122,-102,-124,-156,-157,-160},{-79,-65,-100,-111,-92,-78},{-120,-106,-109,-156,-135,-178},{-139,-84,-92,-161,-170,-156},{-70,-111,-82,-97,-122,-123},{-132,-137,-124,-140,-166,-169},{-63,-102,-99,-118,-131,-92},{-64,-144,-142,-99,-83,-124},{-111,-108,-112,-145,-90,-78},{-112,-132,-93,-90,-143,-119},{-94,-141,-83,-95,-113,-82},{-110,-136,-118,-138,-79,-174},{-110,-77,-81,-70,-106,-118},{-120,-135,-148,-164,-101,-104},{-147,-117,-96,-85,-170,-177},{-79,-88,-151,-137,-144,-105},{-79,-137,-120,-150,-79,-100},{-92,-92,-69,-113,-129,-142},{-77,-147,-123,-71,-77,-145},{-133,-128,-139,-130,-145,-161},{-75,-89,-127,-122,-79,-101},{-87,-100,-120,-85,-156,-134},{-80,-113,-91,-133,-170,-159},{-85,-104,-97,-125,-129,-93},{-109,-88,-110,-99,-118,-104},{-83,-65,-153,-139,-120,-102},{-140,-80,-74,-143,-113,-138},{-83,-83,-116,-130,-74,-97},{-139,-116,-151,-118,-162,-161},{-79,-139,-156,-116,-88,-166},{-106,-110,-96,-101,-89,-120},{-66,-68,-118,-115,-88,-164},{-78,-75,-121,-113,-155,-165}},{{-189,-154,-178,-133,-124,-106},{-144,-85,-184,-105,-108,-168},{-174,-159,-102,-143,-147,-203},{-177,-195,-201,-149,-159,-118},{-122,-152,-105,-202,-167,-148},{-81,-99,-132,-180,-122,-111},{-147,-178,-148,-121,-166,-220},{-108,-144,-104,-212,-161,-143},{-166,-103,-194,-164,-201,-212},{-99,-164,-141,-161,-164,-102},{-142,-183,-194,-104,-127,-148},{-143,-121,-148,-170,-132,-225},{-127,-110,-178,-143,-148,-155},{-113,-168,-155,-115,-118,-150},{-158,-104,-93,-198,-209,-134},{-166,-193,-169,-150,-195,-186},{-184,-173,-98,-115,-203,-118},{-103,-182,-96,-138,-188,-212},{-93,-192,-175,-147,-138,-116},{-112,-109,-197,-147,-148,-148},{-101,-157,-189,-119,-217,-153},{-184,-185,-163,-208,-116,-186},{-109,-161,-142,-175,-164,-131},{-104,-106,-149,-124,-177,-170},{-151,-110,-201,-202,-214,-124},{-97,-137,-126,-98,-196,-123},{-155,-152,-185,-98,-100,-166},{-155,-155,-207,-110,-147,-190},{-163,-142,-129,-121,-166,-124},{-165,-175,-111,-141,-151,-200},{-154,-138,-138,-112,-145,-129},{-150,-128,-93,-135,-164,-153},{-163,-196,-195,-138,-127,-113},{-99,-135,-204,-144,-98,-188},{-81,-189,-157,-150,-219,-106},{-144,-186,-96,-150,-140,-181},{-166,-118,-198,-206,-109,-218},{-116,-172,-96,-175,-150,-235},{-88,-130,-167,-163,-224,-208},{-103,-86,-110,-188,-196,-151},{-94,-124,-107,-147,-198,-146},{-89,-164,-167,-101,-156,-151},{-165,-152,-129,-112,-179,-185},{-146,-99,-197,-197,-137,-232},{-150,-159,-204,-153,-161,-232},{-163,-173,-129,-144,-164,-230},{-140,-125,-138,-99,-196,-230},{-97,-87,-108,-102,-108,-111},{-163,-188,-185,-98,-192,-220},{-101,-178,-200,-217,-132,-153}},{{-212,-146,-141,-133,-143,-228},{-178,-128,-188,-260,-186,-216},{-131,-216,-121,-141,-167,-158},{-152,-194,-130,-150,-141,-226},{-156,-191,-145,-220,-151,-255},{-107,-209,-156,-217,-204,-156},{-201,-162,-251,-220,-178,-265},{-131,-198,-121,-266,-202,-257},{-156,-144,-260,-200,-135,-178},{-161,-149,-113,-198,-223,-210},{-177,-203,-193,-171,-221,-249},{-191,-133,-141,-171,-141,-188},{-212,-173,-177,-114,-243,-230},{-138,-216,-128,-255,-269,-196},{-189,-194,-247,-173,-135,-127},{-220,-236,-180,-135,-208,-220},{-189,-124,-206,-247,-239,-267},{-161,-117,-171,-184,-145,-137},{-212,-142,-184,-120,-218,-143},{-217,-160,-197,-124,-180,-182},{-124,-117,-156,-114,-171,-249},{-196,-218,-244,-226,-220,-137},{-200,-180,-182,-180,-159,-216},{-201,-133,-173,-186,-184,-170},{-121,-232,-225,-222,-180,-156},{-187,-119,-143,-251,-243,-129},{-241,-189,-143,-122,-180,-202},{-108,-184,-132,-203,-243,-129},{-140,-191,-232,-142,-206,-261},{-229,-247,-141,-179,-176,-127},{-124,-250,-164,-131,-135,-257},{-231,-108,-210,-230,-139,-125},{-215,-247,-117,-142,-243,-143},{-245,-229,-253,-177,-184,-172},{-217,-149,-125,-125,-133,-186},{-135,-185,-117,-228,-192,-152},{-145,-223,-169,-255,-225,-148},{-175,-191,-221,-165,-263,-178},{-150,-209,-175,-148,-139,-135},{-222,-171,-126,-142,-139,-226},{-107,-238,-140,-249,-241,-246},{-170,-238,-177,-251,-221,-123},{-110,-205,-123,-255,-208,-232},{-243,-160,-210,-182,-137,-248},{-133,-155,-236,-201,-165,-143},{-177,-160,-231,-260,-249,-222},{-198,-220,-149,-230,-139,-127},{-172,-110,-199,-139,-233,-194},{-210,-137,-225,-165,-263,-170},{-114,-220,-186,-243,-247,-196}}},{{{-200,-148,-240,-240,-271,-283},{-242,-238,-143,-309,-269,-283},{-242,-276,-219,-157,-238,-207},{-308,-312,-314,-305,-317,-240},{-280,-252,-326,-190,-174,-326},{-280,-157,-164,-278,-283,-150},{-142,-176,-314,-181,-174,-219},{-310,-207,-238,-264,-298,-331},{-268,-307,-190,-167,-145,-198},{-291,-269,-236,-257,-193,-155},{-175,-250,-209,-264,-214,-312},{-163,-214,-281,-162,-174,-233},{-179,-307,-264,-286,-300,-324},{-268,-319,-267,-202,-195,-226},{-303,-155,-271,-298,-143,-317},{-263,-293,-200,-243,-178,-276},{-205,-188,-271,-159,-148,-314},{-198,-238,-164,-221,-231,-333},{-158,-271,-288,-205,-195,-186},{-312,-286,-333,-207,-326,-298},{-175,-228,-169,-250,-248,-307},{-231,-171,-159,-190,-264,-271},{-263,-228,-200,-269,-267,-188},{-142,-314,-226,-209,-236,-176},{-312,-319,-278,-164,-259,-217},{-158,-217,-195,-245,-324,-248},{-326,-328,-333,-219,-262,-207},{-259,-205,-267,-314,-250,-295},{-149,-181,-259,-159,-331,-269},{-252,-240,-252,-331,-233,-281},{-226,-193,-152,-226,-250,-240},{-203,-309,-231,-276,-286,-307},{-242,-331,-178,-326,-193,-326},{-172,-171,-321,-321,-317,-198},{-149,-212,-178,-186,-267,-293},{-210,-328,-255,-224,-178,-243},{-156,-181,-162,-195,-245,-300},{-249,-290,-252,-248,-188,-312},{-193,-262,-200,-224,-319,-183},{-212,-331,-243,-286,-224,-319},{-170,-245,-193,-245,-195,-214},{-308,-324,-252,-298,-269,-328},{-245,-200,-183,-212,-159,-157},{-231,-245,-276,-152,-176,-238},{-296,-248,-245,-157,-328,-188},{-268,-233,-305,-252,-164,-259},{-147,-219,-255,-276,-238,-198},{-168,-288,-324,-326,-159,-302},{-277,-283,-309,-307,-164,-295},{-231,-331,-281,-317,-257,-174}},{{-278,-190,-148,-194,-140,-164},{-155,-228,-284,-192,-292,-190},{-243,-193,-212,-229,-142,-267},{-228,-162,-193,-152,-240,-232},{-202,-319,-324,-219,-174,-272},{-324,-333,-327,-259,-282,-250},{-312,-155,-195,-298,-151,-230},{-243,-259,-275,-238,-310,-135},{-286,-200,-219,-185,-154,-243},{-250,-224,-233,-275,-206,-203},{-264,-274,-179,-259,-271,-166},{-198,-190,-280,-150,-188,-197},{-262,-164,-256,-275,-192,-192},{-324,-328,-240,-252,-226,-241},{-255,-278,-212,-152,-197,-135},{-319,-328,-167,-210,-301,-188},{-240,-174,-329,-176,-240,-225},{-307,-226,-207,-296,-194,-254},{-167,-202,-197,-261,-138,-259},{-328,-183,-277,-286,-307,-206},{-195,-200,-256,-268,-210,-199},{-167,-169,-277,-319,-188,-199},{-321,-143,-146,-150,-316,-168},{-202,-176,-212,-171,-258,-217},{-328,-236,-268,-312,-183,-301},{-319,-148,-258,-157,-179,-203},{-331,-271,-150,-185,-197,-170},{-205,-245,-327,-273,-181,-201},{-202,-214,-284,-206,-149,-287},{-150,-326,-298,-171,-237,-161},{-217,-319,-320,-194,-312,-270},{-221,-309,-303,-155,-170,-201},{-188,-150,-251,-270,-240,-243},{-257,-176,-294,-164,-208,-307},{-214,-312,-270,-305,-260,-203},{-324,-274,-313,-316,-307,-221},{-307,-162,-197,-321,-305,-188},{-159,-219,-193,-178,-181,-274},{-219,-190,-317,-217,-287,-139},{-271,-193,-181,-298,-194,-146},{-293,-305,-143,-169,-183,-192},{-305,-255,-193,-226,-167,-148},{-228,-283,-148,-143,-156,-292},{-331,-319,-219,-146,-305,-152},{-202,-274,-223,-298,-136,-283},{-248,-200,-240,-256,-190,-201},{-283,-324,-146,-238,-179,-234},{-288,-164,-176,-282,-208,-270},{-228,-183,-280,-240,-271,-144},{-283,-331,-153,-312,-249,-274}},{{-301,-224,-228,-187,-123,-238},{-277,-293,-230,-170,-112,-236},{-234,-163,-230,-252,-215,-200},{-241,-165,-174,-140,-140,-131},{-260,-138,-186,-257,-118,-203},{-187,-255,-184,-213,-118,-119},{-155,-144,-218,-205,-189,-166},{-292,-280,-236,-222,-239,-167},{-264,-192,-123,-123,-194,-211},{-189,-284,-160,-123,-241,-248},{-295,-226,-145,-273,-178,-194},{-217,-207,-166,-160,-178,-130},{-150,-217,-273,-254,-251,-218},{-241,-278,-226,-127,-239,-191},{-217,-209,-210,-154,-226,-176},{-204,-259,-178,-222,-142,-241},{-213,-240,-139,-142,-183,-115},{-168,-259,-125,-228,-198,-180},{-140,-211,-174,-201,-194,-229},{-185,-171,-147,-273,-221,-189},{-161,-228,-218,-140,-217,-139},{-211,-291,-149,-197,-247,-146},{-163,-219,-277,-121,-193,-157},{-215,-196,-170,-254,-159,-191},{-142,-236,-137,-248,-224,-194},{-230,-291,-208,-271,-223,-169},{-299,-134,-190,-199,-211,-112},{-148,-186,-158,-259,-198,-243},{-196,-125,-143,-216,-209,-185},{-196,-148,-135,-220,-189,-182},{-161,-176,-194,-197,-237,-139},{-243,-203,-158,-142,-254,-211},{-181,-150,-141,-228,-146,-126},{-185,-259,-125,-189,-176,-121},{-254,-180,-164,-133,-146,-153},{-280,-127,-238,-203,-232,-214},{-273,-157,-216,-263,-157,-245},{-138,-130,-277,-179,-230,-171},{-142,-249,-196,-117,-155,-212},{-206,-257,-166,-189,-223,-126},{-185,-192,-206,-133,-232,-158},{-239,-213,-281,-162,-138,-234},{-196,-272,-271,-152,-237,-221},{-140,-169,-220,-209,-256,-140},{-297,-138,-188,-191,-178,-157},{-237,-288,-224,-146,-159,-122},{-129,-259,-236,-177,-200,-131},{-219,-242,-149,-179,-241,-187},{-183,-261,-154,-209,-226,-151},{-150,-153,-145,-146,-202,-157}}},{{{-255,-367,-253,-231,-210,-306},{-372,-372,-348,-290,-303,-306},{-372,-269,-309,-242,-210,-213},{-255,-338,-327,-332,-261,-295},{-327,-247,-239,-165,-303,-229},{-215,-301,-335,-184,-207,-340},{-261,-173,-372,-306,-340,-215},{-343,-184,-346,-160,-338,-229},{-279,-181,-242,-364,-221,-207},{-311,-202,-351,-340,-314,-247},{-178,-335,-346,-160,-226,-176},{-314,-279,-245,-277,-170,-314},{-356,-197,-319,-317,-231,-311},{-290,-372,-234,-317,-245,-170},{-215,-370,-205,-186,-234,-242},{-229,-231,-213,-197,-351,-298},{-274,-372,-178,-332,-239,-205},{-293,-343,-314,-189,-306,-335},{-186,-194,-255,-295,-367,-346},{-247,-356,-218,-213,-170,-325},{-162,-173,-372,-223,-202,-346},{-266,-200,-269,-192,-325,-372},{-356,-301,-210,-223,-370,-168},{-263,-173,-258,-215,-362,-263},{-322,-332,-218,-207,-348,-189},{-205,-255,-186,-367,-293,-295},{-319,-271,-340,-271,-279,-189},{-234,-237,-192,-170,-173,-207},{-362,-311,-234,-202,-364,-319},{-348,-303,-258,-184,-218,-173},{-223,-221,-223,-215,-202,-271},{-176,-253,-250,-309,-170,-293},{-274,-184,-354,-162,-189,-325},{-192,-367,-258,-229,-293,-247},{-258,-322,-372,-343,-319,-309},{-295,-266,-319,-165,-186,-274},{-194,-269,-298,-215,-317,-162},{-325,-359,-317,-239,-290,-200},{-181,-269,-319,-165,-234,-160},{-207,-351,-168,-274,-184,-223},{-197,-338,-301,-202,-226,-181},{-200,-184,-332,-223,-176,-311},{-274,-332,-237,-170,-295,-354},{-165,-160,-282,-245,-229,-202},{-274,-234,-178,-207,-301,-247},{-213,-271,-335,-338,-325,-269},{-287,-261,-242,-170,-226,-162},{-186,-293,-160,-295,-290,-213},{-301,-309,-322,-322,-229,-362},{-162,-253,-231,-245,-285,-162}},{{-269,-293,-293,-356,-191,-246},{-173,-372,-293,-271,-362,-158},{-162,-287,-213,-184,-351,-207},{-160,-285,-269,-327,-280,-337},{-325,-181,-372,-239,-168,-352},{-231,-184,-359,-311,-288,-269},{-367,-226,-271,-231,-322,-334},{-322,-237,-223,-247,-186,-236},{-332,-298,-226,-229,-165,-262},{-359,-189,-247,-247,-212,-254},{-207,-207,-239,-162,-223,-161},{-364,-362,-362,-356,-330,-246},{-247,-221,-287,-335,-335,-287},{-330,-327,-269,-338,-162,-207},{-285,-181,-346,-223,-181,-363},{-263,-215,-287,-218,-304,-352},{-168,-364,-279,-239,-217,-194},{-239,-306,-335,-213,-351,-277},{-223,-165,-287,-285,-314,-319},{-239,-309,-271,-343,-244,-293},{-253,-247,-298,-178,-280,-324},{-332,-269,-226,-332,-223,-205},{-298,-215,-234,-258,-325,-186},{-314,-285,-181,-226,-257,-220},{-263,-372,-330,-194,-186,-176},{-359,-332,-231,-351,-341,-306},{-263,-303,-303,-364,-249,-251},{-290,-168,-293,-319,-183,-158},{-170,-258,-359,-192,-194,-243},{-247,-277,-237,-271,-165,-155},{-322,-335,-192,-234,-196,-308},{-279,-311,-192,-282,-312,-225},{-197,-317,-189,-332,-244,-238},{-351,-160,-253,-317,-325,-342},{-176,-223,-234,-173,-320,-233},{-362,-266,-351,-266,-262,-181},{-202,-332,-215,-221,-186,-321},{-173,-301,-218,-303,-346,-334},{-322,-160,-290,-311,-210,-311},{-295,-242,-277,-237,-244,-357},{-237,-295,-356,-309,-191,-342},{-176,-255,-263,-314,-322,-298},{-293,-306,-332,-359,-328,-158},{-202,-258,-338,-189,-181,-251},{-332,-327,-207,-173,-317,-225},{-184,-184,-301,-162,-309,-220},{-287,-311,-213,-348,-265,-249},{-370,-247,-346,-247,-173,-168},{-165,-332,-239,-247,-280,-352},{-253,-367,-205,-218,-231,-171}},{{-267,-291,-270,-327,-309,-287},{-324,-223,-267,-270,-213,-207},{-236,-304,-237,-238,-331,-263},{-194,-316,-204,-283,-174,-282},{-308,-336,-282,-320,-274,-330},{-249,-278,-305,-174,-265,-207},{-210,-175,-204,-340,-257,-202},{-262,-352,-328,-188,-287,-333},{-280,-223,-275,-260,-228,-292},{-363,-202,-184,-223,-206,-296},{-287,-288,-166,-218,-167,-248},{-360,-324,-222,-166,-267,-145},{-218,-205,-330,-308,-191,-164},{-298,-200,-169,-216,-294,-243},{-329,-311,-234,-198,-147,-323},{-238,-230,-328,-288,-167,-330},{-256,-230,-345,-241,-299,-224},{-238,-329,-323,-243,-211,-316},{-334,-349,-214,-213,-252,-333},{-181,-273,-232,-154,-284,-229},{-303,-352,-272,-327,-296,-308},{-189,-195,-270,-278,-235,-178},{-186,-278,-166,-317,-316,-337},{-225,-220,-212,-243,-277,-152},{-192,-329,-232,-342,-164,-190},{-321,-218,-214,-265,-333,-152},{-277,-344,-214,-255,-316,-284},{-179,-352,-222,-166,-167,-169},{-186,-324,-285,-250,-331,-308},{-306,-167,-338,-221,-321,-164},{-298,-324,-247,-159,-323,-186},{-197,-190,-184,-201,-247,-325},{-269,-197,-224,-317,-338,-270},{-295,-278,-310,-179,-323,-328},{-220,-273,-260,-320,-208,-318},{-308,-238,-338,-171,-149,-154},{-332,-187,-318,-166,-218,-318},{-262,-334,-189,-198,-167,-251},{-228,-299,-176,-335,-336,-229},{-166,-349,-229,-278,-299,-301},{-233,-197,-169,-312,-318,-270},{-184,-329,-262,-290,-331,-304},{-241,-225,-285,-270,-233,-231},{-161,-299,-333,-179,-201,-152},{-277,-187,-300,-250,-216,-169},{-241,-296,-179,-265,-228,-222},{-282,-210,-330,-174,-328,-306},{-228,-288,-287,-322,-245,-253},{-334,-207,-328,-206,-198,-195},{-295,-197,-262,-308,-223,-195}}},{{{-181,-274,-226,-313,-214,-237},{-403,-232,-409,-319,-370,-222},{-319,-400,-394,-397,-211,-260},{-193,-190,-400,-217,-184,-364},{-250,-319,-235,-331,-331,-379},{-229,-349,-268,-271,-253,-278},{-373,-232,-355,-310,-268,-403},{-313,-280,-190,-325,-409,-243},{-352,-235,-382,-256,-259,-329},{-253,-352,-244,-181,-274,-332},{-292,-376,-253,-298,-292,-246},{-358,-229,-361,-241,-241,-308},{-247,-256,-220,-256,-415,-320},{-364,-352,-370,-298,-181,-361},{-238,-283,-412,-256,-274,-222},{-340,-343,-325,-310,-289,-358},{-283,-322,-349,-295,-310,-219},{-337,-289,-391,-214,-265,-249},{-370,-367,-397,-337,-334,-370},{-337,-319,-394,-379,-415,-302},{-265,-313,-241,-358,-340,-266},{-205,-220,-400,-352,-409,-192},{-223,-211,-226,-247,-367,-367},{-343,-415,-259,-262,-220,-222},{-211,-373,-367,-316,-334,-370},{-235,-190,-301,-364,-418,-370},{-364,-202,-232,-328,-415,-379},{-235,-292,-205,-334,-331,-255},{-322,-343,-196,-352,-400,-252},{-382,-310,-343,-397,-262,-278},{-382,-190,-418,-265,-370,-403},{-274,-361,-406,-400,-217,-189},{-421,-223,-181,-223,-220,-367},{-235,-277,-358,-265,-199,-231},{-328,-190,-352,-274,-286,-373},{-214,-388,-199,-235,-229,-296},{-262,-385,-403,-250,-181,-334},{-397,-370,-400,-421,-223,-195},{-202,-382,-337,-280,-286,-201},{-202,-322,-256,-238,-373,-397},{-325,-397,-256,-391,-187,-314},{-337,-343,-409,-376,-301,-290},{-370,-385,-334,-244,-340,-269},{-394,-307,-283,-271,-331,-225},{-298,-328,-223,-355,-271,-210},{-268,-304,-196,-415,-205,-275},{-328,-301,-268,-307,-265,-278},{-346,-271,-313,-355,-286,-192},{-301,-331,-208,-325,-307,-213},{-265,-397,-304,-184,-358,-403}},{{-196,-356,-274,-303,-313,-311},{-334,-327,-280,-328,-342,-270},{-357,-281,-356,-218,-246,-206},{-196,-261,-333,-363,-281,-352},{-387,-304,-224,-229,-252,-195},{-261,-253,-286,-172,-233,-329},{-190,-356,-300,-172,-254,-180},{-334,-189,-168,-306,-162,-257},{-229,-247,-207,-229,-358,-296},{-202,-290,-199,-336,-262,-350},{-281,-181,-389,-210,-299,-208},{-355,-207,-280,-243,-331,-208},{-355,-273,-370,-352,-371,-262},{-378,-353,-176,-262,-286,-357},{-401,-367,-356,-273,-175,-355},{-176,-333,-311,-358,-276,-203},{-396,-187,-168,-167,-215,-198},{-308,-238,-207,-257,-188,-288},{-229,-373,-252,-240,-228,-260},{-211,-192,-182,-177,-315,-182},{-378,-195,-269,-382,-342,-177},{-296,-396,-297,-278,-238,-198},{-299,-198,-196,-197,-270,-298},{-220,-321,-302,-311,-352,-332},{-264,-367,-213,-341,-371,-303},{-349,-175,-308,-248,-265,-157},{-293,-241,-263,-194,-178,-190},{-357,-321,-314,-374,-180,-226},{-264,-201,-232,-167,-193,-337},{-302,-387,-174,-289,-313,-296},{-252,-393,-258,-330,-329,-283},{-182,-301,-283,-358,-278,-321},{-305,-218,-325,-339,-281,-229},{-196,-273,-316,-287,-334,-208},{-220,-319,-353,-257,-307,-355},{-346,-316,-202,-308,-360,-234},{-226,-333,-174,-347,-289,-275},{-243,-207,-384,-292,-286,-200},{-217,-230,-322,-333,-223,-360},{-188,-187,-342,-213,-315,-267},{-316,-232,-381,-254,-337,-231},{-281,-310,-350,-257,-368,-296},{-299,-195,-364,-207,-292,-342},{-214,-258,-392,-314,-347,-157},{-205,-330,-333,-355,-252,-267},{-275,-241,-258,-216,-228,-296},{-319,-253,-230,-224,-223,-303},{-196,-284,-274,-289,-212,-242},{-302,-192,-196,-169,-284,-244},{-220,-356,-311,-347,-313,-244}},{{-300,-226,-291,-274,-197,-218},{-206,-158,-243,-274,-208,-250},{-308,-278,-263,-166,-206,-135},{-253,-276,-302,-290,-250,-216},{-171,-283,-147,-292,-261,-154},{-253,-221,-204,-150,-280,-141},{-310,-293,-295,-292,-129,-240},{-293,-190,-144,-141,-269,-135},{-305,-334,-142,-137,-276,-141},{-198,-156,-160,-164,-248,-196},{-218,-211,-309,-261,-148,-267},{-250,-298,-169,-228,-151,-143},{-208,-271,-208,-245,-278,-168},{-278,-310,-144,-276,-193,-174},{-184,-202,-289,-197,-176,-196},{-288,-324,-279,-157,-237,-194},{-188,-240,-256,-194,-142,-168},{-218,-199,-243,-181,-151,-137},{-243,-302,-259,-139,-172,-279},{-298,-257,-314,-239,-250,-242},{-295,-322,-188,-161,-184,-240},{-233,-233,-321,-272,-127,-248},{-347,-194,-300,-225,-248,-244},{-238,-281,-218,-292,-252,-214},{-243,-245,-273,-139,-134,-152},{-248,-334,-197,-272,-144,-224},{-198,-146,-305,-292,-161,-200},{-164,-202,-300,-157,-244,-164},{-188,-175,-204,-256,-295,-210},{-236,-278,-256,-307,-136,-220},{-288,-288,-318,-221,-229,-259},{-250,-336,-295,-152,-250,-277},{-278,-154,-183,-254,-246,-145},{-151,-326,-213,-250,-187,-127},{-275,-334,-172,-230,-134,-180},{-201,-266,-197,-228,-187,-277},{-191,-206,-259,-159,-212,-129},{-322,-276,-220,-241,-248,-279},{-154,-298,-140,-298,-197,-166},{-268,-187,-158,-287,-250,-149},{-340,-242,-188,-296,-153,-228},{-238,-199,-275,-276,-153,-166},{-270,-182,-183,-197,-184,-238},{-211,-319,-183,-276,-204,-176},{-193,-269,-199,-243,-290,-160},{-248,-269,-183,-170,-273,-269},{-273,-259,-211,-214,-212,-202},{-223,-158,-231,-250,-144,-137},{-250,-307,-321,-223,-246,-194},{-216,-326,-314,-192,-280,-135}}},{{{-332,-287,-336,-276,-336,-262},{-360,-357,-248,-228,-389,-322},{-434,-416,-392,-462,-241,-476},{-287,-284,-248,-318,-256,-357},{-294,-490,-248,-413,-462,-392},{-354,-416,-378,-217,-273,-413},{-287,-466,-231,-360,-480,-332},{-256,-252,-245,-350,-234,-413},{-395,-441,-280,-214,-444,-217},{-322,-462,-402,-262,-469,-357},{-438,-360,-402,-298,-326,-413},{-374,-270,-248,-466,-368,-322},{-234,-287,-483,-434,-487,-266},{-318,-276,-346,-480,-270,-231},{-378,-224,-382,-434,-346,-280},{-416,-378,-458,-315,-298,-364},{-399,-262,-238,-343,-413,-304},{-402,-368,-480,-234,-354,-392},{-256,-420,-487,-220,-364,-378},{-395,-266,-455,-483,-476,-389},{-354,-444,-336,-424,-259,-217},{-340,-392,-259,-312,-410,-420},{-210,-395,-214,-259,-234,-312},{-312,-290,-245,-462,-224,-395},{-441,-214,-294,-416,-315,-438},{-473,-469,-259,-224,-301,-252},{-304,-273,-220,-224,-452,-427},{-245,-427,-329,-217,-395,-382},{-210,-392,-256,-430,-360,-483},{-298,-329,-402,-410,-458,-490},{-280,-395,-308,-410,-416,-476},{-231,-231,-241,-214,-392,-273},{-354,-441,-441,-395,-438,-294},{-284,-462,-371,-392,-332,-406},{-434,-266,-392,-231,-430,-350},{-329,-220,-217,-262,-455,-434},{-248,-259,-312,-266,-266,-262},{-480,-238,-360,-354,-413,-220},{-343,-392,-308,-301,-354,-284},{-374,-434,-490,-406,-270,-354},{-466,-490,-430,-336,-427,-487},{-360,-469,-420,-346,-287,-308},{-483,-252,-399,-455,-210,-406},{-224,-276,-392,-368,-444,-304},{-210,-406,-416,-350,-304,-248},{-336,-466,-413,-315,-231,-266},{-476,-385,-336,-273,-245,-357},{-354,-389,-395,-322,-406,-434},{-217,-346,-410,-462,-452,-382},{-329,-406,-413,-480,-368,-259}},{{-487,-268,-207,-347,-394,-203},{-282,-449,-271,-204,-446,-316},{-223,-220,-451,-387,-266,-242},{-470,-374,-349,-257,-387,-200},{-449,-213,-251,-431,-453,-293},{-473,-223,-244,-371,-449,-248},{-237,-278,-237,-327,-249,-238},{-358,-388,-305,-454,-436,-325},{-264,-326,-288,-230,-374,-200},{-334,-370,-380,-204,-312,-383},{-473,-288,-336,-204,-256,-225},{-271,-480,-210,-384,-282,-277},{-397,-271,-339,-317,-197,-351},{-480,-343,-461,-441,-276,-264},{-324,-388,-464,-317,-430,-361},{-331,-302,-393,-291,-197,-435},{-355,-377,-380,-428,-213,-270},{-209,-237,-471,-331,-253,-316},{-278,-425,-258,-364,-272,-264},{-411,-244,-217,-267,-328,-383},{-306,-377,-308,-291,-295,-325},{-264,-274,-383,-424,-216,-374},{-219,-429,-471,-284,-341,-206},{-303,-305,-254,-434,-223,-328},{-317,-322,-298,-421,-325,-422},{-230,-316,-329,-414,-318,-431},{-369,-209,-400,-381,-331,-451},{-310,-470,-227,-387,-233,-274},{-230,-439,-254,-331,-259,-296},{-320,-271,-454,-317,-328,-419},{-400,-432,-386,-458,-335,-209},{-275,-274,-410,-354,-302,-270},{-334,-425,-271,-468,-426,-428},{-484,-322,-461,-240,-203,-415},{-237,-367,-278,-264,-285,-242},{-310,-336,-234,-347,-377,-213},{-369,-343,-363,-307,-328,-209},{-240,-422,-407,-341,-230,-293},{-418,-220,-275,-391,-213,-435},{-435,-274,-234,-374,-453,-270},{-254,-477,-353,-277,-272,-341},{-244,-391,-220,-264,-443,-264},{-390,-233,-214,-271,-295,-386},{-296,-429,-370,-210,-377,-251},{-365,-398,-403,-200,-449,-377},{-407,-223,-234,-424,-348,-219},{-226,-346,-312,-301,-292,-254},{-477,-429,-349,-237,-344,-380},{-306,-292,-234,-407,-197,-374},{-289,-364,-366,-451,-262,-386}},{{-258,-403,-264,-281,-279,-336},{-230,-213,-201,-220,-322,-320},{-340,-376,-384,-176,-279,-331},{-340,-271,-312,-369,-217,-186},{-318,-403,-414,-378,-376,-236},{-403,-363,-228,-205,-200,-253},{-195,-246,-285,-287,-214,-361},{-403,-339,-345,-190,-202,-259},{-422,-246,-297,-278,-194,-317},{-280,-240,-408,-407,-356,-345},{-227,-388,-228,-211,-200,-364},{-331,-274,-333,-302,-333,-309},{-208,-256,-333,-404,-188,-311},{-365,-370,-306,-249,-311,-336},{-387,-216,-279,-234,-245,-286},{-419,-228,-414,-302,-288,-253},{-372,-237,-342,-220,-331,-342},{-422,-413,-339,-346,-359,-181},{-362,-367,-207,-275,-305,-222},{-403,-357,-258,-393,-379,-331},{-410,-422,-321,-352,-399,-197},{-205,-351,-216,-372,-211,-295},{-271,-336,-273,-355,-191,-342},{-236,-302,-246,-363,-348,-314},{-309,-333,-309,-316,-385,-242},{-384,-323,-396,-272,-399,-278},{-214,-370,-210,-360,-271,-284},{-227,-376,-195,-308,-256,-361},{-195,-376,-336,-182,-248,-386},{-220,-219,-354,-278,-200,-275},{-384,-268,-258,-264,-274,-295},{-428,-213,-240,-360,-194,-325},{-410,-243,-225,-249,-393,-192},{-309,-249,-189,-328,-171,-261},{-343,-422,-273,-278,-274,-200},{-416,-246,-231,-305,-182,-311},{-422,-280,-339,-363,-282,-195},{-280,-299,-261,-407,-248,-389},{-403,-290,-324,-231,-171,-331},{-350,-367,-279,-366,-222,-186},{-346,-293,-243,-393,-188,-342},{-236,-416,-309,-211,-237,-183},{-403,-373,-324,-231,-214,-350},{-255,-191,-216,-319,-370,-181},{-410,-428,-318,-334,-365,-325},{-274,-197,-390,-387,-399,-364},{-328,-200,-312,-196,-222,-195},{-441,-323,-195,-308,-271,-217},{-268,-351,-387,-316,-251,-348},{-369,-416,-393,-346,-222,-370}}}}; // 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,4,2,6,3,2,6,3,3,7,4,3,7,4,3,7,4,3,7,4,3,8,4,3,7,4,3,8,4,3,7,4,3,8,4,3,9,4,3,8,4,3,8,4,3,8,4,3,9,4,3,8,4,3,7,4,3,7,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}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,0,4,8,12,1,7,2,4,6,8,10,12,2,6,10,2,8,1,3,5,7,9,11,2,6,10,0,6,12,2,4,6,8,10,12,14,0,4,8,12,1,7,13,1,3,5,7,9,11,13,2,6,10,14,0,6,12,2,4,6,8,10,12,14,1,5,9,13,2,8,14,2,4,6,8,10,12,14,0,4,8,12,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,2,4,6,8,10,12,14,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,2,4,6,8,10,12,14,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,2,4,6,8,10,12,14,16,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,2,4,6,8,10,12,14,16,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,0,4,8,12,2,8,14,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,0,4,8,12,2,8,14,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,2,6,10,14,0,6,12}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,5,9,13,17,6,12,7,9,11,13,15,17,7,11,15,7,13,6,8,10,12,14,16,7,11,15,5,11,17,5,7,9,11,13,15,17,3,7,11,15,4,10,16,4,6,8,10,12,14,16,5,9,13,17,3,9,15,5,7,9,11,13,15,17,4,8,12,16,5,11,17,4,6,8,10,12,14,16,2,6,10,14,4,10,16,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,4,6,8,10,12,14,16,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,4,6,8,10,12,14,16,3,7,11,15,4,10,16,2,4,6,8,10,12,14,16,4,8,12,16,3,9,15,1,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,1,7,13,1,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,4,6,8,10,12,14,16,2,6,10,14,2,8,14,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,3,9,15,5,7,9,11,13,15,17,3,7,11,15,5,11,17,5,7,9,11,13,15,17,5,9,13,17,4,10,16,5,7,9,11,13,15,17,5,9,13,17,3,9,15}; // set of end times of each shipment 
