int Dev = 40;// 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]={{{{11821,0,0,0,0,0},{13030,0,0,0,0,0},{12621,0,0,0,0,0},{11715,0,0,0,0,0},{11987,0,0,0,0,0},{13193,0,0,0,0,0},{12157,0,0,0,0,0},{12614,0,0,0,0,0},{12145,0,0,0,0,0},{11345,0,0,0,0,0},{11500,0,0,0,0,0},{12095,0,0,0,0,0},{12079,0,0,0,0,0},{12024,0,0,0,0,0},{13170,0,0,0,0,0},{12800,0,0,0,0,0},{12370,0,0,0,0,0},{13300,0,0,0,0,0},{11978,0,0,0,0,0},{12661,0,0,0,0,0}},{{12115,0,0,0,0,0},{12311,0,0,0,0,0},{12529,0,0,0,0,0},{12247,0,0,0,0,0},{12757,0,0,0,0,0},{12317,0,0,0,0,0},{11459,0,0,0,0,0},{12090,0,0,0,0,0},{12935,0,0,0,0,0},{12407,0,0,0,0,0},{11873,0,0,0,0,0},{12758,0,0,0,0,0},{12890,0,0,0,0,0},{12622,0,0,0,0,0},{12331,0,0,0,0,0},{12649,0,0,0,0,0},{12612,0,0,0,0,0},{12684,0,0,0,0,0},{12410,0,0,0,0,0},{12948,0,0,0,0,0}},{{11947,0,0,0,0,0},{11362,0,0,0,0,0},{11787,0,0,0,0,0},{12737,0,0,0,0,0},{10931,0,0,0,0,0},{11711,0,0,0,0,0},{11381,0,0,0,0,0},{11735,0,0,0,0,0},{11700,0,0,0,0,0},{12122,0,0,0,0,0},{11968,0,0,0,0,0},{11375,0,0,0,0,0},{11530,0,0,0,0,0},{12021,0,0,0,0,0},{11788,0,0,0,0,0},{11143,0,0,0,0,0},{11334,0,0,0,0,0},{11722,0,0,0,0,0},{11710,0,0,0,0,0},{11052,0,0,0,0,0}},{{10132,0,0,0,0,0},{10380,0,0,0,0,0},{10376,0,0,0,0,0},{10489,0,0,0,0,0},{10435,0,0,0,0,0},{9686,0,0,0,0,0},{10333,0,0,0,0,0},{10677,0,0,0,0,0},{9734,0,0,0,0,0},{10043,0,0,0,0,0},{10502,0,0,0,0,0},{10854,0,0,0,0,0},{10541,0,0,0,0,0},{10766,0,0,0,0,0},{10975,0,0,0,0,0},{10138,0,0,0,0,0},{10537,0,0,0,0,0},{10789,0,0,0,0,0},{10488,0,0,0,0,0},{10852,0,0,0,0,0}},{{9365,0,0,0,0,0},{9370,0,0,0,0,0},{9083,0,0,0,0,0},{10193,0,0,0,0,0},{9783,0,0,0,0,0},{9526,0,0,0,0,0},{9715,0,0,0,0,0},{9550,0,0,0,0,0},{9329,0,0,0,0,0},{9000,0,0,0,0,0},{10234,0,0,0,0,0},{9421,0,0,0,0,0},{10042,0,0,0,0,0},{8909,0,0,0,0,0},{9132,0,0,0,0,0},{9455,0,0,0,0,0},{9596,0,0,0,0,0},{10026,0,0,0,0,0},{9346,0,0,0,0,0},{9628,0,0,0,0,0}},{{9387,0,0,0,0,0},{9156,0,0,0,0,0},{9667,0,0,0,0,0},{9505,0,0,0,0,0},{9551,0,0,0,0,0},{8659,0,0,0,0,0},{8872,0,0,0,0,0},{9871,0,0,0,0,0},{9373,0,0,0,0,0},{9120,0,0,0,0,0},{9397,0,0,0,0,0},{9098,0,0,0,0,0},{9048,0,0,0,0,0},{9881,0,0,0,0,0},{8968,0,0,0,0,0},{9840,0,0,0,0,0},{8810,0,0,0,0,0},{9543,0,0,0,0,0},{9168,0,0,0,0,0},{9182,0,0,0,0,0}}},{{{-244,-323,-229,-273,-209,-206},{-341,-397,-341,-215,-376,-394},{-382,-185,-359,-206,-185,-247},{-279,-285,-285,-400,-265,-282},{-288,-315,-259,-176,-218,-406},{-353,-379,-256,-268,-229,-406},{-229,-303,-365,-373,-244,-235},{-320,-306,-347,-273,-297,-194},{-347,-309,-194,-282,-229,-376},{-341,-259,-179,-182,-332,-223},{-235,-220,-191,-412,-179,-206},{-347,-259,-206,-309,-203,-282},{-209,-285,-182,-185,-182,-359},{-382,-279,-391,-244,-250,-229},{-394,-312,-209,-244,-223,-365},{-306,-256,-350,-318,-400,-285},{-282,-382,-203,-282,-200,-238},{-320,-350,-268,-179,-188,-323},{-332,-256,-368,-215,-253,-247},{-362,-309,-359,-256,-176,-365}},{{-403,-300,-258,-203,-235,-179},{-368,-189,-193,-378,-238,-287},{-377,-172,-350,-353,-222,-254},{-203,-363,-269,-293,-203,-231},{-267,-280,-308,-178,-352,-295},{-186,-226,-218,-238,-251,-236},{-360,-295,-216,-271,-174,-293},{-270,-372,-190,-364,-262,-192},{-368,-366,-328,-329,-331,-163},{-252,-358,-199,-206,-304,-246},{-226,-240,-174,-184,-200,-155},{-383,-189,-174,-351,-166,-192},{-313,-174,-316,-167,-360,-303},{-386,-380,-286,-310,-296,-277},{-322,-349,-249,-192,-195,-171},{-270,-343,-171,-334,-259,-264},{-209,-309,-258,-299,-259,-163},{-354,-277,-297,-241,-368,-238},{-218,-292,-294,-348,-267,-251},{-246,-355,-235,-290,-203,-163}},{{-330,-196,-315,-134,-235,-136},{-258,-196,-186,-253,-141,-130},{-185,-223,-163,-202,-240,-229},{-268,-235,-287,-314,-246,-202},{-225,-232,-175,-164,-261,-138},{-268,-148,-312,-251,-156,-218},{-350,-244,-207,-211,-291,-146},{-172,-191,-147,-157,-272,-229},{-152,-332,-182,-195,-203,-202},{-312,-336,-303,-237,-165,-270},{-150,-257,-189,-168,-210,-204},{-235,-179,-219,-264,-156,-187},{-258,-235,-151,-296,-291,-130},{-350,-189,-310,-240,-156,-130},{-288,-218,-224,-168,-287,-288},{-212,-150,-217,-186,-293,-130},{-262,-174,-172,-276,-274,-214},{-245,-312,-291,-150,-146,-138},{-322,-155,-151,-298,-154,-220},{-210,-307,-210,-287,-150,-161}},{{-219,-127,-220,-150,-140,-206},{-185,-262,-193,-136,-129,-182},{-158,-178,-165,-182,-172,-109},{-266,-232,-177,-241,-150,-139},{-120,-168,-143,-155,-221,-125},{-236,-258,-231,-158,-150,-171},{-142,-112,-125,-132,-122,-107},{-211,-226,-150,-222,-229,-101},{-191,-116,-107,-103,-99,-166},{-187,-125,-111,-232,-160,-224},{-205,-114,-131,-177,-190,-202},{-124,-219,-229,-208,-226,-187},{-232,-131,-222,-124,-206,-182},{-158,-131,-111,-229,-139,-176},{-230,-183,-184,-220,-124,-155},{-197,-224,-132,-217,-142,-110},{-209,-198,-134,-213,-226,-166},{-193,-198,-213,-210,-162,-123},{-162,-181,-131,-150,-196,-162},{-136,-251,-234,-200,-213,-125}},{{-106,-103,-122,-198,-131,-140},{-197,-152,-154,-134,-151,-118},{-116,-189,-178,-190,-91,-148},{-171,-168,-119,-178,-153,-200},{-206,-95,-196,-119,-157,-165},{-189,-92,-171,-128,-148,-169},{-189,-133,-150,-201,-196,-184},{-179,-109,-190,-97,-118,-93},{-206,-131,-175,-165,-188,-181},{-123,-206,-115,-147,-94,-121},{-209,-107,-125,-123,-169,-126},{-123,-165,-151,-190,-193,-160},{-211,-203,-182,-148,-198,-125},{-194,-118,-176,-144,-116,-147},{-100,-194,-154,-137,-163,-116},{-149,-198,-106,-101,-128,-165},{-148,-198,-106,-157,-206,-193},{-179,-204,-138,-103,-179,-173},{-143,-180,-203,-100,-188,-175},{-203,-170,-154,-96,-91,-179}},{{-96,-190,-156,-209,-211,-174},{-196,-141,-94,-116,-148,-195},{-144,-125,-122,-139,-192,-220},{-140,-165,-211,-92,-150,-189},{-176,-193,-169,-122,-179,-109},{-119,-143,-180,-134,-164,-145},{-198,-94,-136,-99,-198,-124},{-171,-201,-103,-211,-171,-124},{-140,-109,-136,-94,-214,-110},{-109,-137,-136,-197,-153,-227},{-204,-122,-130,-140,-116,-220},{-143,-179,-103,-106,-179,-182},{-187,-126,-205,-188,-119,-157},{-197,-201,-189,-154,-180,-229},{-90,-206,-112,-109,-203,-115},{-188,-169,-130,-183,-200,-197},{-201,-100,-110,-120,-163,-119},{-113,-157,-149,-176,-204,-139},{-88,-193,-195,-131,-217,-140},{-188,-175,-201,-119,-206,-119}}},{{{-109,-183,-210,-127,-160,-124},{-230,-215,-164,-243,-197,-195},{-195,-134,-108,-141,-193,-199},{-205,-228,-184,-181,-158,-124},{-234,-164,-133,-161,-180,-250},{-139,-169,-163,-233,-221,-195},{-146,-223,-238,-141,-151,-126},{-139,-140,-145,-159,-120,-256},{-126,-115,-238,-149,-204,-126},{-155,-127,-136,-240,-202,-118},{-111,-112,-238,-124,-199,-147},{-186,-110,-234,-109,-129,-214},{-183,-223,-240,-217,-156,-162},{-186,-235,-133,-131,-224,-185},{-133,-144,-208,-147,-243,-218},{-186,-167,-214,-229,-131,-134},{-148,-206,-236,-197,-250,-145},{-173,-164,-163,-183,-241,-267},{-158,-179,-164,-125,-243,-174},{-178,-150,-189,-113,-132,-225}},{{-218,-139,-251,-166,-273,-152},{-251,-133,-290,-214,-234,-238},{-218,-207,-166,-177,-240,-178},{-141,-215,-175,-190,-298,-331},{-208,-271,-181,-190,-149,-309},{-139,-254,-292,-192,-254,-281},{-248,-262,-145,-276,-204,-209},{-194,-211,-236,-283,-295,-217},{-139,-131,-192,-267,-321,-271},{-204,-228,-241,-164,-305,-259},{-192,-277,-215,-192,-218,-274},{-168,-199,-245,-232,-298,-224},{-253,-248,-179,-159,-151,-307},{-166,-250,-228,-236,-270,-207},{-166,-209,-251,-278,-190,-278},{-162,-182,-292,-181,-140,-252},{-236,-264,-298,-223,-215,-250},{-198,-158,-228,-135,-231,-333},{-226,-191,-247,-301,-213,-326},{-168,-232,-213,-278,-314,-190}},{{-291,-332,-328,-254,-288,-218},{-242,-178,-199,-192,-169,-275},{-284,-176,-196,-176,-172,-359},{-284,-298,-314,-286,-283,-300},{-217,-204,-181,-329,-177,-311},{-304,-191,-309,-259,-227,-275},{-336,-286,-157,-248,-177,-266},{-287,-344,-346,-184,-382,-365},{-198,-166,-173,-305,-238,-359},{-284,-166,-262,-262,-197,-385},{-178,-311,-330,-208,-368,-334},{-306,-178,-275,-356,-280,-221},{-198,-186,-173,-170,-360,-311},{-311,-321,-341,-167,-271,-181},{-264,-217,-362,-232,-238,-300},{-178,-224,-320,-235,-302,-371},{-262,-219,-217,-367,-291,-192},{-222,-201,-215,-351,-377,-345},{-299,-311,-162,-338,-266,-286},{-153,-250,-220,-310,-382,-291}},{{-338,-282,-361,-337,-214,-385},{-283,-253,-417,-244,-190,-250},{-338,-244,-378,-328,-295,-400},{-289,-294,-185,-265,-253,-421},{-332,-215,-224,-238,-400,-382},{-223,-385,-268,-259,-220,-262},{-321,-370,-191,-307,-316,-388},{-335,-273,-364,-361,-262,-349},{-384,-306,-253,-259,-244,-214},{-292,-229,-414,-295,-220,-265},{-335,-259,-408,-355,-301,-373},{-292,-241,-200,-310,-298,-268},{-283,-179,-343,-313,-391,-274},{-399,-362,-405,-334,-283,-382},{-344,-359,-197,-289,-346,-298},{-266,-176,-411,-340,-253,-190},{-237,-200,-381,-367,-397,-259},{-387,-282,-244,-301,-292,-352},{-393,-209,-247,-253,-253,-277},{-263,-253,-414,-313,-397,-259}},{{-403,-382,-283,-201,-288,-397},{-268,-262,-274,-414,-397,-209},{-202,-217,-367,-192,-329,-380},{-238,-253,-337,-267,-291,-310},{-277,-295,-400,-417,-200,-241},{-304,-343,-337,-348,-197,-241},{-361,-370,-181,-411,-232,-186},{-370,-400,-226,-288,-303,-304},{-352,-319,-328,-180,-347,-223},{-226,-187,-277,-258,-235,-304},{-307,-385,-409,-318,-315,-360},{-280,-343,-286,-186,-265,-276},{-319,-355,-304,-408,-226,-368},{-313,-253,-415,-225,-206,-380},{-229,-349,-226,-279,-359,-406},{-193,-328,-394,-231,-353,-183},{-343,-418,-238,-345,-220,-293},{-412,-187,-340,-276,-235,-296},{-208,-229,-421,-312,-341,-177},{-406,-355,-199,-414,-232,-174}},{{-333,-307,-366,-216,-310,-246},{-325,-287,-350,-180,-317,-298},{-288,-310,-252,-325,-215,-327},{-390,-363,-298,-282,-236,-159},{-399,-232,-255,-177,-333,-325},{-180,-332,-352,-282,-289,-161},{-248,-287,-230,-232,-343,-218},{-379,-268,-252,-282,-292,-337},{-239,-190,-360,-367,-195,-345},{-185,-338,-263,-222,-320,-149},{-351,-209,-184,-275,-205,-325},{-205,-285,-341,-174,-266,-290},{-185,-259,-301,-216,-184,-211},{-325,-382,-377,-335,-346,-154},{-328,-346,-184,-275,-207,-181},{-399,-388,-293,-285,-300,-268},{-259,-198,-260,-214,-154,-293},{-382,-184,-266,-346,-307,-213},{-348,-299,-317,-180,-159,-218},{-185,-287,-182,-203,-243,-337}}},{{{-273,-461,-230,-286,-368,-276},{-447,-352,-355,-401,-263,-290},{-342,-243,-382,-438,-299,-368},{-398,-398,-204,-250,-260,-332},{-339,-286,-211,-438,-207,-214},{-349,-362,-434,-368,-444,-434},{-224,-408,-283,-395,-461,-217},{-316,-263,-309,-372,-316,-280},{-382,-319,-260,-253,-359,-230},{-247,-349,-385,-214,-220,-260},{-240,-444,-329,-204,-326,-220},{-392,-352,-293,-401,-329,-220},{-424,-217,-408,-375,-204,-243},{-303,-421,-217,-253,-211,-217},{-365,-438,-385,-411,-253,-385},{-230,-336,-395,-438,-434,-355},{-290,-434,-201,-250,-243,-266},{-461,-451,-345,-385,-434,-243},{-273,-388,-286,-253,-368,-332},{-339,-303,-415,-352,-451,-286}},{{-377,-374,-325,-236,-219,-319},{-387,-216,-201,-236,-296,-265},{-440,-419,-214,-386,-376,-256},{-420,-438,-354,-311,-209,-226},{-302,-283,-376,-245,-419,-280},{-423,-216,-287,-345,-231,-280},{-200,-319,-443,-295,-213,-259},{-269,-245,-191,-267,-216,-265},{-459,-287,-278,-392,-246,-265},{-223,-364,-226,-270,-203,-226},{-321,-351,-325,-377,-348,-328},{-318,-261,-223,-292,-326,-265},{-236,-354,-447,-336,-370,-238},{-213,-325,-322,-389,-428,-331},{-236,-319,-447,-320,-391,-250},{-233,-293,-290,-424,-314,-316},{-253,-402,-335,-267,-188,-271},{-394,-238,-434,-229,-302,-286},{-272,-245,-357,-371,-256,-310},{-233,-274,-364,-361,-317,-238}},{{-351,-193,-378,-332,-273,-234},{-239,-348,-364,-228,-199,-308},{-274,-395,-263,-188,-284,-314},{-316,-265,-353,-169,-278,-296},{-186,-308,-188,-264,-270,-170},{-304,-187,-238,-231,-299,-262},{-251,-268,-235,-362,-238,-321},{-360,-340,-384,-356,-209,-175},{-327,-334,-367,-359,-350,-360},{-177,-400,-319,-288,-355,-352},{-266,-294,-350,-204,-321,-252},{-263,-259,-235,-283,-249,-355},{-410,-181,-288,-362,-355,-303},{-286,-274,-294,-375,-201,-226},{-251,-207,-218,-182,-305,-226},{-372,-297,-322,-305,-360,-159},{-389,-363,-218,-367,-310,-224},{-248,-282,-361,-329,-297,-262},{-348,-403,-328,-256,-207,-265},{-233,-181,-210,-237,-281,-182}},{{-210,-289,-282,-176,-314,-302},{-248,-258,-310,-213,-159,-280},{-235,-187,-327,-238,-137,-239},{-240,-192,-175,-150,-204,-291},{-252,-279,-213,-312,-244,-199},{-290,-287,-152,-293,-273,-140},{-248,-292,-190,-208,-233,-291},{-238,-335,-156,-289,-215,-204},{-165,-313,-244,-192,-242,-226},{-210,-311,-147,-310,-172,-304},{-262,-318,-306,-249,-168,-175},{-325,-156,-320,-139,-242,-136},{-178,-221,-194,-275,-208,-208},{-235,-148,-313,-296,-213,-201},{-320,-330,-261,-238,-157,-197},{-338,-214,-213,-261,-202,-250},{-258,-151,-273,-206,-300,-169},{-262,-277,-275,-196,-150,-256},{-185,-333,-258,-293,-186,-228},{-202,-231,-237,-273,-253,-302}},{{-297,-237,-170,-139,-193,-246},{-224,-132,-151,-277,-256,-290},{-221,-170,-288,-218,-162,-130},{-254,-256,-256,-212,-284,-181},{-187,-233,-279,-227,-262,-200},{-137,-149,-166,-212,-267,-288},{-210,-202,-210,-187,-195,-279},{-267,-189,-260,-128,-290,-189},{-130,-195,-262,-126,-212,-210},{-241,-166,-248,-139,-147,-241},{-154,-145,-281,-290,-223,-210},{-299,-145,-193,-145,-139,-254},{-284,-149,-241,-149,-178,-235},{-163,-178,-208,-126,-246,-244},{-206,-206,-147,-273,-279,-216},{-302,-229,-187,-183,-128,-220},{-204,-193,-231,-277,-273,-155},{-293,-231,-290,-294,-151,-181},{-273,-210,-292,-155,-254,-176},{-263,-273,-246,-244,-193,-170}},{{-168,-244,-209,-221,-183,-263},{-212,-153,-295,-295,-158,-164},{-279,-164,-152,-243,-240,-295},{-170,-279,-266,-252,-260,-274},{-168,-170,-274,-221,-260,-272},{-223,-223,-129,-286,-211,-142},{-149,-250,-143,-245,-147,-140},{-265,-153,-165,-182,-282,-270},{-181,-158,-251,-135,-293,-268},{-145,-210,-207,-271,-275,-227},{-254,-241,-276,-204,-229,-214},{-200,-189,-228,-143,-196,-160},{-250,-229,-209,-148,-286,-173},{-145,-143,-295,-271,-242,-302},{-172,-286,-188,-132,-134,-304},{-139,-136,-186,-258,-233,-218},{-227,-162,-213,-130,-167,-295},{-212,-237,-179,-247,-246,-171},{-136,-176,-264,-145,-169,-245},{-281,-158,-205,-132,-189,-227}}},{{{-142,-81,-113,-104,-131,-114},{-64,-139,-106,-153,-92,-159},{-75,-75,-147,-133,-87,-115},{-134,-106,-152,-101,-129,-88},{-94,-67,-141,-70,-89,-122},{-70,-130,-123,-147,-101,-177},{-80,-145,-67,-97,-100,-97},{-94,-93,-148,-126,-138,-160},{-64,-126,-148,-95,-146,-109},{-111,-74,-152,-96,-74,-156},{-143,-108,-86,-78,-148,-168},{-120,-122,-106,-111,-151,-82},{-97,-68,-106,-126,-148,-106},{-127,-132,-105,-106,-100,-125},{-130,-103,-92,-149,-112,-146},{-135,-134,-138,-129,-129,-164},{-129,-69,-130,-142,-124,-138},{-100,-71,-121,-146,-154,-138},{-136,-127,-129,-91,-111,-166},{-105,-145,-94,-92,-151,-160}},{{-112,-125,-92,-166,-211,-131},{-184,-141,-160,-211,-206,-121},{-148,-116,-181,-116,-134,-109},{-174,-180,-154,-157,-109,-166},{-127,-158,-139,-144,-105,-155},{-123,-180,-204,-197,-217,-227},{-103,-164,-151,-215,-208,-153},{-94,-99,-90,-146,-167,-223},{-165,-157,-114,-141,-97,-123},{-167,-116,-115,-202,-158,-213},{-138,-133,-130,-178,-150,-188},{-105,-123,-186,-214,-198,-170},{-94,-102,-173,-104,-143,-205},{-153,-89,-115,-152,-134,-111},{-182,-96,-188,-212,-180,-158},{-142,-94,-206,-146,-206,-181},{-100,-192,-151,-192,-206,-208},{-178,-147,-166,-152,-177,-192},{-105,-142,-167,-175,-137,-156},{-84,-100,-192,-147,-211,-150}},{{-205,-142,-257,-177,-251,-246},{-224,-131,-175,-125,-192,-123},{-159,-211,-247,-169,-255,-204},{-193,-182,-234,-163,-265,-143},{-234,-151,-197,-120,-239,-238},{-205,-157,-238,-220,-218,-198},{-107,-160,-205,-150,-176,-214},{-138,-176,-151,-150,-163,-208},{-138,-180,-232,-116,-206,-267},{-201,-198,-121,-207,-212,-244},{-178,-234,-210,-152,-245,-275},{-206,-214,-125,-262,-125,-176},{-200,-212,-162,-230,-172,-152},{-240,-157,-158,-262,-272,-261},{-182,-182,-130,-150,-198,-190},{-110,-232,-171,-135,-216,-255},{-224,-124,-171,-150,-153,-194},{-224,-180,-113,-184,-263,-150},{-144,-149,-126,-224,-200,-141},{-112,-247,-259,-175,-122,-174}},{{-262,-225,-136,-189,-144,-156},{-225,-177,-238,-260,-171,-152},{-164,-152,-205,-238,-215,-128},{-168,-264,-148,-231,-248,-238},{-193,-217,-187,-272,-280,-250},{-124,-233,-171,-229,-254,-152},{-193,-260,-191,-242,-284,-140},{-197,-203,-162,-150,-171,-256},{-164,-266,-252,-134,-203,-166},{-156,-173,-270,-191,-280,-132},{-140,-166,-146,-203,-197,-252},{-282,-122,-276,-185,-166,-278},{-191,-231,-171,-191,-258,-132},{-229,-130,-231,-272,-154,-138},{-138,-175,-250,-173,-213,-223},{-128,-256,-278,-221,-252,-248},{-227,-197,-272,-175,-217,-140},{-250,-268,-134,-150,-266,-278},{-274,-240,-278,-215,-177,-195},{-250,-154,-240,-205,-217,-244}},{{-146,-166,-266,-205,-204,-118},{-203,-158,-201,-142,-115,-232},{-268,-128,-274,-189,-246,-140},{-158,-183,-272,-265,-255,-236},{-162,-199,-164,-271,-265,-248},{-260,-284,-209,-267,-155,-131},{-185,-177,-234,-123,-257,-195},{-282,-231,-152,-144,-161,-125},{-132,-160,-122,-140,-234,-188},{-223,-203,-264,-154,-185,-169},{-229,-254,-207,-207,-249,-197},{-140,-207,-252,-271,-212,-252},{-223,-158,-148,-158,-187,-223},{-158,-231,-175,-201,-202,-155},{-166,-160,-205,-271,-170,-197},{-223,-144,-169,-148,-166,-169},{-203,-173,-167,-213,-253,-166},{-270,-282,-195,-172,-140,-213},{-213,-252,-171,-156,-200,-151},{-233,-181,-201,-207,-217,-226}},{{-109,-199,-224,-115,-158,-144},{-149,-138,-144,-115,-193,-138},{-129,-192,-162,-202,-158,-169},{-107,-180,-210,-158,-162,-157},{-136,-164,-210,-110,-159,-204},{-122,-156,-187,-179,-165,-98},{-193,-142,-115,-128,-184,-171},{-245,-157,-119,-136,-177,-179},{-206,-223,-184,-179,-165,-125},{-149,-109,-114,-163,-168,-187},{-231,-135,-154,-181,-213,-137},{-245,-131,-149,-208,-104,-198},{-215,-135,-115,-158,-199,-116},{-184,-228,-187,-142,-115,-140},{-195,-131,-210,-213,-139,-107},{-118,-225,-197,-187,-171,-168},{-229,-173,-109,-176,-210,-135},{-138,-237,-200,-96,-155,-144},{-127,-152,-204,-104,-207,-168},{-243,-119,-177,-186,-161,-182}}},{{{-240,-264,-331,-159,-150,-233},{-245,-226,-333,-267,-295,-326},{-231,-276,-319,-257,-228,-274},{-317,-278,-148,-267,-195,-176},{-268,-295,-290,-157,-305,-328},{-275,-152,-169,-274,-262,-157},{-179,-243,-174,-186,-190,-207},{-301,-259,-190,-231,-164,-198},{-198,-224,-198,-212,-305,-274},{-245,-226,-174,-169,-202,-267},{-298,-145,-248,-159,-159,-186},{-163,-228,-317,-326,-217,-236},{-142,-226,-150,-178,-317,-228},{-277,-281,-145,-228,-264,-209},{-207,-295,-243,-309,-262,-200},{-308,-255,-278,-193,-295,-321},{-301,-171,-312,-171,-207,-171},{-240,-200,-276,-226,-228,-267},{-303,-162,-207,-226,-243,-202},{-280,-150,-269,-326,-317,-214}},{{-224,-305,-251,-229,-240,-221},{-209,-317,-303,-266,-174,-208},{-326,-212,-244,-254,-305,-181},{-212,-250,-176,-266,-282,-274},{-200,-281,-284,-243,-282,-232},{-238,-252,-223,-247,-206,-183},{-171,-243,-148,-307,-154,-139},{-221,-250,-247,-261,-192,-192},{-324,-195,-254,-280,-240,-287},{-188,-264,-289,-238,-197,-175},{-214,-164,-266,-247,-188,-272},{-150,-328,-296,-203,-258,-241},{-302,-326,-249,-286,-312,-252},{-324,-257,-322,-256,-253,-192},{-252,-205,-223,-296,-271,-179},{-240,-214,-263,-208,-273,-199},{-243,-205,-313,-194,-179,-278},{-288,-150,-193,-215,-287,-230},{-207,-207,-207,-141,-208,-146},{-319,-262,-294,-159,-242,-254}},{{-191,-276,-196,-172,-206,-162},{-232,-199,-149,-168,-219,-241},{-301,-249,-277,-267,-245,-146},{-172,-171,-220,-246,-258,-198},{-299,-274,-283,-170,-144,-139},{-301,-251,-269,-174,-180,-184},{-187,-215,-269,-172,-226,-130},{-226,-169,-242,-232,-193,-140},{-202,-180,-178,-185,-112,-149},{-135,-144,-220,-177,-168,-223},{-243,-245,-131,-259,-180,-171},{-155,-232,-267,-117,-185,-171},{-146,-146,-192,-211,-114,-117},{-269,-163,-170,-166,-262,-175},{-202,-263,-242,-181,-247,-173},{-254,-125,-202,-158,-131,-241},{-213,-180,-208,-136,-221,-140},{-273,-157,-160,-140,-120,-169},{-172,-219,-240,-244,-168,-153},{-286,-207,-158,-255,-236,-212}},{{-120,-150,-152,-148,-167,-130},{-139,-228,-204,-116,-156,-104},{-229,-221,-209,-136,-177,-101},{-187,-206,-181,-176,-148,-153},{-114,-173,-166,-204,-127,-124},{-146,-155,-105,-150,-154,-102},{-103,-214,-187,-192,-86,-179},{-132,-102,-181,-150,-153,-148},{-112,-117,-185,-134,-160,-87},{-148,-182,-144,-134,-86,-105},{-191,-142,-115,-196,-157,-139},{-210,-168,-176,-158,-86,-193},{-131,-163,-148,-93,-132,-152},{-174,-157,-176,-120,-125,-156},{-174,-190,-127,-194,-132,-142},{-198,-142,-97,-112,-153,-105},{-146,-210,-122,-114,-145,-188},{-205,-135,-220,-135,-194,-144},{-237,-144,-115,-120,-181,-192},{-117,-127,-198,-118,-161,-102}},{{-154,-111,-138,-133,-118,-108},{-153,-83,-108,-83,-106,-154},{-182,-94,-82,-163,-100,-113},{-80,-94,-117,-137,-104,-145},{-109,-112,-99,-130,-108,-117},{-176,-81,-122,-79,-84,-98},{-162,-78,-99,-124,-79,-100},{-80,-129,-81,-158,-108,-106},{-148,-171,-174,-90,-157,-120},{-148,-161,-133,-142,-101,-163},{-102,-91,-150,-167,-106,-165},{-154,-123,-118,-129,-117,-155},{-134,-165,-76,-129,-131,-114},{-146,-154,-107,-144,-155,-107},{-116,-150,-122,-127,-121,-133},{-102,-100,-130,-117,-133,-105},{-168,-146,-114,-74,-132,-142},{-98,-112,-112,-95,-140,-75},{-108,-120,-117,-90,-93,-125},{-130,-161,-134,-79,-131,-86}},{{-73,-113,-145,-143,-102,-118},{-92,-105,-112,-76,-161,-150},{-155,-123,-99,-158,-74,-151},{-105,-105,-165,-150,-163,-151},{-95,-112,-94,-164,-145,-87},{-146,-77,-86,-84,-137,-103},{-73,-108,-118,-139,-152,-129},{-93,-139,-165,-102,-99,-176},{-71,-87,-137,-94,-113,-168},{-88,-139,-142,-80,-102,-98},{-127,-89,-113,-114,-82,-87},{-99,-132,-111,-118,-154,-134},{-123,-143,-148,-75,-167,-116},{-125,-123,-101,-150,-77,-135},{-144,-156,-165,-84,-144,-132},{-86,-98,-144,-118,-151,-151},{-120,-112,-164,-79,-161,-122},{-107,-77,-74,-151,-96,-131},{-131,-164,-101,-167,-143,-164},{-75,-124,-156,-81,-152,-113}}},{{{-226,-226,-165,-231,-306,-351},{-168,-285,-263,-165,-340,-277},{-317,-351,-255,-176,-207,-271},{-317,-215,-184,-237,-239,-314},{-237,-176,-340,-290,-207,-176},{-271,-239,-253,-370,-325,-215},{-285,-359,-271,-176,-335,-200},{-229,-293,-356,-229,-215,-343},{-348,-279,-322,-242,-247,-202},{-173,-247,-186,-247,-285,-285},{-314,-311,-322,-197,-245,-200},{-186,-309,-255,-340,-160,-173},{-269,-314,-303,-239,-285,-207},{-367,-226,-186,-332,-274,-213},{-210,-282,-269,-242,-330,-234},{-255,-351,-250,-234,-351,-192},{-359,-351,-330,-237,-226,-325},{-319,-170,-263,-237,-290,-202},{-274,-181,-176,-346,-255,-218},{-215,-162,-255,-282,-186,-362}},{{-372,-186,-226,-274,-288,-298},{-178,-271,-205,-181,-204,-168},{-348,-239,-263,-165,-204,-194},{-370,-197,-194,-176,-359,-189},{-354,-250,-186,-181,-296,-339},{-356,-234,-354,-317,-241,-158},{-285,-274,-285,-189,-189,-161},{-242,-242,-247,-231,-304,-269},{-226,-266,-277,-335,-314,-225},{-298,-303,-314,-261,-312,-256},{-176,-269,-303,-317,-330,-225},{-226,-354,-354,-245,-162,-350},{-295,-335,-295,-279,-309,-163},{-226,-218,-285,-170,-335,-329},{-160,-319,-319,-348,-343,-344},{-348,-351,-348,-293,-299,-282},{-343,-359,-362,-274,-186,-319},{-261,-202,-253,-234,-286,-254},{-348,-237,-338,-229,-314,-171},{-332,-367,-370,-298,-181,-308}},{{-179,-154,-234,-325,-318,-251},{-282,-321,-262,-285,-201,-178},{-228,-334,-297,-241,-228,-284},{-342,-278,-282,-236,-230,-277},{-295,-190,-184,-213,-316,-149},{-337,-210,-285,-275,-252,-154},{-223,-159,-237,-342,-301,-219},{-249,-329,-234,-166,-279,-299},{-334,-293,-171,-188,-260,-219},{-225,-248,-307,-310,-252,-166},{-319,-167,-219,-347,-287,-323},{-174,-180,-302,-159,-194,-246},{-249,-349,-320,-201,-265,-294},{-363,-301,-312,-298,-220,-296},{-352,-301,-179,-283,-211,-316},{-207,-202,-192,-241,-230,-241},{-334,-316,-320,-161,-159,-181},{-337,-167,-184,-228,-174,-316},{-275,-286,-209,-278,-343,-186},{-228,-261,-186,-174,-149,-333}},{{-148,-280,-217,-267,-177,-150},{-257,-181,-141,-196,-177,-253},{-276,-193,-224,-140,-260,-179},{-217,-296,-277,-271,-307,-177},{-202,-195,-208,-166,-282,-139},{-205,-188,-162,-248,-177,-211},{-274,-320,-236,-251,-278,-157},{-274,-298,-233,-230,-204,-161},{-193,-226,-286,-269,-168,-231},{-188,-204,-238,-283,-211,-206},{-212,-277,-180,-269,-188,-141},{-195,-266,-266,-225,-300,-249},{-243,-249,-286,-285,-161,-302},{-174,-254,-277,-154,-289,-237},{-245,-294,-298,-182,-282,-166},{-312,-329,-203,-223,-157,-199},{-240,-167,-284,-230,-307,-264},{-200,-303,-247,-205,-311,-291},{-331,-202,-203,-212,-175,-311},{-264,-287,-157,-271,-237,-291}},{{-143,-132,-176,-143,-219,-189},{-264,-224,-291,-278,-178,-167},{-198,-189,-137,-293,-130,-245},{-279,-226,-200,-210,-156,-189},{-290,-228,-182,-302,-154,-258},{-235,-228,-139,-195,-245,-289},{-273,-302,-289,-247,-237,-210},{-227,-213,-161,-273,-139,-304},{-297,-171,-200,-289,-195,-180},{-231,-200,-130,-145,-130,-204},{-299,-297,-174,-269,-224,-137},{-139,-208,-182,-213,-174,-150},{-284,-217,-161,-289,-299,-284},{-134,-204,-139,-180,-286,-200},{-150,-130,-245,-206,-143,-154},{-308,-271,-247,-239,-158,-208},{-233,-252,-132,-141,-304,-197},{-169,-267,-280,-208,-217,-150},{-273,-161,-156,-169,-293,-243},{-257,-158,-210,-276,-282,-130}},{{-241,-145,-215,-232,-208,-276},{-252,-250,-263,-171,-247,-234},{-302,-234,-293,-176,-260,-135},{-204,-202,-180,-278,-141,-154},{-221,-237,-163,-245,-234,-252},{-278,-282,-171,-189,-148,-184},{-228,-265,-143,-204,-139,-221},{-289,-204,-276,-260,-148,-273},{-226,-271,-258,-132,-302,-295},{-289,-158,-208,-219,-297,-299},{-208,-141,-210,-210,-239,-284},{-180,-141,-302,-195,-210,-241},{-230,-145,-139,-256,-282,-143},{-245,-217,-260,-184,-280,-163},{-184,-252,-289,-156,-258,-141},{-163,-171,-304,-269,-282,-243},{-293,-152,-230,-130,-161,-304},{-228,-189,-206,-273,-224,-254},{-289,-195,-158,-174,-193,-280},{-156,-234,-291,-145,-254,-217}}},{{{-331,-319,-217,-277,-367,-234},{-229,-418,-346,-241,-331,-320},{-289,-337,-262,-385,-415,-373},{-193,-289,-274,-205,-187,-281},{-190,-214,-217,-238,-280,-284},{-376,-265,-301,-328,-292,-189},{-331,-352,-355,-400,-301,-189},{-409,-337,-418,-382,-385,-293},{-340,-388,-226,-274,-418,-258},{-400,-421,-301,-187,-400,-207},{-328,-184,-244,-379,-244,-414},{-244,-223,-229,-307,-382,-296},{-274,-190,-280,-301,-301,-299},{-358,-370,-355,-397,-235,-234},{-289,-298,-361,-184,-358,-246},{-229,-205,-307,-217,-394,-311},{-325,-190,-208,-355,-418,-364},{-418,-421,-346,-370,-307,-305},{-208,-229,-421,-313,-316,-364},{-418,-292,-229,-421,-358,-252}},{{-188,-244,-274,-259,-241,-170},{-261,-198,-364,-227,-289,-314},{-407,-224,-389,-167,-159,-355},{-199,-344,-204,-172,-276,-221},{-220,-258,-364,-379,-342,-288},{-278,-290,-286,-374,-228,-350},{-179,-370,-168,-224,-305,-329},{-393,-333,-277,-188,-334,-185},{-366,-356,-188,-355,-249,-316},{-179,-310,-207,-328,-231,-195},{-193,-330,-182,-358,-249,-283},{-296,-370,-372,-194,-186,-252},{-331,-304,-367,-268,-249,-308},{-410,-321,-174,-172,-228,-203},{-243,-198,-221,-306,-162,-306},{-325,-356,-182,-306,-344,-206},{-369,-172,-367,-224,-217,-280},{-357,-396,-297,-298,-204,-236},{-284,-385,-361,-319,-350,-193},{-176,-267,-392,-336,-299,-301}},{{-161,-156,-227,-290,-212,-166},{-340,-266,-311,-175,-151,-246},{-298,-185,-213,-141,-157,-180},{-260,-288,-240,-252,-293,-281},{-273,-240,-197,-212,-159,-170},{-255,-314,-153,-254,-290,-263},{-179,-274,-195,-261,-140,-263},{-198,-223,-206,-248,-227,-133},{-330,-314,-254,-281,-271,-141},{-327,-257,-254,-252,-246,-210},{-221,-252,-309,-186,-199,-192},{-270,-269,-321,-223,-159,-275},{-255,-151,-250,-210,-216,-216},{-159,-216,-277,-276,-223,-127},{-288,-302,-169,-256,-235,-172},{-149,-235,-236,-139,-227,-170},{-193,-190,-270,-239,-267,-212},{-278,-254,-256,-144,-235,-279},{-268,-206,-172,-146,-148,-236},{-238,-187,-197,-303,-273,-192}},{{-167,-153,-126,-122,-139,-109},{-190,-138,-222,-225,-143,-201},{-120,-193,-171,-165,-123,-185},{-136,-188,-164,-160,-115,-164},{-175,-251,-246,-112,-106,-177},{-159,-193,-155,-196,-181,-121},{-208,-149,-208,-134,-201,-108},{-270,-160,-123,-158,-123,-129},{-118,-257,-132,-115,-111,-187},{-171,-182,-180,-198,-178,-134},{-270,-188,-150,-201,-173,-164},{-213,-188,-247,-218,-212,-127},{-213,-208,-242,-237,-106,-195},{-200,-149,-240,-210,-196,-219},{-223,-231,-237,-208,-186,-98},{-132,-186,-142,-232,-124,-140},{-157,-112,-201,-234,-131,-109},{-264,-153,-203,-107,-151,-113},{-126,-164,-160,-239,-123,-195},{-242,-123,-205,-203,-206,-129}},{{-207,-108,-214,-137,-134,-159},{-168,-189,-120,-112,-160,-163},{-117,-145,-194,-148,-102,-97},{-109,-192,-166,-189,-179,-176},{-189,-102,-169,-156,-114,-114},{-140,-166,-197,-163,-140,-103},{-203,-208,-137,-123,-185,-191},{-192,-156,-208,-109,-199,-122},{-125,-171,-136,-160,-109,-102},{-179,-189,-103,-192,-189,-146},{-187,-145,-199,-149,-125,-163},{-214,-206,-116,-156,-146,-189},{-114,-132,-125,-137,-129,-149},{-156,-142,-160,-171,-174,-149},{-176,-211,-131,-194,-148,-157},{-175,-176,-209,-134,-117,-205},{-183,-123,-200,-165,-112,-132},{-176,-109,-123,-200,-205,-203},{-103,-213,-140,-140,-125,-128},{-142,-152,-114,-205,-166,-152}},{{-94,-197,-154,-133,-187,-112},{-99,-135,-217,-104,-186,-219},{-111,-186,-220,-195,-147,-199},{-179,-116,-191,-104,-229,-246},{-151,-172,-211,-185,-105,-208},{-183,-154,-227,-134,-142,-250},{-213,-205,-138,-207,-152,-226},{-203,-111,-186,-208,-194,-210},{-196,-202,-157,-106,-135,-232},{-102,-127,-211,-141,-119,-226},{-199,-218,-107,-160,-206,-127},{-216,-132,-181,-170,-245,-186},{-151,-197,-97,-166,-128,-163},{-126,-105,-199,-153,-205,-143},{-131,-216,-196,-119,-108,-190},{-106,-116,-180,-202,-107,-203},{-185,-173,-131,-186,-124,-212},{-191,-156,-178,-165,-228,-114},{-142,-176,-175,-207,-122,-154},{-191,-191,-207,-101,-172,-116}}},{{{-473,-214,-469,-382,-270,-410},{-290,-385,-224,-252,-434,-241},{-389,-458,-256,-332,-413,-312},{-284,-473,-252,-276,-231,-455},{-364,-466,-476,-329,-318,-480},{-416,-231,-455,-469,-483,-276},{-256,-224,-322,-392,-438,-444},{-273,-395,-487,-455,-241,-220},{-276,-350,-434,-395,-248,-301},{-301,-368,-430,-340,-224,-228},{-466,-371,-312,-364,-238,-304},{-322,-406,-469,-259,-487,-294},{-483,-430,-368,-340,-476,-374},{-357,-284,-241,-322,-273,-410},{-480,-346,-473,-378,-385,-480},{-290,-402,-210,-276,-231,-452},{-276,-410,-256,-420,-462,-340},{-430,-318,-483,-430,-420,-266},{-301,-266,-304,-364,-284,-441},{-490,-420,-220,-294,-304,-238}},{{-466,-360,-403,-341,-292,-299},{-480,-453,-376,-371,-348,-309},{-438,-480,-407,-240,-197,-322},{-327,-412,-302,-311,-341,-383},{-386,-353,-329,-444,-197,-348},{-296,-281,-302,-458,-210,-258},{-303,-254,-292,-264,-354,-196},{-365,-422,-325,-291,-312,-409},{-251,-292,-373,-364,-292,-380},{-487,-418,-454,-351,-426,-277},{-244,-343,-434,-230,-239,-303},{-435,-453,-420,-381,-443,-287},{-233,-394,-288,-311,-338,-364},{-306,-415,-261,-207,-302,-402},{-282,-384,-224,-264,-325,-328},{-306,-322,-241,-324,-315,-409},{-230,-394,-220,-371,-440,-325},{-428,-292,-471,-224,-453,-222},{-212,-432,-370,-254,-253,-377},{-463,-429,-220,-250,-440,-431}},{{-406,-326,-345,-349,-254,-295},{-299,-410,-372,-343,-362,-275},{-284,-256,-378,-390,-351,-289},{-413,-311,-420,-284,-316,-295},{-277,-351,-363,-196,-322,-336},{-369,-286,-303,-246,-239,-192},{-369,-305,-288,-305,-274,-242},{-372,-200,-297,-349,-299,-339},{-337,-422,-246,-179,-174,-339},{-406,-308,-276,-252,-234,-272},{-233,-403,-276,-223,-342,-353},{-328,-290,-309,-393,-231,-317},{-353,-342,-348,-199,-339,-261},{-214,-431,-204,-328,-248,-350},{-290,-357,-279,-319,-342,-322},{-306,-219,-336,-287,-396,-267},{-284,-188,-387,-328,-217,-183},{-372,-345,-405,-231,-376,-236},{-334,-360,-381,-340,-368,-225},{-280,-373,-189,-264,-177,-350}},{{-267,-258,-172,-296,-247,-306},{-370,-229,-203,-306,-282,-304},{-216,-310,-301,-339,-338,-158},{-256,-295,-190,-201,-343,-220},{-343,-331,-257,-221,-203,-292},{-321,-176,-154,-201,-211,-196},{-205,-197,-249,-251,-230,-311},{-205,-329,-350,-274,-299,-332},{-319,-329,-247,-326,-230,-186},{-224,-210,-208,-314,-333,-172},{-259,-213,-283,-296,-270,-196},{-313,-313,-272,-301,-240,-289},{-367,-331,-164,-306,-157,-332},{-332,-239,-321,-238,-147,-313},{-308,-295,-218,-319,-304,-318},{-227,-263,-200,-276,-321,-146},{-294,-197,-298,-309,-260,-246},{-227,-174,-234,-311,-287,-256},{-216,-352,-321,-276,-240,-177},{-327,-360,-182,-161,-198,-320}},{{-232,-305,-259,-310,-231,-164},{-246,-178,-192,-194,-150,-298},{-223,-291,-192,-243,-199,-173},{-313,-305,-268,-305,-289,-268},{-204,-263,-245,-187,-310,-176},{-303,-192,-229,-143,-312,-275},{-187,-236,-187,-215,-157,-238},{-256,-280,-254,-280,-171,-249},{-308,-275,-143,-224,-247,-231},{-287,-284,-196,-180,-261,-233},{-154,-194,-259,-316,-270,-293},{-180,-310,-243,-171,-249,-252},{-320,-176,-231,-256,-312,-298},{-166,-226,-152,-173,-162,-148},{-152,-233,-229,-171,-166,-159},{-263,-319,-240,-219,-194,-289},{-171,-273,-261,-141,-180,-247},{-256,-314,-303,-321,-270,-189},{-218,-222,-266,-323,-162,-178},{-249,-143,-189,-293,-298,-164}},{{-185,-323,-189,-312,-252,-187},{-305,-182,-163,-228,-220,-184},{-303,-323,-196,-209,-162,-212},{-180,-252,-256,-228,-182,-194},{-252,-199,-219,-314,-319,-150},{-171,-152,-144,-148,-295,-172},{-196,-254,-219,-264,-145,-320},{-229,-224,-254,-193,-182,-332},{-150,-273,-275,-212,-198,-216},{-249,-199,-242,-200,-315,-209},{-291,-280,-196,-274,-315,-170},{-187,-286,-140,-178,-278,-278},{-254,-291,-228,-259,-281,-295},{-199,-266,-240,-221,-208,-293},{-196,-298,-207,-193,-240,-202},{-238,-316,-263,-162,-295,-236},{-268,-185,-172,-295,-186,-248},{-323,-259,-303,-267,-237,-214},{-143,-314,-282,-181,-322,-209},{-249,-155,-270,-202,-332,-293}}}}; // 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,15,8,5,15,8,5,17,8,6,16,8,6,16,8,6,17,8,6,17,9,6,17,9,6,17,8,6,16,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,18,9,6,17,8,6,17,9,6,17,9,6,16,8,6,16,8,6,16,8,6}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15},{16,17,18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35,36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52},{53,54,55,56,57},{58,59,60,61,62,63,64,65,66,67,68,69,70,71,72},{73,74,75,76,77,78,79,80},{81,82,83,84,85},{86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102},{103,104,105,106,107,108,109,110},{111,112,113,114,115,116},{117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132},{133,134,135,136,137,138,139,140},{141,142,143,144,145,146},{147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162},{163,164,165,166,167,168,169,170},{171,172,173,174,175,176},{177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193},{194,195,196,197,198,199,200,201},{202,203,204,205,206,207},{208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224},{225,226,227,228,229,230,231,232,233},{234,235,236,237,238,239},{240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256},{257,258,259,260,261,262,263,264,265},{266,267,268,269,270,271},{272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288},{289,290,291,292,293,294,295,296},{297,298,299,300,301,302},{303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318},{319,320,321,322,323,324,325,326,327},{328,329,330,331,332,333},{334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350},{351,352,353,354,355,356,357,358,359},{360,361,362,363,364,365},{366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382},{383,384,385,386,387,388,389,390,391},{392,393,394,395,396,397},{398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414},{415,416,417,418,419,420,421,422,423},{424,425,426,427,428,429},{430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446},{447,448,449,450,451,452,453,454,455},{456,457,458,459,460,461},{462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478},{479,480,481,482,483,484,485,486,487},{488,489,490,491,492,493},{494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510},{511,512,513,514,515,516,517,518,519},{520,521,522,523,524,525},{526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543},{544,545,546,547,548,549,550,551,552},{553,554,555,556,557,558},{559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575},{576,577,578,579,580,581,582,583},{584,585,586,587,588,589},{590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606},{607,608,609,610,611,612,613,614,615},{616,617,618,619,620,621},{622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638},{639,640,641,642,643,644,645,646,647},{648,649,650,651,652,653},{654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669},{670,671,672,673,674,675,676,677},{678,679,680,681,682,683},{684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699},{700,701,702,703,704,705,706,707},{708,709,710,711,712,713},{714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729},{730,731,732,733,734,735,736,737},{738,739,740,741,742,743}}; // set of shipments in each bid 
int SHsts[SPN]={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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,2,6,10,14,18,22,26,30,2,8,14,20,26,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,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,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,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,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,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,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,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,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,33,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,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,34,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,34,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,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,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,1,5,9,13,17,21,25,29,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,5,9,13,17,21,25,29,0,6,12,18,24,30}; // 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,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,7,11,15,19,23,27,31,35,7,13,19,25,31,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,6,12,18,24,30,3,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,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,4,10,16,22,28,34,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,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,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,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,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,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,3,9,15,21,27,33,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,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,1,5,9,13,17,21,25,29,33,3,9,15,21,27,33,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,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,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,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,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,3,9,15,21,27,33}; // set of end times of each shipment 
