int Dev = 10;// 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]={{{{12142,0,0,0,0,0},{12291,0,0,0,0,0},{12339,0,0,0,0,0},{12429,0,0,0,0,0},{12512,0,0,0,0,0},{12371,0,0,0,0,0},{12490,0,0,0,0,0},{12389,0,0,0,0,0},{12440,0,0,0,0,0},{12607,0,0,0,0,0},{12504,0,0,0,0,0},{12322,0,0,0,0,0},{12500,0,0,0,0,0},{12498,0,0,0,0,0},{12393,0,0,0,0,0},{12147,0,0,0,0,0},{12553,0,0,0,0,0},{12430,0,0,0,0,0},{12140,0,0,0,0,0},{12351,0,0,0,0,0}},{{12400,0,0,0,0,0},{12314,0,0,0,0,0},{12405,0,0,0,0,0},{12675,0,0,0,0,0},{12404,0,0,0,0,0},{12512,0,0,0,0,0},{12321,0,0,0,0,0},{12126,0,0,0,0,0},{12248,0,0,0,0,0},{12577,0,0,0,0,0},{12311,0,0,0,0,0},{12600,0,0,0,0,0},{12265,0,0,0,0,0},{12443,0,0,0,0,0},{12154,0,0,0,0,0},{12466,0,0,0,0,0},{12493,0,0,0,0,0},{12441,0,0,0,0,0},{12506,0,0,0,0,0},{12384,0,0,0,0,0}},{{11671,0,0,0,0,0},{11573,0,0,0,0,0},{11665,0,0,0,0,0},{11663,0,0,0,0,0},{11665,0,0,0,0,0},{11586,0,0,0,0,0},{11579,0,0,0,0,0},{11579,0,0,0,0,0},{11739,0,0,0,0,0},{11547,0,0,0,0,0},{11485,0,0,0,0,0},{11613,0,0,0,0,0},{11659,0,0,0,0,0},{11686,0,0,0,0,0},{11570,0,0,0,0,0},{11698,0,0,0,0,0},{11617,0,0,0,0,0},{11706,0,0,0,0,0},{11621,0,0,0,0,0},{11546,0,0,0,0,0}},{{10402,0,0,0,0,0},{10354,0,0,0,0,0},{10294,0,0,0,0,0},{10338,0,0,0,0,0},{10453,0,0,0,0,0},{10315,0,0,0,0,0},{10382,0,0,0,0,0},{10485,0,0,0,0,0},{10227,0,0,0,0,0},{10376,0,0,0,0,0},{10448,0,0,0,0,0},{10171,0,0,0,0,0},{10393,0,0,0,0,0},{10262,0,0,0,0,0},{10468,0,0,0,0,0},{10211,0,0,0,0,0},{10377,0,0,0,0,0},{10386,0,0,0,0,0},{10401,0,0,0,0,0},{10211,0,0,0,0,0}},{{9596,0,0,0,0,0},{9310,0,0,0,0,0},{9479,0,0,0,0,0},{9519,0,0,0,0,0},{9362,0,0,0,0,0},{9551,0,0,0,0,0},{9620,0,0,0,0,0},{9532,0,0,0,0,0},{9379,0,0,0,0,0},{9467,0,0,0,0,0},{9540,0,0,0,0,0},{9404,0,0,0,0,0},{9538,0,0,0,0,0},{9662,0,0,0,0,0},{9473,0,0,0,0,0},{9393,0,0,0,0,0},{9520,0,0,0,0,0},{9436,0,0,0,0,0},{9479,0,0,0,0,0},{9544,0,0,0,0,0}},{{9071,0,0,0,0,0},{9176,0,0,0,0,0},{9224,0,0,0,0,0},{9298,0,0,0,0,0},{9274,0,0,0,0,0},{9167,0,0,0,0,0},{9231,0,0,0,0,0},{9238,0,0,0,0,0},{9268,0,0,0,0,0},{9126,0,0,0,0,0},{9339,0,0,0,0,0},{9280,0,0,0,0,0},{9368,0,0,0,0,0},{9345,0,0,0,0,0},{9322,0,0,0,0,0},{9226,0,0,0,0,0},{9239,0,0,0,0,0},{9184,0,0,0,0,0},{9345,0,0,0,0,0},{9356,0,0,0,0,0}}},{{{-288,-282,-297,-282,-276,-279},{-306,-315,-303,-315,-285,-285},{-265,-285,-312,-297,-276,-291},{-318,-270,-320,-265,-265,-270},{-273,-309,-309,-306,-268,-306},{-270,-276,-282,-270,-320,-288},{-303,-282,-282,-300,-323,-273},{-312,-323,-300,-297,-300,-288},{-294,-323,-294,-297,-309,-315},{-282,-285,-323,-294,-297,-312},{-303,-320,-268,-265,-279,-300},{-294,-309,-318,-265,-303,-276},{-288,-288,-273,-323,-276,-268},{-294,-318,-323,-279,-273,-291},{-318,-265,-303,-306,-279,-282},{-285,-273,-276,-320,-265,-312},{-285,-288,-294,-312,-312,-294},{-270,-285,-309,-315,-318,-312},{-291,-270,-268,-323,-279,-270},{-276,-279,-303,-294,-297,-297}},{{-287,-309,-300,-299,-286,-243},{-313,-260,-255,-255,-251,-251},{-296,-266,-274,-282,-267,-272},{-296,-309,-291,-258,-272,-256},{-284,-297,-280,-299,-246,-267},{-319,-300,-291,-258,-259,-264},{-287,-306,-297,-282,-288,-256},{-267,-309,-258,-282,-272,-251},{-319,-257,-280,-285,-248,-285},{-316,-286,-305,-301,-288,-267},{-319,-297,-274,-263,-288,-277},{-319,-300,-300,-288,-286,-246},{-302,-289,-266,-249,-256,-275},{-273,-266,-291,-263,-272,-264},{-281,-286,-280,-279,-286,-254},{-302,-292,-280,-296,-280,-233},{-276,-289,-266,-252,-294,-254},{-313,-275,-305,-285,-259,-267},{-281,-303,-297,-279,-270,-251},{-310,-280,-288,-288,-248,-262}},{{-245,-240,-242,-233,-195,-208},{-232,-220,-214,-215,-223,-198},{-275,-227,-210,-213,-197,-220},{-258,-261,-226,-215,-225,-216},{-258,-218,-245,-211,-208,-214},{-255,-232,-233,-222,-216,-202},{-240,-223,-219,-208,-229,-192},{-242,-242,-217,-224,-210,-225},{-250,-244,-240,-233,-233,-225},{-265,-230,-240,-242,-199,-200},{-235,-247,-242,-206,-212,-225},{-245,-235,-224,-246,-197,-210},{-270,-252,-219,-202,-197,-222},{-270,-242,-254,-244,-208,-216},{-272,-249,-245,-213,-203,-192},{-262,-225,-212,-222,-193,-202},{-255,-266,-226,-231,-218,-225},{-270,-261,-242,-211,-195,-220},{-275,-220,-254,-240,-235,-194},{-258,-252,-224,-231,-214,-185}},{{-181,-191,-193,-187,-165,-174},{-191,-180,-183,-172,-178,-155},{-199,-204,-195,-187,-157,-162},{-191,-174,-179,-157,-178,-152},{-193,-183,-188,-155,-148,-170},{-191,-206,-181,-158,-148,-150},{-197,-170,-161,-160,-168,-162},{-217,-206,-163,-184,-165,-165},{-201,-202,-197,-155,-182,-171},{-183,-172,-181,-182,-167,-152},{-187,-168,-188,-167,-175,-158},{-201,-202,-179,-163,-152,-147},{-195,-181,-195,-186,-170,-160},{-199,-196,-166,-169,-148,-154},{-217,-172,-179,-177,-167,-150},{-207,-172,-177,-179,-148,-152},{-193,-174,-168,-189,-168,-165},{-209,-204,-184,-162,-177,-149},{-211,-200,-190,-175,-160,-150},{-217,-202,-186,-169,-148,-152}},{{-140,-156,-146,-154,-153,-153},{-160,-152,-135,-153,-162,-147},{-152,-142,-132,-144,-162,-140},{-163,-145,-159,-153,-162,-146},{-146,-148,-156,-132,-160,-144},{-154,-143,-157,-140,-148,-156},{-168,-161,-137,-159,-160,-157},{-149,-149,-151,-162,-153,-156},{-140,-164,-154,-159,-141,-132},{-169,-152,-144,-147,-156,-134},{-140,-153,-138,-150,-150,-143},{-163,-162,-162,-153,-143,-138},{-151,-149,-148,-144,-132,-146},{-142,-150,-138,-160,-134,-132},{-140,-158,-147,-151,-148,-151},{-148,-152,-138,-146,-134,-143},{-163,-148,-147,-147,-151,-157},{-152,-164,-156,-157,-138,-144},{-165,-152,-160,-144,-147,-148},{-168,-146,-151,-137,-156,-146}},{{-143,-150,-165,-145,-175,-182},{-135,-153,-136,-154,-150,-165},{-143,-154,-136,-146,-150,-160},{-147,-157,-148,-160,-164,-170},{-160,-138,-140,-169,-161,-169},{-144,-144,-137,-160,-155,-182},{-138,-143,-140,-143,-147,-157},{-146,-151,-136,-146,-145,-155},{-132,-135,-156,-142,-159,-179},{-147,-160,-146,-145,-163,-179},{-147,-159,-159,-168,-174,-157},{-144,-144,-142,-162,-161,-177},{-159,-146,-165,-152,-171,-179},{-143,-162,-139,-165,-172,-180},{-148,-151,-151,-163,-158,-175},{-138,-156,-162,-152,-166,-167},{-147,-151,-137,-159,-166,-182},{-157,-137,-165,-159,-171,-177},{-159,-135,-153,-159,-163,-180},{-144,-159,-140,-151,-158,-174}}},{{{-181,-183,-161,-190,-173,-189},{-158,-183,-172,-165,-166,-206},{-171,-161,-170,-177,-184,-172},{-163,-181,-193,-163,-166,-180},{-161,-164,-178,-183,-190,-187},{-173,-172,-172,-192,-177,-176},{-180,-171,-191,-166,-201,-174},{-183,-154,-163,-181,-169,-199},{-165,-155,-161,-175,-199,-199},{-176,-174,-189,-193,-180,-189},{-171,-186,-158,-170,-171,-210},{-151,-157,-191,-166,-173,-172},{-176,-179,-191,-161,-202,-181},{-161,-162,-186,-195,-202,-206},{-153,-169,-186,-166,-175,-191},{-173,-154,-164,-193,-173,-191},{-185,-181,-163,-186,-184,-176},{-153,-184,-180,-161,-191,-202},{-180,-152,-164,-172,-167,-189},{-175,-157,-164,-197,-180,-187}},{{-208,-215,-198,-225,-250,-233},{-206,-195,-228,-228,-240,-255},{-186,-221,-192,-232,-220,-240},{-214,-223,-219,-239,-222,-257},{-218,-197,-215,-223,-206,-236},{-182,-199,-207,-217,-213,-233},{-218,-189,-207,-234,-208,-217},{-182,-191,-211,-199,-213,-226},{-186,-184,-198,-228,-227,-219},{-190,-197,-198,-232,-245,-240},{-190,-209,-228,-228,-224,-226},{-210,-217,-196,-243,-234,-262},{-182,-195,-194,-234,-211,-231},{-210,-217,-230,-219,-234,-248},{-186,-205,-234,-214,-213,-236},{-178,-223,-207,-217,-227,-255},{-196,-199,-217,-217,-231,-240},{-212,-189,-219,-234,-220,-231},{-192,-189,-196,-223,-220,-236},{-188,-211,-226,-206,-218,-243}},{{-235,-232,-288,-294,-302,-308},{-267,-260,-278,-275,-269,-266},{-247,-275,-286,-286,-258,-260},{-257,-263,-259,-262,-291,-289},{-240,-275,-254,-262,-271,-294},{-254,-278,-246,-243,-277,-297},{-247,-242,-283,-292,-294,-263},{-259,-270,-236,-243,-283,-306},{-249,-275,-288,-267,-296,-308},{-237,-250,-257,-281,-280,-291},{-242,-240,-238,-246,-283,-272},{-269,-280,-272,-275,-288,-277},{-222,-273,-265,-265,-255,-263},{-247,-273,-270,-251,-274,-303},{-230,-265,-236,-273,-288,-286},{-259,-235,-272,-286,-299,-300},{-254,-263,-280,-286,-296,-311},{-240,-255,-238,-281,-283,-300},{-240,-235,-257,-254,-271,-277},{-222,-268,-252,-251,-302,-255}},{{-280,-282,-277,-316,-304,-277},{-295,-312,-304,-280,-304,-280},{-266,-270,-292,-301,-310,-280},{-260,-276,-313,-310,-271,-322},{-312,-265,-319,-295,-310,-331},{-263,-285,-304,-301,-298,-316},{-315,-303,-274,-286,-286,-331},{-312,-291,-325,-316,-304,-295},{-298,-279,-289,-289,-298,-295},{-295,-323,-304,-328,-304,-298},{-315,-309,-295,-322,-283,-304},{-263,-320,-310,-286,-283,-274},{-295,-300,-301,-313,-319,-310},{-260,-270,-307,-280,-301,-310},{-283,-320,-298,-313,-328,-331},{-263,-282,-277,-313,-316,-274},{-280,-285,-310,-307,-304,-313},{-318,-288,-307,-313,-310,-310},{-269,-306,-286,-271,-283,-325},{-263,-282,-283,-292,-271,-313}},{{-304,-319,-283,-288,-306,-307},{-283,-274,-286,-312,-294,-273},{-304,-325,-295,-309,-270,-319},{-328,-304,-310,-291,-291,-287},{-307,-295,-319,-303,-303,-278},{-322,-283,-292,-294,-276,-264},{-292,-304,-298,-303,-270,-316},{-331,-283,-289,-303,-288,-281},{-313,-289,-304,-330,-318,-267},{-286,-328,-322,-291,-320,-278},{-304,-274,-325,-327,-312,-261},{-289,-271,-280,-330,-318,-273},{-328,-286,-286,-318,-265,-302},{-316,-322,-331,-324,-276,-278},{-277,-280,-289,-273,-268,-287},{-301,-304,-328,-306,-279,-261},{-277,-307,-313,-309,-285,-302},{-331,-280,-274,-279,-297,-276},{-301,-319,-328,-288,-268,-302},{-328,-316,-313,-270,-306,-267}},{{-265,-259,-255,-277,-253,-231},{-259,-273,-266,-261,-259,-263},{-262,-268,-285,-267,-271,-258},{-288,-257,-293,-243,-233,-253},{-274,-285,-244,-243,-248,-265},{-302,-268,-247,-251,-246,-241},{-259,-265,-255,-290,-274,-268},{-259,-285,-257,-248,-241,-243},{-305,-262,-285,-288,-269,-248},{-305,-307,-279,-253,-251,-223},{-285,-290,-255,-272,-269,-253},{-296,-279,-257,-269,-246,-228},{-308,-273,-276,-253,-279,-273},{-302,-273,-287,-269,-246,-238},{-294,-257,-276,-267,-274,-253},{-302,-282,-268,-240,-274,-260},{-302,-301,-276,-269,-256,-246},{-271,-296,-257,-280,-248,-243},{-302,-282,-276,-256,-233,-243},{-268,-287,-293,-290,-259,-260}}},{{{-322,-332,-313,-313,-339,-349},{-345,-332,-313,-299,-316,-322},{-303,-329,-345,-339,-329,-313},{-296,-336,-359,-352,-313,-336},{-322,-355,-352,-355,-339,-306},{-313,-319,-349,-306,-336,-322},{-332,-336,-326,-299,-342,-352},{-316,-319,-309,-296,-349,-342},{-299,-336,-352,-326,-336,-332},{-355,-309,-299,-322,-336,-362},{-342,-306,-359,-352,-309,-349},{-306,-339,-303,-342,-332,-296},{-352,-342,-329,-359,-339,-336},{-355,-362,-313,-316,-345,-345},{-332,-345,-316,-362,-326,-309},{-303,-316,-296,-303,-303,-313},{-342,-342,-362,-296,-359,-326},{-362,-303,-309,-349,-349,-329},{-322,-342,-319,-299,-309,-336},{-296,-362,-345,-313,-296,-352}},{{-335,-296,-351,-311,-283,-286},{-338,-354,-325,-292,-317,-292},{-341,-309,-345,-298,-299,-301},{-358,-335,-322,-342,-308,-304},{-312,-309,-313,-317,-308,-283},{-335,-354,-345,-327,-339,-286},{-351,-341,-348,-295,-314,-277},{-298,-290,-345,-311,-280,-271},{-354,-332,-297,-301,-286,-319},{-308,-312,-341,-345,-311,-331},{-325,-312,-351,-301,-296,-319},{-312,-354,-309,-286,-330,-301},{-308,-306,-351,-311,-326,-271},{-308,-354,-325,-342,-286,-322},{-348,-306,-303,-283,-299,-271},{-335,-341,-338,-308,-317,-274},{-348,-319,-348,-330,-314,-304},{-302,-351,-329,-283,-320,-328},{-295,-325,-306,-298,-311,-319},{-338,-316,-290,-301,-336,-289}},{{-316,-294,-305,-245,-268,-234},{-324,-294,-280,-277,-276,-275},{-319,-308,-260,-269,-273,-231},{-319,-274,-300,-250,-281,-247},{-316,-279,-286,-277,-273,-242},{-322,-265,-291,-253,-278,-257},{-283,-317,-300,-250,-273,-231},{-313,-317,-260,-264,-262,-257},{-301,-297,-252,-277,-241,-249},{-319,-274,-252,-283,-238,-239},{-322,-274,-288,-291,-286,-275},{-307,-271,-288,-280,-276,-236},{-298,-308,-308,-296,-260,-254},{-310,-308,-300,-272,-270,-275},{-292,-311,-300,-248,-268,-249},{-298,-314,-297,-272,-252,-257},{-310,-274,-252,-277,-262,-242},{-319,-308,-252,-248,-238,-280},{-298,-317,-291,-248,-238,-262},{-301,-271,-266,-267,-249,-247}},{{-242,-226,-242,-243,-235,-234},{-248,-233,-249,-236,-213,-232},{-260,-241,-213,-236,-217,-210},{-265,-224,-244,-210,-226,-228},{-272,-243,-216,-247,-226,-237},{-225,-243,-228,-238,-206,-223},{-228,-243,-254,-215,-220,-239},{-242,-224,-218,-243,-213,-228},{-250,-248,-258,-217,-215,-197},{-270,-233,-254,-224,-204,-217},{-240,-241,-228,-238,-220,-223},{-235,-233,-239,-233,-206,-208},{-245,-265,-251,-215,-224,-241},{-232,-233,-216,-229,-226,-237},{-275,-250,-220,-254,-206,-199},{-260,-233,-239,-210,-228,-201},{-260,-224,-249,-224,-240,-234},{-262,-219,-216,-252,-233,-230},{-255,-255,-258,-238,-244,-234},{-238,-258,-246,-226,-211,-232}},{{-208,-216,-204,-202,-231,-189},{-197,-227,-210,-193,-220,-197},{-215,-223,-204,-220,-202,-204},{-202,-223,-229,-204,-189,-202},{-215,-208,-197,-200,-227,-189},{-208,-189,-229,-223,-212,-218},{-226,-197,-223,-229,-218,-216},{-230,-220,-197,-202,-216,-208},{-202,-193,-206,-200,-191,-212},{-200,-218,-223,-210,-191,-191},{-232,-223,-227,-195,-212,-191},{-204,-229,-193,-202,-195,-191},{-213,-191,-220,-210,-231,-218},{-232,-218,-189,-231,-212,-210},{-224,-214,-225,-231,-223,-210},{-197,-220,-191,-197,-218,-204},{-217,-200,-227,-231,-225,-214},{-197,-191,-193,-200,-223,-202},{-217,-195,-216,-189,-204,-218},{-234,-195,-202,-231,-193,-214}},{{-191,-193,-203,-202,-224,-227},{-218,-210,-226,-195,-227,-212},{-214,-220,-222,-234,-240,-205},{-225,-227,-222,-213,-216,-212},{-197,-229,-224,-239,-231,-225},{-229,-214,-217,-208,-200,-214},{-212,-206,-230,-226,-240,-209},{-216,-225,-203,-195,-235,-234},{-220,-223,-209,-197,-229,-245},{-220,-195,-194,-197,-220,-202},{-200,-220,-228,-224,-213,-236},{-193,-197,-211,-237,-229,-245},{-229,-189,-224,-219,-213,-216},{-229,-191,-203,-202,-218,-232},{-220,-195,-224,-197,-213,-232},{-208,-208,-192,-197,-238,-227},{-191,-202,-205,-224,-218,-212},{-189,-218,-213,-219,-207,-241},{-210,-227,-226,-230,-231,-227},{-225,-216,-207,-228,-235,-205}}},{{{-113,-110,-104,-126,-115,-115},{-116,-106,-119,-121,-123,-127},{-104,-112,-109,-123,-129,-128},{-101,-108,-104,-124,-126,-129},{-100,-117,-103,-105,-115,-129},{-98,-116,-110,-118,-122,-131},{-109,-113,-116,-118,-110,-119},{-102,-104,-104,-115,-122,-134},{-101,-105,-106,-106,-133,-122},{-96,-106,-121,-121,-115,-138},{-109,-106,-113,-129,-110,-131},{-108,-107,-102,-108,-116,-125},{-107,-108,-101,-124,-116,-137},{-107,-107,-113,-124,-117,-119},{-114,-109,-121,-118,-134,-122},{-96,-99,-108,-106,-121,-140},{-114,-96,-120,-119,-113,-128},{-106,-102,-114,-119,-113,-124},{-109,-100,-104,-106,-129,-116},{-116,-114,-104,-129,-120,-131}},{{-144,-138,-148,-147,-171,-166},{-122,-127,-142,-147,-153,-176},{-126,-140,-141,-170,-161,-161},{-140,-154,-139,-169,-164,-171},{-139,-130,-141,-169,-155,-181},{-146,-140,-144,-152,-156,-156},{-130,-149,-135,-153,-177,-155},{-122,-137,-142,-170,-172,-166},{-140,-149,-157,-146,-153,-165},{-123,-148,-141,-149,-167,-168},{-144,-128,-138,-158,-167,-165},{-139,-138,-142,-167,-174,-153},{-136,-148,-155,-149,-147,-168},{-122,-148,-147,-141,-150,-153},{-144,-155,-142,-144,-155,-151},{-130,-135,-155,-143,-177,-151},{-124,-145,-147,-144,-177,-173},{-134,-134,-145,-166,-148,-163},{-138,-138,-149,-140,-166,-160},{-140,-155,-148,-141,-166,-153}},{{-186,-187,-190,-171,-206,-180},{-172,-182,-184,-203,-194,-202},{-163,-194,-195,-184,-208,-214},{-177,-166,-184,-190,-190,-182},{-193,-184,-186,-196,-176,-212},{-173,-182,-177,-192,-184,-196},{-175,-178,-186,-200,-190,-196},{-159,-198,-188,-198,-214,-206},{-189,-166,-201,-196,-194,-204},{-158,-185,-205,-192,-202,-192},{-178,-173,-188,-188,-212,-218},{-159,-191,-173,-198,-202,-184},{-158,-166,-201,-196,-178,-196},{-177,-191,-192,-198,-176,-214},{-193,-191,-193,-209,-204,-178},{-175,-180,-177,-203,-180,-208},{-168,-194,-177,-194,-198,-214},{-189,-162,-173,-180,-214,-188},{-182,-187,-190,-177,-210,-194},{-187,-169,-205,-188,-178,-210}},{{-199,-201,-207,-189,-217,-205},{-183,-217,-223,-203,-185,-209},{-219,-203,-219,-195,-217,-207},{-207,-207,-199,-199,-219,-223},{-183,-219,-199,-203,-209,-189},{-199,-207,-203,-219,-203,-207},{-203,-213,-207,-215,-187,-191},{-203,-207,-223,-207,-209,-189},{-191,-219,-211,-187,-187,-209},{-219,-209,-197,-213,-219,-201},{-197,-183,-219,-223,-199,-221},{-189,-209,-201,-191,-195,-193},{-187,-203,-189,-183,-189,-193},{-221,-195,-183,-219,-195,-183},{-207,-223,-201,-215,-189,-211},{-193,-209,-199,-193,-187,-183},{-205,-197,-191,-193,-185,-211},{-185,-195,-195,-185,-207,-189},{-207,-209,-201,-211,-187,-197},{-183,-193,-211,-209,-189,-193}},{{-183,-223,-205,-203,-195,-169},{-183,-189,-207,-183,-197,-186},{-183,-221,-199,-185,-170,-169},{-183,-221,-185,-209,-191,-193},{-197,-183,-207,-185,-170,-175},{-221,-201,-193,-215,-189,-190},{-185,-201,-199,-187,-202,-186},{-207,-189,-181,-205,-181,-182},{-183,-183,-185,-201,-187,-191},{-211,-207,-185,-185,-198,-191},{-207,-183,-217,-209,-191,-173},{-201,-187,-215,-185,-189,-169},{-201,-197,-215,-191,-198,-193},{-189,-211,-207,-203,-185,-190},{-219,-215,-211,-203,-202,-182},{-201,-215,-215,-209,-189,-171},{-215,-195,-213,-199,-202,-177},{-187,-207,-189,-201,-206,-190},{-213,-199,-207,-209,-183,-197},{-209,-221,-213,-181,-185,-197}},{{-181,-170,-177,-152,-162,-147},{-195,-190,-164,-155,-162,-160},{-170,-189,-164,-144,-141,-162},{-195,-178,-155,-168,-165,-154},{-166,-185,-159,-165,-151,-154},{-174,-178,-154,-163,-162,-134},{-192,-166,-172,-163,-168,-150},{-184,-166,-184,-165,-167,-138},{-177,-164,-170,-146,-151,-144},{-163,-171,-164,-149,-164,-137},{-175,-187,-172,-162,-141,-137},{-175,-170,-179,-147,-167,-151},{-195,-190,-164,-160,-156,-154},{-188,-182,-184,-171,-159,-162},{-163,-175,-165,-147,-156,-146},{-192,-190,-175,-174,-138,-157},{-172,-176,-179,-163,-150,-141},{-165,-163,-155,-174,-144,-144},{-195,-180,-175,-163,-139,-146},{-175,-183,-184,-173,-165,-140}}},{{{-240,-250,-240,-233,-221,-217},{-235,-224,-238,-250,-217,-231},{-210,-238,-259,-233,-240,-228},{-235,-245,-214,-221,-236,-219},{-224,-231,-221,-248,-238,-219},{-254,-224,-231,-262,-224,-257},{-233,-257,-236,-248,-231,-252},{-256,-219,-250,-214,-255,-255},{-242,-257,-236,-236,-233,-240},{-221,-259,-250,-240,-248,-240},{-238,-259,-219,-250,-250,-228},{-210,-262,-219,-255,-262,-257},{-235,-236,-255,-214,-219,-236},{-235,-255,-214,-262,-243,-228},{-254,-238,-231,-231,-245,-236},{-231,-255,-228,-221,-226,-219},{-231,-221,-233,-248,-217,-233},{-212,-221,-228,-233,-233,-245},{-240,-236,-214,-219,-231,-219},{-224,-262,-248,-231,-245,-245}},{{-214,-262,-223,-231,-203,-236},{-219,-250,-256,-224,-226,-203},{-255,-217,-249,-240,-208,-239},{-262,-248,-258,-215,-240,-208},{-245,-252,-216,-233,-208,-239},{-226,-231,-249,-236,-231,-225},{-221,-217,-212,-236,-210,-201},{-217,-214,-249,-229,-217,-210},{-226,-219,-223,-208,-208,-221},{-257,-224,-258,-243,-228,-214},{-236,-250,-233,-213,-215,-230},{-219,-255,-256,-243,-208,-206},{-217,-231,-221,-254,-226,-223},{-214,-231,-249,-217,-226,-239},{-217,-236,-230,-245,-244,-241},{-245,-228,-247,-210,-224,-230},{-259,-252,-244,-240,-246,-217},{-214,-262,-219,-229,-246,-212},{-238,-243,-223,-233,-237,-212},{-245,-248,-244,-224,-219,-228}},{{-215,-222,-208,-211,-193,-171},{-204,-207,-190,-185,-193,-175},{-219,-209,-190,-189,-178,-196},{-194,-201,-198,-211,-187,-198},{-198,-219,-218,-187,-187,-164},{-224,-215,-214,-191,-206,-167},{-198,-190,-220,-189,-202,-169},{-221,-219,-190,-185,-174,-166},{-217,-188,-198,-177,-200,-193},{-196,-219,-212,-193,-172,-191},{-230,-213,-206,-197,-194,-173},{-206,-219,-196,-211,-191,-191},{-217,-224,-182,-183,-194,-171},{-204,-230,-202,-181,-178,-169},{-237,-222,-198,-215,-168,-178},{-228,-226,-218,-187,-174,-189},{-202,-211,-186,-215,-185,-166},{-211,-228,-190,-189,-189,-198},{-230,-222,-218,-193,-193,-187},{-213,-215,-186,-203,-206,-173}},{{-170,-153,-141,-144,-157,-137},{-182,-157,-162,-140,-147,-135},{-186,-162,-151,-152,-137,-144},{-182,-177,-166,-158,-138,-134},{-187,-178,-141,-156,-157,-146},{-162,-165,-155,-152,-158,-141},{-181,-153,-146,-153,-135,-144},{-167,-182,-154,-154,-156,-139},{-169,-175,-154,-150,-153,-127},{-181,-148,-173,-165,-144,-124},{-177,-158,-155,-144,-150,-135},{-155,-155,-143,-154,-138,-145},{-189,-182,-159,-140,-144,-124},{-187,-158,-157,-160,-143,-141},{-175,-167,-154,-144,-137,-138},{-170,-158,-151,-164,-138,-141},{-160,-165,-146,-147,-157,-150},{-179,-175,-151,-153,-148,-130},{-186,-170,-173,-152,-134,-132},{-170,-158,-146,-156,-151,-152}},{{-140,-121,-130,-124,-111,-107},{-136,-117,-130,-115,-120,-129},{-134,-130,-126,-119,-126,-120},{-132,-122,-113,-111,-123,-120},{-142,-113,-136,-120,-127,-112},{-134,-132,-123,-112,-108,-123},{-141,-113,-118,-119,-129,-123},{-144,-134,-113,-112,-118,-121},{-146,-122,-112,-111,-126,-118},{-138,-125,-115,-123,-125,-127},{-141,-130,-118,-114,-127,-117},{-132,-115,-119,-118,-129,-114},{-137,-118,-130,-130,-127,-120},{-137,-130,-122,-119,-120,-124},{-132,-121,-113,-130,-113,-115},{-138,-125,-125,-126,-118,-115},{-121,-126,-115,-119,-120,-113},{-122,-123,-129,-107,-114,-121},{-133,-121,-130,-123,-125,-123},{-126,-116,-115,-130,-131,-123}},{{-113,-119,-109,-108,-120,-135},{-107,-121,-115,-112,-131,-125},{-119,-121,-111,-112,-129,-132},{-127,-118,-113,-124,-121,-130},{-131,-117,-112,-127,-133,-118},{-130,-115,-126,-129,-128,-116},{-107,-129,-120,-113,-115,-113},{-131,-111,-130,-111,-132,-130},{-127,-119,-117,-131,-117,-122},{-129,-107,-120,-123,-132,-135},{-112,-124,-114,-109,-122,-136},{-129,-108,-120,-121,-120,-130},{-129,-111,-112,-111,-131,-139},{-126,-112,-108,-127,-112,-121},{-109,-114,-107,-123,-111,-118},{-127,-115,-121,-120,-113,-127},{-114,-113,-115,-119,-120,-123},{-114,-118,-124,-125,-118,-113},{-117,-131,-109,-117,-122,-118},{-121,-131,-113,-109,-121,-139}}},{{{-239,-279,-263,-258,-242,-258},{-274,-242,-255,-279,-279,-245},{-242,-269,-287,-274,-282,-261},{-277,-293,-290,-261,-277,-274},{-245,-277,-258,-290,-287,-279},{-239,-269,-250,-285,-258,-290},{-258,-282,-279,-258,-285,-282},{-287,-282,-253,-290,-258,-253},{-263,-247,-239,-250,-258,-250},{-261,-293,-250,-279,-266,-293},{-277,-271,-258,-255,-287,-258},{-290,-263,-282,-250,-271,-250},{-277,-258,-274,-258,-245,-279},{-255,-277,-239,-271,-271,-269},{-239,-266,-255,-293,-250,-253},{-261,-277,-242,-274,-250,-250},{-258,-271,-271,-290,-293,-245},{-242,-287,-242,-274,-274,-290},{-255,-253,-263,-282,-245,-271},{-279,-287,-250,-242,-242,-250}},{{-274,-253,-282,-293,-265,-269},{-263,-263,-287,-285,-267,-256},{-261,-287,-290,-287,-249,-246},{-245,-285,-261,-274,-278,-249},{-285,-247,-258,-253,-286,-236},{-293,-290,-277,-247,-241,-251},{-242,-242,-261,-287,-249,-267},{-269,-279,-242,-287,-272,-251},{-250,-245,-247,-274,-278,-246},{-282,-242,-242,-242,-252,-256},{-263,-253,-285,-242,-259,-254},{-290,-285,-263,-242,-270,-280},{-239,-274,-263,-290,-257,-264},{-271,-274,-290,-242,-238,-264},{-245,-245,-261,-285,-254,-267},{-258,-287,-253,-250,-288,-246},{-242,-263,-274,-245,-275,-241},{-293,-239,-263,-271,-259,-243},{-277,-287,-279,-285,-288,-246},{-277,-269,-253,-245,-244,-259}},{{-254,-228,-232,-233,-250,-265},{-262,-240,-234,-260,-235,-224},{-264,-253,-252,-263,-243,-246},{-256,-245,-232,-246,-270,-234},{-241,-245,-275,-250,-252,-246},{-254,-245,-237,-273,-235,-253},{-272,-238,-265,-258,-255,-265},{-233,-233,-239,-273,-255,-231},{-269,-266,-257,-236,-262,-243},{-282,-261,-265,-250,-235,-265},{-241,-238,-232,-263,-247,-219},{-282,-256,-232,-233,-265,-234},{-272,-268,-237,-263,-238,-251},{-282,-240,-265,-223,-252,-217},{-269,-238,-237,-273,-225,-246},{-259,-245,-275,-250,-233,-243},{-272,-278,-239,-268,-235,-234},{-280,-228,-249,-268,-265,-255},{-272,-268,-247,-273,-238,-222},{-233,-248,-234,-258,-255,-253}},{{-259,-237,-254,-221,-231,-204},{-257,-230,-217,-239,-246,-202},{-236,-251,-236,-225,-242,-208},{-224,-249,-217,-239,-222,-206},{-226,-251,-213,-221,-237,-226},{-214,-249,-238,-230,-213,-215},{-257,-247,-254,-242,-211,-224},{-250,-214,-222,-207,-235,-240},{-250,-221,-208,-225,-220,-240},{-238,-214,-213,-232,-224,-217},{-257,-230,-240,-216,-235,-231},{-259,-251,-213,-225,-211,-208},{-219,-233,-233,-209,-246,-235},{-224,-221,-240,-218,-233,-237},{-231,-244,-213,-214,-220,-226},{-228,-256,-243,-209,-233,-222},{-252,-251,-236,-239,-224,-202},{-226,-228,-210,-228,-231,-242},{-257,-223,-226,-216,-215,-228},{-259,-240,-238,-214,-204,-222}},{{-235,-208,-237,-239,-208,-215},{-205,-230,-204,-219,-226,-206},{-209,-210,-228,-224,-230,-234},{-202,-230,-226,-226,-206,-213},{-211,-210,-197,-197,-228,-197},{-202,-230,-202,-232,-206,-219},{-242,-210,-234,-210,-239,-226},{-222,-206,-234,-200,-206,-234},{-229,-217,-215,-204,-202,-215},{-211,-215,-206,-232,-217,-221},{-233,-234,-224,-228,-204,-204},{-235,-224,-219,-215,-200,-217},{-238,-217,-215,-234,-232,-237},{-240,-239,-239,-204,-239,-219},{-222,-213,-239,-239,-208,-219},{-209,-234,-197,-228,-210,-239},{-205,-195,-219,-224,-202,-221},{-240,-239,-239,-237,-228,-213},{-227,-224,-221,-200,-219,-197},{-207,-210,-197,-237,-232,-197}},{{-200,-206,-200,-217,-228,-228},{-215,-237,-230,-221,-204,-215},{-226,-230,-204,-217,-226,-208},{-224,-219,-200,-234,-204,-228},{-226,-239,-226,-200,-204,-217},{-228,-219,-195,-215,-197,-200},{-204,-239,-237,-215,-195,-217},{-234,-195,-226,-204,-230,-195},{-230,-213,-206,-234,-204,-204},{-200,-202,-239,-237,-202,-208},{-197,-204,-228,-226,-213,-200},{-204,-226,-219,-224,-230,-217},{-226,-200,-208,-239,-197,-195},{-217,-195,-213,-232,-217,-234},{-226,-208,-230,-219,-234,-226},{-206,-226,-200,-234,-213,-204},{-232,-217,-208,-232,-210,-234},{-224,-204,-204,-206,-228,-228},{-230,-228,-208,-195,-208,-226},{-206,-210,-197,-230,-226,-234}}},{{{-313,-277,-280,-286,-280,-290},{-271,-301,-301,-304,-295,-284},{-271,-283,-286,-271,-283,-317},{-322,-304,-280,-274,-310,-323},{-319,-322,-316,-289,-286,-323},{-310,-298,-271,-322,-316,-314},{-316,-271,-289,-283,-316,-290},{-280,-286,-277,-274,-298,-287},{-295,-307,-331,-307,-271,-281},{-319,-322,-277,-283,-316,-323},{-286,-307,-316,-295,-325,-284},{-271,-316,-322,-301,-304,-320},{-316,-271,-289,-283,-319,-320},{-325,-322,-274,-310,-325,-278},{-289,-322,-310,-319,-289,-326},{-316,-328,-271,-322,-277,-320},{-331,-301,-307,-319,-325,-302},{-298,-292,-307,-295,-301,-308},{-292,-283,-292,-331,-274,-284},{-292,-292,-274,-319,-316,-272}},{{-270,-284,-258,-262,-257,-249},{-293,-258,-252,-276,-252,-270},{-287,-284,-283,-287,-252,-257},{-299,-273,-283,-281,-281,-242},{-314,-298,-272,-262,-246,-270},{-284,-296,-305,-298,-252,-254},{-278,-307,-286,-300,-276,-262},{-299,-276,-280,-284,-257,-267},{-322,-290,-274,-268,-289,-257},{-299,-284,-305,-246,-260,-242},{-264,-281,-260,-278,-268,-257},{-308,-293,-274,-268,-265,-249},{-287,-258,-274,-276,-284,-260},{-287,-270,-288,-278,-278,-249},{-287,-298,-258,-248,-246,-236},{-290,-316,-291,-248,-249,-260},{-278,-298,-260,-295,-244,-231},{-272,-298,-280,-281,-254,-254},{-316,-310,-308,-295,-278,-265},{-296,-290,-297,-265,-244,-265}},{{-233,-216,-245,-236,-223,-208},{-246,-226,-243,-239,-214,-194},{-241,-254,-245,-201,-227,-186},{-265,-264,-227,-228,-229,-206},{-236,-245,-252,-221,-229,-196},{-268,-233,-213,-208,-218,-190},{-265,-218,-250,-208,-201,-190},{-268,-247,-240,-208,-197,-188},{-233,-250,-245,-241,-218,-220},{-246,-262,-213,-214,-220,-194},{-268,-235,-234,-234,-210,-192},{-258,-216,-234,-234,-218,-220},{-243,-242,-247,-243,-233,-208},{-241,-264,-213,-199,-218,-188},{-241,-218,-206,-243,-210,-194},{-241,-216,-252,-234,-195,-216},{-236,-223,-215,-201,-206,-186},{-255,-262,-211,-239,-210,-192},{-243,-264,-215,-219,-227,-194},{-241,-259,-236,-239,-225,-182}},{{-192,-173,-192,-187,-174,-169},{-177,-201,-166,-170,-156,-156},{-175,-171,-194,-155,-159,-153},{-208,-175,-192,-181,-169,-155},{-182,-201,-167,-160,-161,-172},{-177,-184,-173,-172,-178,-151},{-204,-180,-183,-189,-178,-158},{-206,-184,-192,-177,-179,-172},{-175,-179,-166,-155,-161,-151},{-188,-169,-178,-177,-161,-159},{-198,-205,-192,-157,-176,-167},{-198,-171,-183,-189,-174,-147},{-188,-199,-164,-158,-164,-174},{-211,-179,-167,-181,-159,-161},{-182,-193,-190,-170,-166,-169},{-210,-190,-182,-165,-153,-147},{-186,-190,-185,-182,-163,-153},{-196,-184,-178,-157,-171,-163},{-202,-199,-164,-167,-179,-148},{-192,-195,-183,-184,-169,-172}},{{-147,-165,-162,-165,-152,-160},{-168,-148,-143,-143,-165,-168},{-144,-151,-154,-140,-168,-154},{-168,-151,-146,-146,-156,-160},{-148,-139,-151,-168,-156,-151},{-167,-159,-169,-143,-169,-169},{-172,-157,-159,-152,-142,-149},{-165,-152,-146,-151,-156,-168},{-161,-160,-146,-160,-168,-148},{-147,-162,-168,-148,-148,-139},{-148,-157,-169,-168,-159,-157},{-167,-157,-146,-154,-151,-151},{-147,-145,-140,-169,-169,-151},{-147,-142,-168,-168,-168,-163},{-150,-146,-156,-148,-143,-163},{-158,-143,-162,-148,-139,-143},{-165,-169,-154,-168,-142,-152},{-167,-145,-148,-166,-166,-157},{-153,-148,-156,-140,-152,-156},{-145,-157,-148,-169,-160,-166}},{{-152,-161,-157,-156,-163,-172},{-140,-159,-164,-163,-186,-165},{-146,-153,-170,-155,-186,-165},{-166,-146,-170,-175,-182,-165},{-145,-145,-160,-165,-189,-190},{-163,-148,-159,-158,-193,-199},{-151,-159,-164,-158,-187,-188},{-152,-164,-177,-151,-187,-194},{-154,-146,-177,-168,-173,-163},{-159,-169,-159,-160,-158,-177},{-143,-157,-152,-176,-182,-188},{-156,-169,-164,-160,-187,-165},{-168,-153,-157,-185,-159,-192},{-151,-169,-146,-163,-170,-194},{-151,-157,-168,-168,-163,-181},{-148,-159,-157,-168,-173,-176},{-157,-157,-160,-183,-163,-188},{-139,-156,-146,-155,-163,-199},{-157,-153,-167,-165,-193,-170},{-159,-146,-162,-175,-164,-183}}},{{{-332,-357,-357,-318,-340,-340},{-360,-322,-368,-318,-371,-329},{-378,-371,-315,-368,-385,-364},{-382,-368,-357,-336,-329,-364},{-350,-340,-385,-340,-378,-315},{-336,-343,-340,-346,-374,-350},{-360,-360,-336,-354,-378,-318},{-357,-385,-360,-374,-326,-332},{-350,-350,-340,-364,-368,-385},{-329,-343,-385,-354,-360,-322},{-382,-350,-364,-326,-385,-318},{-346,-368,-354,-315,-360,-315},{-371,-360,-378,-357,-340,-354},{-318,-336,-322,-336,-374,-346},{-371,-322,-374,-315,-332,-332},{-326,-336,-360,-315,-385,-374},{-326,-354,-371,-371,-326,-332},{-378,-350,-329,-374,-315,-343},{-374,-318,-343,-346,-385,-374},{-329,-368,-343,-371,-371,-315}},{{-365,-329,-305,-317,-335,-335},{-365,-350,-339,-327,-305,-306},{-355,-319,-349,-324,-341,-299},{-341,-340,-349,-351,-354,-296},{-338,-343,-373,-361,-348,-296},{-365,-343,-322,-314,-328,-332},{-317,-316,-349,-314,-335,-322},{-345,-322,-339,-341,-312,-303},{-351,-343,-363,-307,-318,-306},{-372,-377,-342,-331,-358,-312},{-317,-336,-346,-307,-302,-335},{-376,-333,-373,-317,-328,-293},{-348,-319,-346,-331,-351,-312},{-376,-357,-336,-324,-361,-299},{-327,-336,-359,-327,-298,-309},{-334,-346,-366,-334,-318,-354},{-369,-357,-366,-347,-321,-325},{-334,-326,-370,-337,-348,-325},{-324,-340,-359,-341,-331,-309},{-324,-370,-353,-357,-328,-299}},{{-309,-302,-315,-281,-311,-306},{-334,-333,-276,-281,-314,-284},{-328,-311,-324,-316,-288,-270},{-318,-330,-324,-275,-282,-261},{-343,-296,-306,-293,-296,-300},{-293,-326,-306,-284,-308,-300},{-346,-333,-303,-264,-308,-261},{-328,-330,-294,-287,-291,-289},{-299,-277,-321,-302,-285,-267},{-287,-277,-327,-287,-262,-306},{-296,-280,-273,-314,-262,-253},{-296,-283,-276,-319,-285,-275},{-306,-330,-306,-281,-299,-297},{-328,-339,-291,-281,-265,-281},{-293,-302,-330,-264,-294,-281},{-324,-326,-276,-302,-314,-295},{-309,-330,-324,-267,-259,-297},{-343,-290,-312,-296,-296,-303},{-284,-330,-279,-314,-282,-261},{-337,-293,-303,-308,-294,-300}},{{-267,-271,-249,-238,-252,-263},{-281,-255,-247,-246,-257,-263},{-254,-276,-265,-238,-230,-234},{-248,-258,-283,-251,-250,-222},{-281,-287,-275,-276,-225,-215},{-294,-252,-275,-266,-260,-239},{-251,-268,-254,-266,-235,-241},{-273,-268,-249,-264,-225,-227},{-251,-266,-275,-256,-230,-225},{-273,-287,-242,-248,-247,-225},{-262,-247,-272,-238,-252,-251},{-281,-274,-236,-238,-262,-249},{-243,-271,-249,-261,-238,-261},{-294,-276,-272,-228,-245,-241},{-262,-268,-270,-254,-247,-249},{-289,-247,-270,-254,-235,-261},{-265,-281,-278,-236,-245,-215},{-267,-260,-270,-271,-223,-246},{-286,-247,-247,-246,-243,-239},{-278,-242,-231,-243,-225,-220}},{{-220,-254,-236,-243,-233,-247},{-230,-238,-210,-208,-213,-219},{-225,-245,-222,-219,-247,-231},{-216,-233,-240,-247,-215,-247},{-232,-249,-208,-236,-252,-238},{-251,-254,-219,-254,-231,-226},{-218,-249,-236,-233,-233,-222},{-225,-252,-249,-254,-224,-233},{-239,-229,-224,-231,-208,-243},{-220,-219,-222,-219,-247,-236},{-239,-238,-210,-222,-215,-247},{-216,-245,-233,-229,-247,-229},{-220,-245,-208,-238,-219,-219},{-261,-236,-217,-215,-243,-222},{-239,-233,-249,-222,-219,-213},{-235,-240,-231,-219,-231,-213},{-232,-229,-226,-233,-213,-236},{-216,-247,-222,-224,-210,-222},{-218,-219,-229,-229,-215,-252},{-249,-224,-210,-219,-243,-254}},{{-219,-224,-228,-259,-242,-226},{-215,-240,-233,-231,-225,-234},{-231,-240,-210,-245,-232,-251},{-245,-238,-249,-226,-220,-231},{-219,-222,-242,-224,-254,-248},{-208,-245,-226,-236,-242,-268},{-208,-238,-212,-236,-257,-256},{-240,-215,-240,-255,-242,-268},{-238,-245,-233,-238,-223,-251},{-224,-217,-221,-214,-247,-253},{-254,-252,-224,-250,-235,-258},{-247,-215,-240,-250,-220,-253},{-231,-217,-247,-250,-220,-248},{-238,-238,-245,-252,-237,-231},{-254,-224,-252,-262,-266,-251},{-226,-208,-256,-217,-235,-234},{-219,-210,-238,-236,-242,-224},{-231,-231,-210,-243,-249,-263},{-219,-243,-212,-252,-252,-263},{-240,-229,-224,-233,-249,-236}}}}; // 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,6,15,8,5,15,8,5,17,8,6,17,9,6,16,8,6,17,9,6,17,9,6,17,9,6,16,8,6,16,8,6,16,9,6,17,9,6,17,9,6,17,9,6,17,9,6,18,9,6,18,9,6,17,8,6,17,8,6,16,9,6,16,8,6,16,9,6,16,9,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,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,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,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,32,1,5,9,13,17,21,25,29,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,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,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,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,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,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,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,34,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,33,2,6,10,14,18,22,26,30,34,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,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,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,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,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,0,6,12,18,24,30,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,0,6,12,18,24,30,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,2,6,10,14,18,22,26,30,0,6,12,18,24,30,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,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32}; // 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,5,11,17,23,29,35,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,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,6,10,14,18,22,26,30,34,7,13,19,25,31,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,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,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,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,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,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,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,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,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,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,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,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,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,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,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,2,8,14,20,26,32,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,2,8,14,20,26,32,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,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,3,9,15,21,27,33,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,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,5,11,17,23,29,35}; // set of end times of each shipment 
