int Dev = 50;// 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 = 747;//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]={{{{12265,0,0,0,0,0},{11089,0,0,0,0,0},{13015,0,0,0,0,0},{12145,0,0,0,0,0},{12065,0,0,0,0,0},{12600,0,0,0,0,0},{12770,0,0,0,0,0},{11277,0,0,0,0,0},{12473,0,0,0,0,0},{12774,0,0,0,0,0},{12159,0,0,0,0,0},{12681,0,0,0,0,0},{13008,0,0,0,0,0},{12993,0,0,0,0,0},{11393,0,0,0,0,0},{12915,0,0,0,0,0},{12007,0,0,0,0,0},{12442,0,0,0,0,0},{12600,0,0,0,0,0},{12475,0,0,0,0,0}},{{12768,0,0,0,0,0},{12319,0,0,0,0,0},{11870,0,0,0,0,0},{12038,0,0,0,0,0},{11538,0,0,0,0,0},{12106,0,0,0,0,0},{12903,0,0,0,0,0},{12217,0,0,0,0,0},{12592,0,0,0,0,0},{11733,0,0,0,0,0},{11912,0,0,0,0,0},{12747,0,0,0,0,0},{12267,0,0,0,0,0},{12191,0,0,0,0,0},{12417,0,0,0,0,0},{11502,0,0,0,0,0},{11981,0,0,0,0,0},{11777,0,0,0,0,0},{12194,0,0,0,0,0},{12052,0,0,0,0,0}},{{11798,0,0,0,0,0},{11815,0,0,0,0,0},{11663,0,0,0,0,0},{11652,0,0,0,0,0},{11827,0,0,0,0,0},{11755,0,0,0,0,0},{11303,0,0,0,0,0},{11303,0,0,0,0,0},{11114,0,0,0,0,0},{11544,0,0,0,0,0},{11739,0,0,0,0,0},{11908,0,0,0,0,0},{11497,0,0,0,0,0},{12065,0,0,0,0,0},{11651,0,0,0,0,0},{11115,0,0,0,0,0},{10717,0,0,0,0,0},{12086,0,0,0,0,0},{11249,0,0,0,0,0},{11175,0,0,0,0,0}},{{10683,0,0,0,0,0},{9899,0,0,0,0,0},{10595,0,0,0,0,0},{10544,0,0,0,0,0},{10757,0,0,0,0,0},{10236,0,0,0,0,0},{10717,0,0,0,0,0},{10259,0,0,0,0,0},{10056,0,0,0,0,0},{10439,0,0,0,0,0},{10517,0,0,0,0,0},{10202,0,0,0,0,0},{10721,0,0,0,0,0},{10446,0,0,0,0,0},{10305,0,0,0,0,0},{10570,0,0,0,0,0},{10389,0,0,0,0,0},{10471,0,0,0,0,0},{10280,0,0,0,0,0},{10476,0,0,0,0,0}},{{8982,0,0,0,0,0},{9058,0,0,0,0,0},{8797,0,0,0,0,0},{9127,0,0,0,0,0},{10161,0,0,0,0,0},{10480,0,0,0,0,0},{9308,0,0,0,0,0},{9315,0,0,0,0,0},{9311,0,0,0,0,0},{9566,0,0,0,0,0},{9214,0,0,0,0,0},{10110,0,0,0,0,0},{10309,0,0,0,0,0},{9312,0,0,0,0,0},{9277,0,0,0,0,0},{9699,0,0,0,0,0},{9122,0,0,0,0,0},{8771,0,0,0,0,0},{9253,0,0,0,0,0},{9632,0,0,0,0,0}},{{9621,0,0,0,0,0},{9291,0,0,0,0,0},{10237,0,0,0,0,0},{9667,0,0,0,0,0},{9110,0,0,0,0,0},{9223,0,0,0,0,0},{8712,0,0,0,0,0},{8752,0,0,0,0,0},{8938,0,0,0,0,0},{9713,0,0,0,0,0},{9239,0,0,0,0,0},{9034,0,0,0,0,0},{8797,0,0,0,0,0},{9137,0,0,0,0,0},{9040,0,0,0,0,0},{9274,0,0,0,0,0},{9458,0,0,0,0,0},{9452,0,0,0,0,0},{8624,0,0,0,0,0},{9133,0,0,0,0,0}}},{{{-247,-185,-268,-256,-218,-406},{-150,-209,-320,-153,-382,-188},{-309,-188,-409,-247,-329,-373},{-294,-200,-282,-150,-382,-353},{-318,-312,-288,-312,-403,-435},{-162,-400,-209,-153,-415,-323},{-309,-365,-303,-365,-191,-412},{-150,-288,-332,-312,-338,-218},{-300,-394,-229,-253,-320,-312},{-220,-403,-403,-347,-238,-365},{-197,-162,-382,-171,-350,-400},{-185,-312,-285,-156,-268,-232},{-403,-312,-332,-338,-379,-206},{-362,-412,-259,-391,-379,-400},{-232,-173,-288,-168,-223,-223},{-247,-338,-259,-376,-429,-426},{-409,-423,-385,-282,-182,-171},{-344,-394,-215,-270,-276,-400},{-209,-262,-306,-385,-400,-285},{-382,-176,-412,-420,-306,-282}},{{-270,-146,-221,-340,-288,-181},{-429,-358,-246,-189,-214,-205},{-206,-409,-384,-304,-235,-220},{-273,-303,-364,-279,-384,-205},{-151,-220,-286,-200,-315,-194},{-270,-252,-395,-340,-288,-370},{-287,-303,-146,-378,-336,-259},{-252,-169,-274,-301,-387,-130},{-406,-226,-221,-312,-224,-352},{-429,-395,-263,-208,-331,-246},{-252,-323,-202,-216,-248,-251},{-435,-186,-412,-337,-222,-259},{-435,-406,-204,-164,-134,-360},{-218,-143,-400,-408,-336,-337},{-296,-260,-162,-411,-136,-280},{-229,-320,-392,-315,-299,-246},{-270,-149,-260,-334,-264,-264},{-319,-192,-322,-159,-147,-357},{-151,-403,-291,-392,-360,-313},{-426,-423,-162,-392,-238,-280}},{{-178,-305,-193,-172,-278,-225},{-138,-290,-184,-271,-220,-249},{-145,-182,-161,-311,-242,-233},{-248,-126,-333,-311,-289,-140},{-172,-235,-270,-172,-253,-235},{-310,-218,-191,-217,-250,-303},{-158,-295,-142,-296,-148,-284},{-188,-307,-224,-184,-278,-282},{-310,-184,-261,-255,-280,-255},{-125,-162,-203,-309,-141,-152},{-220,-319,-137,-161,-304,-288},{-332,-269,-217,-148,-312,-165},{-175,-213,-163,-258,-122,-284},{-140,-254,-301,-264,-317,-111},{-180,-194,-261,-199,-113,-222},{-195,-348,-116,-269,-190,-220},{-218,-341,-133,-150,-139,-253},{-300,-138,-324,-139,-126,-222},{-150,-329,-291,-161,-319,-173},{-295,-186,-273,-116,-272,-177}},{{-175,-107,-190,-193,-170,-189},{-276,-209,-213,-100,-238,-211},{-288,-131,-179,-150,-223,-165},{-292,-223,-118,-98,-226,-235},{-134,-217,-218,-225,-152,-99},{-118,-271,-125,-206,-155,-162},{-191,-230,-256,-160,-188,-118},{-207,-172,-154,-201,-201,-136},{-262,-200,-243,-213,-117,-240},{-294,-138,-184,-89,-87,-139},{-286,-243,-106,-198,-233,-110},{-201,-157,-141,-237,-125,-154},{-282,-180,-174,-218,-186,-126},{-100,-245,-233,-220,-200,-93},{-296,-279,-245,-117,-208,-128},{-290,-146,-91,-136,-206,-96},{-248,-148,-145,-179,-82,-123},{-203,-137,-261,-246,-201,-189},{-108,-133,-174,-112,-142,-158},{-185,-129,-190,-86,-206,-171}},{{-145,-159,-78,-171,-197,-204},{-203,-146,-185,-169,-191,-100},{-139,-142,-104,-179,-213,-134},{-140,-103,-91,-151,-84,-181},{-169,-150,-210,-100,-219,-212},{-206,-122,-166,-206,-171,-159},{-229,-74,-100,-75,-194,-93},{-159,-150,-110,-140,-175,-146},{-162,-115,-94,-184,-126,-210},{-168,-85,-104,-126,-84,-187},{-152,-203,-184,-169,-147,-148},{-151,-101,-97,-187,-74,-200},{-148,-109,-126,-196,-88,-154},{-192,-182,-126,-96,-146,-94},{-120,-145,-78,-213,-173,-146},{-213,-148,-184,-128,-125,-75},{-83,-153,-132,-166,-140,-150},{-188,-197,-200,-156,-101,-131},{-128,-155,-196,-169,-90,-148},{-129,-185,-156,-153,-138,-134}},{{-210,-154,-205,-95,-184,-214},{-203,-91,-168,-188,-93,-104},{-179,-119,-213,-122,-196,-159},{-128,-160,-189,-197,-227,-127},{-76,-171,-118,-157,-225,-112},{-187,-141,-106,-132,-203,-167},{-81,-207,-86,-100,-98,-120},{-176,-150,-133,-79,-89,-220},{-121,-216,-130,-171,-213,-159},{-169,-154,-156,-214,-122,-94},{-198,-106,-119,-172,-217,-134},{-126,-207,-186,-134,-121,-194},{-162,-198,-118,-160,-180,-152},{-219,-181,-119,-162,-92,-99},{-143,-178,-79,-109,-145,-234},{-169,-103,-127,-157,-114,-147},{-203,-123,-174,-126,-242,-122},{-138,-200,-146,-179,-230,-162},{-118,-78,-83,-157,-90,-237},{-112,-146,-85,-197,-188,-90}}},{{{-217,-196,-205,-240,-188,-168},{-207,-117,-170,-140,-162,-256},{-138,-162,-236,-206,-121,-281},{-97,-228,-200,-95,-180,-134},{-193,-220,-187,-150,-177,-101},{-176,-93,-156,-215,-248,-252},{-218,-171,-128,-247,-188,-273},{-205,-201,-156,-118,-188,-202},{-210,-162,-210,-140,-195,-260},{-225,-117,-248,-208,-105,-180},{-250,-88,-121,-220,-147,-191},{-222,-228,-217,-236,-182,-96},{-180,-139,-156,-251,-109,-195},{-250,-132,-150,-181,-206,-197},{-92,-210,-173,-199,-151,-233},{-185,-154,-112,-150,-186,-208},{-220,-113,-98,-265,-131,-241},{-116,-106,-173,-154,-204,-202},{-220,-144,-193,-209,-243,-202},{-181,-247,-182,-109,-180,-264}},{{-174,-182,-266,-332,-213,-129},{-210,-170,-224,-159,-179,-248},{-141,-109,-173,-137,-305,-188},{-168,-303,-262,-135,-188,-309},{-196,-226,-236,-217,-133,-233},{-101,-146,-106,-228,-133,-231},{-283,-203,-283,-115,-156,-181},{-236,-234,-141,-320,-199,-278},{-271,-144,-256,-192,-314,-262},{-230,-215,-126,-157,-183,-264},{-238,-232,-253,-239,-300,-233},{-202,-221,-111,-316,-181,-276},{-277,-279,-317,-287,-165,-133},{-162,-187,-292,-323,-321,-288},{-265,-308,-153,-177,-126,-183},{-113,-285,-302,-267,-119,-226},{-172,-221,-213,-320,-215,-155},{-180,-168,-222,-327,-195,-269},{-279,-215,-219,-290,-126,-262},{-242,-125,-234,-245,-160,-293}},{{-185,-222,-362,-143,-283,-354},{-249,-209,-176,-378,-385,-224},{-242,-337,-314,-267,-274,-368},{-321,-143,-314,-243,-191,-422},{-245,-166,-377,-383,-266,-235},{-267,-263,-369,-394,-247,-201},{-212,-280,-246,-362,-213,-357},{-178,-352,-296,-389,-307,-325},{-272,-145,-141,-367,-213,-393},{-348,-153,-372,-310,-410,-153},{-131,-326,-377,-262,-355,-374},{-294,-370,-283,-138,-202,-184},{-321,-319,-231,-227,-152,-178},{-259,-145,-314,-213,-302,-419},{-333,-380,-233,-148,-313,-368},{-272,-135,-377,-265,-319,-405},{-267,-250,-241,-216,-235,-241},{-296,-326,-267,-319,-194,-308},{-240,-301,-147,-151,-191,-342},{-193,-319,-228,-375,-247,-255}},{{-405,-365,-170,-439,-433,-163},{-199,-279,-343,-154,-220,-187},{-355,-338,-402,-355,-367,-157},{-165,-376,-367,-415,-412,-400},{-318,-241,-152,-172,-406,-157},{-171,-306,-238,-211,-244,-208},{-358,-162,-167,-379,-313,-340},{-381,-182,-191,-256,-421,-277},{-329,-168,-212,-349,-241,-286},{-410,-415,-328,-199,-220,-298},{-194,-191,-289,-169,-295,-307},{-153,-229,-307,-334,-361,-211},{-194,-385,-232,-346,-217,-403},{-373,-285,-349,-376,-343,-193},{-275,-353,-194,-223,-349,-196},{-350,-385,-179,-235,-304,-208},{-188,-400,-426,-169,-268,-367},{-272,-276,-322,-169,-421,-385},{-344,-400,-387,-202,-274,-229},{-298,-171,-256,-337,-418,-452}},{{-250,-163,-160,-276,-253,-145},{-391,-289,-241,-282,-182,-334},{-241,-292,-316,-198,-147,-255},{-445,-391,-286,-222,-256,-168},{-304,-388,-337,-165,-417,-200},{-340,-322,-253,-351,-417,-383},{-445,-274,-244,-255,-332,-293},{-298,-238,-376,-288,-391,-307},{-286,-187,-424,-339,-300,-377},{-415,-277,-253,-420,-235,-357},{-286,-211,-301,-240,-279,-322},{-238,-301,-286,-351,-318,-322},{-214,-388,-286,-432,-320,-226},{-277,-352,-244,-159,-253,-331},{-286,-412,-244,-288,-273,-394},{-265,-181,-172,-438,-223,-409},{-430,-253,-343,-201,-150,-264},{-229,-265,-256,-360,-400,-218},{-172,-364,-376,-195,-250,-177},{-199,-424,-229,-183,-176,-276}},{{-399,-282,-171,-325,-330,-317},{-148,-318,-182,-378,-353,-270},{-279,-405,-263,-388,-333,-365},{-339,-287,-322,-272,-269,-221},{-194,-405,-271,-385,-148,-151},{-328,-268,-352,-180,-358,-283},{-237,-148,-369,-235,-169,-161},{-151,-282,-257,-164,-131,-201},{-242,-176,-136,-370,-243,-129},{-422,-279,-320,-269,-300,-198},{-239,-321,-236,-378,-310,-213},{-425,-246,-184,-206,-381,-275},{-162,-310,-173,-209,-238,-352},{-382,-416,-257,-209,-172,-320},{-160,-379,-282,-351,-315,-352},{-145,-151,-331,-261,-351,-243},{-182,-363,-398,-304,-154,-223},{-339,-243,-217,-169,-320,-255},{-353,-184,-263,-269,-246,-320},{-188,-276,-282,-259,-200,-243}}},{{{-296,-174,-299,-359,-194,-313},{-227,-421,-467,-184,-207,-316},{-418,-220,-398,-385,-444,-431},{-322,-273,-444,-382,-178,-276},{-204,-263,-240,-293,-276,-342},{-434,-299,-388,-454,-339,-470},{-276,-345,-415,-454,-359,-454},{-227,-329,-270,-224,-431,-424},{-234,-345,-444,-164,-280,-211},{-299,-378,-431,-181,-375,-477},{-293,-306,-283,-454,-408,-457},{-395,-329,-316,-303,-415,-411},{-405,-290,-270,-164,-355,-405},{-487,-290,-326,-224,-480,-392},{-181,-398,-398,-290,-385,-194},{-171,-431,-477,-237,-362,-280},{-188,-382,-171,-257,-444,-467},{-329,-405,-444,-349,-474,-365},{-438,-326,-296,-372,-470,-214},{-359,-428,-257,-355,-250,-184}},{{-400,-238,-287,-414,-410,-424},{-328,-261,-338,-374,-437,-190},{-318,-409,-386,-283,-351,-172},{-420,-448,-207,-371,-197,-247},{-410,-435,-329,-192,-357,-235},{-197,-167,-278,-361,-246,-280},{-476,-325,-195,-349,-431,-319},{-459,-322,-437,-377,-157,-379},{-171,-322,-412,-185,-388,-262},{-371,-477,-188,-188,-305,-244},{-253,-335,-440,-273,-308,-277},{-190,-254,-258,-455,-373,-322},{-466,-316,-182,-380,-206,-352},{-210,-435,-182,-273,-213,-268},{-479,-428,-434,-292,-367,-373},{-407,-267,-169,-232,-323,-277},{-282,-377,-249,-436,-237,-184},{-361,-312,-386,-217,-373,-217},{-243,-164,-376,-399,-166,-442},{-253,-293,-329,-201,-462,-271}},{{-407,-372,-277,-305,-278,-296},{-165,-389,-204,-160,-358,-352},{-322,-383,-232,-302,-159,-249},{-204,-308,-148,-326,-178,-203},{-327,-153,-168,-307,-254,-213},{-413,-190,-244,-283,-183,-249},{-357,-167,-244,-141,-183,-180},{-322,-225,-342,-272,-196,-339},{-442,-196,-182,-223,-318,-288},{-150,-202,-314,-321,-252,-224},{-268,-219,-392,-288,-382,-159},{-283,-314,-308,-392,-318,-154},{-404,-386,-283,-158,-172,-164},{-245,-173,-258,-299,-284,-149},{-198,-346,-372,-321,-193,-257},{-192,-288,-185,-158,-294,-339},{-351,-219,-160,-307,-146,-270},{-180,-164,-291,-340,-392,-342},{-363,-377,-386,-286,-273,-296},{-236,-156,-378,-139,-307,-221}},{{-298,-260,-218,-146,-134,-300},{-228,-340,-145,-219,-217,-256},{-268,-124,-154,-286,-316,-307},{-218,-253,-126,-316,-309,-296},{-328,-362,-237,-300,-258,-195},{-350,-185,-254,-263,-161,-278},{-167,-187,-263,-208,-307,-147},{-245,-301,-166,-129,-242,-241},{-143,-357,-197,-199,-260,-155},{-372,-340,-168,-169,-325,-195},{-322,-287,-289,-335,-293,-315},{-158,-338,-356,-146,-309,-304},{-220,-148,-209,-146,-311,-226},{-255,-182,-209,-284,-197,-267},{-175,-226,-121,-233,-206,-280},{-300,-141,-287,-321,-231,-129},{-148,-301,-315,-229,-222,-151},{-275,-177,-192,-275,-211,-138},{-328,-311,-337,-256,-188,-147},{-342,-226,-235,-284,-224,-276}},{{-113,-168,-281,-200,-139,-286},{-202,-151,-191,-143,-191,-214},{-206,-195,-193,-193,-149,-256},{-228,-120,-162,-231,-244,-225},{-137,-298,-292,-302,-107,-155},{-273,-241,-254,-248,-139,-218},{-124,-286,-216,-212,-300,-193},{-269,-315,-254,-141,-237,-286},{-250,-227,-216,-284,-139,-136},{-200,-155,-206,-172,-262,-288},{-280,-290,-277,-116,-210,-202},{-263,-275,-311,-168,-162,-302},{-180,-239,-265,-233,-118,-235},{-273,-189,-214,-296,-134,-279},{-221,-168,-302,-197,-111,-311},{-289,-147,-260,-210,-128,-248},{-169,-170,-302,-149,-275,-107},{-224,-113,-244,-111,-206,-202},{-234,-220,-235,-294,-111,-256},{-269,-181,-265,-254,-288,-302}},{{-136,-311,-190,-254,-114,-268},{-254,-166,-167,-250,-242,-284},{-260,-178,-177,-234,-235,-216},{-304,-223,-310,-200,-110,-160},{-300,-176,-196,-323,-271,-259},{-281,-109,-262,-165,-293,-196},{-300,-162,-270,-184,-189,-169},{-265,-223,-316,-143,-277,-178},{-141,-162,-152,-278,-218,-290},{-254,-155,-112,-187,-198,-306},{-118,-309,-162,-217,-154,-214},{-134,-151,-207,-267,-264,-304},{-269,-109,-146,-315,-251,-169},{-134,-170,-228,-193,-178,-338},{-284,-181,-160,-132,-306,-317},{-246,-210,-184,-273,-266,-176},{-166,-277,-152,-169,-176,-306},{-212,-111,-260,-232,-227,-212},{-262,-191,-251,-230,-202,-142},{-248,-160,-158,-182,-266,-166}}},{{{-54,-106,-68,-126,-167,-123},{-123,-106,-72,-131,-82,-78},{-134,-134,-137,-167,-149,-186},{-112,-124,-155,-115,-182,-88},{-56,-66,-123,-124,-149,-120},{-122,-129,-84,-87,-137,-106},{-75,-116,-100,-137,-84,-150},{-89,-143,-147,-143,-83,-109},{-152,-100,-91,-109,-74,-146},{-70,-141,-81,-101,-98,-175},{-52,-94,-86,-110,-67,-140},{-146,-85,-122,-167,-177,-79},{-113,-141,-56,-89,-134,-138},{-103,-116,-78,-172,-90,-152},{-84,-146,-57,-132,-143,-100},{-76,-159,-132,-136,-174,-155},{-121,-148,-101,-80,-126,-99},{-132,-95,-122,-73,-121,-189},{-98,-142,-158,-118,-143,-111},{-104,-66,-84,-88,-90,-184}},{{-124,-142,-207,-101,-124,-113},{-163,-79,-158,-112,-193,-161},{-178,-173,-197,-228,-155,-252},{-174,-109,-178,-84,-185,-250},{-77,-144,-148,-90,-143,-108},{-86,-89,-95,-121,-143,-212},{-82,-186,-189,-206,-203,-138},{-89,-209,-206,-177,-111,-215},{-189,-190,-114,-146,-98,-101},{-136,-142,-209,-129,-195,-150},{-139,-147,-148,-112,-145,-91},{-167,-202,-111,-153,-150,-161},{-76,-154,-130,-110,-100,-192},{-89,-144,-191,-206,-93,-84},{-148,-134,-154,-116,-158,-156},{-97,-134,-219,-81,-175,-141},{-200,-94,-99,-232,-172,-139},{-107,-90,-145,-152,-80,-192},{-85,-148,-90,-91,-225,-126},{-148,-173,-98,-183,-145,-119}},{{-154,-259,-115,-144,-269,-200},{-194,-248,-238,-207,-184,-129},{-126,-151,-212,-99,-192,-204},{-254,-162,-95,-238,-274,-263},{-100,-103,-192,-258,-176,-255},{-248,-205,-218,-152,-106,-265},{-119,-194,-162,-105,-133,-222},{-168,-218,-149,-203,-145,-196},{-105,-148,-140,-196,-212,-291},{-119,-108,-102,-264,-237,-176},{-186,-146,-227,-97,-147,-111},{-98,-225,-206,-245,-216,-139},{-257,-236,-212,-99,-200,-145},{-191,-220,-227,-150,-265,-236},{-172,-148,-99,-238,-204,-194},{-261,-162,-192,-118,-188,-253},{-214,-128,-140,-103,-208,-251},{-226,-130,-218,-239,-172,-269},{-100,-104,-270,-95,-98,-113},{-161,-122,-143,-179,-155,-196}},{{-268,-132,-164,-219,-300,-144},{-130,-148,-221,-158,-146,-252},{-260,-300,-264,-179,-126,-168},{-189,-264,-102,-213,-201,-185},{-266,-231,-268,-288,-221,-166},{-262,-264,-254,-201,-294,-146},{-207,-187,-231,-260,-302,-274},{-152,-185,-124,-187,-201,-106},{-136,-150,-171,-128,-195,-233},{-114,-272,-274,-104,-278,-231},{-227,-110,-290,-272,-294,-138},{-235,-114,-250,-274,-290,-242},{-266,-205,-164,-223,-240,-193},{-221,-227,-195,-294,-240,-108},{-104,-270,-197,-140,-217,-276},{-238,-292,-173,-276,-219,-288},{-203,-144,-282,-286,-298,-175},{-189,-219,-246,-177,-302,-168},{-102,-254,-104,-252,-209,-134},{-201,-187,-150,-229,-256,-272}},{{-284,-278,-294,-98,-225,-164},{-183,-221,-124,-191,-191,-118},{-207,-118,-203,-111,-106,-241},{-244,-292,-185,-261,-168,-92},{-116,-286,-286,-285,-244,-272},{-217,-166,-136,-189,-193,-153},{-264,-197,-264,-224,-227,-101},{-126,-173,-187,-234,-112,-197},{-114,-175,-296,-232,-174,-224},{-227,-258,-128,-269,-98,-245},{-250,-272,-187,-107,-191,-213},{-302,-124,-232,-230,-265,-219},{-262,-229,-160,-203,-268,-263},{-171,-268,-211,-191,-198,-215},{-262,-201,-152,-131,-183,-131},{-146,-258,-156,-232,-183,-134},{-213,-227,-110,-234,-106,-105},{-118,-205,-100,-203,-195,-92},{-199,-114,-256,-179,-191,-208},{-148,-304,-162,-277,-248,-217}},{{-265,-133,-145,-198,-155,-134},{-193,-201,-247,-163,-168,-178},{-226,-247,-114,-138,-207,-201},{-243,-93,-119,-230,-148,-210},{-220,-208,-89,-234,-90,-198},{-252,-192,-215,-122,-230,-76},{-208,-202,-89,-149,-147,-200},{-159,-221,-250,-155,-101,-107},{-234,-111,-139,-224,-96,-187},{-106,-189,-244,-213,-230,-165},{-190,-234,-195,-107,-165,-135},{-170,-109,-239,-219,-220,-191},{-143,-194,-127,-80,-208,-201},{-118,-137,-162,-125,-191,-193},{-100,-171,-212,-176,-184,-143},{-252,-209,-155,-99,-98,-182},{-166,-213,-94,-218,-202,-122},{-125,-171,-204,-106,-176,-104},{-226,-138,-227,-168,-104,-119},{-106,-251,-177,-176,-217,-113}}},{{{-198,-309,-233,-214,-233,-340},{-193,-212,-219,-193,-219,-133},{-277,-350,-319,-131,-143,-288},{-261,-250,-340,-236,-226,-224},{-156,-126,-155,-290,-133,-324},{-284,-228,-250,-259,-236,-207},{-182,-178,-167,-148,-257,-245},{-210,-309,-214,-188,-136,-281},{-254,-331,-126,-307,-271,-193},{-298,-269,-347,-152,-264,-338},{-126,-307,-338,-274,-219,-143},{-252,-148,-152,-259,-328,-307},{-179,-357,-228,-183,-328,-293},{-116,-124,-226,-300,-278,-326},{-317,-138,-305,-198,-207,-171},{-165,-336,-345,-274,-133,-233},{-175,-207,-245,-343,-145,-224},{-340,-181,-257,-217,-190,-169},{-116,-290,-245,-171,-121,-164},{-224,-245,-248,-338,-226,-293}},{{-164,-264,-308,-263,-147,-245},{-236,-145,-306,-261,-287,-320},{-278,-155,-139,-333,-264,-126},{-183,-314,-169,-342,-246,-135},{-302,-357,-204,-310,-332,-148},{-324,-269,-336,-289,-264,-186},{-145,-217,-273,-296,-292,-122},{-143,-255,-125,-303,-231,-234},{-178,-274,-301,-136,-192,-225},{-155,-248,-200,-118,-228,-150},{-143,-333,-183,-238,-231,-314},{-190,-326,-334,-139,-142,-287},{-255,-236,-258,-180,-298,-281},{-193,-183,-345,-127,-203,-201},{-333,-269,-122,-159,-197,-110},{-200,-150,-350,-139,-212,-252},{-155,-245,-308,-249,-264,-241},{-281,-231,-120,-307,-280,-157},{-336,-171,-310,-314,-210,-243},{-340,-257,-150,-270,-226,-210}},{{-277,-232,-117,-246,-99,-218},{-138,-280,-200,-191,-112,-259},{-269,-226,-285,-271,-185,-101},{-206,-155,-220,-269,-200,-200},{-187,-291,-287,-193,-120,-187},{-125,-251,-220,-269,-249,-187},{-277,-251,-303,-259,-120,-124},{-123,-230,-156,-205,-237,-214},{-127,-291,-234,-138,-219,-223},{-258,-253,-196,-150,-196,-211},{-153,-305,-168,-181,-183,-153},{-322,-150,-178,-150,-239,-115},{-307,-230,-135,-181,-230,-124},{-307,-136,-248,-275,-129,-212},{-228,-104,-283,-211,-112,-149},{-150,-171,-196,-154,-277,-178},{-262,-107,-117,-215,-228,-137},{-176,-299,-267,-99,-277,-202},{-127,-222,-135,-257,-176,-198},{-282,-249,-265,-244,-269,-169}},{{-191,-193,-111,-142,-115,-102},{-120,-96,-187,-183,-91,-116},{-101,-198,-140,-207,-121,-73},{-230,-206,-218,-183,-81,-170},{-210,-172,-195,-152,-210,-182},{-132,-132,-100,-204,-147,-102},{-88,-135,-91,-213,-215,-126},{-243,-198,-196,-209,-207,-196},{-201,-173,-192,-128,-94,-193},{-101,-201,-196,-212,-105,-84},{-206,-137,-223,-112,-180,-149},{-96,-190,-126,-164,-109,-132},{-213,-243,-119,-194,-157,-81},{-129,-195,-231,-167,-193,-188},{-241,-86,-124,-213,-215,-98},{-175,-216,-141,-222,-102,-83},{-131,-87,-168,-183,-86,-189},{-198,-160,-89,-126,-75,-199},{-144,-150,-209,-86,-173,-185},{-232,-195,-91,-75,-81,-102}},{{-168,-173,-117,-99,-86,-80},{-141,-179,-115,-71,-100,-126},{-146,-154,-144,-120,-109,-134},{-173,-83,-133,-100,-155,-150},{-184,-120,-160,-95,-124,-96},{-66,-105,-159,-151,-121,-60},{-150,-74,-68,-164,-71,-134},{-185,-66,-89,-88,-69,-134},{-90,-164,-123,-138,-68,-95},{-121,-135,-125,-157,-154,-62},{-110,-72,-144,-158,-65,-98},{-82,-100,-124,-84,-175,-155},{-157,-97,-182,-174,-119,-168},{-162,-164,-73,-162,-159,-74},{-130,-110,-134,-84,-79,-146},{-84,-66,-120,-174,-111,-62},{-134,-64,-141,-120,-77,-177},{-114,-71,-97,-139,-104,-148},{-66,-160,-165,-131,-100,-108},{-176,-82,-84,-177,-158,-129}},{{-107,-156,-92,-177,-117,-112},{-173,-150,-88,-121,-92,-64},{-170,-61,-87,-86,-148,-71},{-151,-126,-101,-106,-116,-118},{-121,-178,-62,-151,-118,-64},{-107,-146,-64,-159,-110,-147},{-140,-129,-80,-73,-110,-103},{-114,-168,-106,-64,-150,-178},{-143,-162,-133,-68,-151,-78},{-124,-168,-171,-146,-129,-77},{-142,-101,-75,-163,-101,-87},{-115,-106,-105,-129,-96,-137},{-102,-174,-158,-127,-154,-184},{-142,-88,-150,-129,-88,-160},{-101,-143,-71,-133,-124,-120},{-139,-96,-133,-126,-150,-83},{-109,-161,-111,-173,-79,-155},{-84,-69,-161,-114,-74,-174},{-159,-101,-86,-61,-90,-189},{-113,-169,-162,-127,-138,-142}}},{{{-359,-359,-202,-295,-215,-263},{-146,-207,-200,-263,-165,-239},{-229,-162,-152,-303,-298,-221},{-194,-162,-210,-239,-192,-311},{-287,-176,-253,-210,-287,-165},{-146,-364,-231,-255,-356,-154},{-210,-388,-343,-295,-367,-298},{-136,-394,-295,-210,-266,-181},{-325,-332,-367,-391,-266,-311},{-303,-261,-282,-141,-141,-319},{-207,-165,-210,-261,-186,-383},{-332,-380,-359,-170,-258,-184},{-176,-266,-388,-202,-184,-383},{-266,-295,-200,-223,-168,-223},{-181,-239,-351,-221,-226,-170},{-226,-184,-154,-396,-165,-338},{-136,-391,-170,-319,-351,-322},{-202,-136,-279,-215,-253,-194},{-356,-237,-359,-202,-154,-386},{-226,-293,-149,-218,-338,-285}},{{-319,-186,-271,-327,-225,-352},{-309,-207,-245,-192,-341,-313},{-181,-322,-176,-136,-375,-137},{-247,-362,-290,-157,-244,-189},{-375,-181,-319,-317,-238,-158},{-253,-184,-388,-213,-228,-243},{-327,-367,-335,-215,-328,-142},{-378,-362,-319,-340,-157,-163},{-170,-274,-335,-348,-194,-150},{-354,-154,-186,-255,-301,-238},{-388,-160,-298,-149,-225,-163},{-274,-364,-388,-340,-152,-189},{-189,-303,-178,-170,-299,-137},{-327,-226,-380,-364,-155,-215},{-386,-293,-354,-298,-254,-135},{-293,-213,-192,-287,-162,-256},{-245,-192,-245,-250,-241,-220},{-192,-261,-136,-301,-210,-383},{-245,-157,-255,-303,-299,-290},{-152,-271,-226,-319,-191,-256}},{{-150,-187,-209,-340,-127,-135},{-308,-218,-199,-260,-277,-193},{-199,-170,-360,-360,-127,-202},{-376,-248,-355,-144,-152,-154},{-220,-369,-360,-238,-122,-157},{-249,-149,-232,-238,-350,-333},{-381,-268,-242,-144,-220,-159},{-181,-281,-214,-159,-140,-253},{-132,-187,-285,-332,-137,-130},{-256,-324,-237,-352,-179,-243},{-267,-253,-134,-315,-336,-181},{-233,-354,-174,-151,-296,-342},{-378,-339,-375,-255,-142,-164},{-272,-220,-285,-298,-235,-224},{-262,-144,-297,-317,-250,-359},{-194,-157,-204,-250,-328,-164},{-269,-301,-179,-186,-167,-272},{-370,-248,-207,-154,-274,-342},{-210,-187,-154,-233,-326,-308},{-303,-180,-204,-144,-157,-359}},{{-326,-219,-300,-246,-249,-309},{-205,-320,-233,-154,-287,-134},{-326,-179,-319,-299,-139,-184},{-174,-230,-226,-138,-280,-130},{-336,-301,-118,-209,-284,-249},{-345,-118,-330,-237,-128,-159},{-269,-329,-236,-145,-157,-208},{-281,-256,-316,-179,-311,-267},{-221,-331,-335,-214,-302,-211},{-178,-343,-222,-294,-188,-114},{-133,-157,-210,-122,-166,-237},{-183,-336,-120,-223,-224,-222},{-283,-230,-284,-237,-228,-246},{-243,-240,-215,-340,-150,-175},{-264,-164,-178,-334,-233,-197},{-224,-306,-185,-327,-267,-168},{-255,-237,-159,-336,-202,-282},{-221,-183,-155,-172,-159,-276},{-259,-244,-303,-324,-269,-157},{-159,-273,-305,-262,-114,-197}},{{-165,-171,-141,-273,-167,-167},{-255,-128,-315,-265,-239,-193},{-150,-152,-213,-204,-289,-184},{-128,-108,-302,-217,-132,-158},{-308,-215,-171,-193,-247,-208},{-301,-150,-167,-260,-265,-265},{-130,-145,-284,-158,-239,-126},{-158,-150,-306,-228,-135,-152},{-257,-217,-130,-237,-206,-230},{-191,-178,-128,-230,-108,-260},{-141,-289,-191,-241,-215,-171},{-183,-299,-122,-254,-271,-315},{-310,-171,-232,-152,-276,-291},{-301,-256,-228,-150,-308,-213},{-238,-250,-152,-161,-158,-217},{-251,-128,-232,-323,-280,-302},{-134,-230,-295,-250,-245,-254},{-268,-191,-206,-237,-113,-189},{-319,-111,-132,-111,-195,-195},{-130,-241,-167,-263,-289,-252}},{{-315,-213,-217,-161,-321,-132},{-128,-108,-150,-193,-132,-315},{-213,-295,-182,-176,-273,-165},{-197,-184,-182,-284,-247,-306},{-137,-226,-141,-317,-139,-169},{-241,-215,-178,-171,-228,-187},{-141,-191,-286,-221,-304,-263},{-178,-169,-165,-269,-260,-217},{-150,-215,-286,-295,-195,-245},{-171,-286,-245,-237,-263,-263},{-124,-108,-152,-323,-126,-306},{-113,-122,-204,-254,-271,-278},{-132,-210,-308,-319,-119,-139},{-269,-184,-163,-141,-130,-154},{-187,-174,-237,-132,-200,-176},{-165,-232,-145,-178,-263,-250},{-206,-291,-165,-323,-263,-271},{-204,-156,-310,-239,-312,-319},{-171,-228,-148,-117,-250,-202},{-150,-256,-148,-178,-317,-291}}},{{{-247,-313,-367,-382,-271,-213},{-442,-211,-166,-415,-277,-166},{-370,-157,-337,-178,-247,-329},{-439,-427,-388,-373,-226,-189},{-301,-157,-256,-331,-427,-441},{-190,-289,-340,-379,-445,-281},{-223,-289,-184,-397,-379,-323},{-238,-247,-223,-319,-184,-210},{-313,-349,-382,-150,-313,-299},{-316,-334,-259,-226,-418,-151},{-400,-412,-370,-256,-433,-234},{-289,-445,-205,-157,-331,-308},{-421,-415,-190,-400,-244,-403},{-346,-247,-196,-367,-310,-166},{-382,-379,-295,-424,-160,-420},{-445,-292,-343,-397,-150,-166},{-349,-241,-229,-280,-229,-408},{-352,-301,-193,-238,-160,-163},{-307,-247,-226,-277,-184,-278},{-436,-394,-361,-223,-289,-154}},{{-419,-385,-367,-167,-355,-339},{-431,-184,-146,-246,-384,-149},{-284,-379,-185,-273,-217,-380},{-422,-270,-157,-205,-305,-139},{-199,-399,-319,-205,-162,-344},{-349,-169,-395,-401,-236,-278},{-182,-290,-361,-207,-344,-213},{-275,-189,-218,-194,-339,-170},{-220,-379,-316,-180,-180,-365},{-185,-330,-232,-194,-270,-152},{-287,-212,-188,-292,-358,-162},{-190,-425,-146,-311,-305,-370},{-188,-336,-381,-314,-384,-249},{-202,-296,-319,-404,-140,-236},{-202,-413,-174,-314,-175,-296},{-258,-184,-162,-314,-262,-231},{-237,-393,-213,-366,-254,-347},{-396,-379,-204,-147,-162,-298},{-352,-195,-274,-314,-350,-167},{-182,-244,-378,-339,-212,-352}},{{-310,-326,-224,-234,-314,-166},{-320,-358,-316,-256,-282,-192},{-191,-218,-289,-283,-220,-137},{-146,-302,-284,-236,-123,-293},{-345,-293,-236,-172,-284,-238},{-310,-355,-126,-119,-257,-172},{-362,-336,-256,-170,-231,-119},{-305,-180,-252,-281,-178,-162},{-176,-142,-243,-139,-284,-133},{-188,-274,-256,-146,-131,-236},{-159,-144,-332,-124,-161,-240},{-362,-314,-250,-130,-182,-139},{-365,-163,-311,-141,-123,-220},{-216,-170,-295,-281,-223,-259},{-134,-206,-339,-175,-218,-198},{-330,-204,-282,-188,-178,-135},{-305,-281,-307,-248,-174,-240},{-278,-178,-334,-164,-242,-129},{-303,-142,-220,-250,-293,-244},{-283,-173,-252,-186,-193,-139}},{{-233,-229,-123,-232,-188,-221},{-241,-186,-219,-136,-129,-182},{-155,-236,-210,-239,-128,-132},{-157,-173,-107,-101,-186,-119},{-147,-117,-119,-208,-110,-118},{-229,-218,-222,-186,-164,-108},{-204,-234,-233,-143,-108,-190},{-97,-167,-247,-120,-214,-97},{-190,-177,-192,-141,-153,-172},{-217,-255,-155,-234,-120,-145},{-281,-264,-192,-249,-131,-126},{-177,-123,-208,-170,-121,-167},{-277,-195,-187,-212,-242,-240},{-196,-232,-98,-136,-113,-221},{-159,-115,-194,-160,-244,-93},{-165,-270,-214,-132,-234,-192},{-256,-151,-151,-172,-105,-166},{-134,-251,-174,-212,-151,-198},{-124,-234,-109,-205,-239,-118},{-215,-151,-173,-119,-184,-130}},{{-98,-157,-166,-223,-163,-209},{-186,-92,-156,-226,-91,-214},{-81,-228,-109,-197,-154,-168},{-197,-119,-88,-172,-203,-189},{-122,-105,-120,-213,-103,-172},{-159,-151,-217,-177,-203,-206},{-114,-163,-152,-222,-182,-197},{-114,-79,-86,-177,-134,-152},{-164,-131,-160,-151,-112,-199},{-226,-229,-163,-196,-111,-194},{-168,-119,-94,-205,-132,-126},{-86,-228,-117,-222,-117,-180},{-111,-209,-216,-186,-189,-151},{-94,-180,-225,-99,-172,-89},{-108,-79,-176,-92,-223,-205},{-212,-213,-180,-159,-163,-179},{-151,-109,-117,-191,-205,-194},{-201,-92,-80,-199,-92,-192},{-103,-174,-202,-169,-140,-192},{-214,-132,-166,-99,-116,-92}},{{-85,-181,-126,-161,-103,-179},{-97,-184,-167,-249,-248,-219},{-197,-224,-186,-212,-156,-208},{-157,-224,-149,-168,-121,-219},{-123,-229,-194,-178,-117,-136},{-88,-81,-241,-87,-135,-109},{-199,-224,-84,-94,-175,-161},{-91,-122,-235,-237,-98,-226},{-205,-219,-138,-144,-256,-206},{-189,-167,-151,-163,-168,-100},{-166,-134,-94,-131,-119,-177},{-196,-134,-225,-86,-201,-114},{-88,-119,-96,-210,-135,-96},{-134,-189,-219,-225,-205,-150},{-108,-175,-112,-200,-91,-100},{-91,-149,-199,-212,-238,-134},{-222,-148,-138,-153,-115,-206},{-100,-137,-191,-218,-193,-121},{-162,-95,-185,-124,-140,-188},{-80,-99,-215,-234,-145,-203}}},{{{-452,-522,-329,-368,-280,-228},{-430,-332,-336,-413,-220,-424},{-434,-508,-389,-193,-483,-315},{-217,-350,-399,-416,-448,-182},{-280,-318,-444,-458,-392,-346},{-252,-220,-284,-189,-410,-500},{-259,-382,-452,-301,-186,-182},{-193,-382,-374,-193,-178,-389},{-368,-336,-214,-458,-220,-262},{-462,-193,-189,-346,-430,-469},{-287,-458,-245,-273,-312,-231},{-360,-525,-220,-490,-346,-312},{-298,-343,-290,-395,-455,-427},{-522,-374,-466,-395,-245,-385},{-231,-441,-193,-193,-430,-248},{-196,-514,-368,-511,-500,-224},{-357,-287,-196,-248,-357,-294},{-452,-241,-494,-500,-525,-238},{-256,-455,-487,-494,-466,-178},{-294,-346,-360,-248,-308,-389}},{{-202,-405,-241,-321,-371,-399},{-445,-388,-180,-234,-262,-483},{-223,-196,-281,-230,-420,-267},{-198,-442,-247,-237,-305,-190},{-230,-206,-241,-301,-213,-203},{-512,-309,-325,-351,-266,-203},{-407,-388,-275,-287,-449,-412},{-407,-480,-346,-167,-167,-196},{-418,-466,-346,-287,-459,-441},{-216,-418,-495,-444,-210,-219},{-258,-257,-414,-488,-200,-316},{-494,-206,-220,-271,-472,-258},{-226,-364,-410,-317,-289,-200},{-411,-336,-268,-177,-220,-460},{-184,-295,-400,-294,-400,-364},{-233,-278,-447,-347,-226,-219},{-202,-401,-210,-431,-367,-167},{-258,-292,-376,-494,-220,-203},{-177,-484,-190,-234,-262,-206},{-230,-268,-278,-307,-174,-325}},{{-375,-339,-351,-287,-359,-200},{-284,-326,-300,-278,-228,-239},{-381,-447,-357,-173,-208,-297},{-372,-246,-207,-357,-342,-331},{-378,-394,-432,-308,-145,-356},{-224,-444,-237,-369,-162,-142},{-356,-388,-339,-234,-328,-236},{-422,-200,-189,-366,-145,-145},{-202,-447,-231,-355,-160,-350},{-391,-354,-396,-179,-422,-409},{-246,-419,-324,-352,-422,-311},{-246,-419,-420,-428,-268,-234},{-469,-265,-387,-205,-393,-236},{-400,-391,-228,-416,-370,-239},{-469,-259,-345,-196,-362,-348},{-217,-277,-192,-325,-339,-284},{-353,-262,-150,-340,-239,-197},{-173,-413,-234,-357,-336,-411},{-381,-311,-279,-243,-336,-158},{-224,-425,-363,-272,-205,-306}},{{-302,-229,-216,-196,-274,-155},{-259,-231,-159,-279,-348,-315},{-178,-168,-185,-356,-247,-213},{-216,-268,-193,-183,-318,-258},{-324,-352,-368,-351,-132,-182},{-286,-268,-303,-271,-162,-358},{-248,-295,-321,-311,-267,-349},{-273,-179,-203,-158,-257,-330},{-270,-231,-280,-151,-174,-146},{-170,-318,-244,-218,-164,-318},{-232,-187,-365,-251,-247,-167},{-321,-153,-172,-186,-328,-325},{-162,-163,-380,-156,-304,-194},{-327,-218,-152,-146,-323,-129},{-138,-387,-267,-248,-353,-292},{-289,-147,-321,-171,-228,-270},{-251,-276,-265,-331,-159,-294},{-332,-279,-211,-279,-311,-275},{-248,-295,-170,-256,-277,-217},{-167,-287,-342,-183,-350,-308}},{{-230,-305,-293,-286,-159,-155},{-149,-139,-342,-152,-150,-201},{-126,-185,-252,-203,-312,-245},{-270,-226,-249,-159,-173,-273},{-239,-319,-222,-261,-303,-210},{-356,-291,-337,-333,-203,-254},{-346,-310,-203,-164,-134,-162},{-301,-159,-303,-330,-254,-157},{-235,-173,-176,-176,-182,-226},{-284,-192,-217,-337,-148,-201},{-320,-125,-189,-116,-326,-162},{-315,-194,-116,-333,-263,-296},{-261,-240,-333,-252,-231,-259},{-154,-254,-185,-270,-127,-122},{-197,-275,-215,-254,-152,-300},{-318,-176,-282,-143,-314,-275},{-223,-164,-125,-314,-273,-303},{-140,-236,-344,-219,-152,-233},{-273,-166,-210,-247,-344,-323},{-337,-176,-118,-263,-178,-296}},{{-127,-330,-247,-183,-302,-288},{-261,-171,-168,-338,-252,-214},{-215,-319,-219,-271,-322,-327},{-303,-275,-217,-281,-140,-207},{-254,-337,-177,-226,-169,-170},{-166,-342,-172,-200,-194,-357},{-141,-187,-259,-309,-223,-335},{-176,-337,-252,-124,-213,-175},{-162,-129,-177,-198,-283,-162},{-330,-219,-168,-205,-148,-369},{-342,-152,-322,-345,-358,-248},{-146,-141,-207,-231,-138,-125},{-270,-213,-249,-264,-160,-145},{-164,-164,-254,-345,-165,-330},{-180,-173,-340,-333,-148,-189},{-298,-314,-280,-333,-169,-248},{-346,-249,-147,-157,-225,-170},{-312,-136,-338,-250,-165,-337},{-162,-120,-336,-217,-174,-261},{-328,-300,-294,-143,-167,-248}}}}; // 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]={16,8,6,16,8,5,15,8,5,16,8,6,16,9,6,16,8,6,17,8,6,17,8,6,17,9,6,16,9,6,17,9,6,17,8,6,18,9,6,17,9,6,18,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,16,8,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,743,744,745,746}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,0,4,8,12,16,20,24,28,0,6,12,18,24,30,0,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,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,31,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,0,4,8,12,16,20,24,28,32,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,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,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,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,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,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,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,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,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,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,2,8,14,20,26,32,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,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,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,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,31,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,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]={5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,5,11,17,23,29,35,5,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,7,11,15,19,23,27,31,35,6,12,18,24,30,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,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,4,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,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,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,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,4,10,16,22,28,34,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,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,1,7,13,19,25,31,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,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,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,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,3,9,15,21,27,33,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,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,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,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,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,5,9,13,17,21,25,29,33,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,5,11,17,23,29,35}; // set of end times of each shipment 
