int Dev = 20;// 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 = 750;//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]={{{{12190,0,0,0,0,0},{12209,0,0,0,0,0},{12439,0,0,0,0,0},{12349,0,0,0,0,0},{12499,0,0,0,0,0},{12423,0,0,0,0,0},{12277,0,0,0,0,0},{12185,0,0,0,0,0},{12461,0,0,0,0,0},{12388,0,0,0,0,0},{12577,0,0,0,0,0},{12033,0,0,0,0,0},{12618,0,0,0,0,0},{12280,0,0,0,0,0},{12400,0,0,0,0,0},{12451,0,0,0,0,0},{12138,0,0,0,0,0},{12104,0,0,0,0,0},{12487,0,0,0,0,0},{12280,0,0,0,0,0}},{{12208,0,0,0,0,0},{12615,0,0,0,0,0},{12512,0,0,0,0,0},{12229,0,0,0,0,0},{12479,0,0,0,0,0},{12535,0,0,0,0,0},{12610,0,0,0,0,0},{12083,0,0,0,0,0},{12413,0,0,0,0,0},{12644,0,0,0,0,0},{12472,0,0,0,0,0},{12658,0,0,0,0,0},{12261,0,0,0,0,0},{12655,0,0,0,0,0},{12267,0,0,0,0,0},{12708,0,0,0,0,0},{12434,0,0,0,0,0},{12659,0,0,0,0,0},{12130,0,0,0,0,0},{12285,0,0,0,0,0}},{{11477,0,0,0,0,0},{11591,0,0,0,0,0},{11108,0,0,0,0,0},{11432,0,0,0,0,0},{11569,0,0,0,0,0},{11590,0,0,0,0,0},{11502,0,0,0,0,0},{11804,0,0,0,0,0},{11493,0,0,0,0,0},{11408,0,0,0,0,0},{11582,0,0,0,0,0},{11582,0,0,0,0,0},{11649,0,0,0,0,0},{11794,0,0,0,0,0},{11280,0,0,0,0,0},{11661,0,0,0,0,0},{11654,0,0,0,0,0},{11696,0,0,0,0,0},{11842,0,0,0,0,0},{11510,0,0,0,0,0}},{{10593,0,0,0,0,0},{10501,0,0,0,0,0},{10214,0,0,0,0,0},{10306,0,0,0,0,0},{10302,0,0,0,0,0},{10089,0,0,0,0,0},{10365,0,0,0,0,0},{10542,0,0,0,0,0},{10343,0,0,0,0,0},{10263,0,0,0,0,0},{10306,0,0,0,0,0},{10531,0,0,0,0,0},{10391,0,0,0,0,0},{10621,0,0,0,0,0},{9898,0,0,0,0,0},{10481,0,0,0,0,0},{10275,0,0,0,0,0},{10532,0,0,0,0,0},{10458,0,0,0,0,0},{10088,0,0,0,0,0}},{{9459,0,0,0,0,0},{9328,0,0,0,0,0},{9409,0,0,0,0,0},{9471,0,0,0,0,0},{9648,0,0,0,0,0},{9669,0,0,0,0,0},{9634,0,0,0,0,0},{9307,0,0,0,0,0},{9435,0,0,0,0,0},{9693,0,0,0,0,0},{9678,0,0,0,0,0},{9373,0,0,0,0,0},{9199,0,0,0,0,0},{9794,0,0,0,0,0},{9175,0,0,0,0,0},{9372,0,0,0,0,0},{9347,0,0,0,0,0},{9381,0,0,0,0,0},{9615,0,0,0,0,0},{9536,0,0,0,0,0}},{{9278,0,0,0,0,0},{9022,0,0,0,0,0},{9375,0,0,0,0,0},{9239,0,0,0,0,0},{9245,0,0,0,0,0},{9140,0,0,0,0,0},{9363,0,0,0,0,0},{9428,0,0,0,0,0},{9154,0,0,0,0,0},{9176,0,0,0,0,0},{9138,0,0,0,0,0},{8880,0,0,0,0,0},{9018,0,0,0,0,0},{8858,0,0,0,0,0},{9493,0,0,0,0,0},{9193,0,0,0,0,0},{9029,0,0,0,0,0},{9382,0,0,0,0,0},{9111,0,0,0,0,0},{9346,0,0,0,0,0}}},{{{-262,-247,-338,-244,-282,-265},{-250,-253,-273,-268,-329,-318},{-288,-259,-270,-276,-347,-247},{-294,-241,-235,-244,-303,-326},{-312,-291,-300,-332,-341,-338},{-244,-262,-288,-335,-318,-326},{-247,-279,-350,-270,-320,-259},{-282,-294,-253,-294,-238,-262},{-312,-306,-270,-247,-353,-335},{-256,-344,-273,-338,-282,-326},{-341,-276,-273,-268,-303,-344},{-276,-235,-306,-244,-315,-329},{-329,-265,-288,-303,-318,-338},{-238,-247,-332,-350,-323,-259},{-338,-247,-347,-312,-323,-288},{-235,-294,-262,-250,-294,-329},{-291,-256,-244,-297,-250,-350},{-238,-332,-247,-270,-265,-268},{-329,-312,-344,-315,-315,-285},{-347,-303,-279,-235,-338,-297}},{{-313,-312,-280,-252,-216,-287},{-328,-249,-260,-312,-307,-300},{-310,-340,-238,-238,-312,-303},{-252,-329,-230,-326,-256,-212},{-249,-275,-297,-266,-291,-215},{-299,-255,-230,-315,-312,-212},{-331,-257,-316,-312,-296,-210},{-249,-329,-246,-290,-275,-272},{-276,-232,-319,-301,-275,-287},{-334,-266,-263,-260,-227,-249},{-293,-275,-311,-238,-264,-267},{-302,-340,-297,-260,-294,-241},{-284,-312,-232,-219,-299,-264},{-316,-255,-328,-304,-278,-306},{-244,-275,-266,-255,-283,-233},{-244,-317,-227,-312,-302,-238},{-310,-249,-336,-288,-286,-306},{-322,-320,-274,-315,-283,-293},{-322,-249,-263,-271,-246,-267},{-328,-272,-336,-315,-294,-228}},{{-222,-206,-205,-199,-240,-194},{-268,-278,-235,-231,-250,-210},{-212,-225,-217,-224,-250,-204},{-270,-261,-189,-240,-212,-192},{-202,-281,-240,-186,-220,-229},{-240,-235,-249,-240,-220,-206},{-278,-281,-263,-228,-212,-243},{-210,-264,-280,-242,-255,-185},{-298,-220,-249,-215,-218,-214},{-265,-281,-275,-253,-178,-194},{-280,-215,-203,-258,-248,-173},{-262,-269,-214,-264,-250,-220},{-262,-269,-210,-255,-178,-200},{-242,-269,-273,-186,-201,-190},{-265,-247,-217,-188,-214,-202},{-255,-225,-228,-253,-238,-198},{-210,-249,-233,-213,-246,-218},{-235,-254,-270,-251,-214,-222},{-265,-232,-221,-264,-238,-214},{-225,-271,-231,-228,-250,-208}},{{-221,-153,-204,-138,-190,-181},{-197,-193,-213,-182,-172,-144},{-171,-211,-152,-138,-167,-182},{-221,-185,-177,-170,-162,-139},{-205,-208,-204,-189,-150,-141},{-189,-170,-159,-148,-153,-147},{-234,-181,-177,-187,-175,-168},{-215,-209,-181,-153,-157,-174},{-191,-196,-145,-143,-137,-184},{-227,-174,-179,-157,-172,-136},{-171,-168,-152,-193,-185,-139},{-197,-191,-147,-169,-193,-131},{-236,-155,-150,-187,-190,-155},{-211,-155,-209,-186,-135,-181},{-164,-181,-165,-165,-142,-133},{-160,-163,-175,-201,-160,-147},{-160,-204,-179,-148,-183,-158},{-173,-206,-181,-200,-182,-152},{-183,-219,-170,-179,-132,-136},{-171,-202,-147,-153,-157,-179}},{{-152,-176,-132,-129,-147,-165},{-140,-170,-175,-143,-137,-168},{-128,-159,-119,-138,-125,-123},{-140,-168,-146,-129,-146,-159},{-129,-134,-162,-122,-126,-156},{-134,-162,-123,-131,-163,-163},{-128,-150,-147,-144,-126,-168},{-160,-161,-129,-160,-154,-126},{-171,-177,-135,-166,-143,-123},{-163,-137,-160,-154,-148,-166},{-149,-177,-143,-134,-166,-125},{-125,-170,-123,-140,-126,-156},{-140,-137,-163,-131,-144,-150},{-185,-137,-132,-151,-137,-123},{-131,-130,-165,-137,-123,-135},{-154,-149,-156,-141,-126,-168},{-128,-139,-148,-141,-138,-128},{-168,-137,-122,-172,-157,-123},{-183,-161,-135,-151,-118,-159},{-172,-121,-131,-160,-157,-154}},{{-172,-118,-145,-176,-167,-157},{-144,-160,-151,-123,-161,-144},{-172,-135,-148,-180,-132,-180},{-134,-173,-139,-165,-161,-139},{-125,-126,-172,-136,-158,-137},{-163,-148,-133,-177,-175,-134},{-143,-169,-149,-179,-158,-174},{-165,-123,-134,-171,-172,-190},{-163,-140,-127,-172,-140,-184},{-122,-122,-145,-132,-138,-189},{-147,-168,-180,-168,-156,-149},{-168,-146,-142,-157,-153,-144},{-154,-162,-133,-145,-161,-164},{-131,-169,-165,-123,-151,-154},{-138,-140,-127,-185,-148,-150},{-140,-140,-178,-151,-159,-157},{-141,-131,-156,-168,-143,-169},{-121,-151,-128,-168,-180,-139},{-119,-151,-145,-129,-164,-162},{-131,-118,-146,-183,-132,-159}}},{{{-139,-167,-191,-197,-147,-164},{-139,-196,-154,-208,-147,-159},{-188,-142,-184,-179,-177,-220},{-202,-169,-159,-188,-202,-164},{-195,-174,-205,-145,-197,-166},{-156,-161,-173,-154,-160,-220},{-173,-196,-196,-195,-167,-220},{-161,-186,-147,-215,-182,-201},{-156,-189,-196,-195,-184,-220},{-146,-144,-144,-213,-208,-220},{-146,-177,-172,-177,-217,-202},{-188,-194,-145,-174,-153,-229},{-138,-172,-149,-181,-197,-153},{-198,-150,-173,-215,-166,-191},{-190,-174,-194,-158,-195,-162},{-192,-186,-178,-211,-219,-222},{-188,-196,-178,-175,-171,-160},{-181,-161,-147,-170,-177,-164},{-138,-147,-149,-172,-147,-229},{-158,-150,-163,-163,-177,-229}},{{-186,-164,-219,-254,-261,-243},{-236,-209,-239,-179,-188,-200},{-176,-223,-187,-203,-252,-245},{-228,-174,-192,-261,-231,-255},{-180,-166,-253,-221,-263,-274},{-214,-166,-243,-208,-256,-248},{-182,-199,-228,-263,-268,-231},{-168,-197,-179,-232,-256,-259},{-198,-234,-194,-236,-202,-262},{-162,-244,-217,-256,-213,-209},{-196,-203,-222,-265,-206,-226},{-174,-199,-251,-192,-263,-250},{-204,-209,-217,-188,-195,-238},{-190,-166,-177,-181,-266,-255},{-180,-207,-192,-241,-250,-209},{-222,-205,-207,-236,-215,-267},{-200,-232,-194,-221,-231,-250},{-182,-199,-251,-239,-254,-278},{-188,-234,-234,-248,-195,-224},{-202,-219,-215,-248,-204,-219}},{{-279,-258,-270,-254,-327,-328},{-198,-306,-270,-246,-224,-252},{-227,-219,-314,-256,-271,-252},{-237,-296,-299,-262,-230,-232},{-274,-306,-283,-232,-244,-286},{-220,-237,-220,-265,-283,-311},{-274,-268,-283,-319,-249,-286},{-254,-278,-244,-281,-269,-266},{-289,-280,-236,-248,-302,-249},{-212,-252,-223,-297,-305,-232},{-259,-232,-252,-300,-321,-263},{-272,-260,-228,-259,-224,-291},{-217,-212,-252,-313,-299,-283},{-245,-306,-217,-256,-319,-226},{-230,-280,-215,-281,-258,-308},{-240,-286,-228,-232,-274,-331},{-269,-275,-286,-310,-238,-243},{-247,-240,-280,-324,-294,-334},{-230,-250,-244,-313,-324,-260},{-227,-204,-272,-292,-233,-308}},{{-335,-350,-337,-283,-361,-304},{-272,-235,-337,-346,-358,-343},{-277,-285,-304,-286,-310,-322},{-269,-279,-310,-355,-337,-358},{-338,-262,-316,-352,-295,-262},{-289,-250,-307,-340,-265,-331},{-272,-347,-289,-334,-355,-334},{-237,-350,-304,-328,-274,-358},{-341,-341,-286,-277,-355,-271},{-234,-326,-322,-283,-274,-316},{-344,-247,-307,-325,-244,-271},{-243,-329,-280,-325,-289,-325},{-280,-256,-325,-241,-334,-289},{-246,-320,-358,-343,-319,-331},{-254,-341,-301,-352,-289,-268},{-347,-318,-307,-256,-283,-331},{-251,-353,-286,-352,-262,-250},{-301,-341,-316,-355,-295,-292},{-327,-303,-289,-259,-274,-292},{-318,-323,-316,-244,-253,-316}},{{-289,-361,-307,-273,-259,-264},{-247,-304,-352,-258,-332,-255},{-346,-337,-310,-249,-344,-281},{-361,-313,-259,-345,-253,-267},{-244,-274,-331,-357,-279,-299},{-334,-289,-295,-294,-341,-336},{-310,-346,-247,-354,-318,-278},{-292,-322,-277,-288,-332,-244},{-361,-343,-298,-252,-312,-316},{-328,-313,-283,-354,-332,-276},{-277,-358,-337,-294,-306,-342},{-307,-256,-268,-288,-341,-339},{-253,-268,-283,-240,-235,-319},{-361,-355,-358,-354,-341,-325},{-247,-265,-295,-285,-238,-342},{-265,-322,-304,-333,-332,-249},{-265,-346,-265,-321,-300,-307},{-253,-340,-325,-291,-268,-252},{-358,-325,-298,-342,-318,-290},{-301,-334,-286,-276,-279,-252}},{{-262,-307,-238,-304,-238,-213},{-262,-290,-325,-235,-230,-283},{-314,-282,-276,-259,-246,-265},{-279,-265,-252,-314,-279,-226},{-291,-265,-225,-267,-279,-270},{-274,-254,-290,-219,-233,-293},{-259,-332,-322,-230,-279,-248},{-319,-226,-298,-301,-212,-216},{-239,-282,-325,-298,-256,-248},{-299,-271,-304,-293,-271,-231},{-228,-290,-266,-269,-305,-241},{-259,-232,-317,-216,-223,-283},{-291,-265,-257,-235,-300,-273},{-237,-293,-257,-235,-230,-298},{-294,-251,-238,-282,-251,-263},{-245,-315,-325,-238,-210,-265},{-234,-257,-306,-243,-271,-275},{-285,-265,-309,-267,-266,-241},{-274,-299,-287,-227,-307,-236},{-265,-234,-241,-224,-236,-288}}},{{{-365,-303,-355,-365,-286,-375},{-326,-372,-329,-319,-293,-293},{-303,-388,-359,-392,-372,-392},{-365,-309,-395,-283,-382,-276},{-339,-273,-266,-339,-345,-303},{-349,-378,-388,-385,-322,-378},{-296,-283,-273,-362,-375,-326},{-319,-368,-313,-372,-266,-378},{-352,-329,-352,-319,-299,-303},{-270,-359,-382,-362,-372,-349},{-365,-362,-303,-342,-388,-263},{-329,-270,-309,-385,-283,-375},{-339,-375,-382,-359,-303,-359},{-316,-280,-309,-286,-316,-395},{-270,-286,-306,-382,-290,-388},{-309,-309,-270,-355,-266,-283},{-283,-349,-319,-299,-332,-316},{-385,-286,-329,-359,-313,-368},{-382,-263,-365,-266,-306,-339},{-345,-313,-273,-372,-378,-368}},{{-298,-386,-319,-251,-256,-277},{-318,-290,-274,-367,-274,-349},{-348,-364,-258,-286,-280,-268},{-364,-299,-284,-339,-348,-313},{-387,-264,-284,-342,-299,-352},{-361,-328,-348,-342,-326,-289},{-269,-280,-341,-330,-357,-328},{-279,-267,-268,-257,-265,-361},{-321,-377,-364,-336,-271,-331},{-325,-293,-341,-251,-311,-361},{-308,-258,-373,-342,-363,-340},{-341,-283,-290,-361,-339,-313},{-276,-312,-306,-257,-323,-358},{-387,-383,-357,-345,-367,-352},{-374,-386,-271,-317,-277,-277},{-289,-328,-287,-374,-299,-301},{-312,-377,-335,-311,-296,-268},{-354,-351,-255,-254,-308,-253},{-361,-309,-268,-298,-314,-355},{-305,-374,-290,-311,-249,-271}},{{-333,-239,-238,-326,-302,-234},{-313,-276,-308,-264,-212,-280},{-245,-242,-238,-294,-302,-216},{-333,-297,-252,-250,-217,-221},{-307,-305,-291,-307,-292,-244},{-266,-340,-269,-234,-228,-224},{-289,-288,-227,-296,-241,-265},{-254,-337,-238,-307,-228,-283},{-280,-317,-249,-272,-252,-260},{-260,-245,-258,-326,-265,-226},{-254,-294,-246,-250,-313,-239},{-324,-285,-230,-288,-246,-260},{-251,-340,-280,-245,-305,-239},{-283,-337,-314,-305,-220,-216},{-236,-268,-246,-250,-262,-272},{-333,-314,-325,-258,-315,-290},{-277,-328,-294,-280,-225,-257},{-316,-276,-322,-299,-278,-260},{-260,-308,-336,-275,-313,-224},{-236,-274,-272,-218,-270,-226}},{{-238,-233,-235,-270,-237,-217},{-220,-279,-209,-277,-246,-250},{-232,-267,-192,-252,-197,-252},{-250,-197,-190,-187,-235,-226},{-250,-275,-251,-254,-184,-219},{-265,-270,-246,-254,-222,-215},{-228,-211,-218,-256,-226,-191},{-250,-245,-277,-222,-202,-232},{-285,-238,-194,-208,-231,-237},{-285,-258,-254,-243,-235,-219},{-285,-211,-199,-210,-240,-199},{-278,-236,-232,-275,-262,-239},{-235,-238,-251,-263,-242,-223},{-255,-202,-265,-247,-249,-263},{-258,-243,-251,-203,-215,-252},{-235,-277,-204,-206,-195,-247},{-240,-258,-270,-189,-220,-197},{-208,-233,-261,-201,-204,-199},{-242,-231,-209,-266,-258,-215},{-225,-250,-277,-203,-195,-219}},{{-224,-172,-241,-223,-195,-172},{-243,-239,-176,-191,-191,-204},{-234,-237,-168,-172,-193,-178},{-237,-193,-176,-189,-200,-218},{-208,-220,-172,-208,-193,-185},{-226,-200,-200,-223,-216,-233},{-195,-187,-233,-185,-252,-191},{-247,-176,-252,-195,-176,-225},{-195,-225,-220,-235,-170,-187},{-202,-248,-233,-185,-237,-189},{-258,-172,-200,-223,-244,-202},{-189,-216,-174,-241,-197,-237},{-258,-191,-193,-250,-183,-168},{-215,-223,-191,-244,-195,-241},{-189,-218,-233,-189,-212,-212},{-215,-244,-200,-183,-193,-189},{-237,-202,-235,-200,-248,-200},{-193,-206,-233,-206,-244,-248},{-252,-178,-208,-183,-187,-216},{-239,-197,-183,-239,-227,-210}},{{-223,-225,-217,-250,-189,-248},{-172,-168,-241,-184,-194,-187},{-233,-218,-198,-226,-246,-184},{-197,-237,-173,-204,-220,-259},{-235,-208,-236,-182,-202,-250},{-229,-172,-253,-234,-202,-225},{-176,-206,-173,-206,-227,-218},{-202,-241,-251,-245,-264,-194},{-225,-250,-236,-206,-178,-227},{-176,-225,-194,-234,-257,-259},{-212,-183,-205,-174,-176,-212},{-197,-212,-207,-215,-202,-196},{-189,-225,-232,-237,-180,-196},{-197,-218,-194,-176,-185,-252},{-225,-176,-226,-245,-231,-261},{-204,-178,-175,-195,-229,-238},{-250,-172,-186,-219,-176,-227},{-191,-250,-179,-202,-249,-266},{-208,-168,-215,-178,-262,-196},{-193,-229,-222,-221,-262,-254}}},{{{-85,-87,-105,-132,-137,-133},{-125,-124,-111,-117,-142,-141},{-101,-119,-99,-115,-110,-147},{-101,-109,-122,-122,-111,-129},{-102,-85,-94,-109,-139,-127},{-126,-95,-105,-97,-120,-110},{-105,-99,-104,-101,-117,-102},{-84,-99,-106,-125,-131,-114},{-113,-101,-129,-98,-102,-113},{-90,-89,-99,-124,-99,-143},{-86,-87,-108,-124,-135,-108},{-86,-103,-122,-95,-140,-137},{-117,-121,-129,-118,-144,-146},{-102,-88,-94,-111,-132,-104},{-86,-121,-120,-131,-109,-114},{-112,-92,-115,-102,-113,-127},{-101,-88,-91,-122,-98,-140},{-98,-103,-121,-135,-135,-148},{-113,-91,-96,-108,-138,-150},{-85,-93,-94,-109,-124,-152}},{{-108,-120,-154,-166,-163,-165},{-117,-120,-163,-124,-164,-181},{-158,-124,-123,-169,-175,-202},{-144,-147,-163,-144,-148,-175},{-109,-131,-142,-160,-167,-148},{-162,-128,-121,-161,-161,-180},{-108,-121,-141,-152,-187,-150},{-126,-151,-164,-124,-156,-136},{-123,-159,-158,-166,-177,-148},{-140,-135,-126,-150,-135,-181},{-147,-130,-132,-147,-134,-139},{-130,-131,-124,-181,-135,-202},{-128,-120,-154,-124,-143,-198},{-157,-138,-149,-144,-130,-141},{-162,-140,-178,-133,-184,-202},{-142,-166,-176,-184,-159,-181},{-130,-165,-160,-153,-179,-146},{-154,-162,-173,-153,-190,-175},{-138,-140,-148,-144,-140,-183},{-132,-162,-124,-149,-163,-160}},{{-191,-180,-160,-167,-180,-200},{-203,-187,-179,-213,-210,-166},{-187,-171,-151,-184,-208,-160},{-177,-196,-190,-198,-235,-224},{-175,-193,-179,-209,-184,-232},{-149,-200,-195,-205,-221,-212},{-201,-155,-177,-213,-235,-192},{-196,-167,-206,-194,-196,-208},{-203,-207,-218,-154,-235,-162},{-196,-212,-179,-163,-190,-198},{-158,-202,-214,-190,-220,-224},{-178,-173,-156,-228,-227,-182},{-168,-180,-208,-156,-214,-212},{-163,-169,-201,-194,-225,-232},{-175,-198,-179,-188,-210,-204},{-163,-180,-179,-228,-220,-192},{-189,-149,-212,-207,-186,-218},{-203,-149,-164,-152,-159,-200},{-208,-196,-177,-194,-202,-214},{-175,-193,-218,-228,-202,-238}},{{-240,-219,-238,-238,-207,-242},{-223,-191,-179,-240,-189,-235},{-221,-181,-189,-175,-183,-238},{-215,-217,-179,-166,-187,-179},{-211,-185,-207,-240,-179,-171},{-197,-244,-199,-215,-171,-191},{-242,-209,-185,-187,-195,-197},{-240,-238,-242,-229,-179,-221},{-162,-211,-209,-231,-199,-219},{-177,-213,-221,-211,-231,-181},{-215,-223,-215,-217,-177,-207},{-173,-229,-173,-213,-240,-195},{-217,-187,-227,-225,-171,-164},{-209,-166,-173,-211,-162,-215},{-164,-175,-171,-195,-211,-197},{-229,-215,-233,-162,-213,-221},{-189,-244,-225,-179,-168,-164},{-191,-233,-215,-189,-229,-185},{-189,-233,-240,-244,-244,-193},{-179,-211,-209,-207,-213,-171}},{{-238,-242,-229,-170,-164,-151},{-209,-175,-197,-191,-197,-171},{-191,-229,-187,-164,-170,-208},{-235,-219,-185,-176,-197,-158},{-227,-203,-195,-195,-183,-164},{-173,-175,-223,-218,-200,-175},{-217,-215,-171,-216,-200,-201},{-166,-223,-225,-216,-227,-164},{-209,-162,-195,-209,-217,-191},{-213,-225,-213,-207,-163,-201},{-211,-179,-219,-156,-200,-193},{-211,-205,-165,-156,-187,-210},{-223,-175,-187,-220,-212,-206},{-227,-240,-209,-234,-189,-204},{-164,-209,-215,-193,-151,-213},{-219,-177,-215,-172,-206,-195},{-203,-183,-162,-174,-163,-215},{-199,-219,-185,-222,-191,-153},{-179,-211,-221,-209,-210,-166},{-244,-219,-217,-226,-166,-147}},{{-175,-187,-155,-141,-158,-163},{-177,-183,-189,-150,-173,-122},{-208,-175,-182,-178,-133,-119},{-161,-157,-172,-184,-138,-140},{-150,-194,-134,-152,-176,-168},{-170,-175,-142,-136,-170,-137},{-145,-194,-145,-190,-168,-121},{-163,-182,-189,-165,-122,-134},{-166,-144,-200,-166,-167,-123},{-177,-166,-154,-160,-182,-171},{-174,-190,-180,-187,-182,-154},{-172,-166,-162,-142,-151,-134},{-147,-138,-137,-181,-156,-163},{-161,-157,-137,-136,-156,-119},{-154,-187,-184,-184,-155,-132},{-192,-142,-157,-187,-181,-173},{-156,-164,-160,-157,-171,-132},{-206,-171,-189,-166,-159,-148},{-147,-154,-145,-158,-176,-129},{-172,-192,-187,-174,-162,-141}}},{{{-268,-193,-274,-190,-248,-217},{-191,-252,-252,-274,-269,-193},{-261,-264,-233,-226,-259,-200},{-191,-286,-224,-255,-248,-259},{-214,-245,-195,-228,-217,-286},{-221,-281,-190,-228,-286,-195},{-210,-209,-226,-250,-240,-267},{-238,-269,-198,-274,-240,-271},{-212,-267,-205,-243,-274,-269},{-214,-269,-205,-200,-257,-198},{-233,-264,-238,-274,-236,-190},{-191,-212,-219,-281,-198,-281},{-186,-243,-231,-190,-240,-250},{-263,-217,-212,-195,-209,-252},{-210,-257,-236,-264,-283,-255},{-252,-219,-226,-262,-202,-276},{-228,-286,-248,-257,-200,-271},{-200,-238,-214,-274,-257,-195},{-275,-193,-255,-274,-209,-286},{-238,-238,-221,-286,-209,-219}},{{-257,-281,-221,-194,-206,-186},{-276,-255,-277,-222,-235,-221},{-212,-190,-219,-226,-251,-261},{-262,-245,-266,-261,-201,-243},{-217,-278,-254,-275,-235,-203},{-269,-269,-256,-270,-264,-217},{-286,-207,-280,-273,-201,-230},{-271,-209,-254,-245,-262,-177},{-255,-209,-275,-254,-221,-190},{-217,-271,-263,-192,-215,-263},{-207,-240,-280,-219,-251,-199},{-264,-209,-258,-243,-192,-232},{-202,-224,-256,-185,-269,-259},{-231,-248,-280,-233,-210,-265},{-255,-224,-251,-261,-264,-208},{-276,-228,-214,-266,-197,-241},{-209,-221,-216,-222,-240,-263},{-271,-224,-209,-254,-260,-250},{-207,-236,-244,-233,-262,-243},{-257,-233,-209,-259,-188,-183}},{{-194,-207,-228,-207,-178,-144},{-215,-180,-184,-166,-219,-155},{-234,-215,-196,-168,-150,-194},{-243,-251,-182,-203,-172,-182},{-219,-173,-166,-211,-193,-191},{-234,-222,-206,-183,-213,-169},{-219,-228,-164,-174,-155,-202},{-252,-232,-214,-203,-151,-189},{-189,-226,-228,-164,-168,-158},{-230,-184,-174,-218,-206,-214},{-198,-245,-212,-226,-172,-160},{-258,-167,-236,-176,-215,-144},{-198,-249,-192,-177,-198,-207},{-178,-188,-206,-215,-178,-191},{-209,-228,-176,-156,-219,-193},{-209,-169,-224,-166,-174,-202},{-237,-192,-240,-160,-151,-171},{-178,-171,-166,-179,-224,-157},{-230,-234,-198,-181,-209,-146},{-200,-178,-238,-189,-221,-214}},{{-139,-158,-157,-135,-158,-127},{-170,-186,-155,-120,-131,-153},{-203,-195,-143,-160,-145,-144},{-148,-177,-129,-164,-153,-164},{-182,-191,-140,-134,-145,-120},{-157,-186,-133,-180,-168,-150},{-198,-134,-137,-130,-125,-141},{-181,-134,-130,-159,-147,-150},{-186,-144,-162,-162,-130,-132},{-191,-157,-173,-120,-118,-127},{-138,-144,-174,-124,-121,-145},{-170,-193,-146,-162,-115,-132},{-187,-182,-149,-150,-132,-124},{-189,-163,-162,-176,-135,-153},{-139,-177,-127,-128,-160,-113},{-182,-155,-159,-178,-163,-144},{-167,-140,-154,-162,-130,-120},{-184,-173,-138,-134,-171,-157},{-158,-158,-149,-144,-154,-137},{-182,-147,-132,-142,-163,-141}},{{-157,-129,-140,-113,-138,-115},{-128,-112,-115,-124,-114,-102},{-137,-150,-130,-133,-132,-123},{-117,-141,-103,-100,-96,-113},{-158,-108,-120,-137,-126,-143},{-125,-116,-124,-119,-105,-143},{-116,-147,-146,-109,-142,-136},{-118,-112,-144,-106,-104,-123},{-144,-144,-122,-98,-118,-114},{-120,-103,-143,-132,-100,-96},{-137,-110,-115,-124,-131,-96},{-142,-106,-133,-125,-98,-130},{-150,-111,-139,-130,-133,-130},{-116,-113,-112,-111,-129,-117},{-122,-150,-139,-125,-104,-139},{-125,-147,-110,-102,-105,-123},{-142,-142,-99,-114,-118,-130},{-120,-146,-100,-98,-106,-101},{-112,-150,-105,-112,-123,-108},{-130,-120,-141,-139,-105,-130}},{{-102,-112,-120,-137,-145,-137},{-133,-95,-119,-125,-142,-141},{-96,-127,-109,-104,-98,-137},{-117,-137,-133,-98,-140,-127},{-123,-99,-124,-114,-116,-130},{-118,-109,-126,-100,-126,-112},{-101,-127,-115,-124,-128,-144},{-124,-120,-131,-112,-118,-112},{-107,-121,-140,-130,-123,-108},{-115,-111,-115,-114,-107,-150},{-129,-109,-95,-100,-99,-130},{-106,-112,-140,-104,-135,-106},{-137,-104,-114,-99,-107,-141},{-100,-113,-138,-102,-124,-121},{-100,-131,-136,-140,-142,-144},{-137,-102,-113,-99,-142,-132},{-106,-131,-113,-106,-102,-132},{-143,-98,-137,-123,-99,-149},{-107,-134,-114,-133,-134,-120},{-109,-125,-118,-105,-129,-149}}},{{{-274,-287,-301,-245,-223,-285},{-306,-226,-229,-250,-317,-263},{-303,-213,-293,-213,-213,-277},{-274,-223,-266,-250,-229,-295},{-319,-269,-277,-279,-245,-215},{-247,-266,-271,-221,-255,-253},{-317,-285,-247,-298,-261,-298},{-213,-290,-234,-237,-261,-239},{-253,-250,-218,-231,-266,-237},{-215,-282,-269,-298,-282,-266},{-245,-287,-290,-271,-282,-306},{-239,-271,-285,-231,-250,-250},{-266,-311,-287,-258,-287,-223},{-247,-239,-277,-282,-221,-263},{-221,-239,-234,-287,-239,-287},{-213,-221,-295,-317,-287,-263},{-218,-266,-255,-237,-295,-250},{-253,-231,-242,-290,-269,-319},{-309,-293,-303,-237,-221,-295},{-223,-237,-274,-261,-218,-287}},{{-258,-269,-301,-309,-238,-256},{-213,-274,-261,-234,-259,-264},{-229,-287,-279,-295,-270,-223},{-229,-226,-242,-231,-293,-267},{-319,-237,-285,-245,-244,-238},{-213,-213,-309,-271,-210,-277},{-234,-293,-247,-287,-309,-236},{-282,-293,-285,-295,-215,-243},{-223,-247,-287,-247,-265,-223},{-290,-277,-309,-215,-283,-282},{-221,-293,-247,-223,-249,-207},{-298,-242,-271,-242,-238,-267},{-290,-266,-274,-213,-217,-303},{-226,-255,-295,-298,-215,-280},{-226,-218,-290,-242,-291,-256},{-298,-239,-277,-295,-262,-293},{-255,-242,-253,-231,-272,-306},{-261,-221,-263,-215,-267,-215},{-266,-274,-239,-245,-231,-231},{-258,-215,-266,-282,-299,-280}},{{-225,-213,-300,-298,-267,-251},{-254,-245,-202,-241,-243,-234},{-241,-215,-280,-198,-243,-195},{-210,-238,-272,-280,-198,-217},{-254,-207,-232,-243,-272,-200},{-264,-304,-239,-253,-245,-270},{-264,-256,-204,-273,-196,-214},{-272,-245,-277,-231,-238,-243},{-246,-218,-227,-236,-225,-277},{-249,-210,-222,-258,-277,-231},{-220,-293,-224,-250,-267,-263},{-300,-299,-217,-275,-228,-210},{-293,-293,-212,-270,-277,-248},{-285,-223,-300,-270,-240,-210},{-303,-207,-227,-211,-238,-214},{-285,-253,-295,-258,-196,-248},{-275,-253,-252,-280,-272,-229},{-277,-276,-262,-263,-287,-210},{-311,-271,-227,-246,-252,-289},{-218,-273,-265,-198,-233,-202}},{{-226,-247,-259,-258,-215,-231},{-255,-207,-268,-196,-179,-253},{-259,-273,-266,-228,-202,-195},{-226,-237,-201,-200,-184,-240},{-190,-280,-213,-202,-228,-233},{-198,-244,-222,-212,-195,-264},{-226,-214,-217,-196,-233,-244},{-224,-254,-199,-276,-233,-204},{-250,-202,-222,-223,-264,-195},{-198,-214,-201,-244,-251,-246},{-267,-282,-273,-235,-251,-181},{-217,-273,-196,-253,-184,-213},{-264,-261,-252,-207,-186,-224},{-255,-204,-226,-205,-190,-242},{-205,-249,-263,-191,-237,-206},{-205,-237,-268,-193,-242,-233},{-283,-273,-247,-248,-258,-246},{-271,-233,-206,-218,-204,-262},{-236,-230,-222,-212,-222,-235},{-198,-247,-189,-242,-240,-222}},{{-196,-254,-184,-178,-208,-210},{-220,-243,-187,-180,-215,-234},{-264,-208,-193,-197,-247,-226},{-253,-206,-208,-197,-243,-254},{-194,-252,-208,-237,-232,-243},{-222,-195,-232,-200,-258,-250},{-251,-206,-210,-239,-234,-197},{-198,-221,-176,-250,-176,-184},{-194,-215,-256,-184,-178,-197},{-255,-243,-224,-260,-247,-182},{-264,-195,-247,-241,-191,-243},{-222,-245,-184,-258,-221,-191},{-264,-187,-182,-184,-239,-204},{-187,-184,-195,-260,-206,-215},{-233,-221,-245,-193,-228,-189},{-260,-215,-210,-182,-217,-217},{-187,-219,-260,-234,-197,-254},{-198,-178,-217,-232,-252,-239},{-209,-193,-243,-256,-232,-221},{-249,-254,-260,-187,-195,-219}},{{-202,-221,-197,-237,-243,-226},{-178,-174,-245,-174,-228,-200},{-250,-184,-260,-243,-187,-230},{-247,-197,-219,-232,-210,-241},{-230,-182,-200,-219,-241,-243},{-206,-224,-239,-256,-228,-193},{-197,-174,-243,-247,-221,-210},{-174,-224,-224,-230,-197,-260},{-182,-215,-252,-219,-241,-174},{-191,-239,-247,-254,-182,-260},{-178,-193,-174,-254,-239,-210},{-243,-208,-193,-193,-256,-230},{-230,-206,-252,-191,-252,-204},{-182,-176,-250,-208,-237,-191},{-241,-250,-254,-180,-228,-258},{-256,-191,-184,-224,-258,-228},{-234,-200,-226,-208,-189,-189},{-234,-217,-245,-187,-217,-189},{-193,-210,-258,-182,-206,-256},{-189,-219,-200,-247,-195,-215}}},{{{-301,-247,-334,-307,-301,-237},{-262,-322,-277,-262,-307,-260},{-256,-259,-274,-268,-277,-281},{-322,-310,-304,-289,-349,-278},{-289,-256,-277,-325,-358,-349},{-355,-358,-256,-328,-343,-284},{-259,-316,-304,-280,-295,-355},{-331,-295,-277,-298,-241,-334},{-331,-361,-319,-322,-337,-258},{-268,-307,-277,-310,-361,-296},{-286,-334,-325,-334,-244,-329},{-295,-307,-295,-310,-271,-237},{-244,-250,-244,-331,-331,-346},{-343,-286,-322,-280,-343,-278},{-250,-301,-319,-304,-241,-278},{-352,-295,-247,-352,-316,-320},{-277,-277,-253,-346,-307,-340},{-298,-310,-331,-292,-259,-284},{-295,-268,-262,-250,-328,-252},{-304,-241,-304,-277,-253,-255}},{{-261,-319,-283,-325,-246,-206},{-334,-276,-288,-317,-265,-301},{-352,-255,-308,-251,-302,-231},{-243,-235,-272,-221,-270,-213},{-281,-330,-330,-229,-246,-252},{-272,-301,-238,-325,-273,-270},{-284,-255,-283,-221,-281,-270},{-264,-327,-274,-328,-286,-226},{-322,-232,-260,-229,-313,-213},{-267,-339,-291,-254,-260,-308},{-340,-250,-246,-308,-310,-283},{-290,-296,-294,-303,-281,-265},{-293,-310,-305,-300,-257,-231},{-270,-276,-255,-270,-223,-211},{-287,-316,-280,-254,-281,-211},{-243,-293,-227,-251,-284,-267},{-293,-261,-238,-240,-231,-308},{-264,-307,-263,-265,-292,-293},{-284,-298,-311,-235,-238,-236},{-337,-316,-244,-248,-246,-280}},{{-268,-252,-202,-250,-182,-228},{-213,-278,-188,-208,-250,-234},{-231,-276,-206,-248,-197,-178},{-216,-242,-206,-217,-220,-174},{-263,-250,-231,-186,-252,-196},{-238,-252,-259,-201,-180,-182},{-231,-281,-218,-199,-199,-166},{-298,-221,-254,-239,-206,-164},{-248,-192,-259,-239,-193,-178},{-228,-233,-195,-208,-212,-206},{-213,-194,-197,-203,-235,-174},{-283,-192,-252,-190,-246,-236},{-221,-257,-238,-230,-180,-168},{-263,-262,-206,-225,-233,-180},{-250,-274,-227,-223,-235,-184},{-198,-194,-256,-199,-176,-178},{-238,-223,-195,-181,-191,-242},{-283,-240,-185,-230,-214,-222},{-223,-238,-197,-254,-201,-238},{-255,-197,-247,-263,-244,-206}},{{-204,-149,-157,-206,-184,-130},{-190,-219,-201,-141,-144,-158},{-182,-153,-151,-177,-148,-164},{-215,-190,-169,-182,-166,-192},{-225,-179,-198,-162,-159,-140},{-178,-156,-203,-151,-139,-147},{-182,-167,-178,-194,-189,-161},{-175,-167,-158,-205,-166,-166},{-204,-221,-187,-172,-149,-151},{-165,-154,-189,-144,-174,-158},{-229,-164,-150,-203,-179,-130},{-223,-167,-212,-194,-198,-166},{-217,-212,-189,-146,-186,-190},{-165,-203,-206,-206,-171,-182},{-217,-154,-212,-138,-183,-130},{-213,-166,-192,-158,-191,-132},{-233,-195,-160,-144,-144,-174},{-202,-169,-142,-201,-141,-175},{-169,-160,-182,-162,-199,-185},{-155,-171,-142,-139,-196,-174}},{{-173,-142,-160,-137,-169,-169},{-140,-140,-165,-129,-131,-160},{-137,-126,-131,-177,-163,-156},{-154,-177,-160,-183,-125,-152},{-168,-185,-177,-162,-174,-172},{-144,-142,-142,-183,-148,-132},{-167,-134,-139,-157,-146,-146},{-126,-160,-160,-131,-183,-132},{-161,-125,-151,-132,-149,-148},{-136,-137,-179,-177,-132,-156},{-137,-157,-136,-185,-123,-169},{-156,-132,-171,-154,-156,-126},{-125,-165,-157,-126,-159,-171},{-148,-128,-171,-125,-134,-159},{-134,-125,-163,-165,-183,-168},{-126,-179,-123,-146,-165,-129},{-168,-131,-142,-152,-162,-174},{-147,-131,-172,-159,-151,-166},{-151,-123,-182,-179,-151,-177},{-167,-163,-159,-145,-128,-134}},{{-159,-191,-170,-155,-140,-150},{-169,-188,-160,-183,-140,-197},{-152,-164,-193,-139,-200,-185},{-162,-137,-154,-181,-203,-165},{-162,-189,-180,-168,-189,-205},{-185,-161,-177,-175,-170,-154},{-174,-154,-183,-193,-152,-170},{-159,-169,-194,-134,-184,-201},{-139,-151,-165,-195,-140,-157},{-128,-127,-191,-200,-140,-152},{-157,-153,-151,-155,-184,-181},{-146,-149,-146,-197,-194,-150},{-151,-127,-173,-170,-180,-174},{-134,-175,-154,-202,-144,-185},{-148,-127,-165,-170,-198,-205},{-163,-143,-159,-193,-158,-172},{-156,-135,-154,-202,-149,-197},{-136,-167,-160,-168,-170,-159},{-123,-167,-149,-148,-177,-203},{-160,-173,-170,-193,-203,-201}}},{{{-368,-350,-364,-301,-382,-322},{-301,-399,-336,-399,-368,-308},{-354,-382,-413,-343,-360,-343},{-294,-371,-368,-287,-406,-340},{-392,-357,-354,-374,-382,-280},{-332,-298,-332,-378,-308,-287},{-280,-298,-318,-399,-360,-290},{-392,-301,-350,-357,-357,-298},{-395,-332,-290,-301,-301,-416},{-315,-336,-368,-312,-371,-280},{-340,-360,-340,-298,-294,-410},{-304,-336,-284,-308,-392,-364},{-298,-392,-399,-416,-326,-346},{-280,-329,-392,-416,-395,-364},{-301,-406,-340,-389,-374,-354},{-416,-304,-385,-368,-343,-395},{-287,-389,-301,-395,-374,-287},{-308,-420,-304,-290,-294,-332},{-389,-395,-374,-329,-364,-332},{-399,-332,-406,-385,-350,-318}},{{-289,-274,-359,-324,-335,-361},{-355,-274,-397,-361,-338,-370},{-327,-374,-356,-301,-380,-351},{-345,-316,-359,-327,-358,-290},{-414,-343,-308,-354,-331,-296},{-341,-285,-373,-344,-262,-348},{-397,-319,-359,-381,-321,-299},{-372,-377,-288,-274,-272,-258},{-338,-326,-373,-307,-348,-309},{-313,-377,-407,-391,-325,-386},{-376,-357,-332,-391,-348,-316},{-418,-370,-271,-324,-394,-303},{-285,-288,-336,-394,-361,-383},{-397,-336,-400,-321,-308,-280},{-285,-384,-342,-281,-354,-270},{-407,-377,-380,-307,-367,-341},{-372,-350,-353,-361,-292,-270},{-351,-360,-278,-401,-380,-303},{-348,-281,-370,-287,-305,-287},{-320,-316,-349,-271,-282,-377}},{{-293,-246,-264,-275,-342,-231},{-375,-351,-252,-325,-328,-272},{-350,-268,-249,-352,-274,-281},{-365,-246,-306,-331,-251,-300},{-277,-323,-324,-290,-268,-247},{-290,-351,-300,-302,-294,-270},{-265,-249,-300,-322,-282,-278},{-346,-274,-360,-290,-296,-267},{-268,-308,-348,-299,-288,-284},{-334,-265,-321,-319,-237,-292},{-365,-265,-300,-343,-271,-284},{-284,-345,-255,-261,-239,-284},{-284,-314,-288,-293,-333,-281},{-340,-333,-354,-343,-279,-303},{-252,-367,-288,-255,-256,-295},{-261,-317,-333,-325,-254,-306},{-356,-370,-267,-305,-245,-317},{-353,-277,-285,-284,-308,-222},{-255,-286,-321,-311,-256,-306},{-365,-259,-240,-290,-299,-317}},{{-216,-242,-285,-208,-233,-198},{-235,-289,-216,-201,-289,-215},{-243,-226,-224,-261,-230,-258},{-321,-292,-221,-208,-265,-272},{-230,-234,-285,-208,-225,-251},{-243,-216,-290,-201,-228,-191},{-278,-229,-257,-216,-282,-239},{-313,-258,-242,-233,-243,-208},{-289,-287,-216,-266,-206,-232},{-310,-300,-262,-206,-220,-213},{-251,-276,-231,-286,-289,-239},{-313,-213,-270,-213,-274,-270},{-300,-216,-249,-286,-247,-194},{-235,-260,-303,-286,-287,-206},{-256,-210,-288,-238,-196,-191},{-319,-260,-298,-271,-196,-241},{-262,-247,-260,-208,-216,-275},{-275,-287,-247,-221,-292,-287},{-302,-287,-306,-228,-245,-249},{-224,-308,-244,-248,-294,-210}},{{-211,-196,-254,-259,-273,-219},{-220,-240,-245,-273,-224,-222},{-216,-213,-275,-249,-249,-187},{-261,-203,-277,-224,-263,-192},{-275,-213,-263,-224,-236,-275},{-230,-268,-259,-243,-247,-215},{-261,-215,-247,-222,-236,-252},{-249,-256,-203,-187,-256,-215},{-228,-192,-273,-247,-208,-245},{-197,-185,-268,-277,-206,-208},{-190,-233,-259,-210,-266,-254},{-246,-238,-240,-224,-215,-233},{-254,-199,-210,-226,-196,-229},{-225,-249,-254,-247,-219,-219},{-218,-231,-194,-192,-238,-185},{-197,-222,-270,-187,-254,-254},{-201,-226,-213,-208,-213,-213},{-261,-238,-217,-208,-208,-229},{-251,-189,-210,-266,-201,-213},{-235,-196,-231,-247,-199,-266}},{{-201,-259,-196,-252,-232,-266},{-187,-256,-240,-195,-215,-290},{-222,-203,-277,-255,-215,-256},{-199,-254,-219,-202,-266,-231},{-226,-219,-205,-245,-203,-295},{-240,-236,-219,-250,-196,-202},{-263,-247,-261,-238,-213,-273},{-206,-222,-273,-281,-269,-231},{-222,-192,-224,-224,-213,-258},{-208,-194,-245,-221,-206,-207},{-245,-210,-203,-274,-288,-231},{-192,-196,-221,-233,-230,-204},{-206,-238,-186,-190,-194,-271},{-208,-231,-249,-217,-220,-266},{-236,-245,-242,-240,-225,-261},{-194,-256,-214,-214,-288,-199},{-233,-252,-238,-217,-206,-290},{-240,-261,-214,-250,-257,-266},{-275,-203,-203,-226,-264,-290},{-268,-229,-226,-264,-213,-280}}}}; // 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,15,8,6,15,8,5,16,8,6,17,9,6,17,9,6,16,8,6,17,9,6,17,9,6,17,8,6,17,8,6,17,9,6,17,9,6,18,9,6,18,9,6,17,9,6,17,9,6,18,9,6,17,9,6,17,9,6,16,8,6,17,9,6,16,9,6,17,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},{744,745,746,747,748,749}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,2,6,10,14,18,22,26,30,1,7,13,19,25,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,0,4,8,12,16,20,24,28,0,6,12,18,24,30,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,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,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,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,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,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,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,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,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,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,0,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,2,8,14,20,26,32,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,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,2,8,14,20,26,32,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,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,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,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,2,8,14,20,26,32,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,2,8,14,20,26,32,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,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,0,6,12,18,24,30}; // 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,7,11,15,19,23,27,31,35,6,12,18,24,30,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,5,11,17,23,29,35,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,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,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,3,9,15,21,27,33,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,3,7,11,15,19,23,27,31,35,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,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,3,9,15,21,27,33,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,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,3,9,15,21,27,33,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,3,9,15,21,27,33,1,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,3,9,15,21,27,33,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,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,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,35,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,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,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,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,5,11,17,23,29,35,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,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}; // set of end times of each shipment 
