int Dev = 30;// Deviation
extern const int CNN = 5;// Case Index
extern const int P = 6;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 36;// 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 = 744;//Number of shipments
extern const int SN = 20;//Number of scenarios at each stage
extern const int MBSN = 18;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6,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},{18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{12139,0,0,0,0,0},{12537,0,0,0,0,0},{12765,0,0,0,0,0},{11806,0,0,0,0,0},{12397,0,0,0,0,0},{12217,0,0,0,0,0},{12901,0,0,0,0,0},{12735,0,0,0,0,0},{12053,0,0,0,0,0},{12648,0,0,0,0,0},{12872,0,0,0,0,0},{12569,0,0,0,0,0},{12631,0,0,0,0,0},{12450,0,0,0,0,0},{12659,0,0,0,0,0},{12064,0,0,0,0,0},{11567,0,0,0,0,0},{12573,0,0,0,0,0},{12560,0,0,0,0,0},{11749,0,0,0,0,0}},{{12352,0,0,0,0,0},{12122,0,0,0,0,0},{12542,0,0,0,0,0},{12968,0,0,0,0,0},{12866,0,0,0,0,0},{12498,0,0,0,0,0},{12563,0,0,0,0,0},{12514,0,0,0,0,0},{12410,0,0,0,0,0},{12255,0,0,0,0,0},{12437,0,0,0,0,0},{12324,0,0,0,0,0},{12461,0,0,0,0,0},{12417,0,0,0,0,0},{12622,0,0,0,0,0},{12792,0,0,0,0,0},{12776,0,0,0,0,0},{12646,0,0,0,0,0},{11750,0,0,0,0,0},{12542,0,0,0,0,0}},{{11901,0,0,0,0,0},{11752,0,0,0,0,0},{12115,0,0,0,0,0},{11519,0,0,0,0,0},{11722,0,0,0,0,0},{11523,0,0,0,0,0},{11338,0,0,0,0,0},{11972,0,0,0,0,0},{11845,0,0,0,0,0},{11383,0,0,0,0,0},{11448,0,0,0,0,0},{11484,0,0,0,0,0},{11602,0,0,0,0,0},{11525,0,0,0,0,0},{11702,0,0,0,0,0},{11679,0,0,0,0,0},{11412,0,0,0,0,0},{11547,0,0,0,0,0},{11759,0,0,0,0,0},{11388,0,0,0,0,0}},{{10516,0,0,0,0,0},{10077,0,0,0,0,0},{10585,0,0,0,0,0},{10154,0,0,0,0,0},{10139,0,0,0,0,0},{10400,0,0,0,0,0},{10249,0,0,0,0,0},{10676,0,0,0,0,0},{10237,0,0,0,0,0},{9912,0,0,0,0,0},{10525,0,0,0,0,0},{10800,0,0,0,0,0},{10201,0,0,0,0,0},{10546,0,0,0,0,0},{10549,0,0,0,0,0},{10028,0,0,0,0,0},{10837,0,0,0,0,0},{9633,0,0,0,0,0},{9910,0,0,0,0,0},{9817,0,0,0,0,0}},{{9619,0,0,0,0,0},{9181,0,0,0,0,0},{9657,0,0,0,0,0},{9639,0,0,0,0,0},{9396,0,0,0,0,0},{9331,0,0,0,0,0},{9179,0,0,0,0,0},{9210,0,0,0,0,0},{9143,0,0,0,0,0},{9530,0,0,0,0,0},{9564,0,0,0,0,0},{9893,0,0,0,0,0},{9263,0,0,0,0,0},{8950,0,0,0,0,0},{9241,0,0,0,0,0},{9294,0,0,0,0,0},{10113,0,0,0,0,0},{9328,0,0,0,0,0},{9621,0,0,0,0,0},{9228,0,0,0,0,0}},{{9073,0,0,0,0,0},{9333,0,0,0,0,0},{9047,0,0,0,0,0},{9480,0,0,0,0,0},{9351,0,0,0,0,0},{8803,0,0,0,0,0},{9109,0,0,0,0,0},{9446,0,0,0,0,0},{9375,0,0,0,0,0},{9485,0,0,0,0,0},{9230,0,0,0,0,0},{9193,0,0,0,0,0},{9228,0,0,0,0,0},{9152,0,0,0,0,0},{9391,0,0,0,0,0},{9430,0,0,0,0,0},{9050,0,0,0,0,0},{9450,0,0,0,0,0},{9221,0,0,0,0,0},{8823,0,0,0,0,0}}},{{{-291,-273,-335,-256,-329,-300},{-259,-303,-318,-300,-262,-226},{-344,-288,-238,-370,-359,-268},{-270,-294,-282,-226,-297,-323},{-270,-373,-323,-332,-276,-223},{-253,-250,-229,-291,-356,-318},{-329,-362,-209,-300,-268,-338},{-347,-373,-312,-312,-297,-232},{-323,-294,-268,-282,-220,-241},{-365,-318,-259,-241,-359,-265},{-273,-356,-218,-382,-350,-320},{-347,-279,-341,-365,-206,-320},{-353,-291,-365,-338,-253,-250},{-303,-318,-376,-326,-279,-250},{-326,-309,-338,-338,-329,-268},{-326,-259,-256,-229,-229,-226},{-218,-212,-270,-215,-223,-326},{-329,-365,-253,-370,-323,-215},{-232,-365,-326,-259,-262,-326},{-347,-373,-265,-220,-229,-209}},{{-354,-260,-258,-277,-278,-184},{-249,-212,-252,-203,-291,-295},{-241,-292,-227,-258,-232,-249},{-368,-263,-241,-206,-270,-212},{-264,-232,-364,-227,-243,-194},{-345,-303,-314,-301,-318,-256},{-299,-206,-339,-219,-334,-326},{-203,-209,-266,-293,-235,-236},{-331,-257,-330,-266,-336,-181},{-241,-272,-291,-230,-224,-293},{-273,-226,-199,-216,-270,-228},{-278,-329,-249,-326,-240,-329},{-348,-255,-230,-214,-288,-194},{-212,-352,-277,-269,-334,-293},{-255,-372,-207,-230,-264,-269},{-273,-317,-350,-219,-240,-264},{-220,-223,-280,-334,-264,-321},{-229,-292,-280,-348,-304,-337},{-229,-249,-272,-356,-240,-256},{-273,-366,-350,-351,-304,-280}},{{-315,-310,-177,-282,-233,-210},{-310,-305,-212,-246,-248,-185},{-198,-223,-289,-217,-163,-194},{-192,-288,-182,-220,-163,-144},{-292,-257,-179,-273,-190,-262},{-268,-266,-280,-228,-150,-222},{-242,-211,-238,-271,-163,-190},{-255,-201,-254,-267,-186,-253},{-255,-261,-212,-168,-195,-220},{-192,-305,-238,-170,-154,-165},{-250,-169,-284,-282,-246,-229},{-240,-257,-200,-231,-169,-171},{-292,-179,-191,-258,-182,-258},{-210,-259,-287,-188,-195,-167},{-195,-242,-231,-260,-184,-255},{-312,-191,-184,-204,-156,-161},{-268,-293,-303,-242,-242,-167},{-270,-179,-282,-267,-208,-216},{-252,-290,-263,-159,-201,-146},{-178,-184,-172,-249,-160,-152}},{{-219,-131,-215,-143,-205,-190},{-181,-223,-163,-148,-117,-178},{-215,-180,-199,-220,-185,-178},{-244,-153,-193,-194,-173,-133},{-138,-137,-158,-124,-193,-122},{-201,-221,-132,-172,-137,-149},{-140,-208,-125,-127,-175,-162},{-217,-228,-141,-150,-214,-134},{-221,-219,-134,-210,-185,-134},{-156,-200,-186,-157,-162,-142},{-142,-213,-209,-200,-188,-157},{-203,-193,-140,-196,-210,-173},{-164,-228,-190,-215,-127,-166},{-227,-228,-150,-165,-117,-144},{-140,-232,-172,-127,-210,-125},{-232,-150,-149,-222,-155,-149},{-230,-217,-181,-201,-144,-202},{-148,-215,-170,-122,-168,-139},{-146,-241,-202,-212,-180,-158},{-181,-138,-131,-144,-134,-205}},{{-148,-165,-147,-191,-126,-182},{-179,-183,-148,-107,-171,-109},{-199,-188,-126,-162,-171,-150},{-180,-127,-141,-112,-179,-109},{-186,-146,-134,-118,-160,-162},{-174,-170,-188,-182,-112,-129},{-116,-167,-141,-118,-165,-150},{-125,-116,-107,-112,-106,-188},{-179,-171,-126,-187,-141,-163},{-112,-153,-168,-154,-132,-188},{-112,-153,-165,-173,-181,-110},{-123,-127,-159,-154,-175,-128},{-123,-188,-160,-150,-182,-131},{-119,-162,-173,-131,-132,-112},{-131,-148,-168,-176,-184,-116},{-166,-165,-115,-185,-119,-166},{-119,-191,-123,-165,-179,-128},{-108,-146,-131,-140,-185,-131},{-119,-136,-109,-144,-138,-188},{-137,-125,-157,-181,-182,-106}},{{-104,-134,-186,-139,-158,-192},{-134,-115,-145,-146,-193,-154},{-112,-163,-116,-165,-192,-185},{-168,-106,-174,-149,-118,-207},{-146,-144,-154,-179,-190,-135},{-118,-123,-119,-108,-208,-134},{-137,-163,-125,-159,-138,-152},{-107,-122,-115,-140,-163,-189},{-106,-126,-151,-148,-172,-130},{-118,-106,-110,-188,-203,-177},{-188,-110,-163,-143,-142,-149},{-119,-104,-159,-191,-151,-155},{-138,-138,-143,-200,-145,-192},{-128,-132,-134,-165,-184,-125},{-106,-178,-118,-176,-130,-125},{-131,-182,-183,-166,-203,-130},{-191,-156,-171,-140,-155,-179},{-168,-140,-107,-156,-192,-129},{-144,-138,-125,-120,-150,-150},{-132,-154,-165,-179,-119,-160}}},{{{-153,-152,-175,-172,-219,-218},{-156,-152,-210,-226,-173,-199},{-170,-201,-122,-136,-169,-212},{-128,-189,-198,-174,-188,-212},{-192,-134,-172,-184,-173,-216},{-128,-171,-138,-213,-132,-218},{-197,-154,-205,-206,-162,-208},{-198,-120,-201,-206,-234,-218},{-153,-172,-168,-186,-210,-166},{-198,-216,-135,-226,-230,-246},{-131,-166,-154,-226,-230,-210},{-180,-159,-163,-199,-193,-233},{-161,-196,-214,-229,-169,-233},{-203,-186,-158,-215,-236,-138},{-156,-171,-156,-202,-202,-145},{-200,-184,-172,-152,-145,-147},{-139,-144,-140,-154,-155,-149},{-180,-208,-166,-143,-226,-218},{-203,-152,-228,-147,-166,-246},{-175,-169,-214,-132,-164,-170}},{{-248,-256,-262,-210,-213,-167},{-192,-260,-232,-287,-172,-231},{-202,-238,-268,-172,-275,-269},{-228,-162,-151,-225,-259,-167},{-196,-154,-160,-256,-195,-224},{-188,-215,-175,-208,-279,-193},{-212,-266,-151,-199,-252,-298},{-172,-203,-241,-161,-165,-269},{-253,-156,-155,-223,-195,-167},{-148,-258,-262,-166,-181,-293},{-249,-221,-192,-168,-289,-186},{-222,-180,-245,-221,-181,-188},{-240,-152,-271,-177,-206,-283},{-246,-199,-239,-164,-261,-298},{-208,-150,-183,-232,-268,-271},{-154,-242,-232,-228,-289,-221},{-170,-226,-207,-241,-250,-257},{-158,-146,-211,-281,-163,-305},{-150,-148,-243,-157,-197,-207},{-143,-256,-230,-206,-211,-302}},{{-319,-247,-202,-316,-199,-291},{-215,-224,-238,-221,-244,-207},{-301,-209,-217,-240,-302,-294},{-282,-252,-202,-246,-208,-300},{-279,-245,-228,-319,-343,-340},{-319,-324,-183,-208,-294,-277},{-242,-293,-191,-270,-343,-323},{-284,-283,-233,-194,-316,-342},{-314,-207,-275,-262,-224,-243},{-274,-222,-293,-265,-247,-235},{-183,-209,-283,-284,-310,-308},{-245,-319,-225,-192,-310,-277},{-304,-219,-325,-246,-357,-272},{-188,-293,-262,-284,-197,-294},{-185,-314,-325,-316,-349,-337},{-269,-303,-246,-294,-296,-365},{-296,-280,-299,-302,-235,-232},{-247,-207,-320,-243,-285,-340},{-272,-235,-341,-211,-244,-201},{-190,-309,-320,-267,-357,-255}},{{-202,-332,-235,-352,-253,-385},{-275,-268,-268,-259,-295,-307},{-292,-341,-307,-259,-331,-316},{-321,-379,-352,-277,-382,-259},{-260,-268,-226,-313,-229,-388},{-249,-215,-352,-295,-376,-325},{-332,-285,-319,-241,-220,-250},{-367,-312,-212,-271,-334,-331},{-361,-256,-209,-223,-310,-244},{-364,-285,-247,-232,-286,-238},{-327,-306,-215,-361,-337,-301},{-240,-338,-331,-388,-388,-367},{-228,-276,-319,-259,-379,-247},{-361,-241,-241,-280,-391,-334},{-312,-382,-289,-340,-286,-328},{-298,-232,-250,-232,-301,-283},{-289,-359,-268,-313,-322,-307},{-298,-297,-316,-220,-322,-217},{-269,-350,-304,-298,-211,-247},{-277,-285,-224,-223,-280,-355}},{{-376,-286,-238,-309,-344,-368},{-226,-256,-241,-297,-312,-284},{-355,-316,-322,-333,-223,-255},{-238,-331,-289,-246,-362,-232},{-316,-277,-232,-387,-241,-334},{-283,-331,-337,-243,-297,-296},{-376,-217,-322,-255,-241,-362},{-391,-262,-370,-390,-359,-235},{-211,-364,-238,-291,-329,-206},{-352,-220,-367,-333,-265,-244},{-283,-274,-265,-330,-215,-264},{-385,-238,-259,-267,-220,-377},{-223,-292,-238,-267,-341,-339},{-340,-355,-322,-219,-335,-220},{-307,-355,-343,-270,-350,-299},{-382,-298,-346,-261,-285,-252},{-358,-289,-373,-264,-309,-276},{-319,-370,-280,-279,-300,-304},{-370,-364,-313,-258,-253,-273},{-229,-322,-280,-360,-344,-357}},{{-228,-198,-252,-259,-187,-223},{-339,-212,-201,-267,-271,-322},{-348,-265,-352,-330,-236,-233},{-314,-257,-350,-285,-294,-216},{-302,-204,-274,-280,-282,-303},{-359,-265,-195,-248,-248,-236},{-299,-240,-336,-319,-187,-317},{-302,-206,-206,-333,-230,-260},{-299,-363,-241,-195,-238,-293},{-348,-321,-266,-285,-248,-184},{-299,-268,-285,-238,-207,-263},{-217,-346,-274,-267,-284,-203},{-200,-346,-341,-256,-205,-275},{-342,-326,-347,-240,-274,-198},{-265,-329,-263,-187,-243,-211},{-342,-332,-336,-224,-236,-221},{-205,-209,-230,-211,-200,-246},{-256,-237,-192,-222,-305,-305},{-370,-218,-290,-267,-225,-280},{-231,-248,-203,-319,-212,-198}}},{{{-421,-240,-250,-263,-273,-273},{-345,-385,-352,-283,-342,-306},{-424,-326,-365,-280,-375,-362},{-280,-280,-359,-286,-299,-355},{-415,-280,-355,-290,-408,-243},{-296,-352,-299,-336,-270,-326},{-424,-401,-395,-230,-349,-349},{-322,-322,-355,-428,-273,-270},{-306,-342,-352,-313,-342,-415},{-296,-326,-339,-339,-247,-362},{-280,-276,-250,-355,-385,-408},{-329,-359,-329,-309,-332,-257},{-319,-401,-296,-273,-306,-293},{-296,-401,-362,-329,-332,-322},{-418,-352,-336,-276,-385,-266},{-316,-286,-375,-276,-319,-352},{-286,-273,-263,-319,-247,-296},{-339,-375,-362,-253,-276,-368},{-382,-260,-266,-257,-230,-405},{-322,-283,-303,-385,-401,-280}},{{-390,-306,-364,-392,-268,-346},{-292,-319,-309,-408,-357,-310},{-279,-258,-319,-251,-339,-340},{-295,-399,-383,-361,-388,-349},{-272,-232,-348,-314,-296,-382},{-312,-345,-287,-364,-234,-322},{-289,-264,-335,-327,-311,-388},{-400,-351,-281,-377,-382,-385},{-371,-229,-348,-349,-274,-253},{-292,-290,-392,-292,-234,-226},{-321,-303,-402,-367,-385,-286},{-318,-409,-303,-386,-283,-244},{-272,-306,-309,-330,-311,-298},{-364,-370,-351,-314,-314,-328},{-315,-270,-268,-311,-336,-337},{-403,-380,-297,-320,-363,-226},{-249,-229,-335,-399,-243,-301},{-262,-242,-399,-377,-367,-376},{-302,-238,-226,-270,-222,-343},{-269,-345,-223,-245,-317,-259}},{{-286,-334,-204,-335,-212,-278},{-289,-285,-358,-264,-278,-221},{-239,-360,-330,-305,-302,-195},{-295,-251,-330,-345,-297,-290},{-330,-222,-230,-253,-241,-193},{-313,-279,-258,-280,-323,-208},{-342,-288,-241,-299,-199,-198},{-348,-242,-263,-321,-252,-314},{-289,-357,-319,-324,-284,-242},{-310,-228,-274,-299,-244,-218},{-327,-348,-277,-291,-201,-180},{-324,-268,-204,-269,-344,-275},{-224,-348,-218,-250,-223,-296},{-283,-337,-244,-207,-315,-257},{-209,-222,-302,-209,-339,-278},{-304,-216,-339,-291,-249,-267},{-313,-213,-330,-250,-323,-280},{-289,-225,-269,-321,-233,-190},{-260,-351,-314,-302,-199,-203},{-319,-253,-286,-196,-342,-275}},{{-265,-299,-232,-189,-181,-241},{-220,-296,-268,-252,-193,-280},{-310,-209,-223,-233,-177,-210},{-240,-216,-166,-194,-240,-219},{-185,-226,-282,-266,-231,-280},{-218,-253,-180,-282,-175,-186},{-270,-238,-239,-215,-159,-177},{-268,-199,-225,-173,-260,-278},{-282,-311,-192,-194,-253,-285},{-210,-219,-306,-192,-220,-210},{-322,-236,-273,-296,-170,-252},{-250,-194,-284,-284,-199,-158},{-208,-294,-185,-259,-215,-175},{-262,-209,-263,-226,-220,-267},{-225,-299,-308,-213,-231,-206},{-278,-236,-235,-194,-161,-166},{-218,-197,-277,-275,-206,-155},{-255,-173,-220,-240,-237,-155},{-200,-173,-308,-224,-157,-166},{-312,-197,-228,-180,-199,-250}},{{-165,-164,-231,-241,-239,-267},{-243,-197,-155,-183,-174,-227},{-282,-227,-168,-267,-210,-193},{-256,-178,-271,-233,-244,-191},{-263,-185,-218,-225,-160,-166},{-204,-195,-149,-202,-202,-204},{-154,-212,-168,-153,-158,-233},{-280,-149,-220,-218,-204,-233},{-191,-187,-271,-151,-204,-260},{-254,-172,-200,-241,-160,-220},{-200,-237,-227,-252,-147,-176},{-273,-214,-269,-262,-235,-231},{-215,-227,-197,-269,-155,-244},{-193,-246,-162,-162,-174,-160},{-239,-237,-147,-162,-225,-172},{-191,-174,-151,-164,-166,-197},{-230,-218,-235,-193,-265,-269},{-265,-164,-262,-178,-168,-164},{-267,-231,-244,-262,-265,-216},{-215,-149,-162,-174,-160,-166}},{{-267,-187,-222,-195,-235,-277},{-273,-254,-194,-171,-207,-236},{-218,-187,-150,-163,-169,-292},{-258,-197,-262,-182,-185,-218},{-183,-193,-173,-208,-231,-230},{-187,-168,-162,-182,-209,-166},{-176,-269,-251,-200,-169,-162},{-204,-208,-184,-269,-185,-212},{-168,-244,-160,-247,-178,-252},{-181,-267,-232,-167,-271,-250},{-200,-231,-245,-182,-202,-266},{-164,-271,-268,-167,-163,-284},{-168,-254,-257,-247,-224,-166},{-183,-185,-171,-158,-200,-236},{-260,-227,-194,-237,-253,-263},{-231,-151,-175,-254,-161,-182},{-160,-269,-207,-276,-189,-290},{-170,-252,-226,-241,-196,-158},{-168,-256,-234,-273,-154,-218},{-193,-206,-209,-263,-222,-198}}},{{{-136,-85,-100,-143,-143,-161},{-76,-106,-138,-101,-154,-99},{-85,-124,-92,-111,-127,-159},{-87,-98,-131,-151,-152,-129},{-133,-77,-78,-118,-129,-163},{-110,-125,-101,-95,-151,-118},{-78,-101,-139,-104,-139,-115},{-92,-75,-115,-104,-157,-161},{-77,-122,-106,-143,-127,-116},{-102,-127,-96,-85,-151,-105},{-109,-129,-105,-88,-112,-90},{-120,-75,-113,-113,-107,-136},{-76,-89,-142,-126,-111,-143},{-106,-98,-94,-132,-138,-127},{-136,-109,-127,-85,-137,-151},{-92,-87,-78,-91,-102,-115},{-119,-128,-113,-129,-120,-118},{-94,-135,-137,-145,-89,-148},{-129,-135,-100,-139,-100,-147},{-106,-93,-105,-142,-89,-132}},{{-132,-109,-186,-192,-185,-153},{-167,-131,-152,-192,-130,-121},{-154,-183,-184,-133,-118,-131},{-119,-172,-121,-158,-179,-166},{-162,-149,-155,-166,-208,-183},{-167,-138,-154,-198,-124,-193},{-140,-158,-164,-150,-163,-213},{-135,-110,-144,-108,-143,-198},{-97,-130,-138,-164,-208,-205},{-142,-130,-192,-178,-167,-173},{-127,-107,-176,-161,-169,-213},{-122,-168,-118,-157,-135,-138},{-165,-120,-186,-116,-174,-165},{-153,-140,-127,-108,-140,-171},{-131,-124,-139,-146,-150,-181},{-140,-130,-188,-127,-163,-186},{-108,-154,-169,-138,-196,-200},{-154,-142,-151,-161,-198,-171},{-174,-147,-105,-130,-166,-128},{-119,-147,-175,-194,-195,-166}},{{-180,-149,-221,-234,-192,-220},{-128,-131,-229,-218,-200,-182},{-189,-234,-182,-179,-253,-210},{-187,-180,-175,-188,-253,-139},{-206,-153,-208,-247,-172,-242},{-154,-157,-180,-165,-155,-204},{-203,-184,-232,-213,-247,-145},{-222,-148,-195,-165,-249,-139},{-214,-232,-232,-182,-143,-248},{-200,-184,-175,-162,-188,-147},{-219,-196,-184,-243,-171,-168},{-159,-180,-136,-217,-161,-240},{-166,-211,-236,-194,-184,-240},{-200,-158,-188,-194,-214,-214},{-220,-175,-210,-222,-190,-202},{-131,-209,-130,-239,-196,-216},{-168,-133,-154,-198,-139,-218},{-124,-171,-206,-167,-214,-249},{-194,-137,-242,-198,-227,-251},{-187,-193,-156,-186,-178,-226}},{{-217,-205,-154,-248,-213,-150},{-152,-154,-248,-199,-152,-175},{-187,-254,-142,-229,-256,-150},{-254,-179,-146,-144,-185,-246},{-144,-219,-262,-173,-235,-201},{-221,-191,-195,-256,-215,-175},{-193,-187,-260,-264,-215,-183},{-252,-193,-191,-264,-203,-144},{-168,-173,-166,-221,-235,-171},{-197,-152,-227,-177,-223,-168},{-195,-171,-197,-189,-175,-213},{-258,-150,-177,-264,-173,-211},{-244,-156,-158,-223,-193,-142},{-164,-179,-221,-193,-256,-177},{-193,-260,-250,-199,-217,-183},{-248,-242,-205,-235,-148,-207},{-173,-187,-242,-217,-193,-221},{-229,-144,-185,-199,-248,-160},{-252,-262,-179,-191,-183,-213},{-191,-197,-207,-179,-221,-223}},{{-229,-164,-242,-136,-200,-234},{-175,-199,-164,-211,-195,-149},{-183,-187,-223,-146,-147,-131},{-150,-248,-236,-179,-221,-223},{-258,-258,-230,-222,-146,-215},{-260,-183,-165,-185,-176,-158},{-240,-195,-173,-142,-217,-144},{-168,-256,-148,-203,-204,-160},{-209,-233,-254,-181,-153,-138},{-252,-233,-193,-158,-223,-149},{-260,-213,-225,-166,-238,-223},{-187,-179,-244,-246,-200,-223},{-223,-219,-162,-162,-181,-223},{-154,-231,-246,-228,-151,-195},{-233,-146,-227,-189,-180,-144},{-177,-168,-167,-232,-234,-173},{-160,-203,-246,-252,-242,-158},{-225,-179,-225,-158,-155,-156},{-256,-211,-181,-152,-215,-129},{-205,-215,-238,-220,-149,-166}},{{-202,-164,-124,-170,-151,-157},{-181,-192,-122,-206,-138,-188},{-163,-173,-200,-174,-151,-107},{-215,-131,-194,-166,-141,-172},{-161,-154,-169,-136,-187,-160},{-170,-178,-194,-166,-132,-148},{-149,-199,-134,-112,-148,-118},{-186,-183,-152,-181,-132,-185},{-213,-208,-180,-197,-135,-104},{-199,-157,-197,-174,-110,-172},{-229,-183,-142,-184,-164,-151},{-200,-201,-177,-208,-161,-128},{-199,-183,-167,-115,-164,-178},{-149,-220,-129,-160,-115,-165},{-222,-206,-150,-168,-155,-157},{-161,-125,-164,-173,-129,-137},{-129,-175,-199,-112,-136,-184},{-168,-195,-214,-134,-196,-181},{-208,-220,-202,-192,-144,-143},{-170,-211,-160,-136,-179,-157}}},{{{-231,-190,-226,-219,-248,-250},{-287,-257,-174,-240,-274,-167},{-184,-307,-309,-245,-231,-236},{-256,-205,-252,-176,-183,-278},{-233,-188,-231,-195,-240,-181},{-212,-181,-212,-288,-207,-202},{-200,-307,-178,-283,-286,-264},{-289,-271,-198,-262,-205,-248},{-263,-174,-186,-167,-217,-250},{-184,-298,-169,-255,-193,-200},{-235,-255,-190,-309,-276,-293},{-242,-259,-174,-217,-259,-290},{-287,-231,-178,-288,-243,-176},{-163,-178,-302,-200,-209,-209},{-249,-278,-255,-300,-200,-214},{-254,-186,-290,-240,-212,-236},{-224,-290,-181,-269,-186,-209},{-235,-283,-307,-262,-250,-207},{-268,-236,-302,-293,-281,-295},{-163,-174,-252,-171,-281,-228}},{{-238,-174,-240,-261,-224,-239},{-217,-255,-254,-245,-212,-219},{-305,-309,-233,-222,-163,-212},{-274,-186,-291,-293,-221,-285},{-307,-269,-254,-245,-170,-248},{-300,-226,-176,-249,-176,-241},{-209,-274,-164,-173,-231,-239},{-178,-307,-266,-201,-208,-197},{-176,-224,-268,-270,-160,-245},{-171,-271,-244,-284,-165,-243},{-305,-171,-230,-243,-181,-175},{-221,-224,-176,-180,-285,-239},{-238,-188,-266,-185,-280,-272},{-212,-243,-258,-189,-215,-228},{-264,-233,-294,-203,-273,-283},{-259,-207,-287,-166,-224,-203},{-217,-233,-291,-247,-246,-272},{-257,-267,-179,-247,-246,-239},{-290,-190,-200,-171,-228,-285},{-286,-255,-172,-300,-172,-239}},{{-273,-148,-204,-168,-148,-171},{-254,-173,-236,-222,-219,-229},{-256,-184,-250,-162,-213,-227},{-224,-150,-162,-226,-166,-230},{-204,-265,-182,-140,-168,-151},{-176,-240,-192,-216,-185,-151},{-198,-194,-156,-252,-181,-193},{-217,-190,-204,-176,-209,-176},{-194,-196,-198,-203,-183,-184},{-181,-272,-166,-252,-202,-189},{-161,-182,-210,-138,-144,-130},{-204,-242,-166,-218,-226,-140},{-189,-219,-186,-154,-202,-175},{-230,-157,-228,-142,-234,-146},{-241,-159,-180,-144,-142,-220},{-241,-236,-242,-160,-138,-223},{-174,-176,-156,-252,-187,-137},{-202,-199,-210,-218,-193,-200},{-213,-224,-141,-207,-237,-227},{-264,-199,-166,-226,-209,-184}},{{-165,-134,-181,-120,-180,-108},{-160,-119,-155,-165,-118,-148},{-163,-135,-166,-183,-166,-175},{-201,-191,-111,-164,-108,-127},{-143,-158,-192,-128,-118,-174},{-148,-188,-130,-153,-112,-156},{-186,-182,-133,-184,-138,-135},{-181,-182,-198,-111,-168,-121},{-139,-173,-111,-164,-104,-123},{-132,-205,-119,-167,-164,-97},{-187,-203,-118,-192,-180,-119},{-200,-180,-193,-154,-134,-167},{-205,-177,-115,-128,-122,-167},{-206,-170,-182,-124,-177,-106},{-186,-137,-192,-195,-179,-101},{-182,-152,-176,-141,-148,-161},{-169,-134,-201,-153,-158,-153},{-181,-119,-143,-188,-170,-110},{-141,-124,-118,-148,-120,-179},{-194,-120,-146,-126,-127,-141}},{{-148,-136,-110,-111,-126,-145},{-121,-152,-136,-102,-130,-87},{-148,-118,-148,-111,-133,-100},{-165,-137,-140,-115,-138,-120},{-121,-159,-131,-127,-107,-127},{-146,-88,-151,-119,-113,-83},{-94,-115,-144,-86,-93,-102},{-142,-131,-88,-154,-150,-132},{-105,-122,-155,-139,-137,-108},{-153,-92,-136,-126,-145,-92},{-105,-121,-122,-104,-130,-94},{-136,-121,-151,-94,-143,-137},{-144,-164,-88,-95,-118,-120},{-141,-111,-118,-123,-87,-83},{-110,-92,-93,-111,-114,-138},{-109,-125,-129,-112,-114,-84},{-98,-120,-93,-145,-155,-118},{-170,-94,-154,-129,-99,-84},{-136,-110,-151,-123,-95,-90},{-168,-111,-157,-125,-132,-123}},{{-155,-138,-115,-93,-105,-164},{-140,-139,-102,-155,-129,-135},{-115,-87,-108,-87,-143,-150},{-150,-143,-88,-129,-85,-152},{-95,-126,-146,-143,-133,-123},{-112,-84,-120,-118,-101,-142},{-136,-154,-134,-130,-98,-140},{-155,-149,-111,-88,-129,-160},{-149,-133,-93,-143,-89,-98},{-112,-127,-151,-120,-107,-161},{-105,-89,-131,-88,-146,-111},{-144,-150,-92,-104,-93,-123},{-151,-113,-138,-106,-85,-123},{-143,-107,-90,-144,-152,-156},{-87,-95,-134,-132,-126,-161},{-108,-129,-150,-134,-131,-132},{-112,-121,-140,-84,-85,-111},{-107,-107,-111,-114,-148,-92},{-112,-102,-108,-130,-112,-141},{-119,-114,-84,-101,-133,-98}}},{{{-317,-202,-332,-215,-250,-197},{-213,-346,-269,-346,-253,-207},{-189,-202,-242,-277,-215,-200},{-340,-197,-277,-207,-202,-255},{-266,-306,-261,-194,-309,-263},{-298,-301,-269,-226,-255,-346},{-340,-338,-322,-279,-306,-271},{-346,-261,-200,-205,-271,-210},{-346,-223,-325,-330,-282,-269},{-340,-202,-314,-269,-226,-255},{-325,-258,-330,-293,-210,-290},{-186,-242,-332,-250,-210,-285},{-335,-210,-231,-213,-319,-269},{-239,-207,-298,-197,-311,-242},{-247,-266,-221,-285,-322,-202},{-295,-282,-279,-266,-266,-332},{-287,-234,-253,-340,-322,-285},{-205,-194,-245,-237,-311,-213},{-314,-314,-207,-223,-343,-242},{-247,-343,-213,-245,-290,-205}},{{-343,-311,-314,-271,-189,-197},{-269,-253,-192,-205,-210,-280},{-263,-325,-343,-231,-272,-241},{-223,-231,-239,-338,-280,-290},{-253,-282,-317,-327,-309,-275},{-346,-274,-205,-263,-330,-267},{-322,-325,-221,-295,-296,-334},{-330,-271,-229,-200,-262,-324},{-218,-298,-239,-332,-278,-194},{-223,-202,-231,-314,-236,-300},{-332,-295,-327,-285,-246,-241},{-279,-226,-269,-271,-259,-246},{-263,-250,-325,-311,-231,-259},{-311,-200,-271,-293,-215,-212},{-285,-293,-205,-247,-189,-321},{-189,-306,-200,-309,-280,-259},{-269,-266,-338,-245,-322,-282},{-298,-263,-202,-200,-215,-316},{-346,-250,-269,-239,-252,-225},{-202,-263,-197,-330,-325,-316}},{{-215,-299,-290,-253,-245,-219},{-236,-321,-181,-278,-250,-268},{-223,-266,-320,-233,-252,-207},{-189,-207,-204,-322,-289,-243},{-223,-197,-239,-265,-314,-284},{-197,-207,-219,-198,-252,-304},{-300,-197,-234,-176,-206,-239},{-272,-278,-275,-186,-284,-263},{-210,-210,-224,-221,-304,-296},{-275,-190,-197,-275,-179,-265},{-319,-278,-176,-241,-279,-186},{-218,-278,-262,-275,-284,-289},{-233,-187,-315,-253,-296,-275},{-254,-218,-207,-233,-220,-253},{-225,-207,-312,-191,-216,-224},{-293,-245,-242,-303,-208,-311},{-205,-195,-192,-248,-265,-301},{-264,-182,-244,-233,-287,-306},{-287,-301,-212,-191,-292,-270},{-184,-215,-328,-238,-194,-222}},{{-214,-251,-298,-209,-246,-278},{-236,-251,-166,-232,-235,-289},{-178,-277,-173,-193,-284,-282},{-193,-179,-247,-198,-258,-242},{-307,-258,-219,-170,-220,-249},{-290,-254,-238,-177,-276,-253},{-214,-291,-266,-288,-222,-262},{-240,-214,-252,-196,-161,-208},{-236,-287,-291,-168,-264,-193},{-221,-235,-169,-276,-170,-181},{-281,-254,-238,-216,-170,-188},{-214,-183,-219,-223,-204,-244},{-188,-296,-164,-260,-193,-289},{-248,-237,-240,-255,-224,-280},{-288,-216,-206,-299,-211,-179},{-200,-298,-286,-168,-164,-164},{-290,-273,-286,-253,-291,-164},{-171,-164,-192,-193,-278,-202},{-195,-179,-238,-198,-204,-184},{-186,-207,-180,-223,-199,-181}},{{-183,-174,-208,-184,-178,-213},{-271,-265,-282,-152,-237,-184},{-277,-158,-243,-271,-210,-273},{-194,-178,-226,-258,-180,-252},{-249,-187,-156,-191,-273,-243},{-271,-247,-182,-210,-176,-154},{-156,-208,-245,-180,-219,-158},{-169,-200,-195,-176,-256,-171},{-224,-239,-245,-180,-163,-258},{-277,-178,-156,-239,-278,-195},{-277,-152,-197,-260,-241,-239},{-205,-193,-161,-267,-215,-174},{-191,-195,-243,-271,-171,-184},{-251,-152,-276,-169,-230,-187},{-202,-197,-158,-273,-167,-169},{-286,-208,-176,-237,-210,-260},{-240,-202,-182,-217,-263,-208},{-205,-258,-267,-200,-232,-208},{-185,-241,-182,-243,-234,-163},{-264,-180,-174,-219,-215,-241}},{{-163,-197,-271,-197,-226,-215},{-187,-158,-250,-263,-156,-250},{-215,-213,-187,-156,-176,-184},{-226,-165,-234,-213,-228,-182},{-280,-219,-263,-206,-278,-167},{-271,-210,-217,-156,-180,-200},{-239,-254,-193,-215,-195,-187},{-280,-256,-197,-171,-234,-278},{-245,-230,-189,-260,-228,-200},{-226,-234,-169,-191,-202,-250},{-191,-176,-243,-230,-167,-180},{-178,-165,-191,-263,-187,-184},{-195,-273,-239,-250,-195,-250},{-180,-265,-250,-213,-217,-263},{-280,-208,-174,-176,-189,-267},{-171,-260,-217,-280,-156,-230},{-258,-230,-228,-213,-224,-178},{-267,-169,-271,-193,-252,-250},{-174,-228,-237,-195,-258,-252},{-152,-280,-174,-152,-197,-228}}},{{{-295,-343,-367,-217,-346,-290},{-373,-319,-304,-352,-259,-255},{-328,-331,-391,-325,-217,-364},{-349,-268,-217,-232,-259,-249},{-298,-256,-343,-247,-322,-311},{-328,-250,-391,-361,-325,-222},{-310,-268,-244,-349,-367,-332},{-253,-343,-334,-310,-295,-320},{-256,-256,-325,-319,-301,-237},{-298,-352,-373,-232,-226,-367},{-247,-265,-292,-388,-388,-332},{-259,-280,-280,-238,-370,-343},{-211,-352,-385,-310,-382,-290},{-313,-331,-382,-340,-334,-287},{-373,-358,-277,-331,-250,-225},{-313,-337,-259,-328,-250,-343},{-220,-349,-235,-304,-214,-284},{-253,-247,-268,-274,-382,-299},{-337,-220,-280,-376,-229,-263},{-259,-280,-349,-280,-367,-207}},{{-217,-264,-300,-224,-215,-288},{-214,-244,-272,-232,-344,-308},{-369,-244,-353,-311,-212,-316},{-343,-296,-224,-308,-329,-326},{-340,-330,-344,-227,-209,-267},{-252,-238,-235,-221,-286,-226},{-352,-273,-244,-268,-273,-267},{-372,-221,-244,-246,-276,-275},{-357,-293,-286,-259,-344,-332},{-208,-327,-314,-349,-294,-280},{-229,-301,-286,-265,-286,-324},{-267,-356,-297,-197,-209,-314},{-319,-224,-210,-281,-342,-188},{-226,-342,-216,-240,-313,-254},{-378,-359,-280,-221,-244,-314},{-314,-298,-328,-347,-313,-203},{-378,-304,-258,-232,-201,-188},{-293,-364,-358,-227,-307,-303},{-299,-232,-358,-328,-302,-257},{-246,-287,-344,-213,-215,-234}},{{-290,-298,-266,-230,-174,-154},{-216,-254,-259,-278,-201,-234},{-305,-187,-229,-283,-252,-263},{-218,-214,-215,-179,-267,-259},{-263,-271,-236,-245,-201,-156},{-174,-247,-231,-232,-191,-246},{-176,-230,-181,-245,-225,-176},{-317,-178,-289,-236,-269,-224},{-295,-199,-277,-168,-178,-220},{-221,-269,-298,-281,-182,-190},{-273,-170,-266,-287,-240,-263},{-174,-168,-183,-217,-259,-230},{-283,-178,-220,-254,-269,-186},{-184,-264,-298,-188,-250,-160},{-278,-226,-243,-261,-184,-226},{-228,-204,-266,-272,-267,-220},{-233,-190,-213,-272,-210,-204},{-253,-274,-252,-221,-195,-222},{-315,-252,-188,-245,-223,-147},{-221,-228,-279,-194,-261,-170}},{{-180,-156,-150,-143,-151,-195},{-200,-154,-144,-206,-188,-175},{-233,-171,-132,-134,-178,-158},{-241,-140,-162,-194,-203,-138},{-242,-210,-171,-184,-159,-172},{-211,-190,-134,-218,-129,-185},{-146,-206,-150,-224,-208,-200},{-211,-221,-171,-193,-183,-155},{-190,-193,-125,-124,-144,-150},{-186,-182,-203,-224,-176,-188},{-159,-147,-228,-181,-186,-171},{-159,-242,-192,-155,-141,-209},{-184,-238,-219,-175,-126,-164},{-138,-179,-203,-189,-214,-163},{-178,-236,-130,-146,-211,-192},{-178,-212,-224,-151,-161,-113},{-188,-153,-162,-201,-164,-134},{-198,-151,-135,-127,-146,-143},{-186,-229,-201,-124,-129,-195},{-147,-166,-187,-217,-209,-122}},{{-176,-119,-168,-112,-123,-168},{-147,-143,-183,-125,-111,-123},{-137,-151,-171,-169,-171,-179},{-148,-176,-194,-108,-186,-156},{-109,-108,-132,-132,-112,-160},{-142,-151,-152,-145,-162,-109},{-168,-116,-188,-183,-162,-148},{-133,-114,-145,-108,-136,-120},{-109,-119,-145,-109,-172,-162},{-164,-145,-169,-131,-152,-109},{-151,-182,-180,-169,-114,-191},{-144,-123,-180,-149,-197,-137},{-147,-185,-179,-174,-132,-129},{-115,-176,-114,-142,-129,-119},{-162,-116,-196,-182,-146,-128},{-201,-168,-191,-112,-131,-189},{-173,-182,-166,-151,-188,-172},{-198,-142,-177,-129,-186,-140},{-133,-125,-131,-137,-145,-186},{-122,-114,-122,-194,-174,-108}},{{-116,-196,-130,-183,-172,-168},{-163,-148,-147,-129,-173,-147},{-116,-111,-196,-139,-142,-219},{-174,-140,-188,-188,-140,-167},{-197,-121,-181,-180,-130,-212},{-119,-137,-160,-128,-138,-127},{-146,-207,-172,-143,-177,-176},{-146,-186,-157,-210,-224,-197},{-196,-146,-154,-181,-170,-226},{-194,-111,-159,-160,-217,-210},{-128,-197,-172,-188,-210,-170},{-177,-191,-130,-190,-164,-139},{-128,-137,-165,-202,-217,-185},{-120,-181,-172,-166,-201,-177},{-132,-183,-177,-158,-180,-183},{-179,-184,-139,-215,-226,-212},{-186,-146,-136,-200,-203,-141},{-166,-162,-172,-215,-198,-148},{-108,-132,-115,-123,-186,-224},{-177,-121,-160,-165,-182,-223}}},{{{-427,-248,-248,-315,-392,-413},{-256,-452,-434,-340,-444,-245},{-382,-455,-326,-332,-406,-364},{-266,-402,-256,-245,-399,-448},{-374,-402,-378,-392,-346,-304},{-256,-312,-448,-455,-312,-284},{-374,-382,-301,-270,-284,-284},{-416,-420,-350,-346,-294,-364},{-287,-326,-294,-329,-290,-357},{-350,-329,-350,-424,-424,-385},{-287,-248,-406,-452,-290,-410},{-318,-430,-455,-256,-424,-406},{-343,-357,-354,-382,-298,-360},{-245,-262,-304,-374,-378,-420},{-304,-430,-371,-304,-389,-290},{-315,-343,-441,-395,-326,-262},{-322,-322,-248,-389,-392,-452},{-360,-340,-430,-382,-326,-346},{-280,-346,-399,-284,-322,-444},{-424,-248,-350,-287,-294,-284}},{{-271,-364,-420,-271,-282,-245},{-390,-261,-315,-337,-321,-309},{-324,-309,-393,-281,-377,-322},{-414,-374,-434,-344,-335,-248},{-442,-425,-271,-401,-417,-361},{-313,-357,-370,-294,-305,-415},{-285,-288,-329,-317,-262,-319},{-404,-367,-356,-404,-371,-338},{-438,-364,-353,-250,-262,-354},{-393,-364,-346,-397,-239,-293},{-386,-436,-305,-240,-321,-293},{-341,-412,-397,-354,-269,-267},{-251,-391,-356,-431,-371,-419},{-372,-264,-407,-237,-279,-396},{-355,-350,-390,-267,-374,-383},{-393,-425,-393,-397,-308,-232},{-414,-439,-376,-254,-407,-383},{-251,-295,-288,-394,-335,-248},{-251,-374,-308,-354,-259,-328},{-348,-432,-271,-314,-253,-402}},{{-309,-345,-294,-287,-333,-342},{-378,-348,-255,-237,-345,-242},{-290,-333,-330,-369,-353,-303},{-346,-363,-342,-302,-279,-314},{-306,-351,-264,-352,-274,-267},{-384,-376,-255,-363,-311,-281},{-315,-388,-234,-249,-319,-306},{-350,-370,-267,-316,-305,-195},{-400,-363,-285,-331,-345,-259},{-340,-271,-381,-325,-251,-342},{-255,-360,-321,-211,-282,-234},{-261,-317,-381,-287,-328,-264},{-372,-259,-240,-243,-274,-267},{-410,-385,-291,-331,-368,-239},{-312,-385,-330,-220,-319,-286},{-265,-302,-360,-243,-245,-197},{-271,-333,-378,-340,-202,-200},{-334,-237,-216,-264,-316,-303},{-375,-388,-369,-205,-254,-303},{-306,-320,-372,-340,-219,-259}},{{-310,-313,-285,-248,-304,-241},{-313,-302,-254,-191,-176,-229},{-265,-234,-242,-279,-277,-304},{-238,-239,-252,-196,-218,-225},{-205,-221,-213,-259,-203,-304},{-308,-334,-211,-213,-318,-203},{-219,-292,-267,-228,-240,-184},{-316,-323,-326,-306,-299,-179},{-297,-313,-249,-264,-274,-304},{-321,-208,-242,-296,-172,-222},{-321,-242,-218,-228,-257,-196},{-270,-250,-218,-316,-270,-294},{-211,-229,-314,-324,-272,-191},{-305,-266,-226,-238,-257,-203},{-194,-200,-231,-218,-272,-225},{-348,-245,-270,-296,-179,-203},{-348,-331,-242,-221,-309,-265},{-238,-289,-319,-193,-257,-249},{-200,-284,-182,-233,-309,-284},{-194,-289,-234,-259,-306,-296}},{{-182,-226,-263,-252,-268,-254},{-194,-263,-249,-192,-291,-256},{-209,-268,-277,-229,-180,-162},{-211,-169,-215,-268,-243,-286},{-187,-284,-176,-206,-247,-233},{-275,-298,-280,-206,-247,-199},{-284,-256,-210,-293,-284,-268},{-275,-178,-219,-171,-254,-189},{-166,-224,-180,-233,-224,-187},{-194,-291,-240,-296,-233,-196},{-303,-178,-224,-201,-247,-293},{-308,-277,-213,-245,-252,-296},{-180,-185,-206,-268,-217,-166},{-185,-233,-208,-254,-199,-226},{-211,-226,-291,-176,-199,-236},{-249,-187,-256,-201,-164,-261},{-230,-275,-245,-286,-298,-261},{-206,-176,-194,-194,-286,-208},{-306,-275,-238,-206,-233,-259},{-249,-199,-173,-210,-268,-187}},{{-203,-277,-210,-214,-269,-285},{-249,-231,-287,-276,-254,-204},{-189,-300,-219,-267,-213,-271},{-226,-256,-301,-224,-259,-263},{-166,-284,-196,-271,-259,-197},{-293,-293,-207,-269,-298,-300},{-224,-238,-266,-243,-203,-180},{-176,-268,-270,-257,-242,-251},{-263,-196,-207,-252,-286,-293},{-166,-268,-259,-181,-286,-293},{-261,-224,-301,-283,-225,-180},{-224,-176,-270,-290,-307,-199},{-169,-178,-221,-188,-235,-184},{-240,-231,-207,-221,-174,-216},{-266,-259,-277,-195,-266,-263},{-300,-176,-247,-236,-194,-295},{-243,-208,-168,-243,-278,-295},{-296,-192,-303,-167,-295,-315},{-289,-166,-214,-243,-215,-268},{-166,-249,-191,-195,-235,-303}}}}; // 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]={15,8,5,16,8,5,15,8,5,16,8,6,17,9,6,16,8,6,17,9,6,16,8,6,17,9,6,16,8,6,17,8,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,18,9,6,17,9,6,17,8,6,17,9,6,17,8,6,16,9,6,16,8,6}; // 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,347,348},{349,350,351,352,353,354,355,356,357},{358,359,360,361,362,363},{364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380},{381,382,383,384,385,386,387,388,389},{390,391,392,393,394,395},{396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412},{413,414,415,416,417,418,419,420,421},{422,423,424,425,426,427},{428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444},{445,446,447,448,449,450,451,452,453},{454,455,456,457,458,459},{460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476},{477,478,479,480,481,482,483,484,485},{486,487,488,489,490,491},{492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508},{509,510,511,512,513,514,515,516,517},{518,519,520,521,522,523},{524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541},{542,543,544,545,546,547,548,549,550},{551,552,553,554,555,556},{557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573},{574,575,576,577,578,579,580,581,582},{583,584,585,586,587,588},{589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605},{606,607,608,609,610,611,612,613},{614,615,616,617,618,619},{620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636},{637,638,639,640,641,642,643,644,645},{646,647,648,649,650,651},{652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668},{669,670,671,672,673,674,675,676},{677,678,679,680,681,682},{683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698},{699,700,701,702,703,704,705,706,707},{708,709,710,711,712,713},{714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729},{730,731,732,733,734,735,736,737},{738,739,740,741,742,743}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,1,5,9,13,17,21,25,29,2,8,14,20,26,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,0,4,8,12,16,20,24,28,2,8,14,20,26,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,2,6,10,14,18,22,26,30,2,8,14,20,26,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,5,9,13,17,21,25,29,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,5,9,13,17,21,25,29,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,34,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,34,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,2,6,10,14,18,22,26,30,1,7,13,19,25,31}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,6,10,14,18,22,26,30,34,7,13,19,25,31,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,7,13,19,25,31,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,7,11,15,19,23,27,31,35,7,13,19,25,31,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,5,11,17,23,29,35,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,4,10,16,22,28,34,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,1,7,13,19,25,31,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,1,5,9,13,17,21,25,29,33,3,9,15,21,27,33,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,1,5,9,13,17,21,25,29,33,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,3,9,15,21,27,33,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,4,10,16,22,28,34}; // set of end times of each shipment 
