int Dev = 20;// Deviation
extern const int CNN = 3;// 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 = 743;//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]={{{{12309,0,0,0,0,0},{12514,0,0,0,0,0},{12341,0,0,0,0,0},{12506,0,0,0,0,0},{12362,0,0,0,0,0},{12309,0,0,0,0,0},{12542,0,0,0,0,0},{12419,0,0,0,0,0},{12364,0,0,0,0,0},{12559,0,0,0,0,0},{12639,0,0,0,0,0},{12545,0,0,0,0,0},{12485,0,0,0,0,0},{12430,0,0,0,0,0},{12188,0,0,0,0,0},{12467,0,0,0,0,0},{12525,0,0,0,0,0},{12429,0,0,0,0,0},{12366,0,0,0,0,0},{12469,0,0,0,0,0}},{{12254,0,0,0,0,0},{12495,0,0,0,0,0},{12487,0,0,0,0,0},{12449,0,0,0,0,0},{12277,0,0,0,0,0},{12397,0,0,0,0,0},{12182,0,0,0,0,0},{12609,0,0,0,0,0},{12196,0,0,0,0,0},{12128,0,0,0,0,0},{12376,0,0,0,0,0},{12231,0,0,0,0,0},{12528,0,0,0,0,0},{12457,0,0,0,0,0},{12916,0,0,0,0,0},{12714,0,0,0,0,0},{12315,0,0,0,0,0},{12280,0,0,0,0,0},{12707,0,0,0,0,0},{12466,0,0,0,0,0}},{{11384,0,0,0,0,0},{11576,0,0,0,0,0},{11429,0,0,0,0,0},{11115,0,0,0,0,0},{11196,0,0,0,0,0},{11534,0,0,0,0,0},{11930,0,0,0,0,0},{11361,0,0,0,0,0},{11954,0,0,0,0,0},{11553,0,0,0,0,0},{11265,0,0,0,0,0},{11234,0,0,0,0,0},{11785,0,0,0,0,0},{11259,0,0,0,0,0},{11574,0,0,0,0,0},{11443,0,0,0,0,0},{11335,0,0,0,0,0},{11740,0,0,0,0,0},{11485,0,0,0,0,0},{11890,0,0,0,0,0}},{{10258,0,0,0,0,0},{10315,0,0,0,0,0},{10237,0,0,0,0,0},{10726,0,0,0,0,0},{10402,0,0,0,0,0},{10141,0,0,0,0,0},{10523,0,0,0,0,0},{10399,0,0,0,0,0},{10300,0,0,0,0,0},{10461,0,0,0,0,0},{10132,0,0,0,0,0},{10564,0,0,0,0,0},{10361,0,0,0,0,0},{10346,0,0,0,0,0},{10296,0,0,0,0,0},{10011,0,0,0,0,0},{10362,0,0,0,0,0},{10423,0,0,0,0,0},{10294,0,0,0,0,0},{10364,0,0,0,0,0}},{{9662,0,0,0,0,0},{9543,0,0,0,0,0},{9452,0,0,0,0,0},{9401,0,0,0,0,0},{9427,0,0,0,0,0},{9349,0,0,0,0,0},{9090,0,0,0,0,0},{9290,0,0,0,0,0},{9520,0,0,0,0,0},{9159,0,0,0,0,0},{9608,0,0,0,0,0},{9446,0,0,0,0,0},{9435,0,0,0,0,0},{9299,0,0,0,0,0},{9392,0,0,0,0,0},{9414,0,0,0,0,0},{9510,0,0,0,0,0},{9621,0,0,0,0,0},{9753,0,0,0,0,0},{9409,0,0,0,0,0}},{{9332,0,0,0,0,0},{9160,0,0,0,0,0},{9215,0,0,0,0,0},{9170,0,0,0,0,0},{9235,0,0,0,0,0},{9430,0,0,0,0,0},{9471,0,0,0,0,0},{9321,0,0,0,0,0},{9236,0,0,0,0,0},{9580,0,0,0,0,0},{9061,0,0,0,0,0},{9199,0,0,0,0,0},{9240,0,0,0,0,0},{9139,0,0,0,0,0},{9357,0,0,0,0,0},{9323,0,0,0,0,0},{9488,0,0,0,0,0},{9326,0,0,0,0,0},{9306,0,0,0,0,0},{8945,0,0,0,0,0}}},{{{-353,-241,-350,-320,-312,-256},{-270,-332,-238,-320,-291,-309},{-270,-320,-344,-270,-273,-238},{-303,-335,-247,-344,-341,-318},{-262,-341,-273,-303,-326,-291},{-303,-256,-259,-353,-291,-335},{-253,-241,-247,-332,-279,-347},{-344,-347,-312,-276,-312,-262},{-347,-291,-318,-285,-259,-332},{-241,-235,-241,-256,-315,-270},{-306,-262,-256,-347,-338,-320},{-276,-253,-344,-318,-265,-268},{-268,-291,-326,-323,-244,-318},{-273,-235,-300,-294,-300,-309},{-341,-288,-253,-270,-335,-297},{-235,-341,-326,-309,-276,-288},{-300,-306,-315,-270,-294,-303},{-253,-335,-253,-273,-312,-294},{-347,-318,-288,-268,-285,-282},{-247,-288,-312,-323,-306,-288}},{{-241,-229,-227,-301,-299,-259},{-302,-317,-238,-310,-262,-290},{-316,-269,-288,-260,-256,-275},{-334,-257,-246,-258,-259,-303},{-261,-280,-308,-277,-270,-212},{-345,-317,-266,-225,-259,-251},{-302,-317,-246,-233,-214,-267},{-284,-335,-255,-290,-246,-295},{-270,-277,-300,-247,-227,-259},{-342,-252,-300,-230,-299,-207},{-244,-323,-325,-266,-302,-236},{-232,-292,-235,-244,-216,-207},{-313,-297,-322,-290,-270,-212},{-249,-289,-224,-277,-318,-215},{-342,-337,-288,-307,-275,-290},{-296,-315,-314,-326,-259,-295},{-299,-323,-235,-255,-286,-215},{-238,-232,-286,-241,-302,-300},{-241,-315,-232,-299,-299,-285},{-336,-329,-302,-301,-214,-275}},{{-200,-220,-226,-186,-188,-208},{-298,-198,-247,-249,-175,-183},{-270,-237,-200,-184,-182,-183},{-282,-196,-189,-186,-210,-167},{-298,-247,-259,-215,-201,-222},{-225,-208,-268,-186,-227,-220},{-228,-237,-254,-231,-184,-177},{-242,-240,-270,-240,-257,-233},{-232,-220,-203,-251,-208,-204},{-240,-271,-256,-188,-227,-227},{-278,-208,-228,-179,-175,-202},{-258,-208,-226,-253,-178,-247},{-275,-254,-200,-208,-184,-229},{-285,-225,-205,-181,-201,-185},{-232,-232,-275,-264,-210,-169},{-202,-220,-212,-195,-195,-192},{-248,-215,-219,-220,-195,-247},{-295,-227,-247,-242,-214,-216},{-270,-283,-186,-222,-255,-204},{-290,-283,-245,-269,-246,-220}},{{-197,-193,-177,-146,-142,-174},{-195,-168,-184,-151,-150,-192},{-229,-213,-174,-150,-177,-147},{-217,-196,-211,-184,-177,-176},{-217,-151,-168,-189,-172,-170},{-171,-185,-156,-144,-163,-128},{-175,-202,-156,-181,-144,-157},{-189,-172,-145,-189,-152,-134},{-197,-151,-200,-155,-182,-184},{-193,-194,-186,-146,-168,-130},{-229,-194,-175,-191,-196,-149},{-217,-155,-172,-179,-162,-178},{-223,-157,-172,-203,-132,-133},{-187,-223,-183,-138,-188,-130},{-197,-189,-199,-200,-147,-163},{-195,-166,-200,-144,-162,-139},{-197,-193,-159,-162,-145,-130},{-230,-193,-193,-198,-134,-157},{-219,-223,-192,-165,-140,-160},{-173,-155,-195,-179,-140,-186}},{{-177,-170,-148,-134,-131,-134},{-137,-121,-134,-163,-121,-151},{-182,-130,-121,-129,-173,-138},{-182,-143,-141,-169,-159,-134},{-180,-146,-123,-144,-134,-148},{-139,-119,-160,-162,-171,-121},{-156,-143,-134,-147,-162,-126},{-146,-122,-168,-171,-131,-118},{-137,-131,-134,-122,-118,-140},{-140,-165,-123,-166,-134,-176},{-132,-174,-162,-176,-148,-126},{-182,-139,-175,-156,-166,-160},{-146,-173,-143,-171,-146,-156},{-169,-124,-150,-118,-123,-168},{-128,-174,-138,-140,-121,-119},{-149,-140,-119,-138,-122,-118},{-145,-156,-151,-143,-168,-163},{-162,-156,-173,-173,-168,-169},{-166,-161,-125,-128,-168,-165},{-157,-145,-162,-135,-157,-138}},{{-156,-125,-171,-151,-169,-190},{-131,-141,-127,-154,-155,-137},{-141,-125,-149,-176,-155,-189},{-144,-163,-169,-128,-135,-164},{-169,-176,-130,-129,-171,-175},{-137,-128,-163,-134,-174,-187},{-135,-148,-124,-180,-185,-155},{-141,-172,-124,-129,-179,-190},{-156,-134,-142,-183,-151,-180},{-166,-166,-181,-160,-182,-145},{-137,-169,-121,-154,-180,-149},{-151,-140,-172,-146,-137,-165},{-153,-141,-160,-168,-155,-184},{-160,-172,-121,-174,-193,-157},{-162,-159,-137,-139,-150,-167},{-137,-125,-156,-149,-174,-179},{-140,-134,-181,-159,-193,-184},{-166,-140,-128,-152,-174,-155},{-162,-166,-149,-134,-135,-162},{-162,-121,-181,-140,-148,-140}}},{{{-151,-140,-168,-199,-167,-187},{-136,-174,-161,-163,-173,-204},{-141,-189,-175,-177,-190,-201},{-188,-169,-191,-215,-178,-170},{-161,-161,-187,-174,-206,-166},{-192,-162,-172,-172,-169,-164},{-185,-145,-180,-213,-178,-216},{-166,-179,-180,-149,-217,-210},{-141,-189,-180,-172,-201,-157},{-158,-139,-200,-215,-202,-229},{-158,-179,-196,-215,-180,-170},{-134,-186,-140,-186,-210,-191},{-163,-139,-149,-197,-208,-220},{-165,-140,-194,-154,-206,-185},{-181,-166,-152,-195,-164,-189},{-195,-184,-208,-192,-151,-155},{-197,-181,-178,-147,-175,-223},{-168,-198,-173,-166,-164,-168},{-178,-137,-177,-197,-167,-162},{-168,-147,-159,-177,-162,-185}},{{-200,-205,-185,-256,-213,-231},{-182,-232,-173,-234,-275,-252},{-184,-170,-241,-194,-252,-209},{-204,-238,-196,-252,-183,-236},{-210,-164,-219,-261,-231,-238},{-182,-246,-230,-197,-259,-233},{-178,-172,-196,-223,-245,-245},{-220,-232,-207,-194,-190,-255},{-170,-170,-196,-243,-222,-250},{-162,-228,-232,-252,-273,-219},{-228,-238,-194,-230,-270,-200},{-168,-217,-249,-223,-208,-278},{-158,-178,-185,-236,-275,-271},{-224,-189,-226,-236,-211,-214},{-190,-246,-181,-177,-254,-236},{-192,-240,-187,-250,-273,-262},{-202,-223,-196,-217,-250,-281},{-170,-240,-230,-179,-273,-198},{-208,-211,-249,-248,-227,-252},{-174,-226,-190,-241,-208,-245}},{{-210,-227,-257,-286,-319,-232},{-242,-258,-275,-246,-332,-286},{-267,-260,-220,-297,-224,-232},{-220,-278,-233,-313,-269,-306},{-240,-247,-236,-262,-294,-308},{-277,-237,-314,-235,-321,-286},{-274,-268,-254,-221,-330,-294},{-212,-250,-314,-240,-222,-226},{-227,-275,-244,-256,-305,-334},{-215,-263,-236,-324,-277,-300},{-296,-303,-278,-230,-271,-232},{-284,-280,-225,-243,-288,-246},{-225,-275,-244,-278,-305,-294},{-203,-207,-275,-302,-238,-286},{-269,-219,-267,-251,-310,-246},{-210,-212,-252,-281,-305,-238},{-257,-291,-314,-246,-319,-289},{-274,-247,-312,-302,-227,-325},{-210,-227,-314,-281,-249,-289},{-235,-214,-275,-273,-269,-334}},{{-324,-273,-286,-277,-247,-241},{-347,-297,-277,-343,-286,-337},{-289,-259,-253,-307,-286,-346},{-318,-353,-277,-319,-319,-298},{-277,-250,-241,-334,-295,-253},{-260,-335,-262,-340,-307,-334},{-289,-294,-304,-280,-307,-352},{-260,-347,-259,-250,-313,-310},{-260,-244,-247,-304,-286,-274},{-309,-312,-319,-349,-262,-340},{-257,-309,-256,-325,-328,-244},{-324,-238,-349,-262,-358,-319},{-286,-259,-289,-322,-301,-337},{-329,-282,-298,-307,-259,-328},{-318,-323,-262,-331,-274,-268},{-280,-268,-358,-259,-244,-250},{-283,-291,-262,-289,-289,-241},{-266,-315,-295,-283,-271,-319},{-312,-315,-289,-241,-316,-289},{-280,-241,-295,-304,-265,-355}},{{-346,-352,-331,-312,-338,-313},{-262,-241,-301,-327,-347,-264},{-310,-250,-298,-360,-247,-287},{-262,-355,-295,-267,-270,-290},{-328,-301,-277,-243,-285,-235},{-325,-340,-268,-303,-341,-276},{-280,-352,-250,-258,-315,-313},{-349,-355,-277,-243,-323,-287},{-310,-352,-313,-354,-320,-252},{-244,-316,-244,-258,-303,-348},{-295,-355,-355,-279,-350,-287},{-247,-280,-340,-255,-244,-278},{-247,-349,-316,-264,-268,-255},{-280,-289,-361,-267,-350,-325},{-244,-310,-286,-342,-350,-302},{-295,-262,-307,-270,-323,-267},{-334,-262,-304,-312,-238,-345},{-313,-313,-295,-240,-259,-313},{-301,-280,-343,-354,-344,-290},{-307,-325,-334,-246,-306,-299}},{{-336,-312,-285,-261,-207,-268},{-274,-254,-238,-248,-297,-221},{-256,-276,-301,-227,-297,-221},{-228,-234,-317,-288,-253,-231},{-322,-268,-241,-227,-243,-223},{-259,-301,-320,-290,-241,-290},{-265,-276,-241,-288,-269,-293},{-291,-246,-287,-248,-274,-221},{-239,-329,-225,-256,-307,-203},{-242,-290,-228,-261,-274,-201},{-262,-262,-247,-275,-302,-213},{-262,-318,-293,-243,-205,-265},{-288,-251,-293,-285,-225,-285},{-294,-234,-225,-277,-266,-233},{-274,-312,-322,-264,-279,-288},{-271,-287,-255,-280,-264,-295},{-228,-296,-274,-256,-294,-270},{-271,-332,-276,-309,-223,-218},{-319,-296,-252,-256,-292,-293},{-254,-293,-217,-214,-233,-298}}},{{{-273,-336,-316,-299,-388,-378},{-382,-372,-362,-385,-378,-280},{-273,-388,-345,-388,-349,-322},{-388,-322,-336,-388,-368,-306},{-362,-319,-303,-345,-266,-345},{-290,-270,-276,-290,-299,-306},{-342,-345,-306,-345,-299,-322},{-395,-303,-332,-362,-290,-368},{-296,-280,-345,-352,-299,-375},{-372,-290,-293,-270,-378,-362},{-385,-309,-306,-313,-345,-326},{-395,-342,-385,-299,-326,-286},{-316,-388,-345,-313,-322,-266},{-273,-286,-345,-270,-273,-378},{-365,-339,-345,-286,-296,-345},{-372,-296,-296,-276,-316,-372},{-290,-276,-332,-332,-378,-336},{-342,-280,-332,-339,-372,-345},{-293,-382,-266,-266,-319,-345},{-368,-385,-385,-293,-345,-270}},{{-276,-374,-345,-371,-290,-259},{-390,-332,-274,-267,-336,-286},{-358,-264,-284,-361,-363,-253},{-302,-328,-376,-305,-330,-304},{-276,-319,-345,-349,-311,-283},{-338,-357,-306,-361,-262,-277},{-351,-328,-303,-361,-280,-316},{-335,-386,-332,-374,-342,-316},{-276,-293,-364,-358,-339,-271},{-325,-338,-329,-327,-280,-253},{-344,-374,-262,-298,-268,-301},{-295,-306,-319,-311,-280,-298},{-315,-370,-278,-323,-351,-310},{-354,-345,-380,-374,-246,-265},{-377,-348,-367,-349,-330,-322},{-285,-380,-351,-270,-259,-325},{-282,-351,-373,-339,-249,-247},{-371,-383,-341,-257,-296,-244},{-318,-361,-268,-330,-323,-274},{-335,-280,-354,-298,-256,-319}},{{-254,-259,-311,-302,-249,-221},{-316,-328,-266,-302,-236,-306},{-292,-285,-244,-299,-278,-247},{-245,-268,-266,-218,-292,-211},{-301,-248,-230,-231,-278,-275},{-289,-279,-330,-239,-246,-296},{-263,-311,-260,-223,-252,-293},{-327,-253,-266,-218,-305,-229},{-319,-271,-269,-310,-278,-290},{-245,-282,-238,-321,-284,-301},{-316,-233,-224,-242,-241,-206},{-342,-242,-319,-223,-233,-236},{-307,-325,-244,-299,-244,-247},{-286,-242,-260,-305,-249,-208},{-274,-288,-235,-267,-302,-296},{-268,-331,-291,-275,-238,-226},{-266,-245,-230,-277,-276,-244},{-342,-274,-277,-316,-318,-208},{-254,-317,-336,-291,-262,-270},{-266,-337,-249,-321,-244,-262}},{{-228,-248,-237,-194,-204,-191},{-235,-260,-223,-254,-260,-206},{-282,-211,-244,-224,-237,-250},{-238,-282,-275,-203,-244,-261},{-230,-199,-239,-261,-267,-237},{-245,-202,-244,-199,-224,-237},{-220,-277,-239,-270,-233,-208},{-202,-228,-230,-261,-242,-188},{-272,-255,-244,-203,-233,-217},{-205,-224,-256,-270,-204,-175},{-205,-226,-216,-213,-222,-204},{-225,-231,-201,-273,-267,-241},{-228,-287,-263,-196,-264,-239},{-242,-282,-242,-249,-235,-254},{-220,-241,-244,-187,-184,-217},{-240,-241,-190,-231,-204,-193},{-265,-279,-218,-268,-222,-252},{-288,-224,-242,-217,-224,-250},{-255,-270,-239,-231,-206,-199},{-228,-238,-258,-196,-206,-234}},{{-210,-185,-185,-197,-246,-197},{-230,-206,-197,-220,-229,-208},{-215,-231,-246,-239,-200,-210},{-237,-185,-244,-200,-183,-233},{-252,-189,-229,-210,-244,-204},{-184,-250,-214,-244,-216,-187},{-215,-197,-225,-200,-193,-174},{-234,-239,-210,-172,-183,-170},{-206,-218,-181,-210,-237,-187},{-182,-183,-176,-248,-185,-223},{-224,-210,-231,-208,-200,-168},{-226,-170,-233,-218,-214,-204},{-174,-174,-197,-176,-181,-227},{-245,-183,-223,-250,-212,-250},{-237,-237,-212,-176,-246,-176},{-206,-241,-197,-172,-187,-202},{-210,-231,-241,-176,-181,-231},{-232,-197,-191,-231,-231,-172},{-247,-210,-220,-248,-200,-220},{-174,-225,-252,-220,-174,-202}},{{-227,-220,-241,-217,-209,-261},{-220,-172,-198,-187,-224,-209},{-187,-233,-200,-202,-205,-209},{-170,-210,-215,-243,-187,-263},{-246,-206,-226,-230,-202,-214},{-178,-202,-228,-224,-246,-220},{-181,-168,-238,-182,-183,-256},{-204,-223,-224,-252,-183,-214},{-250,-239,-188,-195,-200,-270},{-246,-244,-234,-252,-251,-256},{-168,-248,-213,-241,-189,-184},{-210,-204,-181,-247,-218,-189},{-216,-233,-179,-195,-178,-261},{-202,-246,-200,-226,-189,-223},{-185,-191,-190,-204,-235,-263},{-189,-216,-226,-178,-264,-245},{-193,-241,-232,-226,-178,-234},{-239,-168,-253,-180,-216,-225},{-200,-212,-192,-258,-229,-218},{-216,-197,-245,-189,-246,-234}}},{{{-87,-86,-115,-117,-129,-102},{-122,-93,-112,-99,-117,-105},{-121,-102,-106,-124,-98,-119},{-100,-100,-115,-112,-117,-102},{-106,-88,-121,-96,-132,-113},{-109,-117,-91,-97,-122,-114},{-126,-125,-103,-126,-121,-151},{-113,-109,-111,-106,-135,-106},{-122,-127,-115,-96,-135,-136},{-126,-124,-123,-116,-104,-115},{-125,-85,-110,-115,-109,-123},{-107,-88,-123,-125,-117,-111},{-105,-109,-105,-112,-142,-147},{-87,-124,-131,-140,-123,-114},{-101,-94,-96,-139,-110,-113},{-113,-126,-97,-99,-100,-108},{-90,-126,-94,-131,-104,-132},{-118,-126,-112,-119,-113,-142},{-122,-102,-109,-111,-143,-108},{-112,-100,-115,-108,-139,-152}},{{-150,-128,-163,-133,-192,-180},{-128,-161,-169,-143,-169,-148},{-139,-114,-124,-158,-151,-136},{-148,-128,-139,-186,-179,-188},{-157,-134,-176,-129,-163,-141},{-143,-162,-144,-140,-134,-153},{-117,-162,-138,-133,-182,-188},{-115,-144,-166,-161,-145,-202},{-116,-127,-129,-172,-171,-146},{-139,-161,-127,-140,-151,-192},{-108,-162,-144,-178,-151,-153},{-158,-123,-144,-124,-158,-150},{-131,-149,-166,-170,-137,-173},{-119,-117,-129,-186,-182,-186},{-142,-130,-164,-160,-129,-141},{-135,-113,-163,-143,-185,-165},{-142,-142,-144,-172,-135,-170},{-123,-128,-149,-129,-179,-166},{-151,-145,-142,-184,-159,-136},{-123,-152,-169,-175,-192,-156}},{{-203,-146,-221,-226,-194,-188},{-170,-182,-205,-175,-176,-210},{-140,-157,-218,-190,-161,-212},{-178,-211,-167,-175,-235,-234},{-154,-214,-190,-160,-157,-170},{-161,-216,-162,-173,-194,-178},{-172,-211,-210,-224,-220,-224},{-163,-148,-192,-177,-163,-194},{-200,-191,-210,-162,-202,-230},{-206,-164,-184,-196,-214,-230},{-180,-209,-197,-179,-184,-200},{-186,-155,-167,-224,-167,-196},{-178,-209,-153,-213,-186,-216},{-210,-203,-151,-160,-180,-190},{-154,-176,-171,-186,-163,-164},{-168,-185,-199,-190,-159,-164},{-156,-191,-195,-173,-184,-186},{-189,-203,-201,-228,-212,-176},{-168,-167,-151,-201,-169,-234},{-194,-176,-195,-200,-172,-204}},{{-195,-231,-177,-244,-221,-235},{-244,-193,-225,-191,-171,-217},{-193,-181,-229,-207,-175,-195},{-215,-244,-227,-231,-199,-191},{-171,-217,-233,-193,-233,-201},{-171,-211,-164,-240,-225,-168},{-238,-215,-213,-173,-187,-225},{-231,-227,-215,-175,-164,-240},{-199,-168,-244,-221,-201,-240},{-240,-195,-238,-168,-162,-181},{-235,-238,-209,-244,-213,-164},{-191,-223,-193,-179,-227,-173},{-205,-164,-238,-171,-215,-199},{-244,-221,-183,-164,-197,-233},{-191,-175,-185,-244,-203,-244},{-164,-209,-225,-171,-197,-168},{-223,-221,-164,-229,-185,-181},{-189,-177,-201,-238,-217,-201},{-240,-183,-189,-231,-193,-197},{-162,-217,-240,-164,-201,-168}},{{-183,-168,-213,-199,-180,-178},{-181,-217,-173,-172,-185,-212},{-193,-205,-209,-191,-208,-210},{-189,-207,-207,-189,-153,-204},{-209,-197,-236,-211,-170,-191},{-191,-203,-203,-193,-168,-215},{-193,-168,-211,-166,-223,-197},{-177,-171,-213,-177,-155,-177},{-162,-203,-165,-228,-212,-171},{-175,-177,-177,-187,-215,-149},{-223,-233,-211,-197,-174,-208},{-173,-162,-234,-162,-206,-191},{-219,-175,-171,-201,-200,-180},{-164,-195,-165,-166,-185,-177},{-162,-201,-193,-215,-172,-202},{-181,-217,-225,-164,-219,-149},{-162,-215,-167,-185,-176,-191},{-215,-173,-213,-220,-181,-193},{-195,-235,-162,-176,-215,-169},{-209,-203,-185,-176,-223,-178}},{{-143,-142,-134,-150,-136,-151},{-215,-192,-159,-158,-181,-118},{-200,-201,-187,-152,-159,-156},{-150,-147,-142,-142,-181,-169},{-163,-147,-165,-162,-142,-175},{-166,-140,-185,-176,-170,-150},{-197,-173,-184,-166,-150,-171},{-170,-202,-184,-158,-159,-157},{-197,-154,-199,-162,-179,-134},{-206,-175,-160,-162,-177,-175},{-202,-151,-155,-150,-124,-154},{-149,-170,-172,-146,-158,-157},{-161,-183,-167,-158,-173,-140},{-161,-187,-174,-178,-139,-163},{-213,-171,-192,-147,-174,-132},{-179,-175,-167,-150,-176,-154},{-158,-138,-164,-171,-165,-118},{-179,-180,-192,-144,-177,-134},{-161,-154,-160,-170,-148,-119},{-147,-152,-144,-182,-170,-151}}},{{{-245,-271,-198,-259,-212,-212},{-231,-209,-269,-278,-238,-200},{-191,-274,-209,-226,-209,-209},{-221,-212,-221,-271,-240,-205},{-205,-286,-236,-214,-269,-274},{-217,-200,-267,-278,-217,-219},{-205,-240,-274,-271,-219,-219},{-254,-248,-195,-238,-240,-276},{-252,-214,-190,-250,-257,-236},{-207,-214,-219,-250,-269,-286},{-198,-205,-212,-259,-252,-214},{-254,-226,-283,-205,-240,-283},{-277,-198,-226,-264,-250,-271},{-214,-202,-195,-243,-212,-281},{-186,-200,-250,-255,-202,-274},{-245,-236,-283,-243,-243,-276},{-186,-271,-226,-200,-236,-195},{-226,-238,-250,-202,-233,-257},{-200,-243,-269,-248,-205,-278},{-273,-195,-245,-217,-228,-193}},{{-226,-190,-226,-277,-255,-245},{-212,-238,-188,-229,-264,-201},{-190,-286,-214,-215,-262,-248},{-257,-198,-270,-217,-235,-203},{-259,-257,-240,-249,-190,-197},{-278,-274,-268,-192,-231,-228},{-195,-217,-202,-189,-224,-236},{-276,-200,-240,-192,-255,-243},{-202,-205,-200,-208,-240,-194},{-193,-231,-212,-206,-199,-230},{-214,-245,-216,-252,-231,-225},{-259,-190,-240,-229,-271,-248},{-257,-217,-219,-270,-231,-181},{-281,-283,-249,-187,-231,-263},{-262,-283,-228,-196,-192,-208},{-193,-231,-277,-192,-246,-203},{-245,-243,-230,-266,-208,-265},{-209,-207,-258,-222,-224,-194},{-240,-209,-233,-275,-192,-261},{-264,-269,-254,-224,-192,-217}},{{-224,-171,-236,-189,-213,-209},{-219,-203,-228,-185,-224,-191},{-232,-245,-224,-158,-219,-180},{-202,-213,-168,-209,-196,-180},{-228,-190,-200,-162,-185,-160},{-187,-186,-164,-199,-209,-148},{-252,-171,-186,-213,-193,-148},{-224,-178,-202,-213,-191,-198},{-200,-213,-234,-213,-200,-153},{-224,-171,-194,-216,-178,-164},{-230,-184,-202,-191,-215,-151},{-202,-234,-172,-168,-194,-155},{-234,-222,-240,-193,-151,-169},{-189,-211,-224,-166,-174,-173},{-221,-213,-204,-170,-219,-182},{-196,-171,-240,-191,-206,-158},{-221,-205,-198,-174,-224,-158},{-202,-211,-196,-222,-150,-200},{-176,-180,-182,-168,-206,-166},{-239,-217,-220,-211,-211,-203}},{{-194,-144,-173,-135,-140,-134},{-144,-153,-187,-168,-115,-124},{-206,-142,-184,-159,-130,-141},{-139,-148,-185,-138,-166,-145},{-205,-163,-152,-153,-166,-132},{-157,-160,-176,-128,-120,-115},{-150,-183,-138,-177,-141,-119},{-163,-191,-132,-156,-140,-164},{-155,-198,-127,-171,-118,-164},{-181,-173,-177,-178,-124,-164},{-146,-157,-165,-177,-130,-130},{-150,-175,-151,-144,-120,-137},{-182,-163,-140,-141,-140,-138},{-169,-150,-173,-122,-173,-155},{-157,-177,-148,-178,-166,-153},{-179,-153,-184,-174,-163,-166},{-143,-196,-140,-128,-131,-134},{-153,-155,-151,-165,-150,-163},{-200,-155,-184,-165,-161,-126},{-175,-162,-135,-128,-125,-116}},{{-149,-113,-146,-100,-124,-108},{-118,-144,-145,-130,-113,-125},{-152,-120,-144,-124,-117,-138},{-120,-116,-141,-115,-111,-127},{-120,-142,-112,-106,-118,-130},{-109,-103,-140,-125,-124,-112},{-133,-117,-100,-102,-109,-129},{-134,-141,-112,-107,-140,-120},{-126,-139,-122,-133,-132,-120},{-116,-113,-126,-109,-112,-100},{-146,-149,-134,-131,-118,-105},{-113,-139,-113,-131,-118,-115},{-145,-125,-144,-142,-133,-105},{-154,-103,-141,-101,-101,-126},{-117,-106,-99,-139,-115,-99},{-148,-101,-125,-106,-107,-120},{-108,-107,-118,-112,-107,-139},{-125,-135,-145,-140,-114,-114},{-144,-144,-129,-136,-124,-106},{-113,-116,-138,-107,-133,-100}},{{-115,-111,-142,-125,-142,-142},{-102,-98,-131,-138,-120,-108},{-120,-114,-100,-113,-98,-111},{-142,-130,-95,-126,-111,-130},{-114,-114,-108,-109,-139,-113},{-138,-143,-117,-98,-129,-150},{-115,-108,-121,-139,-138,-144},{-102,-96,-99,-143,-129,-127},{-99,-138,-139,-108,-105,-110},{-134,-124,-127,-127,-144,-151},{-131,-125,-102,-125,-124,-115},{-112,-108,-131,-105,-126,-107},{-104,-100,-112,-136,-134,-150},{-102,-108,-100,-107,-104,-146},{-129,-99,-121,-132,-122,-125},{-119,-126,-104,-106,-146,-141},{-108,-123,-134,-115,-112,-126},{-95,-139,-95,-124,-138,-130},{-127,-99,-112,-115,-107,-137},{-138,-130,-139,-118,-121,-135}}},{{{-303,-245,-250,-237,-295,-298},{-218,-255,-226,-234,-258,-301},{-226,-317,-279,-255,-253,-255},{-261,-223,-277,-258,-301,-303},{-223,-221,-213,-218,-221,-311},{-274,-258,-295,-258,-234,-221},{-250,-287,-231,-282,-258,-314},{-311,-279,-239,-271,-306,-221},{-277,-263,-218,-317,-295,-255},{-295,-258,-282,-223,-314,-271},{-271,-298,-293,-247,-306,-314},{-242,-215,-298,-306,-298,-247},{-303,-215,-258,-285,-261,-271},{-274,-279,-253,-311,-245,-314},{-237,-237,-301,-221,-279,-253},{-269,-298,-274,-263,-282,-279},{-253,-314,-317,-287,-245,-258},{-303,-293,-301,-213,-301,-221},{-239,-301,-274,-258,-255,-213},{-266,-253,-309,-282,-295,-242}},{{-261,-253,-263,-298,-212,-225},{-253,-295,-263,-250,-301,-293},{-301,-261,-231,-287,-265,-210},{-229,-242,-213,-311,-265,-282},{-290,-242,-282,-309,-252,-287},{-255,-298,-226,-266,-307,-295},{-237,-261,-282,-226,-233,-210},{-218,-221,-231,-239,-238,-311},{-237,-287,-301,-250,-301,-308},{-261,-223,-293,-247,-217,-210},{-253,-309,-218,-239,-270,-300},{-218,-279,-303,-314,-270,-246},{-253,-282,-218,-234,-299,-238},{-215,-290,-295,-301,-312,-267},{-250,-255,-295,-218,-278,-282},{-311,-306,-221,-295,-270,-287},{-247,-223,-237,-247,-210,-210},{-261,-290,-285,-303,-223,-259},{-231,-239,-317,-250,-254,-293},{-311,-215,-285,-287,-259,-251}},{{-300,-233,-260,-226,-243,-258},{-225,-225,-287,-258,-196,-210},{-293,-207,-267,-233,-277,-217},{-259,-243,-292,-198,-230,-222},{-207,-210,-285,-223,-201,-193},{-210,-220,-252,-290,-282,-207},{-256,-243,-270,-258,-265,-280},{-262,-215,-249,-216,-238,-265},{-290,-225,-229,-226,-289,-289},{-251,-225,-295,-243,-245,-234},{-264,-301,-244,-283,-220,-210},{-300,-293,-255,-201,-216,-251},{-303,-223,-224,-298,-267,-272},{-207,-293,-300,-201,-294,-260},{-207,-266,-204,-288,-208,-227},{-254,-263,-272,-298,-262,-219},{-225,-240,-252,-226,-265,-207},{-275,-213,-239,-206,-252,-217},{-254,-276,-202,-233,-260,-195},{-241,-278,-300,-228,-262,-198}},{{-262,-226,-266,-235,-186,-184},{-193,-207,-187,-218,-233,-226},{-228,-200,-277,-237,-179,-213},{-236,-256,-249,-239,-224,-240},{-233,-270,-206,-242,-240,-184},{-248,-226,-252,-218,-251,-255},{-274,-190,-273,-235,-260,-249},{-255,-275,-238,-235,-231,-204},{-233,-268,-247,-235,-269,-253},{-224,-242,-275,-207,-184,-249},{-198,-209,-189,-235,-188,-193},{-283,-212,-277,-216,-199,-224},{-190,-273,-203,-193,-224,-264},{-278,-268,-222,-200,-199,-184},{-209,-228,-263,-223,-181,-204},{-198,-202,-224,-244,-208,-184},{-221,-275,-210,-239,-215,-208},{-252,-266,-245,-212,-179,-224},{-271,-237,-194,-246,-211,-215},{-238,-263,-217,-198,-251,-260}},{{-213,-254,-226,-243,-260,-228},{-246,-256,-219,-221,-219,-260},{-178,-195,-217,-237,-215,-191},{-235,-224,-217,-230,-174,-197},{-180,-176,-210,-187,-219,-232},{-213,-176,-221,-213,-237,-189},{-231,-221,-228,-243,-184,-187},{-202,-254,-191,-187,-239,-241},{-216,-217,-193,-256,-217,-206},{-251,-187,-234,-187,-204,-193},{-202,-178,-245,-239,-202,-174},{-216,-187,-260,-256,-204,-256},{-211,-206,-254,-193,-195,-219},{-233,-206,-226,-182,-193,-230},{-176,-237,-247,-250,-215,-247},{-251,-224,-245,-252,-243,-250},{-187,-232,-180,-260,-204,-191},{-246,-208,-250,-191,-184,-204},{-185,-189,-187,-197,-252,-258},{-200,-213,-206,-210,-245,-176}},{{-200,-224,-232,-178,-221,-219},{-256,-237,-215,-187,-182,-224},{-202,-230,-245,-210,-184,-252},{-258,-204,-254,-176,-208,-219},{-178,-256,-213,-230,-197,-182},{-226,-202,-202,-182,-208,-178},{-243,-180,-234,-243,-221,-260},{-184,-219,-241,-208,-243,-258},{-230,-252,-230,-221,-200,-202},{-197,-197,-241,-187,-193,-189},{-260,-232,-180,-239,-187,-230},{-224,-191,-232,-260,-230,-191},{-202,-252,-174,-247,-221,-210},{-195,-217,-245,-226,-213,-243},{-191,-174,-252,-256,-195,-250},{-191,-232,-204,-219,-230,-226},{-243,-228,-247,-195,-260,-184},{-193,-260,-189,-252,-189,-210},{-202,-208,-206,-247,-247,-221},{-191,-195,-182,-176,-195,-254}}},{{{-250,-346,-253,-253,-259,-272},{-343,-295,-361,-346,-277,-308},{-352,-328,-250,-265,-361,-337},{-349,-322,-250,-334,-283,-237},{-256,-316,-337,-340,-250,-355},{-259,-361,-319,-352,-286,-329},{-271,-286,-241,-286,-361,-260},{-283,-331,-289,-250,-322,-284},{-244,-313,-280,-343,-283,-266},{-292,-352,-295,-328,-358,-263},{-334,-298,-262,-307,-328,-281},{-319,-358,-313,-334,-277,-302},{-352,-289,-286,-337,-280,-263},{-328,-292,-331,-316,-313,-343},{-241,-340,-250,-280,-262,-305},{-274,-337,-292,-358,-262,-302},{-349,-346,-346,-262,-265,-349},{-358,-301,-337,-295,-331,-278},{-247,-340,-310,-250,-358,-355},{-259,-277,-316,-346,-304,-352}},{{-252,-321,-227,-311,-299,-224},{-275,-250,-246,-240,-236,-285},{-270,-342,-308,-319,-305,-231},{-287,-304,-302,-268,-276,-283},{-243,-273,-227,-257,-262,-249},{-237,-324,-227,-262,-297,-257},{-284,-307,-230,-303,-223,-303},{-270,-278,-263,-287,-268,-231},{-331,-247,-286,-257,-254,-249},{-331,-304,-277,-238,-231,-254},{-284,-241,-305,-289,-220,-206},{-314,-276,-272,-317,-270,-213},{-337,-330,-314,-238,-305,-218},{-258,-304,-286,-284,-302,-211},{-322,-241,-316,-270,-231,-308},{-264,-290,-235,-265,-286,-267},{-302,-307,-249,-295,-278,-254},{-349,-241,-330,-311,-284,-208},{-331,-344,-274,-314,-313,-293},{-234,-333,-291,-306,-233,-278}},{{-238,-288,-227,-190,-218,-198},{-231,-254,-250,-236,-201,-166},{-231,-276,-218,-261,-237,-186},{-233,-216,-220,-197,-229,-164},{-290,-223,-240,-236,-206,-174},{-241,-250,-270,-197,-176,-172},{-263,-202,-268,-252,-242,-224},{-283,-226,-270,-259,-174,-200},{-295,-259,-202,-183,-189,-202},{-233,-245,-204,-232,-231,-182},{-246,-245,-197,-248,-223,-184},{-208,-204,-185,-248,-218,-190},{-243,-281,-240,-212,-237,-180},{-263,-192,-204,-210,-229,-220},{-223,-264,-259,-254,-248,-182},{-280,-269,-270,-199,-225,-236},{-268,-223,-236,-194,-240,-168},{-206,-250,-268,-199,-197,-178},{-201,-281,-266,-201,-225,-188},{-260,-288,-273,-199,-233,-238}},{{-225,-221,-185,-163,-139,-161},{-223,-216,-187,-179,-134,-182},{-211,-151,-144,-186,-144,-134},{-177,-156,-206,-141,-133,-184},{-182,-179,-189,-206,-183,-156},{-198,-190,-171,-163,-179,-151},{-190,-179,-201,-175,-138,-145},{-208,-173,-199,-165,-146,-188},{-161,-151,-164,-206,-148,-166},{-219,-175,-194,-203,-136,-174},{-233,-180,-176,-205,-134,-187},{-227,-169,-187,-153,-171,-138},{-219,-158,-166,-144,-186,-159},{-161,-195,-162,-139,-183,-188},{-204,-158,-174,-172,-146,-129},{-163,-197,-189,-158,-133,-190},{-225,-195,-183,-175,-198,-148},{-188,-167,-190,-155,-198,-145},{-225,-195,-171,-181,-151,-145},{-200,-223,-214,-182,-148,-171}},{{-140,-125,-179,-137,-142,-131},{-134,-145,-163,-129,-179,-172},{-156,-172,-142,-125,-129,-148},{-144,-151,-128,-157,-179,-166},{-156,-185,-176,-146,-174,-126},{-144,-145,-137,-142,-149,-156},{-184,-129,-132,-137,-131,-159},{-162,-162,-149,-152,-160,-140},{-150,-151,-142,-145,-182,-177},{-150,-139,-177,-163,-152,-131},{-128,-128,-157,-154,-142,-148},{-126,-125,-126,-140,-171,-136},{-165,-171,-123,-151,-160,-180},{-159,-145,-136,-165,-151,-160},{-162,-182,-169,-152,-174,-125},{-170,-169,-128,-179,-149,-182},{-167,-176,-168,-172,-160,-149},{-175,-171,-159,-125,-182,-180},{-142,-168,-137,-137,-183,-182},{-126,-146,-169,-183,-140,-163}},{{-180,-176,-193,-146,-156,-206},{-160,-137,-183,-181,-184,-165},{-185,-180,-152,-176,-166,-152},{-134,-151,-194,-197,-206,-179},{-149,-138,-180,-146,-205,-145},{-185,-156,-181,-186,-161,-212},{-174,-183,-177,-171,-180,-195},{-128,-156,-154,-197,-206,-190},{-129,-127,-168,-138,-182,-147},{-152,-170,-172,-185,-186,-183},{-139,-151,-139,-136,-164,-188},{-163,-149,-183,-155,-184,-156},{-183,-173,-175,-143,-205,-192},{-129,-153,-154,-192,-172,-148},{-172,-165,-152,-178,-142,-152},{-162,-127,-191,-156,-177,-177},{-174,-154,-168,-158,-206,-183},{-131,-145,-143,-148,-161,-179},{-160,-184,-188,-156,-186,-203},{-131,-178,-159,-143,-142,-212}}},{{{-406,-420,-284,-399,-315,-357},{-360,-382,-399,-308,-360,-280},{-318,-410,-346,-364,-304,-280},{-294,-368,-280,-378,-329,-336},{-389,-374,-360,-340,-389,-318},{-343,-389,-406,-410,-354,-354},{-301,-416,-420,-357,-364,-402},{-322,-332,-318,-318,-290,-318},{-371,-416,-346,-284,-298,-346},{-410,-350,-385,-332,-364,-368},{-290,-329,-416,-346,-399,-402},{-340,-298,-364,-406,-308,-354},{-410,-318,-308,-389,-312,-346},{-413,-382,-340,-354,-280,-416},{-374,-371,-402,-395,-329,-284},{-368,-420,-287,-354,-301,-290},{-284,-360,-406,-395,-385,-280},{-346,-322,-402,-290,-340,-294},{-368,-389,-364,-354,-322,-354},{-382,-308,-364,-329,-346,-354}},{{-365,-391,-295,-294,-354,-283},{-362,-319,-386,-307,-394,-338},{-310,-377,-403,-334,-325,-374},{-418,-333,-281,-301,-328,-267},{-355,-394,-271,-331,-377,-270},{-365,-278,-342,-304,-338,-261},{-331,-309,-376,-381,-394,-332},{-355,-398,-393,-277,-318,-386},{-320,-274,-403,-337,-364,-348},{-348,-340,-359,-294,-295,-377},{-414,-353,-393,-267,-295,-338},{-299,-367,-397,-381,-282,-341},{-331,-367,-370,-334,-344,-261},{-317,-309,-312,-324,-315,-306},{-393,-391,-386,-301,-374,-354},{-376,-288,-400,-321,-321,-386},{-379,-346,-370,-324,-282,-370},{-407,-343,-278,-317,-335,-287},{-341,-285,-370,-327,-348,-316},{-296,-278,-359,-291,-367,-322}},{{-312,-302,-273,-334,-256,-253},{-296,-305,-345,-270,-276,-234},{-356,-256,-240,-270,-339,-328},{-261,-320,-261,-258,-328,-267},{-268,-360,-267,-287,-311,-253},{-343,-280,-318,-328,-316,-322},{-375,-339,-357,-311,-325,-222},{-293,-265,-327,-272,-254,-306},{-375,-345,-357,-334,-308,-253},{-306,-296,-264,-267,-333,-231},{-331,-283,-330,-316,-254,-222},{-359,-339,-258,-246,-256,-256},{-299,-274,-357,-331,-271,-272},{-284,-323,-297,-319,-322,-267},{-328,-348,-360,-328,-248,-303},{-365,-308,-348,-246,-328,-231},{-302,-262,-315,-246,-328,-275},{-334,-265,-345,-267,-342,-234},{-353,-302,-345,-243,-322,-250},{-261,-265,-270,-349,-239,-234}},{{-275,-221,-296,-256,-294,-261},{-219,-274,-306,-201,-225,-208},{-254,-266,-211,-299,-287,-196},{-294,-279,-213,-223,-216,-284},{-248,-266,-288,-233,-270,-258},{-256,-210,-285,-228,-252,-237},{-270,-250,-224,-291,-252,-280},{-308,-292,-226,-254,-294,-239},{-281,-234,-278,-226,-198,-268},{-302,-271,-262,-216,-218,-287},{-251,-216,-260,-301,-196,-234},{-275,-289,-301,-301,-277,-251},{-248,-295,-221,-296,-267,-268},{-273,-247,-218,-251,-240,-198},{-270,-255,-308,-301,-211,-275},{-305,-289,-244,-266,-220,-280},{-302,-245,-303,-289,-284,-227},{-235,-302,-308,-256,-225,-217},{-227,-213,-226,-231,-272,-198},{-281,-310,-298,-266,-265,-258}},{{-201,-222,-273,-208,-270,-243},{-220,-236,-229,-215,-270,-256},{-237,-187,-229,-215,-229,-273},{-204,-187,-273,-224,-268,-215},{-251,-192,-266,-215,-270,-252},{-249,-187,-224,-201,-194,-266},{-199,-201,-256,-189,-185,-206},{-197,-249,-254,-213,-201,-215},{-261,-252,-238,-229,-254,-199},{-218,-252,-254,-210,-247,-240},{-261,-243,-222,-240,-210,-226},{-237,-275,-238,-266,-245,-238},{-254,-217,-277,-206,-277,-273},{-192,-236,-210,-192,-203,-215},{-237,-201,-203,-199,-259,-199},{-270,-231,-247,-249,-185,-213},{-237,-249,-268,-263,-226,-243},{-244,-213,-247,-215,-240,-231},{-213,-249,-243,-243,-247,-236},{-268,-215,-247,-245,-215,-203}},{{-224,-199,-242,-255,-223,-219},{-256,-256,-277,-236,-281,-236},{-213,-252,-203,-267,-257,-229},{-238,-268,-207,-228,-194,-248},{-249,-259,-270,-240,-264,-285},{-266,-199,-266,-274,-194,-268},{-270,-266,-200,-248,-232,-221},{-219,-199,-226,-248,-259,-258},{-245,-213,-189,-259,-257,-276},{-199,-254,-254,-267,-269,-244},{-219,-245,-256,-243,-237,-244},{-261,-252,-224,-245,-261,-251},{-270,-226,-193,-209,-198,-199},{-187,-275,-207,-283,-220,-219},{-261,-268,-231,-205,-194,-241},{-247,-224,-270,-226,-232,-199},{-249,-226,-238,-262,-288,-280},{-277,-252,-275,-240,-235,-295},{-217,-187,-273,-198,-194,-295},{-231,-217,-217,-262,-203,-202}}}}; // 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,5,16,8,6,16,8,6,17,9,6,16,8,6,17,8,6,16,8,6,16,8,6,16,9,6,17,9,6,16,9,6,18,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,8,6,17,9,6,17,9,6,16,9,6,16,8,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}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,1,5,9,13,17,21,25,29,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,1,7,13,19,25,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,1,5,9,13,17,21,25,29,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,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,1,5,9,13,17,21,25,29,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,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,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,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,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,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,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,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,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,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,2,8,14,20,26,32,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,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,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,1,7,13,19,25,31,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}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,6,10,14,18,22,26,30,34,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,6,12,18,24,30,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,6,10,14,18,22,26,30,34,5,11,17,23,29,35,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,5,11,17,23,29,35,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,5,11,17,23,29,35,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,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,4,10,16,22,28,34,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,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,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,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,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,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,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,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,4,10,16,22,28,34,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,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,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,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}; // set of end times of each shipment 
