int Dev = 20;// Deviation
extern const int CNN = 5;// Case Index
extern const int P = 3;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 18;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 347;//Number of shipments
extern const int SN = 50;//Number of scenarios at each stage
extern const int MBSN = 8;//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]={{{{12502,0,0,0,0,0},{12790,0,0,0,0,0},{12327,0,0,0,0,0},{12668,0,0,0,0,0},{12097,0,0,0,0,0},{12515,0,0,0,0,0},{12370,0,0,0,0,0},{12635,0,0,0,0,0},{12080,0,0,0,0,0},{12483,0,0,0,0,0},{12396,0,0,0,0,0},{12169,0,0,0,0,0},{12387,0,0,0,0,0},{12528,0,0,0,0,0},{12130,0,0,0,0,0},{12220,0,0,0,0,0},{12238,0,0,0,0,0},{12419,0,0,0,0,0},{12894,0,0,0,0,0},{12805,0,0,0,0,0},{12211,0,0,0,0,0},{12107,0,0,0,0,0},{12762,0,0,0,0,0},{12522,0,0,0,0,0},{12186,0,0,0,0,0},{12728,0,0,0,0,0},{12480,0,0,0,0,0},{12626,0,0,0,0,0},{12439,0,0,0,0,0},{12642,0,0,0,0,0},{12559,0,0,0,0,0},{12115,0,0,0,0,0},{12348,0,0,0,0,0},{12745,0,0,0,0,0},{12295,0,0,0,0,0},{12611,0,0,0,0,0},{12359,0,0,0,0,0},{12295,0,0,0,0,0},{12443,0,0,0,0,0},{12257,0,0,0,0,0},{11985,0,0,0,0,0},{12617,0,0,0,0,0},{12278,0,0,0,0,0},{12501,0,0,0,0,0},{11897,0,0,0,0,0},{12078,0,0,0,0,0},{12494,0,0,0,0,0},{12416,0,0,0,0,0},{12351,0,0,0,0,0},{12289,0,0,0,0,0}},{{12172,0,0,0,0,0},{12288,0,0,0,0,0},{12047,0,0,0,0,0},{12002,0,0,0,0,0},{12272,0,0,0,0,0},{12455,0,0,0,0,0},{12351,0,0,0,0,0},{12012,0,0,0,0,0},{12504,0,0,0,0,0},{12255,0,0,0,0,0},{12582,0,0,0,0,0},{12289,0,0,0,0,0},{12343,0,0,0,0,0},{12351,0,0,0,0,0},{12512,0,0,0,0,0},{12331,0,0,0,0,0},{12109,0,0,0,0,0},{12405,0,0,0,0,0},{12464,0,0,0,0,0},{12842,0,0,0,0,0},{12115,0,0,0,0,0},{12403,0,0,0,0,0},{12283,0,0,0,0,0},{12394,0,0,0,0,0},{12040,0,0,0,0,0},{12614,0,0,0,0,0},{12136,0,0,0,0,0},{12343,0,0,0,0,0},{12185,0,0,0,0,0},{12152,0,0,0,0,0},{12454,0,0,0,0,0},{12171,0,0,0,0,0},{12548,0,0,0,0,0},{12168,0,0,0,0,0},{12542,0,0,0,0,0},{12359,0,0,0,0,0},{12601,0,0,0,0,0},{12875,0,0,0,0,0},{12463,0,0,0,0,0},{12395,0,0,0,0,0},{12487,0,0,0,0,0},{12190,0,0,0,0,0},{12328,0,0,0,0,0},{12277,0,0,0,0,0},{12384,0,0,0,0,0},{12257,0,0,0,0,0},{12511,0,0,0,0,0},{12437,0,0,0,0,0},{12819,0,0,0,0,0},{12685,0,0,0,0,0}},{{11635,0,0,0,0,0},{11613,0,0,0,0,0},{11561,0,0,0,0,0},{11495,0,0,0,0,0},{11043,0,0,0,0,0},{11278,0,0,0,0,0},{11475,0,0,0,0,0},{11398,0,0,0,0,0},{11862,0,0,0,0,0},{11816,0,0,0,0,0},{11324,0,0,0,0,0},{11505,0,0,0,0,0},{11375,0,0,0,0,0},{11489,0,0,0,0,0},{11822,0,0,0,0,0},{11436,0,0,0,0,0},{11537,0,0,0,0,0},{11171,0,0,0,0,0},{11260,0,0,0,0,0},{11673,0,0,0,0,0},{11609,0,0,0,0,0},{11337,0,0,0,0,0},{11775,0,0,0,0,0},{11469,0,0,0,0,0},{11160,0,0,0,0,0},{11192,0,0,0,0,0},{11846,0,0,0,0,0},{11474,0,0,0,0,0},{11206,0,0,0,0,0},{11455,0,0,0,0,0},{11447,0,0,0,0,0},{11679,0,0,0,0,0},{11595,0,0,0,0,0},{11651,0,0,0,0,0},{11655,0,0,0,0,0},{11363,0,0,0,0,0},{11370,0,0,0,0,0},{11381,0,0,0,0,0},{11565,0,0,0,0,0},{11621,0,0,0,0,0},{11393,0,0,0,0,0},{11758,0,0,0,0,0},{11752,0,0,0,0,0},{11580,0,0,0,0,0},{11623,0,0,0,0,0},{11584,0,0,0,0,0},{11751,0,0,0,0,0},{11481,0,0,0,0,0},{11619,0,0,0,0,0},{11448,0,0,0,0,0}}},{{{-259,-270,-279,-318,-353,-338},{-309,-341,-335,-291,-353,-312},{-262,-282,-270,-291,-323,-309},{-276,-350,-235,-285,-238,-262},{-329,-306,-285,-241,-338,-235},{-312,-268,-276,-256,-285,-347},{-273,-273,-291,-341,-318,-338},{-294,-315,-262,-309,-241,-238},{-282,-270,-312,-306,-253,-256},{-253,-241,-353,-270,-312,-253},{-320,-238,-326,-326,-350,-326},{-288,-285,-323,-259,-279,-288},{-312,-235,-253,-241,-344,-329},{-297,-253,-276,-282,-341,-297},{-306,-347,-288,-309,-273,-279},{-291,-235,-303,-279,-300,-250},{-323,-294,-268,-294,-276,-329},{-294,-250,-300,-244,-303,-347},{-270,-288,-341,-332,-268,-250},{-282,-347,-353,-323,-268,-318},{-238,-329,-344,-259,-270,-312},{-241,-259,-282,-250,-250,-338},{-332,-350,-270,-262,-235,-306},{-344,-259,-250,-256,-291,-344},{-253,-315,-282,-256,-320,-250},{-335,-318,-315,-285,-309,-238},{-279,-347,-306,-282,-259,-256},{-273,-332,-312,-285,-309,-350},{-282,-341,-341,-279,-297,-256},{-253,-338,-338,-309,-329,-235},{-353,-332,-306,-315,-235,-253},{-300,-338,-303,-291,-244,-320},{-323,-247,-347,-282,-276,-309},{-294,-294,-294,-276,-326,-350},{-318,-250,-235,-335,-294,-250},{-294,-241,-294,-329,-247,-259},{-259,-312,-353,-320,-247,-335},{-338,-303,-238,-320,-244,-294},{-276,-244,-279,-238,-291,-247},{-238,-288,-294,-238,-273,-282},{-315,-285,-315,-273,-291,-235},{-303,-247,-312,-291,-244,-265},{-262,-306,-253,-306,-244,-256},{-347,-344,-329,-288,-297,-291},{-247,-318,-323,-247,-326,-297},{-262,-235,-253,-315,-259,-259},{-318,-276,-315,-323,-262,-344},{-270,-350,-353,-262,-235,-273},{-247,-238,-335,-320,-282,-282},{-288,-320,-309,-315,-270,-285}},{{-281,-326,-286,-312,-280,-285},{-244,-272,-249,-258,-270,-236},{-276,-337,-297,-219,-318,-267},{-325,-237,-274,-293,-312,-295},{-342,-240,-249,-236,-227,-256},{-287,-252,-232,-312,-216,-264},{-255,-337,-300,-279,-291,-264},{-241,-237,-252,-249,-230,-246},{-310,-315,-269,-247,-318,-280},{-258,-275,-232,-277,-275,-223},{-296,-269,-283,-269,-280,-215},{-336,-306,-286,-312,-264,-267},{-264,-332,-300,-315,-302,-210},{-348,-303,-283,-241,-243,-308},{-345,-266,-235,-263,-259,-243},{-244,-277,-328,-252,-219,-254},{-290,-240,-291,-255,-270,-300},{-241,-295,-291,-312,-280,-251},{-307,-237,-291,-277,-254,-308},{-310,-306,-330,-252,-254,-300},{-313,-269,-266,-260,-222,-220},{-310,-315,-294,-310,-230,-246},{-238,-232,-300,-279,-299,-269},{-244,-266,-319,-249,-222,-264},{-267,-280,-238,-249,-256,-277},{-246,-329,-300,-247,-235,-254},{-319,-323,-232,-236,-275,-243},{-339,-289,-227,-304,-278,-259},{-238,-297,-238,-307,-267,-311},{-244,-255,-230,-296,-272,-251},{-261,-317,-258,-323,-267,-311},{-299,-312,-300,-222,-307,-251},{-264,-275,-333,-285,-278,-267},{-348,-286,-230,-252,-315,-259},{-339,-269,-252,-219,-230,-300},{-284,-232,-316,-290,-267,-212},{-246,-295,-336,-290,-312,-295},{-328,-303,-269,-288,-280,-251},{-255,-292,-316,-255,-254,-295},{-348,-323,-263,-247,-264,-212},{-290,-266,-330,-247,-267,-269},{-246,-255,-325,-288,-262,-215},{-319,-326,-336,-290,-227,-275},{-232,-235,-330,-241,-294,-277},{-252,-343,-255,-241,-291,-231},{-261,-280,-238,-310,-304,-275},{-296,-249,-314,-285,-256,-277},{-348,-326,-260,-266,-246,-264},{-307,-309,-336,-315,-224,-256},{-322,-323,-266,-312,-312,-300}},{{-245,-257,-228,-244,-257,-179},{-205,-264,-217,-262,-203,-190},{-292,-211,-240,-215,-214,-231},{-250,-237,-249,-215,-193,-237},{-222,-213,-235,-251,-240,-231},{-285,-271,-252,-199,-203,-200},{-280,-208,-245,-246,-197,-183},{-215,-203,-256,-217,-244,-194},{-298,-220,-200,-260,-227,-245},{-278,-194,-277,-244,-257,-239},{-298,-220,-191,-220,-171,-167},{-202,-242,-196,-206,-184,-183},{-228,-223,-226,-181,-225,-212},{-200,-215,-217,-262,-220,-216},{-252,-211,-231,-224,-223,-218},{-225,-264,-217,-179,-235,-177},{-208,-198,-233,-186,-188,-185},{-208,-198,-221,-184,-210,-165},{-222,-235,-231,-190,-188,-237},{-260,-247,-219,-186,-229,-167},{-255,-288,-217,-217,-216,-167},{-282,-198,-203,-244,-188,-212},{-288,-225,-193,-215,-229,-206},{-282,-208,-240,-222,-188,-227},{-255,-211,-217,-199,-246,-210},{-205,-232,-245,-197,-223,-229},{-202,-286,-228,-237,-193,-245},{-218,-225,-263,-179,-210,-212},{-225,-261,-240,-213,-197,-196},{-215,-244,-249,-181,-180,-206},{-262,-269,-200,-181,-205,-200},{-248,-218,-217,-215,-231,-198},{-255,-215,-205,-206,-225,-196},{-242,-213,-189,-181,-235,-167},{-282,-283,-205,-202,-214,-227},{-260,-235,-247,-197,-190,-171},{-218,-208,-221,-228,-193,-165},{-295,-254,-196,-240,-242,-187},{-238,-201,-270,-267,-210,-187},{-262,-281,-240,-204,-244,-171},{-208,-198,-277,-195,-208,-175},{-218,-273,-238,-220,-214,-231},{-235,-278,-275,-255,-233,-206},{-248,-227,-226,-249,-238,-165},{-232,-257,-231,-184,-190,-247},{-232,-196,-203,-228,-216,-192},{-220,-247,-259,-242,-218,-220},{-225,-254,-273,-249,-171,-247},{-255,-198,-231,-260,-203,-171},{-228,-254,-231,-179,-257,-190}}},{{{-146,-137,-200,-177,-195,-220},{-160,-181,-187,-183,-160,-155},{-192,-137,-154,-174,-182,-199},{-170,-150,-150,-143,-171,-216},{-178,-169,-203,-192,-208,-225},{-175,-161,-147,-181,-221,-164},{-160,-154,-156,-154,-217,-162},{-198,-135,-177,-215,-202,-201},{-173,-164,-180,-147,-149,-218},{-156,-142,-177,-200,-153,-166},{-168,-139,-178,-197,-166,-155},{-180,-194,-154,-190,-193,-170},{-197,-150,-182,-192,-208,-157},{-144,-194,-158,-156,-201,-218},{-193,-177,-140,-147,-169,-153},{-176,-177,-196,-202,-199,-183},{-171,-179,-142,-208,-213,-218},{-185,-172,-161,-154,-186,-181},{-156,-189,-177,-199,-193,-229},{-148,-159,-159,-190,-184,-157},{-144,-139,-193,-179,-221,-157},{-143,-194,-205,-206,-182,-225},{-144,-157,-152,-193,-147,-159},{-197,-142,-210,-184,-202,-201},{-161,-157,-140,-183,-219,-172},{-188,-144,-208,-193,-171,-197},{-193,-166,-186,-199,-199,-223},{-166,-188,-189,-174,-186,-170},{-181,-166,-140,-143,-180,-199},{-202,-166,-208,-165,-175,-155},{-171,-172,-198,-183,-201,-159},{-180,-144,-164,-199,-160,-183},{-141,-166,-149,-163,-147,-222},{-156,-152,-210,-177,-186,-201},{-146,-142,-158,-163,-178,-216},{-181,-184,-158,-177,-171,-164},{-165,-159,-175,-147,-201,-193},{-168,-189,-206,-159,-190,-197},{-195,-194,-154,-170,-166,-162},{-155,-172,-180,-213,-193,-208},{-166,-149,-170,-199,-197,-220},{-155,-191,-177,-190,-195,-218},{-193,-167,-205,-211,-166,-166},{-139,-154,-208,-215,-155,-208},{-171,-198,-156,-184,-208,-168},{-148,-189,-198,-165,-153,-204},{-168,-179,-200,-215,-171,-183},{-151,-199,-140,-181,-217,-178},{-156,-176,-189,-174,-212,-227},{-178,-142,-210,-165,-186,-174}},{{-216,-223,-249,-248,-215,-250},{-182,-228,-217,-248,-263,-207},{-238,-217,-213,-181,-218,-262},{-184,-219,-190,-254,-231,-202},{-160,-211,-207,-188,-250,-276},{-168,-207,-204,-225,-222,-226},{-164,-246,-211,-250,-224,-198},{-160,-195,-190,-250,-199,-205},{-172,-168,-194,-228,-199,-198},{-226,-172,-219,-192,-252,-214},{-168,-180,-236,-194,-199,-217},{-170,-221,-173,-265,-220,-233},{-170,-164,-185,-179,-215,-224},{-210,-209,-245,-245,-261,-214},{-172,-230,-204,-183,-199,-228},{-194,-174,-236,-250,-213,-274},{-186,-240,-202,-241,-273,-219},{-182,-203,-243,-254,-245,-233},{-232,-219,-256,-230,-229,-226},{-216,-209,-213,-259,-261,-231},{-170,-238,-196,-208,-192,-207},{-212,-219,-256,-241,-202,-214},{-186,-189,-181,-219,-195,-255},{-164,-197,-245,-221,-208,-278},{-208,-178,-181,-186,-208,-202},{-226,-244,-243,-254,-208,-200},{-182,-176,-211,-243,-195,-274},{-226,-230,-204,-236,-190,-243},{-164,-203,-177,-199,-268,-221},{-198,-219,-245,-230,-270,-264},{-236,-168,-196,-223,-229,-226},{-200,-170,-226,-190,-275,-240},{-210,-172,-204,-206,-273,-202},{-162,-228,-192,-194,-234,-221},{-238,-219,-247,-225,-199,-269},{-174,-191,-183,-239,-254,-283},{-160,-228,-230,-252,-261,-200},{-176,-230,-200,-250,-261,-264},{-210,-189,-196,-263,-215,-212},{-182,-205,-224,-183,-218,-209},{-236,-189,-196,-192,-238,-238},{-202,-221,-194,-208,-224,-193},{-224,-219,-173,-197,-240,-195},{-202,-187,-194,-201,-234,-286},{-176,-228,-177,-221,-195,-245},{-192,-193,-211,-181,-215,-278},{-226,-170,-236,-243,-245,-269},{-182,-211,-202,-234,-229,-224},{-210,-219,-173,-214,-247,-262},{-174,-189,-181,-243,-222,-276}},{{-245,-242,-217,-286,-258,-275},{-252,-204,-312,-227,-269,-331},{-207,-288,-220,-305,-266,-303},{-262,-209,-254,-248,-296,-238},{-220,-301,-223,-267,-263,-241},{-242,-293,-241,-248,-271,-249},{-230,-265,-231,-319,-235,-232},{-245,-283,-249,-316,-238,-294},{-259,-237,-288,-230,-269,-320},{-259,-237,-309,-267,-241,-334},{-207,-204,-283,-243,-288,-280},{-220,-224,-275,-278,-252,-314},{-225,-250,-272,-265,-319,-272},{-282,-235,-299,-232,-247,-306},{-203,-240,-241,-300,-288,-303},{-203,-209,-228,-227,-271,-320},{-245,-270,-272,-278,-280,-255},{-198,-212,-293,-302,-324,-340},{-235,-204,-231,-267,-260,-255},{-245,-230,-280,-262,-291,-241},{-294,-222,-296,-305,-296,-263},{-262,-219,-223,-284,-321,-331},{-262,-258,-252,-286,-305,-331},{-225,-212,-314,-297,-224,-300},{-274,-217,-212,-259,-321,-314},{-200,-219,-272,-216,-294,-272},{-267,-270,-217,-313,-332,-337},{-269,-280,-296,-259,-307,-232},{-279,-286,-249,-300,-247,-269},{-269,-219,-267,-324,-274,-263},{-267,-301,-254,-232,-230,-266},{-217,-280,-241,-235,-288,-294},{-203,-222,-312,-238,-233,-340},{-282,-235,-246,-313,-283,-241},{-284,-270,-293,-286,-269,-283},{-282,-222,-238,-216,-249,-331},{-245,-258,-210,-232,-294,-263},{-210,-263,-225,-321,-258,-300},{-259,-237,-293,-319,-227,-331},{-294,-230,-291,-286,-319,-311},{-264,-298,-278,-319,-283,-289},{-262,-227,-299,-308,-291,-314},{-267,-214,-254,-235,-244,-294},{-203,-252,-304,-297,-271,-328},{-230,-237,-283,-324,-263,-283},{-203,-207,-228,-243,-233,-325},{-296,-219,-249,-230,-247,-340},{-212,-247,-244,-262,-271,-294},{-207,-250,-220,-235,-238,-328},{-257,-219,-236,-238,-233,-260}}},{{{-375,-293,-322,-336,-322,-332},{-332,-359,-266,-306,-286,-362},{-303,-349,-362,-342,-290,-319},{-276,-359,-303,-342,-332,-395},{-352,-286,-270,-313,-286,-322},{-392,-293,-316,-290,-263,-385},{-355,-362,-270,-280,-283,-392},{-290,-385,-313,-378,-266,-392},{-339,-276,-316,-283,-316,-385},{-303,-309,-355,-332,-365,-392},{-273,-349,-332,-326,-336,-336},{-362,-273,-296,-283,-266,-296},{-345,-342,-342,-336,-322,-293},{-332,-322,-375,-388,-368,-339},{-276,-388,-378,-375,-359,-280},{-313,-290,-355,-326,-395,-273},{-339,-263,-263,-309,-286,-309},{-263,-329,-299,-319,-336,-355},{-322,-352,-395,-355,-359,-316},{-378,-339,-368,-276,-326,-276},{-273,-296,-352,-296,-339,-352},{-372,-303,-306,-290,-375,-313},{-382,-359,-290,-332,-392,-382},{-270,-309,-365,-368,-395,-349},{-313,-342,-280,-316,-276,-382},{-299,-349,-339,-392,-365,-349},{-276,-359,-273,-339,-296,-263},{-392,-355,-316,-326,-336,-365},{-349,-273,-342,-313,-372,-290},{-303,-372,-352,-336,-385,-263},{-349,-266,-273,-329,-309,-365},{-378,-326,-316,-349,-319,-286},{-280,-306,-352,-332,-365,-290},{-286,-329,-342,-270,-336,-342},{-359,-345,-355,-355,-345,-332},{-375,-313,-359,-299,-303,-319},{-266,-270,-355,-382,-273,-342},{-276,-375,-362,-352,-368,-306},{-349,-342,-293,-316,-392,-276},{-266,-296,-378,-283,-388,-283},{-309,-322,-362,-339,-382,-336},{-368,-326,-372,-388,-392,-382},{-266,-280,-332,-388,-339,-273},{-306,-355,-365,-375,-299,-352},{-372,-395,-349,-309,-336,-342},{-339,-299,-385,-290,-375,-306},{-270,-362,-306,-313,-316,-319},{-319,-316,-309,-368,-306,-286},{-365,-365,-375,-306,-392,-296},{-293,-329,-359,-263,-326,-362}},{{-285,-261,-262,-311,-342,-280},{-289,-328,-306,-336,-348,-328},{-298,-267,-370,-333,-259,-295},{-282,-357,-290,-355,-336,-298},{-348,-267,-367,-339,-348,-334},{-325,-332,-313,-327,-330,-265},{-279,-270,-345,-377,-370,-340},{-325,-370,-313,-342,-296,-346},{-262,-316,-357,-367,-308,-334},{-351,-280,-376,-333,-259,-307},{-341,-283,-309,-355,-357,-241},{-315,-261,-290,-261,-339,-265},{-295,-316,-370,-283,-259,-268},{-272,-374,-306,-270,-283,-322},{-289,-293,-290,-251,-363,-340},{-387,-264,-284,-305,-256,-283},{-262,-319,-255,-276,-302,-313},{-305,-338,-271,-301,-268,-283},{-354,-325,-364,-361,-280,-259},{-390,-380,-351,-361,-348,-337},{-266,-280,-319,-311,-305,-262},{-298,-258,-290,-323,-262,-268},{-305,-325,-348,-254,-360,-304},{-354,-258,-329,-301,-290,-325},{-335,-328,-380,-320,-283,-250},{-262,-306,-306,-374,-246,-301},{-354,-322,-309,-292,-259,-271},{-384,-322,-309,-333,-283,-340},{-351,-386,-281,-355,-293,-247},{-295,-306,-290,-257,-311,-283},{-312,-267,-370,-358,-277,-256},{-279,-338,-335,-314,-253,-265},{-358,-312,-309,-301,-370,-331},{-331,-274,-338,-364,-333,-256},{-331,-348,-262,-273,-342,-277},{-262,-283,-303,-298,-360,-280},{-351,-322,-290,-295,-308,-247},{-358,-277,-290,-367,-253,-325},{-394,-357,-287,-355,-253,-301},{-377,-325,-313,-355,-302,-256},{-318,-386,-338,-339,-320,-337},{-321,-351,-325,-286,-280,-358},{-295,-277,-258,-367,-345,-304},{-344,-258,-255,-314,-348,-343},{-315,-303,-322,-377,-308,-262},{-305,-332,-373,-336,-326,-331},{-358,-258,-290,-276,-265,-271},{-390,-325,-287,-264,-305,-307},{-354,-374,-316,-295,-370,-310},{-302,-377,-383,-286,-367,-313}},{{-286,-271,-260,-277,-254,-303},{-345,-340,-305,-226,-268,-288},{-257,-302,-291,-218,-278,-236},{-292,-242,-263,-296,-236,-221},{-248,-331,-266,-231,-238,-272},{-283,-245,-280,-253,-307,-218},{-263,-320,-294,-294,-313,-229},{-304,-311,-230,-234,-268,-298},{-292,-302,-244,-286,-270,-308},{-310,-334,-330,-250,-292,-231},{-316,-265,-255,-237,-254,-254},{-304,-297,-328,-283,-249,-206},{-345,-282,-244,-264,-281,-239},{-289,-259,-286,-302,-233,-236},{-280,-251,-286,-316,-292,-301},{-239,-236,-283,-302,-318,-236},{-313,-259,-314,-267,-257,-211},{-251,-256,-241,-258,-233,-236},{-310,-265,-235,-286,-313,-213},{-313,-288,-252,-310,-257,-249},{-319,-271,-316,-286,-305,-249},{-345,-288,-235,-231,-276,-249},{-310,-236,-224,-231,-313,-301},{-239,-317,-319,-267,-289,-293},{-236,-274,-308,-302,-225,-242},{-345,-311,-269,-267,-228,-285},{-266,-343,-238,-302,-273,-270},{-277,-274,-305,-261,-265,-306},{-286,-291,-277,-223,-225,-278},{-333,-239,-244,-326,-286,-254},{-257,-282,-255,-324,-233,-208},{-313,-245,-297,-305,-294,-213},{-322,-279,-252,-316,-254,-213},{-339,-253,-333,-277,-246,-257},{-333,-274,-311,-269,-257,-239},{-260,-300,-316,-272,-294,-239},{-322,-233,-260,-250,-318,-211},{-345,-242,-258,-218,-289,-288},{-342,-314,-305,-261,-262,-221},{-248,-259,-319,-294,-297,-272},{-304,-239,-244,-231,-265,-247},{-313,-340,-288,-316,-302,-208},{-322,-230,-252,-294,-278,-242},{-330,-346,-232,-234,-244,-234},{-289,-268,-283,-313,-286,-260},{-274,-317,-286,-324,-236,-301},{-301,-343,-311,-239,-292,-298},{-248,-236,-325,-234,-231,-270},{-257,-317,-328,-218,-270,-270},{-298,-233,-333,-310,-257,-213}}},{{{-85,-85,-102,-140,-102,-127},{-123,-108,-108,-94,-142,-102},{-90,-109,-99,-130,-120,-120},{-109,-119,-103,-116,-122,-154},{-109,-116,-128,-122,-116,-131},{-103,-86,-110,-108,-118,-138},{-120,-103,-124,-137,-138,-148},{-101,-95,-120,-117,-98,-138},{-104,-116,-116,-96,-100,-132},{-99,-109,-114,-132,-135,-125},{-121,-95,-114,-116,-116,-111},{-93,-105,-119,-129,-106,-152},{-92,-102,-101,-135,-107,-134},{-113,-96,-122,-136,-140,-143},{-90,-85,-133,-136,-118,-120},{-123,-104,-110,-103,-116,-142},{-94,-87,-102,-95,-98,-140},{-126,-102,-113,-96,-105,-152},{-91,-100,-106,-125,-144,-120},{-89,-87,-115,-116,-128,-125},{-94,-99,-104,-124,-113,-129},{-112,-105,-92,-102,-98,-119},{-99,-121,-129,-129,-128,-152},{-119,-116,-90,-117,-111,-136},{-114,-94,-99,-110,-127,-111},{-96,-111,-113,-126,-112,-122},{-126,-126,-101,-137,-145,-106},{-121,-103,-125,-126,-137,-145},{-117,-88,-125,-137,-105,-106},{-126,-108,-91,-99,-145,-127},{-90,-108,-121,-96,-124,-116},{-92,-100,-91,-109,-98,-115},{-87,-112,-120,-124,-106,-150},{-89,-111,-97,-104,-118,-118},{-106,-106,-125,-104,-107,-125},{-91,-86,-127,-109,-111,-138},{-96,-86,-129,-128,-143,-108},{-94,-96,-97,-94,-145,-102},{-119,-99,-105,-117,-142,-124},{-101,-87,-109,-103,-112,-109},{-113,-107,-130,-109,-129,-106},{-85,-87,-97,-135,-111,-129},{-87,-88,-109,-104,-127,-114},{-120,-87,-115,-119,-140,-122},{-98,-89,-97,-95,-107,-127},{-106,-91,-93,-109,-138,-109},{-86,-93,-115,-99,-131,-122},{-118,-126,-109,-129,-105,-133},{-99,-104,-95,-123,-135,-113},{-110,-91,-134,-110,-132,-106}},{{-136,-125,-154,-129,-147,-155},{-158,-128,-160,-146,-145,-181},{-150,-130,-130,-126,-142,-158},{-119,-114,-120,-161,-171,-176},{-138,-120,-169,-133,-172,-134},{-122,-168,-127,-146,-147,-197},{-161,-165,-172,-132,-138,-186},{-158,-123,-121,-161,-164,-153},{-131,-165,-173,-169,-174,-151},{-139,-145,-173,-126,-188,-198},{-161,-154,-141,-155,-179,-161},{-127,-137,-151,-144,-159,-186},{-148,-118,-141,-186,-187,-156},{-115,-142,-157,-183,-135,-155},{-161,-161,-136,-164,-171,-197},{-117,-131,-157,-133,-138,-185},{-116,-120,-175,-143,-143,-185},{-109,-169,-169,-160,-177,-197},{-112,-151,-142,-124,-158,-180},{-161,-149,-155,-184,-159,-176},{-161,-114,-158,-150,-166,-190},{-109,-120,-133,-184,-167,-180},{-134,-140,-135,-127,-151,-170},{-117,-135,-176,-184,-153,-160},{-134,-127,-118,-130,-175,-178},{-142,-162,-126,-180,-134,-151},{-155,-157,-133,-147,-142,-168},{-117,-141,-129,-132,-166,-195},{-144,-157,-123,-167,-172,-161},{-134,-164,-157,-163,-193,-138},{-122,-118,-124,-177,-158,-190},{-150,-125,-120,-149,-174,-151},{-120,-120,-157,-158,-179,-158},{-131,-141,-145,-158,-163,-136},{-142,-142,-166,-163,-142,-134},{-136,-155,-173,-181,-171,-193},{-144,-134,-138,-161,-187,-153},{-109,-154,-141,-155,-132,-168},{-158,-165,-170,-175,-137,-170},{-154,-121,-151,-172,-169,-163},{-132,-130,-144,-133,-172,-150},{-108,-152,-167,-167,-185,-136},{-159,-134,-132,-138,-145,-181},{-111,-137,-135,-140,-172,-193},{-155,-128,-173,-140,-163,-173},{-112,-125,-170,-174,-167,-173},{-162,-152,-152,-163,-132,-176},{-135,-135,-161,-135,-187,-163},{-142,-147,-163,-163,-179,-136},{-120,-130,-145,-127,-190,-156}},{{-201,-216,-212,-165,-157,-194},{-205,-185,-212,-192,-231,-170},{-191,-169,-193,-162,-192,-178},{-152,-191,-201,-179,-167,-236},{-198,-151,-212,-156,-206,-172},{-158,-144,-190,-180,-169,-202},{-191,-178,-164,-167,-174,-162},{-163,-200,-173,-217,-196,-160},{-182,-155,-203,-158,-194,-210},{-193,-157,-186,-186,-221,-192},{-154,-198,-214,-215,-233,-212},{-140,-184,-171,-200,-204,-206},{-172,-187,-195,-156,-184,-218},{-206,-176,-208,-167,-188,-234},{-170,-187,-167,-167,-216,-226},{-163,-173,-182,-200,-184,-220},{-187,-146,-169,-201,-200,-172},{-198,-176,-179,-162,-208,-172},{-140,-216,-175,-160,-159,-212},{-163,-194,-154,-171,-190,-232},{-154,-162,-193,-182,-202,-228},{-142,-182,-149,-188,-196,-212},{-166,-157,-197,-215,-163,-170},{-163,-214,-201,-201,-229,-220},{-163,-175,-195,-152,-169,-176},{-178,-176,-203,-211,-235,-190},{-205,-171,-160,-162,-218,-186},{-145,-182,-221,-215,-233,-230},{-147,-209,-173,-192,-223,-158},{-156,-216,-184,-200,-186,-176},{-140,-194,-210,-205,-206,-238},{-193,-194,-221,-211,-176,-212},{-205,-216,-177,-220,-214,-218},{-187,-196,-205,-194,-221,-184},{-142,-144,-162,-169,-220,-158},{-149,-166,-153,-215,-223,-164},{-210,-211,-175,-211,-192,-204},{-142,-157,-219,-180,-157,-212},{-196,-175,-179,-163,-194,-204},{-175,-209,-186,-177,-223,-226},{-180,-146,-212,-207,-161,-158},{-172,-187,-160,-160,-220,-220},{-150,-194,-223,-196,-233,-186},{-196,-157,-205,-177,-196,-204},{-194,-182,-192,-226,-180,-172},{-200,-167,-156,-218,-218,-162},{-205,-187,-175,-156,-167,-200},{-149,-189,-193,-163,-174,-166},{-175,-164,-190,-220,-229,-184},{-184,-189,-214,-203,-163,-236}}},{{{-226,-243,-250,-252,-209,-262},{-205,-271,-269,-238,-262,-262},{-242,-233,-283,-264,-259,-278},{-189,-243,-281,-252,-274,-238},{-275,-255,-267,-195,-200,-195},{-277,-245,-228,-221,-219,-286},{-212,-207,-198,-262,-236,-276},{-226,-276,-224,-228,-195,-245},{-233,-226,-207,-190,-243,-281},{-270,-245,-271,-200,-283,-217},{-186,-255,-238,-264,-269,-198},{-261,-207,-240,-286,-202,-228},{-226,-269,-205,-190,-278,-250},{-217,-221,-202,-207,-274,-193},{-186,-278,-252,-274,-219,-283},{-228,-281,-236,-202,-226,-221},{-270,-243,-276,-278,-228,-195},{-277,-264,-214,-269,-214,-269},{-270,-283,-271,-264,-269,-245},{-273,-252,-190,-257,-240,-264},{-242,-267,-252,-274,-226,-283},{-207,-217,-245,-190,-226,-214},{-252,-224,-283,-231,-212,-278},{-256,-283,-264,-190,-248,-219},{-224,-257,-276,-209,-226,-198},{-277,-274,-202,-286,-228,-262},{-249,-224,-219,-243,-281,-231},{-275,-231,-245,-276,-240,-190},{-203,-243,-217,-221,-267,-238},{-210,-286,-259,-202,-248,-259},{-275,-226,-252,-236,-195,-255},{-205,-252,-226,-214,-214,-226},{-247,-264,-207,-259,-250,-262},{-210,-190,-236,-278,-274,-200},{-240,-278,-195,-202,-238,-205},{-212,-231,-238,-228,-286,-245},{-277,-271,-243,-286,-198,-190},{-212,-271,-236,-200,-202,-209},{-270,-205,-274,-200,-205,-281},{-266,-228,-283,-281,-190,-267},{-249,-271,-205,-252,-200,-207},{-224,-228,-212,-190,-267,-271},{-261,-255,-233,-278,-198,-214},{-226,-267,-195,-262,-200,-245},{-242,-269,-190,-243,-219,-274},{-193,-248,-209,-259,-221,-276},{-266,-224,-224,-236,-233,-209},{-221,-271,-214,-233,-255,-259},{-193,-255,-286,-198,-217,-212},{-273,-240,-259,-214,-267,-281}},{{-193,-193,-258,-277,-260,-199},{-209,-262,-237,-240,-264,-236},{-198,-193,-214,-222,-183,-248},{-200,-190,-235,-206,-197,-179},{-200,-240,-254,-275,-235,-225},{-283,-286,-249,-185,-221,-252},{-198,-245,-247,-219,-192,-243},{-228,-264,-209,-256,-208,-261},{-264,-252,-209,-194,-235,-250},{-212,-283,-266,-199,-197,-181},{-202,-276,-247,-268,-235,-265},{-224,-200,-270,-217,-260,-236},{-267,-202,-237,-194,-192,-228},{-257,-198,-204,-185,-240,-265},{-269,-233,-188,-238,-194,-252},{-250,-221,-237,-201,-188,-234},{-245,-226,-200,-277,-217,-181},{-271,-212,-195,-224,-215,-252},{-200,-198,-212,-224,-217,-250},{-193,-200,-249,-192,-253,-225},{-262,-207,-268,-275,-190,-256},{-231,-212,-204,-268,-244,-254},{-245,-209,-209,-229,-210,-256},{-257,-250,-244,-252,-203,-243},{-198,-262,-235,-273,-246,-248},{-278,-283,-275,-275,-264,-214},{-259,-226,-256,-196,-203,-201},{-269,-205,-200,-270,-253,-192},{-243,-207,-221,-229,-233,-201},{-214,-212,-282,-254,-246,-192},{-238,-224,-230,-266,-199,-232},{-228,-193,-226,-196,-199,-252},{-259,-245,-249,-213,-242,-223},{-269,-217,-235,-222,-224,-201},{-209,-190,-275,-266,-260,-203},{-209,-269,-270,-206,-212,-186},{-286,-198,-240,-233,-244,-194},{-274,-195,-202,-215,-192,-210},{-243,-286,-193,-203,-224,-239},{-250,-212,-216,-259,-226,-201},{-231,-286,-204,-277,-194,-188},{-198,-212,-256,-203,-203,-210},{-262,-217,-263,-249,-181,-230},{-226,-200,-282,-256,-212,-183},{-221,-257,-263,-252,-226,-186},{-271,-195,-216,-199,-260,-252},{-198,-238,-240,-194,-244,-183},{-233,-228,-282,-208,-233,-250},{-233,-250,-188,-231,-271,-263},{-202,-286,-273,-185,-267,-228}},{{-234,-234,-226,-209,-180,-169},{-254,-194,-176,-207,-185,-191},{-247,-238,-182,-164,-181,-175},{-239,-249,-202,-232,-211,-209},{-249,-186,-178,-191,-223,-164},{-176,-211,-240,-172,-172,-180},{-181,-236,-212,-213,-196,-167},{-211,-196,-182,-183,-193,-202},{-258,-182,-238,-195,-200,-198},{-209,-190,-236,-168,-157,-151},{-247,-192,-208,-195,-174,-171},{-194,-209,-168,-183,-223,-189},{-219,-249,-168,-215,-163,-173},{-234,-196,-210,-207,-153,-200},{-230,-205,-202,-174,-191,-211},{-247,-184,-214,-226,-168,-158},{-228,-217,-232,-209,-172,-164},{-204,-188,-242,-220,-198,-149},{-181,-230,-168,-179,-183,-157},{-202,-207,-194,-220,-223,-162},{-189,-203,-170,-185,-200,-153},{-200,-224,-174,-207,-183,-146},{-202,-226,-224,-199,-215,-180},{-202,-201,-188,-158,-189,-175},{-196,-247,-176,-174,-219,-157},{-204,-169,-176,-183,-202,-148},{-198,-190,-226,-156,-170,-175},{-181,-196,-210,-158,-198,-153},{-185,-180,-178,-185,-193,-158},{-211,-232,-228,-209,-151,-153},{-232,-251,-234,-213,-168,-182},{-245,-192,-240,-228,-209,-214},{-181,-169,-242,-203,-193,-155},{-178,-190,-164,-205,-193,-151},{-215,-238,-178,-201,-187,-203},{-230,-217,-220,-224,-161,-146},{-237,-205,-236,-164,-187,-146},{-185,-184,-166,-162,-150,-193},{-191,-196,-184,-189,-150,-191},{-234,-201,-238,-234,-163,-184},{-226,-217,-162,-226,-176,-207},{-202,-209,-184,-201,-161,-211},{-213,-176,-184,-189,-196,-191},{-256,-228,-234,-164,-204,-146},{-183,-232,-226,-183,-215,-171},{-183,-234,-242,-185,-151,-191},{-234,-251,-198,-203,-166,-207},{-206,-211,-220,-193,-204,-175},{-217,-230,-204,-232,-189,-169},{-249,-180,-204,-189,-178,-191}}},{{{-317,-269,-229,-269,-295,-215},{-309,-261,-290,-226,-287,-239},{-221,-311,-277,-237,-215,-218},{-311,-282,-317,-263,-287,-317},{-250,-295,-298,-213,-226,-274},{-314,-223,-239,-239,-311,-301},{-277,-290,-295,-287,-282,-314},{-285,-311,-282,-242,-303,-277},{-218,-229,-218,-237,-279,-218},{-231,-306,-226,-247,-213,-247},{-218,-317,-229,-293,-231,-277},{-266,-293,-223,-306,-242,-245},{-247,-293,-290,-290,-261,-295},{-215,-245,-277,-277,-290,-290},{-250,-255,-314,-239,-229,-263},{-231,-229,-303,-274,-306,-218},{-285,-258,-301,-245,-311,-242},{-314,-226,-221,-253,-229,-301},{-319,-309,-317,-319,-317,-229},{-311,-279,-274,-298,-261,-279},{-218,-279,-295,-221,-287,-223},{-213,-213,-215,-309,-253,-242},{-314,-237,-298,-213,-285,-218},{-290,-277,-223,-237,-261,-282},{-253,-221,-309,-271,-271,-229},{-293,-258,-234,-311,-223,-247},{-226,-255,-269,-314,-271,-277},{-298,-213,-218,-306,-261,-229},{-223,-303,-317,-253,-311,-229},{-293,-237,-295,-221,-317,-253},{-319,-311,-269,-311,-287,-317},{-218,-231,-258,-245,-309,-266},{-266,-287,-255,-255,-290,-279},{-285,-293,-301,-298,-255,-285},{-263,-234,-301,-231,-269,-263},{-255,-274,-258,-279,-271,-293},{-298,-269,-314,-298,-245,-258},{-263,-215,-301,-277,-234,-221},{-271,-261,-285,-287,-234,-279},{-258,-290,-303,-218,-234,-279},{-218,-213,-229,-218,-215,-239},{-234,-293,-258,-274,-295,-277},{-314,-231,-274,-261,-282,-295},{-242,-282,-218,-250,-274,-282},{-218,-277,-218,-229,-213,-277},{-311,-237,-215,-247,-237,-314},{-282,-290,-285,-317,-213,-242},{-234,-279,-237,-287,-306,-306},{-215,-226,-266,-247,-309,-234},{-255,-258,-319,-226,-269,-255}},{{-226,-242,-215,-213,-296,-236},{-306,-226,-269,-319,-301,-259},{-298,-285,-279,-226,-314,-212},{-221,-303,-218,-258,-220,-236},{-319,-223,-215,-317,-309,-238},{-221,-213,-263,-311,-280,-308},{-215,-239,-213,-237,-257,-269},{-295,-266,-317,-242,-275,-231},{-237,-269,-311,-271,-265,-215},{-237,-261,-261,-314,-215,-251},{-319,-245,-274,-293,-262,-311},{-226,-247,-253,-247,-314,-236},{-298,-271,-234,-239,-314,-238},{-274,-258,-253,-223,-267,-300},{-301,-261,-237,-285,-286,-277},{-301,-250,-306,-269,-212,-290},{-295,-231,-309,-266,-212,-212},{-223,-258,-245,-287,-304,-238},{-290,-231,-261,-311,-278,-238},{-290,-269,-242,-282,-236,-311},{-319,-274,-306,-218,-262,-236},{-213,-218,-274,-237,-265,-290},{-287,-253,-215,-301,-212,-275},{-306,-223,-309,-271,-267,-246},{-226,-285,-242,-253,-249,-285},{-261,-258,-263,-287,-288,-308},{-274,-298,-221,-258,-223,-306},{-293,-239,-282,-250,-236,-218},{-247,-298,-285,-247,-210,-231},{-242,-258,-218,-309,-233,-243},{-295,-274,-279,-287,-238,-306},{-239,-239,-245,-213,-246,-298},{-271,-303,-223,-215,-301,-311},{-261,-253,-218,-263,-267,-215},{-298,-282,-285,-218,-228,-293},{-290,-317,-242,-239,-307,-243},{-247,-301,-301,-266,-262,-285},{-303,-317,-311,-285,-299,-303},{-271,-234,-250,-285,-233,-223},{-231,-306,-309,-234,-265,-259},{-226,-303,-245,-287,-307,-285},{-306,-237,-293,-295,-215,-236},{-290,-231,-261,-221,-307,-272},{-266,-269,-290,-237,-244,-210},{-306,-274,-258,-229,-270,-264},{-229,-237,-237,-239,-309,-207},{-229,-309,-231,-317,-244,-272},{-317,-258,-215,-269,-212,-243},{-274,-290,-303,-229,-291,-277},{-242,-279,-282,-266,-231,-254}},{{-246,-273,-260,-295,-220,-241},{-207,-248,-275,-253,-243,-234},{-285,-215,-244,-268,-208,-272},{-212,-243,-282,-221,-196,-272},{-243,-205,-227,-221,-294,-246},{-259,-278,-202,-216,-211,-280},{-298,-230,-212,-246,-277,-234},{-233,-273,-249,-206,-220,-236},{-210,-228,-244,-288,-257,-248},{-282,-248,-302,-238,-277,-282},{-264,-243,-209,-275,-233,-241},{-269,-215,-217,-250,-262,-260},{-228,-233,-234,-243,-262,-275},{-241,-243,-295,-233,-279,-214},{-298,-261,-224,-255,-287,-284},{-207,-253,-252,-265,-289,-231},{-207,-220,-295,-283,-289,-258},{-275,-218,-209,-263,-225,-193},{-308,-286,-285,-280,-257,-229},{-300,-238,-275,-238,-260,-287},{-287,-243,-260,-208,-262,-248},{-207,-261,-237,-198,-272,-277},{-231,-233,-300,-255,-284,-219},{-272,-238,-202,-211,-216,-217},{-225,-273,-300,-206,-208,-241},{-272,-218,-290,-223,-245,-284},{-223,-283,-209,-243,-247,-222},{-306,-271,-282,-231,-196,-282},{-210,-286,-217,-270,-247,-210},{-254,-263,-207,-208,-284,-219},{-259,-261,-252,-263,-279,-275},{-238,-283,-219,-241,-240,-265},{-215,-256,-224,-285,-230,-205},{-238,-273,-232,-278,-240,-287},{-215,-238,-270,-213,-255,-222},{-287,-205,-229,-278,-247,-243},{-215,-296,-239,-273,-279,-200},{-254,-213,-290,-293,-255,-248},{-249,-299,-277,-265,-233,-195},{-218,-235,-257,-201,-240,-236},{-228,-268,-209,-270,-211,-248},{-303,-210,-280,-233,-250,-255},{-233,-248,-277,-216,-294,-212},{-223,-248,-237,-285,-270,-258},{-298,-240,-272,-221,-282,-229},{-280,-202,-285,-288,-262,-193},{-280,-235,-262,-265,-203,-275},{-246,-286,-207,-288,-284,-212},{-249,-286,-244,-298,-255,-198},{-269,-281,-227,-203,-216,-231}}},{{{-346,-244,-274,-292,-250,-260},{-268,-352,-334,-268,-283,-305},{-328,-265,-343,-295,-241,-305},{-295,-349,-346,-331,-295,-340},{-280,-355,-253,-283,-313,-263},{-268,-358,-331,-268,-361,-326},{-328,-265,-271,-349,-322,-249},{-307,-289,-271,-337,-343,-326},{-355,-316,-277,-349,-244,-352},{-268,-256,-331,-319,-289,-355},{-292,-322,-262,-322,-355,-281},{-250,-262,-343,-340,-289,-320},{-331,-301,-289,-286,-283,-266},{-337,-313,-268,-343,-241,-284},{-241,-295,-280,-307,-247,-252},{-256,-247,-271,-259,-292,-343},{-280,-307,-250,-331,-289,-323},{-313,-337,-256,-319,-283,-249},{-301,-322,-337,-259,-331,-243},{-322,-307,-280,-361,-316,-349},{-307,-319,-298,-298,-277,-290},{-250,-325,-256,-262,-313,-349},{-322,-355,-310,-247,-361,-314},{-352,-268,-280,-358,-304,-346},{-346,-259,-361,-295,-274,-296},{-265,-337,-355,-283,-292,-334},{-355,-352,-328,-241,-256,-252},{-358,-256,-325,-334,-256,-266},{-301,-334,-244,-337,-316,-266},{-277,-337,-280,-322,-331,-314},{-355,-328,-274,-289,-289,-314},{-244,-319,-331,-349,-265,-290},{-268,-259,-247,-352,-319,-258},{-286,-292,-334,-337,-289,-349},{-310,-340,-349,-262,-265,-343},{-358,-361,-355,-328,-331,-323},{-334,-346,-256,-361,-286,-240},{-286,-289,-259,-328,-256,-266},{-349,-325,-298,-256,-355,-296},{-244,-307,-343,-349,-289,-272},{-271,-286,-307,-355,-253,-269},{-253,-328,-286,-313,-265,-266},{-343,-277,-256,-349,-334,-263},{-334,-268,-265,-337,-244,-269},{-253,-352,-265,-298,-262,-284},{-247,-358,-295,-289,-289,-246},{-307,-247,-331,-343,-262,-296},{-283,-319,-310,-328,-241,-272},{-328,-256,-337,-355,-301,-246},{-253,-241,-358,-325,-310,-237}},{{-293,-293,-302,-265,-281,-252},{-305,-319,-286,-224,-276,-213},{-334,-238,-280,-246,-292,-244},{-255,-273,-283,-238,-231,-290},{-240,-273,-272,-311,-217,-293},{-246,-284,-314,-314,-294,-244},{-275,-333,-330,-221,-292,-262},{-305,-244,-244,-238,-260,-278},{-334,-336,-336,-259,-313,-239},{-346,-255,-283,-218,-223,-254},{-311,-313,-258,-284,-273,-224},{-346,-339,-311,-303,-241,-275},{-308,-255,-314,-298,-220,-275},{-249,-238,-302,-232,-231,-267},{-346,-319,-288,-276,-318,-211},{-234,-253,-325,-284,-310,-285},{-352,-255,-280,-298,-231,-208},{-296,-324,-263,-257,-262,-260},{-293,-342,-269,-289,-310,-254},{-331,-230,-336,-314,-273,-234},{-334,-244,-238,-243,-289,-234},{-293,-316,-322,-325,-299,-208},{-346,-273,-280,-240,-315,-267},{-316,-247,-263,-295,-318,-288},{-334,-253,-255,-322,-217,-226},{-249,-270,-322,-243,-297,-262},{-234,-336,-336,-303,-307,-226},{-261,-253,-280,-281,-318,-301},{-281,-276,-224,-295,-315,-218},{-275,-264,-255,-322,-225,-208},{-343,-232,-244,-306,-254,-244},{-328,-244,-333,-300,-260,-211},{-334,-258,-319,-218,-305,-224},{-284,-278,-305,-248,-220,-265},{-314,-258,-333,-322,-307,-267},{-296,-316,-227,-278,-228,-267},{-340,-333,-280,-300,-257,-265},{-305,-327,-333,-284,-270,-234},{-331,-342,-322,-295,-278,-242},{-337,-238,-302,-270,-260,-239},{-308,-270,-288,-314,-225,-265},{-290,-342,-230,-246,-292,-216},{-314,-238,-269,-254,-244,-211},{-322,-336,-325,-218,-225,-213},{-328,-290,-333,-218,-302,-216},{-252,-333,-291,-221,-233,-249},{-308,-330,-269,-325,-302,-303},{-237,-287,-283,-311,-236,-236},{-311,-298,-314,-265,-299,-208},{-299,-247,-336,-270,-223,-265}},{{-260,-199,-268,-210,-229,-212},{-298,-211,-231,-248,-252,-200},{-273,-240,-229,-210,-250,-190},{-298,-240,-218,-197,-172,-230},{-218,-250,-192,-188,-199,-170},{-298,-230,-231,-188,-208,-216},{-298,-226,-270,-219,-216,-216},{-290,-254,-247,-212,-170,-226},{-265,-274,-220,-177,-210,-240},{-243,-238,-185,-241,-223,-242},{-280,-199,-243,-188,-240,-186},{-298,-226,-243,-219,-227,-190},{-243,-247,-256,-188,-189,-204},{-241,-192,-273,-254,-216,-192},{-250,-238,-227,-259,-193,-196},{-268,-274,-213,-250,-220,-202},{-260,-278,-250,-219,-172,-174},{-260,-247,-256,-179,-182,-176},{-206,-259,-250,-228,-208,-234},{-213,-250,-220,-261,-180,-214},{-268,-233,-234,-252,-252,-182},{-283,-274,-263,-179,-240,-174},{-283,-221,-238,-230,-199,-204},{-253,-230,-231,-241,-235,-174},{-231,-211,-199,-232,-229,-190},{-258,-206,-229,-179,-172,-218},{-280,-257,-259,-252,-174,-226},{-246,-269,-218,-179,-197,-190},{-248,-240,-275,-239,-182,-170},{-246,-254,-183,-250,-204,-238},{-216,-264,-252,-234,-229,-186},{-290,-266,-204,-217,-195,-228},{-243,-221,-245,-234,-220,-240},{-288,-271,-227,-210,-240,-240},{-233,-264,-259,-263,-178,-210},{-258,-199,-240,-183,-199,-206},{-290,-216,-220,-201,-204,-198},{-263,-254,-275,-181,-182,-174},{-290,-230,-252,-192,-237,-240},{-233,-194,-197,-232,-254,-186},{-246,-235,-243,-223,-182,-218},{-243,-262,-206,-254,-178,-192},{-236,-204,-273,-221,-237,-226},{-275,-257,-199,-212,-187,-178},{-198,-274,-266,-188,-170,-188},{-288,-276,-266,-256,-229,-174},{-228,-288,-243,-239,-180,-232},{-243,-226,-240,-236,-220,-240},{-288,-274,-268,-186,-227,-200},{-273,-264,-224,-206,-204,-176}}},{{{-395,-385,-371,-318,-402,-416},{-392,-399,-360,-364,-389,-402},{-392,-329,-410,-343,-336,-294},{-294,-364,-280,-378,-360,-406},{-298,-294,-350,-378,-298,-329},{-360,-389,-315,-298,-389,-354},{-340,-304,-284,-280,-395,-298},{-304,-357,-420,-364,-354,-389},{-416,-304,-346,-416,-329,-308},{-395,-385,-395,-329,-416,-343},{-389,-312,-368,-298,-290,-416},{-389,-326,-298,-318,-374,-378},{-368,-280,-318,-364,-343,-413},{-413,-308,-378,-298,-336,-410},{-280,-308,-354,-312,-301,-392},{-350,-371,-308,-343,-392,-392},{-290,-301,-420,-357,-326,-332},{-360,-322,-406,-399,-378,-374},{-301,-374,-290,-329,-350,-368},{-410,-346,-382,-304,-354,-385},{-318,-395,-364,-312,-326,-284},{-416,-357,-368,-374,-318,-413},{-382,-322,-389,-406,-413,-294},{-332,-294,-332,-301,-402,-298},{-420,-298,-340,-360,-326,-395},{-382,-312,-315,-360,-416,-308},{-294,-420,-382,-413,-294,-392},{-399,-343,-304,-364,-315,-343},{-332,-340,-410,-360,-420,-332},{-322,-332,-350,-287,-410,-420},{-301,-301,-371,-340,-304,-416},{-392,-318,-368,-298,-329,-343},{-343,-326,-322,-402,-343,-392},{-308,-416,-392,-385,-402,-392},{-395,-368,-308,-294,-336,-357},{-378,-354,-346,-318,-340,-420},{-395,-287,-301,-304,-298,-360},{-413,-350,-364,-395,-346,-389},{-357,-378,-315,-374,-392,-406},{-315,-301,-406,-413,-346,-326},{-364,-340,-315,-312,-312,-326},{-413,-364,-392,-312,-332,-410},{-378,-389,-290,-410,-287,-364},{-364,-406,-326,-315,-346,-354},{-312,-280,-287,-284,-312,-280},{-280,-364,-392,-399,-301,-371},{-280,-420,-354,-402,-350,-395},{-374,-326,-312,-389,-395,-332},{-308,-357,-395,-332,-343,-329},{-280,-308,-340,-371,-304,-389}},{{-334,-292,-386,-271,-331,-306},{-285,-322,-288,-327,-295,-293},{-345,-288,-292,-321,-269,-325},{-345,-309,-292,-377,-390,-261},{-397,-357,-305,-297,-269,-280},{-390,-316,-319,-297,-390,-361},{-414,-326,-275,-307,-295,-293},{-292,-312,-346,-301,-308,-306},{-358,-302,-278,-267,-325,-380},{-324,-398,-373,-374,-276,-364},{-345,-340,-370,-371,-312,-341},{-345,-298,-390,-297,-262,-264},{-379,-384,-308,-361,-354,-386},{-334,-319,-380,-387,-361,-303},{-338,-329,-373,-287,-377,-386},{-397,-374,-298,-371,-338,-348},{-299,-412,-275,-361,-371,-280},{-289,-340,-386,-317,-394,-316},{-369,-374,-325,-287,-289,-277},{-303,-274,-356,-281,-377,-299},{-324,-374,-325,-301,-377,-316},{-393,-384,-315,-314,-364,-319},{-393,-360,-336,-344,-276,-357},{-313,-412,-298,-277,-318,-319},{-358,-281,-363,-401,-279,-261},{-341,-309,-339,-324,-364,-364},{-345,-298,-305,-284,-282,-341},{-351,-281,-325,-334,-285,-290},{-285,-377,-342,-291,-367,-335},{-376,-319,-366,-331,-321,-322},{-414,-367,-288,-297,-328,-325},{-365,-316,-363,-317,-380,-335},{-407,-381,-288,-364,-289,-264},{-338,-288,-325,-347,-380,-354},{-317,-340,-342,-387,-272,-348},{-414,-274,-397,-347,-302,-303},{-379,-274,-376,-337,-272,-296},{-414,-288,-407,-327,-387,-364},{-306,-295,-302,-397,-292,-303},{-299,-326,-373,-361,-380,-306},{-390,-336,-319,-291,-298,-293},{-317,-377,-298,-367,-305,-377},{-383,-322,-370,-287,-380,-316},{-400,-408,-325,-301,-367,-299},{-386,-360,-349,-327,-292,-303},{-393,-333,-295,-314,-302,-328},{-404,-394,-275,-337,-351,-293},{-379,-333,-332,-381,-308,-380},{-379,-312,-281,-271,-390,-370},{-379,-281,-342,-387,-358,-287}},{{-261,-256,-336,-308,-285,-295},{-258,-286,-321,-237,-245,-256},{-365,-308,-300,-299,-237,-322},{-356,-360,-330,-258,-268,-236},{-293,-296,-240,-246,-294,-242},{-255,-363,-321,-249,-294,-245},{-296,-351,-294,-302,-234,-231},{-331,-253,-252,-240,-342,-289},{-378,-363,-267,-234,-328,-303},{-299,-302,-312,-311,-237,-225},{-265,-314,-246,-316,-285,-331},{-362,-333,-342,-302,-262,-314},{-277,-336,-267,-296,-228,-317},{-271,-296,-354,-290,-248,-242},{-340,-280,-327,-319,-294,-284},{-252,-253,-339,-352,-325,-303},{-337,-320,-312,-311,-314,-322},{-309,-348,-300,-352,-325,-228},{-258,-265,-345,-246,-262,-317},{-296,-333,-288,-349,-299,-334},{-309,-277,-252,-243,-274,-322},{-261,-317,-273,-293,-239,-295},{-331,-299,-342,-352,-314,-261},{-252,-336,-327,-296,-242,-292},{-353,-280,-276,-275,-282,-228},{-277,-293,-282,-255,-271,-236},{-334,-326,-321,-334,-331,-289},{-261,-339,-264,-319,-242,-222},{-296,-333,-249,-293,-265,-253},{-309,-305,-243,-305,-299,-309},{-324,-256,-258,-270,-239,-231},{-356,-311,-240,-287,-231,-284},{-306,-311,-270,-349,-331,-331},{-375,-296,-324,-325,-282,-225},{-362,-333,-288,-290,-314,-250},{-369,-283,-312,-308,-296,-234},{-284,-360,-255,-316,-308,-309},{-378,-326,-285,-287,-254,-231},{-334,-253,-327,-258,-228,-250},{-284,-293,-276,-246,-328,-239},{-328,-367,-276,-325,-288,-228},{-324,-311,-279,-278,-256,-295},{-359,-262,-321,-352,-333,-309},{-293,-293,-360,-261,-299,-250},{-306,-326,-252,-284,-316,-297},{-378,-259,-270,-308,-319,-300},{-318,-283,-258,-281,-322,-239},{-365,-305,-273,-308,-305,-261},{-284,-330,-303,-316,-254,-300},{-331,-354,-276,-352,-308,-247}}}}; // 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,4,2,6,4,3,8,4,3,7,4,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,5,3,8,5,3,8,5,3,8,4,3,8,4,3,8,4,3,7,4,3,8,4,3,7,4,3,7,4,3}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5},{6,7,8},{9,10},{11,12,13,14,15,16},{17,18,19,20},{21,22},{23,24,25,26,27,28},{29,30,31,32},{33,34,35},{36,37,38,39,40,41,42,43},{44,45,46,47},{48,49,50},{51,52,53,54,55,56,57},{58,59,60,61},{62,63,64},{65,66,67,68,69,70,71,72},{73,74,75,76},{77,78,79},{80,81,82,83,84,85,86,87},{88,89,90,91},{92,93,94},{95,96,97,98,99,100,101},{102,103,104,105},{106,107,108},{109,110,111,112,113,114,115},{116,117,118,119},{120,121,122},{123,124,125,126,127,128,129},{130,131,132,133},{134,135,136},{137,138,139,140,141,142,143,144},{145,146,147,148},{149,150,151},{152,153,154,155,156,157,158,159},{160,161,162,163},{164,165,166},{167,168,169,170,171,172,173,174},{175,176,177,178},{179,180,181},{182,183,184,185,186,187,188,189},{190,191,192,193},{194,195,196},{197,198,199,200,201,202,203,204},{205,206,207,208,209},{210,211,212},{213,214,215,216,217,218,219,220},{221,222,223,224,225},{226,227,228},{229,230,231,232,233,234,235,236},{237,238,239,240,241},{242,243,244},{245,246,247,248,249,250,251,252},{253,254,255,256},{257,258,259},{260,261,262,263,264,265,266,267},{268,269,270,271},{272,273,274},{275,276,277,278,279,280,281,282},{283,284,285,286},{287,288,289},{290,291,292,293,294,295,296},{297,298,299,300},{301,302,303},{304,305,306,307,308,309,310,311},{312,313,314,315},{316,317,318},{319,320,321,322,323,324,325},{326,327,328,329},{330,331,332},{333,334,335,336,337,338,339},{340,341,342,343},{344,345,346}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,2,6,10,2,8,2,4,6,8,10,12,0,4,8,12,1,7,2,4,6,8,10,12,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,1,5,9,13,2,8,14,2,4,6,8,10,12,14,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,0,4,8,12,2,8,14,2,4,6,8,10,12,14,0,4,8,12,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,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,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,16,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,16,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,16,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,0,4,8,12,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,0,4,8,12,1,7,13,2,4,6,8,10,12,14,0,4,8,12,1,7,13}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,7,11,15,7,13,7,9,11,13,15,17,5,9,13,17,6,12,7,9,11,13,15,17,5,9,13,17,5,11,17,3,5,7,9,11,13,15,17,4,8,12,16,5,11,17,5,7,9,11,13,15,17,5,9,13,17,4,10,16,3,5,7,9,11,13,15,17,5,9,13,17,5,11,17,2,4,6,8,10,12,14,16,4,8,12,16,3,9,15,4,6,8,10,12,14,16,4,8,12,16,2,8,14,4,6,8,10,12,14,16,2,6,10,14,4,10,16,4,6,8,10,12,14,16,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,2,4,6,8,10,12,14,16,3,7,11,15,1,7,13,2,4,6,8,10,12,14,16,1,5,9,13,17,3,9,15,2,4,6,8,10,12,14,16,1,5,9,13,17,1,7,13,2,4,6,8,10,12,14,16,1,5,9,13,17,3,9,15,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,4,10,16,2,4,6,8,10,12,14,16,4,8,12,16,3,9,15,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,5,9,13,17,3,9,15,5,7,9,11,13,15,17,3,7,11,15,4,10,16,5,7,9,11,13,15,17,3,7,11,15,4,10,16}; // set of end times of each shipment 
