int Dev = 10;// 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 = 750;//Number of shipments
extern const int SN = 20;//Number of scenarios at each stage
extern const int MBSN = 18;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6,6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17},{18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{12214,0,0,0,0,0},{12499,0,0,0,0,0},{12645,0,0,0,0,0},{12161,0,0,0,0,0},{12569,0,0,0,0,0},{12332,0,0,0,0,0},{12435,0,0,0,0,0},{12255,0,0,0,0,0},{12518,0,0,0,0,0},{12460,0,0,0,0,0},{12272,0,0,0,0,0},{12397,0,0,0,0,0},{12403,0,0,0,0,0},{12410,0,0,0,0,0},{12368,0,0,0,0,0},{12536,0,0,0,0,0},{12367,0,0,0,0,0},{12517,0,0,0,0,0},{12522,0,0,0,0,0},{12595,0,0,0,0,0}},{{12228,0,0,0,0,0},{12562,0,0,0,0,0},{12530,0,0,0,0,0},{12465,0,0,0,0,0},{12476,0,0,0,0,0},{12499,0,0,0,0,0},{12627,0,0,0,0,0},{12469,0,0,0,0,0},{12346,0,0,0,0,0},{12339,0,0,0,0,0},{12370,0,0,0,0,0},{12250,0,0,0,0,0},{12536,0,0,0,0,0},{12540,0,0,0,0,0},{12337,0,0,0,0,0},{12285,0,0,0,0,0},{12486,0,0,0,0,0},{12493,0,0,0,0,0},{12465,0,0,0,0,0},{12245,0,0,0,0,0}},{{11615,0,0,0,0,0},{11610,0,0,0,0,0},{11402,0,0,0,0,0},{11592,0,0,0,0,0},{11474,0,0,0,0,0},{11473,0,0,0,0,0},{11407,0,0,0,0,0},{11610,0,0,0,0,0},{11513,0,0,0,0,0},{11650,0,0,0,0,0},{11610,0,0,0,0,0},{11483,0,0,0,0,0},{11560,0,0,0,0,0},{11638,0,0,0,0,0},{11504,0,0,0,0,0},{11477,0,0,0,0,0},{11665,0,0,0,0,0},{11623,0,0,0,0,0},{11639,0,0,0,0,0},{11668,0,0,0,0,0}},{{10491,0,0,0,0,0},{10210,0,0,0,0,0},{10303,0,0,0,0,0},{10427,0,0,0,0,0},{10555,0,0,0,0,0},{10191,0,0,0,0,0},{10224,0,0,0,0,0},{10314,0,0,0,0,0},{10575,0,0,0,0,0},{10500,0,0,0,0,0},{10401,0,0,0,0,0},{10367,0,0,0,0,0},{10331,0,0,0,0,0},{10555,0,0,0,0,0},{10465,0,0,0,0,0},{10337,0,0,0,0,0},{10351,0,0,0,0,0},{10284,0,0,0,0,0},{10013,0,0,0,0,0},{10445,0,0,0,0,0}},{{9557,0,0,0,0,0},{9339,0,0,0,0,0},{9684,0,0,0,0,0},{9410,0,0,0,0,0},{9460,0,0,0,0,0},{9539,0,0,0,0,0},{9460,0,0,0,0,0},{9549,0,0,0,0,0},{9528,0,0,0,0,0},{9527,0,0,0,0,0},{9506,0,0,0,0,0},{9438,0,0,0,0,0},{9416,0,0,0,0,0},{9552,0,0,0,0,0},{9462,0,0,0,0,0},{9550,0,0,0,0,0},{9406,0,0,0,0,0},{9354,0,0,0,0,0},{9584,0,0,0,0,0},{9471,0,0,0,0,0}},{{9078,0,0,0,0,0},{9193,0,0,0,0,0},{9395,0,0,0,0,0},{9302,0,0,0,0,0},{9256,0,0,0,0,0},{9247,0,0,0,0,0},{9258,0,0,0,0,0},{9217,0,0,0,0,0},{9168,0,0,0,0,0},{9194,0,0,0,0,0},{9344,0,0,0,0,0},{9140,0,0,0,0,0},{9249,0,0,0,0,0},{9184,0,0,0,0,0},{9175,0,0,0,0,0},{9211,0,0,0,0,0},{9248,0,0,0,0,0},{9352,0,0,0,0,0},{9273,0,0,0,0,0},{9217,0,0,0,0,0}}},{{{-268,-291,-300,-312,-300,-285},{-270,-273,-297,-320,-276,-297},{-320,-270,-323,-323,-294,-273},{-268,-318,-300,-270,-273,-306},{-303,-268,-282,-300,-294,-312},{-273,-265,-306,-279,-315,-300},{-312,-297,-279,-268,-265,-320},{-273,-273,-273,-312,-306,-303},{-270,-288,-312,-285,-315,-282},{-297,-315,-285,-306,-265,-312},{-270,-279,-276,-300,-291,-294},{-323,-303,-273,-282,-300,-291},{-288,-300,-318,-265,-270,-306},{-291,-285,-300,-312,-265,-291},{-265,-303,-268,-270,-265,-276},{-270,-323,-300,-318,-270,-294},{-323,-318,-312,-303,-320,-303},{-303,-315,-320,-300,-309,-306},{-323,-323,-312,-288,-288,-276},{-300,-297,-309,-306,-306,-320}},{{-278,-295,-263,-282,-248,-254},{-270,-292,-283,-271,-278,-272},{-310,-292,-302,-279,-272,-272},{-310,-303,-274,-296,-275,-282},{-296,-266,-252,-288,-262,-249},{-313,-283,-274,-269,-286,-277},{-313,-280,-294,-290,-283,-275},{-299,-309,-280,-247,-254,-277},{-290,-303,-297,-258,-288,-251},{-304,-269,-280,-274,-291,-254},{-267,-289,-305,-290,-272,-241},{-276,-303,-263,-279,-240,-269},{-284,-295,-308,-285,-272,-285},{-278,-272,-280,-293,-288,-249},{-290,-312,-283,-260,-259,-269},{-313,-312,-297,-260,-246,-259},{-313,-297,-260,-282,-267,-249},{-296,-280,-288,-255,-288,-246},{-261,-303,-283,-279,-248,-277},{-310,-277,-266,-252,-267,-233}},{{-272,-227,-256,-211,-193,-210},{-242,-247,-240,-235,-193,-190},{-238,-264,-256,-224,-205,-225},{-262,-261,-247,-215,-220,-187},{-232,-252,-242,-215,-218,-185},{-248,-249,-226,-211,-193,-214},{-250,-227,-224,-231,-197,-194},{-248,-261,-226,-215,-227,-214},{-265,-240,-235,-217,-233,-192},{-245,-247,-247,-242,-223,-192},{-258,-247,-252,-242,-208,-194},{-275,-240,-238,-228,-197,-214},{-245,-237,-231,-206,-193,-227},{-248,-227,-238,-244,-227,-208},{-275,-237,-247,-208,-225,-208},{-242,-252,-240,-213,-195,-200},{-270,-240,-240,-240,-214,-187},{-258,-266,-245,-224,-199,-222},{-228,-261,-242,-246,-231,-208},{-262,-249,-254,-237,-235,-196}},{{-179,-170,-175,-167,-163,-144},{-179,-196,-192,-157,-172,-158},{-181,-168,-168,-158,-163,-150},{-181,-200,-172,-189,-160,-176},{-187,-200,-166,-157,-180,-174},{-177,-168,-163,-177,-155,-150},{-195,-170,-181,-184,-177,-149},{-211,-198,-161,-172,-162,-147},{-215,-178,-172,-179,-180,-163},{-189,-193,-181,-170,-152,-174},{-205,-206,-181,-157,-155,-154},{-193,-170,-161,-175,-155,-165},{-199,-206,-177,-160,-178,-147},{-205,-202,-163,-177,-160,-168},{-213,-187,-165,-186,-150,-155},{-177,-170,-175,-177,-155,-147},{-213,-168,-174,-170,-157,-160},{-185,-181,-183,-174,-165,-157},{-185,-180,-183,-165,-162,-166},{-215,-178,-184,-189,-153,-170}},{{-160,-155,-144,-143,-151,-148},{-146,-146,-143,-134,-140,-150},{-159,-159,-138,-154,-157,-148},{-151,-148,-138,-137,-137,-132},{-139,-140,-153,-143,-140,-148},{-139,-143,-160,-162,-162,-134},{-162,-161,-140,-157,-132,-159},{-148,-153,-146,-134,-137,-138},{-140,-142,-134,-151,-135,-141},{-151,-153,-146,-141,-140,-159},{-146,-137,-143,-138,-137,-160},{-152,-164,-157,-157,-134,-162},{-143,-145,-146,-134,-134,-135},{-140,-150,-162,-153,-154,-140},{-166,-158,-160,-137,-150,-138},{-160,-161,-141,-159,-143,-162},{-157,-155,-134,-148,-141,-159},{-140,-143,-146,-143,-144,-138},{-157,-139,-154,-132,-162,-134},{-156,-143,-154,-138,-141,-150}},{{-160,-144,-137,-148,-158,-155},{-156,-159,-149,-169,-147,-152},{-159,-154,-153,-143,-167,-164},{-159,-141,-162,-159,-148,-175},{-148,-134,-157,-149,-172,-162},{-162,-143,-162,-145,-158,-159},{-150,-159,-159,-146,-161,-162},{-157,-159,-166,-160,-161,-159},{-150,-143,-159,-145,-167,-170},{-156,-137,-146,-143,-158,-184},{-148,-138,-153,-160,-172,-172},{-153,-156,-139,-139,-166,-159},{-132,-148,-146,-140,-156,-162},{-144,-148,-143,-166,-161,-174},{-141,-160,-139,-140,-148,-159},{-141,-146,-151,-157,-172,-160},{-134,-146,-137,-163,-171,-162},{-150,-160,-165,-168,-167,-184},{-137,-157,-163,-145,-166,-169},{-150,-154,-142,-143,-164,-154}}},{{{-168,-157,-170,-165,-197,-185},{-168,-174,-186,-181,-191,-176},{-165,-159,-172,-197,-193,-193},{-183,-164,-187,-184,-201,-199},{-155,-166,-178,-181,-169,-195},{-161,-159,-178,-193,-171,-201},{-158,-171,-163,-186,-201,-210},{-178,-177,-177,-168,-199,-208},{-180,-186,-161,-186,-178,-178},{-171,-159,-178,-181,-166,-181},{-178,-172,-187,-181,-199,-181},{-155,-164,-163,-170,-195,-189},{-183,-154,-170,-168,-178,-176},{-183,-152,-161,-181,-177,-206},{-155,-155,-177,-193,-186,-183},{-175,-181,-173,-161,-191,-195},{-166,-186,-158,-172,-169,-210},{-160,-169,-177,-174,-186,-208},{-175,-162,-180,-193,-177,-187},{-166,-181,-166,-190,-193,-199}},{{-182,-203,-219,-201,-213,-243},{-210,-197,-226,-225,-238,-255},{-214,-207,-194,-239,-238,-221},{-196,-209,-213,-225,-227,-224},{-210,-226,-217,-228,-231,-259},{-216,-191,-198,-232,-231,-240},{-192,-213,-215,-230,-240,-233},{-180,-203,-192,-234,-213,-259},{-182,-223,-204,-217,-234,-214},{-192,-221,-196,-199,-220,-224},{-204,-189,-192,-239,-206,-257},{-202,-193,-207,-225,-231,-245},{-210,-187,-213,-239,-227,-236},{-206,-226,-207,-203,-218,-226},{-186,-211,-194,-214,-206,-259},{-218,-197,-213,-208,-231,-217},{-200,-209,-211,-217,-220,-221},{-194,-201,-234,-214,-236,-231},{-206,-187,-209,-241,-215,-252},{-206,-191,-211,-199,-213,-238}},{{-264,-265,-238,-294,-249,-308},{-245,-240,-236,-273,-266,-272},{-230,-242,-257,-275,-258,-277},{-269,-260,-280,-259,-288,-269},{-230,-255,-267,-248,-277,-258},{-222,-265,-252,-243,-277,-258},{-245,-250,-236,-243,-302,-269},{-232,-247,-259,-275,-249,-303},{-252,-242,-265,-254,-249,-255},{-249,-240,-278,-246,-266,-260},{-240,-247,-244,-297,-285,-306},{-252,-235,-283,-292,-271,-294},{-267,-263,-280,-284,-255,-255},{-242,-265,-283,-243,-280,-272},{-227,-255,-252,-262,-305,-260},{-237,-270,-283,-270,-258,-280},{-247,-273,-272,-251,-271,-303},{-272,-275,-280,-251,-274,-266},{-247,-245,-238,-278,-258,-260},{-257,-255,-249,-294,-274,-258}},{{-292,-318,-286,-307,-322,-277},{-263,-265,-271,-301,-322,-316},{-298,-288,-289,-307,-313,-325},{-266,-306,-289,-331,-331,-307},{-306,-312,-316,-331,-316,-328},{-266,-279,-271,-313,-280,-271},{-303,-265,-268,-298,-310,-277},{-295,-265,-280,-301,-280,-328},{-283,-320,-298,-295,-301,-298},{-306,-300,-304,-310,-322,-313},{-280,-270,-307,-289,-328,-271},{-286,-323,-295,-319,-301,-283},{-286,-268,-271,-307,-325,-304},{-269,-320,-310,-325,-322,-307},{-289,-315,-283,-298,-316,-286},{-315,-276,-286,-328,-271,-289},{-301,-273,-295,-331,-271,-316},{-266,-268,-325,-280,-280,-283},{-301,-288,-268,-307,-304,-280},{-309,-291,-271,-307,-322,-289}},{{-310,-277,-304,-288,-268,-267},{-277,-274,-289,-309,-276,-273},{-298,-331,-280,-315,-309,-304},{-310,-286,-274,-303,-309,-281},{-319,-283,-286,-291,-315,-290},{-292,-277,-307,-288,-273,-296},{-319,-310,-289,-330,-279,-299},{-322,-289,-328,-285,-312,-276},{-295,-313,-316,-315,-318,-307},{-328,-319,-298,-273,-297,-299},{-331,-325,-304,-276,-288,-319},{-280,-304,-322,-324,-285,-264},{-271,-316,-292,-276,-306,-319},{-310,-319,-322,-300,-318,-267},{-316,-286,-328,-288,-282,-261},{-295,-319,-307,-312,-306,-319},{-298,-319,-304,-309,-291,-261},{-301,-310,-322,-306,-285,-284},{-328,-289,-295,-312,-309,-290},{-292,-280,-301,-306,-270,-264}},{{-271,-273,-247,-251,-259,-226},{-294,-279,-244,-238,-256,-226},{-308,-299,-263,-280,-251,-241},{-299,-307,-257,-238,-266,-253},{-288,-307,-263,-275,-274,-233},{-291,-262,-276,-275,-236,-260},{-259,-265,-298,-253,-253,-258},{-259,-251,-298,-264,-251,-253},{-282,-268,-249,-253,-279,-233},{-265,-251,-244,-288,-238,-260},{-274,-282,-293,-285,-248,-268},{-274,-254,-287,-290,-248,-226},{-265,-301,-266,-253,-279,-255},{-262,-254,-247,-261,-248,-255},{-274,-271,-268,-272,-259,-255},{-271,-299,-247,-264,-253,-226},{-279,-254,-247,-261,-269,-253},{-259,-273,-298,-267,-248,-246},{-296,-293,-244,-288,-236,-263},{-302,-282,-247,-251,-264,-250}}},{{{-329,-332,-299,-339,-336,-299},{-355,-359,-355,-355,-339,-319},{-319,-355,-359,-296,-349,-359},{-355,-299,-299,-299,-355,-313},{-313,-329,-322,-362,-349,-329},{-309,-359,-345,-359,-326,-299},{-355,-306,-332,-359,-326,-306},{-362,-345,-326,-326,-329,-336},{-326,-332,-306,-352,-303,-322},{-332,-342,-313,-319,-329,-355},{-359,-342,-296,-303,-306,-299},{-306,-362,-342,-326,-319,-309},{-352,-306,-309,-309,-355,-336},{-355,-362,-326,-336,-332,-329},{-309,-309,-319,-345,-345,-362},{-339,-355,-332,-322,-349,-355},{-355,-316,-313,-355,-362,-329},{-313,-362,-342,-342,-359,-362},{-359,-336,-359,-332,-332,-359},{-332,-326,-336,-309,-359,-345}},{{-321,-322,-351,-345,-317,-298},{-358,-290,-319,-286,-333,-310},{-318,-348,-293,-286,-296,-322},{-361,-335,-329,-295,-314,-307},{-321,-303,-287,-314,-296,-319},{-348,-316,-319,-305,-293,-277},{-358,-328,-290,-320,-308,-319},{-325,-328,-290,-283,-330,-298},{-295,-345,-319,-283,-314,-280},{-298,-335,-322,-292,-283,-289},{-315,-348,-300,-323,-277,-295},{-318,-341,-293,-298,-314,-313},{-315,-335,-319,-330,-336,-274},{-328,-290,-351,-311,-326,-328},{-308,-319,-309,-345,-280,-298},{-302,-325,-287,-339,-320,-310},{-328,-335,-290,-330,-333,-271},{-312,-312,-316,-305,-320,-319},{-341,-293,-329,-336,-283,-322},{-328,-322,-329,-308,-302,-274}},{{-324,-300,-297,-288,-252,-254},{-289,-271,-294,-258,-270,-270},{-298,-308,-258,-283,-254,-239},{-266,-282,-274,-286,-289,-283},{-301,-271,-291,-283,-262,-262},{-268,-294,-294,-267,-262,-280},{-307,-288,-258,-250,-262,-278},{-304,-305,-297,-253,-281,-257},{-286,-276,-291,-283,-289,-275},{-324,-259,-274,-288,-249,-283},{-286,-262,-280,-286,-249,-272},{-292,-259,-277,-250,-265,-252},{-307,-294,-288,-294,-265,-280},{-310,-291,-283,-294,-262,-260},{-322,-279,-286,-269,-270,-234},{-301,-297,-255,-283,-246,-244},{-324,-297,-277,-299,-260,-260},{-277,-265,-294,-269,-265,-260},{-268,-265,-302,-269,-268,-278},{-313,-271,-291,-269,-273,-280}},{{-230,-228,-230,-243,-240,-237},{-238,-250,-225,-224,-240,-234},{-250,-245,-242,-233,-217,-201},{-230,-219,-232,-229,-235,-226},{-265,-258,-216,-215,-208,-201},{-230,-228,-232,-238,-240,-210},{-255,-231,-213,-210,-208,-197},{-272,-238,-228,-226,-222,-204},{-248,-265,-261,-238,-233,-241},{-238,-248,-254,-247,-224,-210},{-228,-253,-261,-247,-244,-223},{-272,-221,-251,-213,-233,-199},{-270,-228,-232,-240,-231,-206},{-272,-253,-246,-233,-204,-234},{-230,-260,-254,-210,-235,-223},{-235,-262,-242,-213,-237,-228},{-235,-238,-242,-219,-213,-230},{-258,-262,-251,-210,-233,-221},{-250,-219,-213,-217,-213,-208},{-225,-258,-213,-252,-237,-206}},{{-234,-200,-206,-227,-220,-195},{-215,-189,-229,-210,-208,-218},{-226,-216,-191,-210,-195,-204},{-197,-216,-193,-218,-223,-223},{-200,-223,-193,-206,-214,-229},{-237,-225,-206,-231,-197,-189},{-202,-206,-189,-220,-216,-218},{-217,-212,-200,-214,-204,-195},{-197,-218,-204,-193,-218,-200},{-237,-220,-189,-223,-229,-220},{-197,-231,-218,-189,-229,-193},{-206,-214,-218,-197,-191,-218},{-230,-197,-212,-200,-218,-220},{-228,-227,-223,-200,-218,-204},{-210,-225,-204,-204,-225,-204},{-202,-197,-223,-206,-225,-204},{-217,-189,-220,-225,-214,-189},{-213,-193,-210,-197,-229,-220},{-200,-212,-220,-227,-189,-197},{-197,-225,-231,-197,-210,-210}},{{-220,-210,-209,-221,-209,-227},{-204,-204,-207,-234,-209,-205},{-225,-204,-215,-204,-235,-220},{-225,-208,-205,-208,-213,-216},{-231,-191,-196,-232,-211,-218},{-220,-220,-194,-226,-202,-220},{-227,-218,-196,-200,-229,-230},{-189,-225,-228,-226,-231,-245},{-193,-202,-194,-232,-231,-212},{-218,-223,-203,-219,-222,-238},{-231,-220,-228,-228,-200,-241},{-223,-214,-215,-195,-235,-248},{-216,-208,-198,-210,-207,-230},{-225,-197,-219,-239,-198,-232},{-225,-220,-219,-221,-211,-227},{-202,-204,-213,-228,-207,-205},{-202,-229,-203,-195,-242,-214},{-206,-195,-219,-197,-205,-212},{-193,-189,-196,-224,-198,-202},{-227,-202,-211,-200,-220,-234}}},{{{-94,-109,-104,-118,-126,-122},{-109,-109,-115,-112,-131,-115},{-112,-105,-109,-126,-131,-140},{-114,-111,-108,-112,-131,-136},{-112,-110,-104,-122,-129,-132},{-108,-104,-122,-113,-123,-134},{-100,-100,-116,-110,-123,-118},{-114,-107,-109,-111,-127,-118},{-104,-103,-104,-123,-115,-140},{-116,-110,-123,-119,-122,-137},{-112,-116,-119,-121,-110,-125},{-102,-111,-114,-117,-134,-115},{-94,-114,-122,-108,-123,-115},{-94,-99,-123,-128,-122,-128},{-116,-116,-103,-129,-120,-116},{-107,-98,-104,-122,-131,-129},{-96,-106,-119,-125,-115,-119},{-104,-116,-103,-106,-124,-136},{-103,-116,-103,-105,-116,-125},{-102,-113,-104,-121,-126,-127}},{{-138,-142,-147,-166,-161,-181},{-123,-138,-163,-140,-156,-170},{-126,-152,-160,-155,-167,-180},{-146,-130,-157,-170,-145,-183},{-135,-151,-152,-146,-147,-176},{-131,-147,-145,-166,-163,-153},{-146,-142,-151,-150,-156,-151},{-148,-128,-141,-160,-164,-185},{-143,-147,-144,-161,-164,-183},{-140,-135,-149,-169,-169,-165},{-134,-155,-147,-160,-153,-170},{-147,-128,-161,-170,-153,-163},{-147,-155,-151,-170,-163,-155},{-132,-137,-148,-170,-164,-166},{-132,-134,-144,-163,-166,-153},{-123,-133,-148,-158,-147,-151},{-147,-151,-163,-153,-166,-156},{-144,-134,-160,-150,-167,-165},{-124,-144,-139,-146,-163,-160},{-144,-145,-163,-144,-167,-165}},{{-170,-193,-186,-205,-216,-202},{-193,-171,-169,-203,-188,-216},{-193,-178,-173,-196,-204,-208},{-170,-175,-171,-175,-198,-216},{-168,-176,-205,-173,-206,-210},{-182,-162,-192,-177,-208,-184},{-182,-198,-186,-205,-212,-190},{-189,-193,-173,-200,-186,-184},{-186,-189,-167,-190,-202,-206},{-184,-171,-171,-186,-194,-200},{-161,-194,-195,-177,-208,-216},{-178,-173,-184,-192,-182,-178},{-166,-175,-190,-179,-176,-178},{-180,-198,-184,-175,-202,-200},{-175,-187,-173,-190,-202,-206},{-170,-169,-193,-186,-212,-178},{-170,-191,-195,-196,-208,-180},{-173,-169,-169,-180,-194,-180},{-184,-180,-195,-192,-180,-192},{-175,-164,-192,-192,-184,-212}},{{-201,-223,-207,-223,-215,-193},{-189,-191,-191,-211,-193,-199},{-207,-195,-205,-215,-217,-183},{-197,-215,-205,-221,-193,-195},{-219,-201,-199,-187,-211,-217},{-211,-185,-223,-207,-223,-207},{-213,-189,-219,-209,-193,-193},{-183,-219,-201,-201,-205,-191},{-201,-215,-217,-209,-205,-199},{-203,-205,-195,-197,-205,-189},{-193,-185,-191,-203,-223,-197},{-209,-217,-207,-215,-221,-189},{-217,-191,-201,-209,-207,-203},{-195,-185,-197,-193,-183,-223},{-201,-209,-195,-197,-223,-199},{-219,-195,-205,-205,-187,-217},{-221,-207,-211,-217,-191,-183},{-187,-199,-189,-197,-183,-215},{-193,-195,-219,-215,-197,-197},{-217,-191,-183,-193,-209,-203}},{{-185,-211,-213,-191,-204,-191},{-219,-183,-179,-201,-198,-177},{-183,-205,-197,-211,-197,-199},{-201,-209,-217,-185,-181,-173},{-203,-217,-183,-199,-200,-173},{-205,-209,-191,-197,-206,-186},{-201,-191,-209,-176,-181,-175},{-199,-217,-197,-205,-176,-178},{-213,-187,-215,-181,-200,-195},{-187,-191,-187,-195,-176,-186},{-209,-185,-189,-203,-187,-190},{-213,-201,-213,-183,-170,-199},{-221,-213,-193,-185,-170,-175},{-207,-197,-201,-197,-198,-201},{-217,-191,-211,-191,-204,-167},{-211,-183,-187,-207,-191,-191},{-191,-193,-207,-215,-191,-167},{-211,-195,-193,-197,-208,-184},{-195,-221,-205,-205,-174,-195},{-217,-211,-185,-195,-208,-184}},{{-168,-189,-175,-174,-142,-135},{-168,-185,-157,-147,-158,-156},{-166,-178,-180,-174,-155,-157},{-181,-159,-184,-152,-148,-148},{-172,-176,-162,-149,-141,-157},{-181,-180,-184,-158,-156,-140},{-192,-171,-164,-173,-150,-137},{-165,-161,-169,-166,-161,-140},{-181,-189,-169,-152,-153,-140},{-174,-183,-167,-176,-138,-153},{-174,-156,-164,-144,-164,-137},{-188,-180,-179,-144,-138,-160},{-175,-189,-169,-165,-168,-137},{-181,-180,-157,-155,-141,-141},{-190,-166,-177,-174,-159,-150},{-166,-185,-174,-147,-165,-151},{-197,-171,-174,-146,-153,-150},{-188,-182,-184,-170,-145,-141},{-172,-189,-177,-174,-142,-154},{-190,-166,-165,-150,-156,-141}}},{{{-212,-240,-243,-224,-243,-262},{-252,-224,-257,-217,-221,-233},{-240,-217,-243,-214,-243,-228},{-219,-226,-240,-214,-219,-243},{-228,-224,-245,-243,-262,-238},{-233,-250,-228,-214,-233,-259},{-221,-236,-217,-255,-257,-252},{-210,-219,-243,-219,-233,-226},{-254,-259,-240,-214,-221,-257},{-233,-248,-226,-224,-262,-233},{-224,-245,-255,-248,-255,-257},{-254,-238,-236,-245,-236,-259},{-224,-257,-245,-262,-233,-255},{-231,-221,-248,-238,-226,-245},{-247,-245,-231,-240,-231,-248},{-242,-231,-252,-238,-214,-259},{-242,-255,-224,-231,-243,-226},{-226,-245,-238,-257,-240,-221},{-231,-228,-243,-221,-236,-217},{-240,-250,-255,-214,-236,-245}},{{-221,-224,-221,-215,-249,-206},{-259,-236,-254,-219,-249,-239},{-248,-226,-249,-231,-246,-208},{-228,-217,-223,-222,-203,-212},{-226,-248,-230,-224,-244,-243},{-221,-252,-258,-238,-235,-236},{-262,-231,-244,-252,-210,-210},{-231,-255,-242,-249,-233,-228},{-243,-240,-226,-252,-210,-225},{-255,-245,-219,-229,-235,-234},{-243,-250,-256,-210,-219,-206},{-245,-226,-247,-219,-240,-243},{-252,-233,-212,-252,-235,-212},{-228,-226,-221,-236,-203,-206},{-250,-219,-221,-208,-217,-221},{-259,-236,-242,-224,-208,-214},{-259,-226,-223,-208,-246,-223},{-252,-236,-247,-238,-219,-225},{-259,-240,-256,-247,-235,-206},{-245,-236,-256,-245,-240,-201}},{{-219,-205,-200,-179,-202,-171},{-232,-188,-182,-215,-198,-173},{-209,-215,-182,-176,-191,-169},{-200,-190,-194,-191,-181,-169},{-237,-224,-184,-195,-172,-182},{-202,-188,-210,-197,-181,-162},{-206,-211,-208,-187,-172,-194},{-204,-215,-186,-177,-187,-194},{-202,-188,-200,-191,-191,-193},{-232,-215,-190,-187,-189,-185},{-209,-188,-194,-197,-170,-196},{-226,-211,-188,-207,-174,-193},{-211,-213,-182,-195,-185,-194},{-226,-222,-206,-185,-172,-173},{-232,-228,-214,-185,-185,-169},{-196,-192,-222,-179,-191,-196},{-228,-190,-196,-201,-193,-175},{-194,-222,-210,-213,-176,-198},{-234,-215,-202,-215,-189,-175},{-215,-203,-194,-191,-178,-178}},{{-169,-163,-171,-158,-131,-149},{-170,-167,-170,-150,-147,-135},{-179,-148,-157,-150,-154,-144},{-184,-168,-165,-158,-148,-142},{-189,-177,-168,-158,-144,-148},{-158,-153,-144,-160,-135,-144},{-177,-148,-157,-156,-134,-146},{-165,-167,-141,-165,-157,-139},{-187,-170,-166,-160,-145,-149},{-175,-155,-143,-135,-141,-135},{-165,-153,-170,-165,-143,-146},{-182,-160,-143,-160,-147,-148},{-167,-168,-163,-146,-135,-124},{-189,-160,-162,-146,-134,-144},{-167,-172,-160,-148,-153,-145},{-182,-157,-159,-162,-131,-139},{-169,-180,-152,-159,-130,-144},{-187,-153,-166,-150,-135,-148},{-157,-177,-144,-135,-138,-137},{-174,-170,-162,-154,-141,-149}},{{-120,-130,-129,-131,-131,-129},{-126,-134,-129,-109,-131,-120},{-122,-135,-134,-123,-130,-114},{-137,-113,-130,-108,-112,-112},{-129,-139,-120,-111,-119,-130},{-121,-139,-114,-123,-126,-126},{-120,-135,-115,-127,-113,-113},{-142,-136,-117,-121,-131,-126},{-125,-139,-133,-124,-119,-124},{-136,-116,-118,-119,-121,-108},{-129,-129,-131,-109,-123,-119},{-145,-113,-136,-131,-118,-123},{-129,-136,-120,-113,-130,-112},{-129,-115,-133,-120,-124,-119},{-137,-123,-113,-124,-131,-121},{-121,-126,-135,-124,-123,-112},{-134,-126,-128,-131,-123,-124},{-125,-122,-123,-107,-117,-109},{-141,-129,-124,-114,-130,-126},{-121,-125,-136,-123,-111,-109}},{{-111,-131,-115,-119,-122,-118},{-125,-118,-124,-124,-129,-123},{-118,-113,-107,-127,-121,-132},{-124,-118,-114,-121,-110,-118},{-108,-114,-125,-111,-134,-136},{-109,-130,-131,-124,-115,-126},{-127,-108,-109,-129,-117,-121},{-131,-113,-111,-111,-126,-137},{-131,-113,-123,-125,-121,-136},{-121,-123,-129,-113,-132,-120},{-125,-118,-124,-113,-127,-120},{-107,-121,-108,-111,-110,-127},{-118,-130,-120,-109,-122,-125},{-115,-127,-115,-127,-111,-129},{-118,-108,-127,-111,-118,-123},{-112,-126,-127,-113,-118,-120},{-127,-113,-109,-108,-121,-126},{-124,-129,-125,-108,-113,-136},{-112,-117,-112,-130,-120,-136},{-125,-127,-111,-114,-115,-125}}},{{{-269,-242,-279,-253,-239,-255},{-279,-261,-269,-242,-293,-285},{-293,-279,-245,-258,-290,-293},{-242,-250,-239,-266,-247,-271},{-293,-290,-250,-266,-269,-287},{-277,-279,-285,-290,-253,-282},{-293,-271,-290,-266,-245,-258},{-274,-242,-274,-258,-269,-253},{-255,-258,-287,-285,-287,-285},{-285,-290,-255,-247,-271,-253},{-266,-261,-261,-271,-242,-277},{-255,-261,-285,-247,-253,-269},{-293,-269,-277,-250,-245,-279},{-242,-279,-250,-293,-269,-274},{-290,-250,-239,-290,-263,-282},{-247,-250,-282,-287,-261,-287},{-282,-239,-247,-263,-242,-239},{-282,-266,-255,-274,-282,-242},{-279,-255,-247,-250,-271,-266},{-245,-285,-269,-253,-290,-290}},{{-253,-287,-271,-285,-270,-241},{-258,-293,-261,-269,-246,-256},{-274,-242,-255,-263,-267,-246},{-290,-269,-277,-274,-238,-238},{-293,-285,-255,-269,-283,-254},{-239,-277,-269,-239,-283,-262},{-293,-255,-282,-285,-252,-249},{-290,-277,-274,-263,-241,-262},{-274,-271,-263,-253,-265,-251},{-245,-266,-269,-250,-252,-243},{-269,-258,-269,-274,-288,-238},{-245,-247,-274,-255,-278,-251},{-245,-290,-253,-290,-272,-285},{-245,-277,-245,-290,-270,-251},{-253,-263,-293,-285,-257,-264},{-247,-258,-285,-274,-286,-246},{-242,-242,-290,-258,-288,-249},{-282,-271,-277,-239,-257,-275},{-290,-263,-263,-279,-246,-243},{-269,-258,-293,-261,-252,-243}},{{-256,-271,-267,-243,-230,-222},{-264,-276,-270,-258,-228,-219},{-246,-228,-234,-223,-260,-265},{-275,-261,-244,-260,-260,-251},{-233,-240,-255,-253,-240,-227},{-254,-253,-277,-246,-267,-227},{-241,-240,-227,-255,-228,-248},{-259,-250,-260,-246,-238,-263},{-254,-253,-272,-236,-260,-222},{-272,-273,-265,-258,-243,-246},{-272,-271,-239,-248,-262,-229},{-280,-263,-244,-241,-240,-253},{-277,-250,-265,-238,-267,-243},{-259,-245,-234,-223,-255,-229},{-243,-273,-237,-241,-228,-265},{-280,-248,-234,-231,-267,-229},{-251,-238,-257,-241,-223,-246},{-246,-233,-242,-263,-252,-253},{-269,-256,-262,-246,-255,-227},{-275,-261,-242,-248,-247,-241}},{{-250,-240,-254,-253,-226,-220},{-217,-223,-233,-218,-208,-215},{-243,-216,-236,-230,-244,-222},{-236,-223,-208,-237,-208,-220},{-226,-240,-208,-221,-228,-246},{-224,-258,-222,-207,-237,-226},{-231,-251,-252,-218,-211,-246},{-252,-244,-224,-232,-228,-217},{-248,-223,-236,-237,-224,-215},{-231,-256,-233,-248,-228,-235},{-252,-258,-238,-223,-246,-215},{-217,-221,-208,-244,-244,-224},{-217,-235,-222,-237,-220,-231},{-252,-258,-249,-207,-235,-235},{-262,-221,-254,-223,-220,-208},{-257,-230,-229,-207,-226,-226},{-240,-230,-238,-248,-246,-211},{-257,-216,-213,-230,-237,-235},{-252,-237,-215,-221,-206,-208},{-240,-249,-226,-244,-242,-228}},{{-242,-237,-230,-197,-224,-208},{-240,-234,-197,-208,-221,-197},{-235,-210,-226,-200,-226,-230},{-222,-200,-234,-230,-221,-230},{-238,-237,-221,-237,-197,-234},{-222,-224,-221,-230,-226,-237},{-209,-213,-208,-234,-232,-232},{-211,-224,-219,-213,-213,-215},{-218,-237,-195,-237,-239,-208},{-222,-208,-206,-219,-217,-228},{-211,-197,-219,-213,-210,-232},{-205,-195,-230,-217,-213,-202},{-205,-210,-197,-210,-221,-213},{-213,-232,-204,-213,-197,-239},{-233,-221,-202,-228,-224,-206},{-227,-202,-234,-215,-200,-224},{-202,-206,-204,-197,-197,-239},{-198,-237,-197,-200,-226,-224},{-216,-210,-215,-215,-210,-230},{-205,-213,-195,-219,-239,-217}},{{-204,-219,-213,-213,-204,-210},{-234,-237,-230,-200,-217,-239},{-215,-226,-224,-208,-204,-234},{-213,-239,-195,-195,-226,-237},{-195,-213,-230,-202,-217,-226},{-195,-217,-195,-204,-228,-239},{-204,-234,-213,-219,-232,-237},{-197,-197,-224,-208,-228,-204},{-210,-237,-224,-206,-202,-200},{-215,-213,-208,-197,-217,-210},{-204,-228,-195,-226,-224,-210},{-217,-224,-213,-232,-228,-224},{-226,-217,-232,-224,-210,-234},{-230,-210,-213,-206,-219,-200},{-206,-230,-210,-232,-221,-200},{-228,-215,-234,-237,-230,-204},{-195,-204,-226,-195,-224,-228},{-221,-226,-195,-221,-195,-217},{-226,-221,-226,-230,-217,-219},{-221,-202,-237,-202,-239,-228}}},{{{-295,-286,-301,-277,-325,-281},{-310,-277,-280,-301,-289,-284},{-271,-307,-310,-286,-313,-317},{-328,-295,-271,-277,-292,-269},{-328,-322,-289,-298,-304,-302},{-286,-307,-286,-292,-274,-272},{-298,-304,-316,-319,-286,-287},{-310,-310,-283,-271,-301,-311},{-313,-301,-304,-322,-319,-305},{-322,-316,-277,-325,-331,-266},{-274,-289,-277,-319,-313,-281},{-307,-298,-304,-325,-280,-314},{-319,-292,-286,-310,-313,-269},{-313,-286,-280,-331,-271,-275},{-310,-316,-298,-280,-325,-290},{-307,-277,-301,-286,-313,-284},{-301,-271,-295,-289,-286,-284},{-289,-289,-283,-307,-304,-266},{-322,-322,-304,-328,-301,-293},{-313,-313,-319,-286,-280,-311}},{{-267,-298,-255,-273,-241,-244},{-284,-296,-286,-281,-244,-257},{-305,-310,-302,-298,-260,-260},{-272,-281,-263,-287,-238,-272},{-267,-284,-308,-295,-260,-260},{-311,-310,-269,-300,-265,-254},{-272,-293,-302,-284,-270,-244},{-293,-258,-283,-292,-289,-270},{-319,-278,-272,-251,-268,-265},{-284,-290,-288,-251,-273,-249},{-322,-261,-283,-298,-260,-252},{-264,-267,-274,-276,-244,-249},{-296,-293,-266,-254,-265,-242},{-319,-293,-300,-292,-268,-260},{-322,-258,-266,-259,-268,-254},{-278,-304,-269,-257,-254,-247},{-316,-304,-291,-276,-289,-280},{-290,-316,-288,-273,-268,-262},{-290,-287,-277,-298,-276,-236},{-299,-284,-291,-248,-241,-260}},{{-255,-257,-208,-232,-191,-208},{-255,-242,-240,-232,-229,-216},{-250,-233,-227,-201,-193,-210},{-250,-230,-250,-201,-212,-192},{-260,-240,-252,-214,-229,-182},{-233,-262,-222,-214,-218,-214},{-223,-254,-240,-212,-210,-196},{-265,-240,-240,-243,-195,-202},{-248,-264,-215,-225,-208,-202},{-226,-245,-229,-214,-204,-216},{-226,-245,-220,-228,-227,-216},{-223,-257,-231,-199,-229,-202},{-250,-233,-224,-243,-208,-208},{-273,-218,-231,-234,-229,-220},{-270,-245,-211,-236,-197,-188},{-236,-257,-236,-241,-231,-192},{-238,-235,-208,-234,-212,-216},{-223,-250,-231,-243,-214,-198},{-233,-259,-206,-221,-229,-216},{-273,-235,-252,-210,-195,-216}},{{-190,-197,-194,-162,-166,-163},{-200,-184,-160,-187,-183,-158},{-198,-197,-174,-165,-169,-158},{-182,-167,-182,-174,-164,-151},{-186,-190,-194,-172,-151,-158},{-192,-175,-178,-179,-156,-156},{-184,-195,-187,-181,-183,-159},{-182,-190,-176,-169,-158,-175},{-194,-171,-180,-175,-174,-169},{-213,-195,-164,-182,-166,-161},{-208,-192,-164,-165,-166,-151},{-198,-188,-178,-182,-176,-161},{-202,-199,-194,-169,-159,-148},{-204,-184,-190,-157,-181,-175},{-202,-197,-166,-181,-173,-158},{-196,-197,-192,-169,-164,-164},{-178,-177,-173,-177,-161,-159},{-206,-199,-174,-160,-173,-167},{-182,-167,-169,-157,-166,-174},{-213,-182,-187,-165,-171,-150}},{{-168,-148,-156,-146,-142,-169},{-148,-151,-149,-159,-146,-148},{-168,-168,-146,-157,-169,-160},{-159,-169,-151,-169,-166,-159},{-150,-151,-148,-157,-143,-146},{-150,-148,-149,-157,-152,-162},{-142,-146,-139,-151,-169,-163},{-167,-154,-160,-156,-169,-169},{-140,-152,-159,-140,-152,-157},{-165,-139,-156,-168,-140,-139},{-151,-168,-156,-152,-162,-168},{-159,-149,-146,-149,-169,-160},{-168,-145,-162,-165,-163,-142},{-172,-157,-166,-143,-142,-166},{-145,-145,-165,-139,-154,-139},{-140,-139,-163,-148,-152,-151},{-159,-154,-163,-166,-163,-160},{-168,-159,-139,-166,-166,-142},{-172,-139,-166,-168,-143,-163},{-165,-148,-142,-152,-166,-159}},{{-143,-145,-162,-155,-170,-163},{-156,-161,-149,-153,-170,-165},{-162,-162,-159,-170,-182,-188},{-169,-157,-162,-158,-170,-195},{-149,-146,-173,-185,-180,-192},{-162,-159,-152,-153,-178,-174},{-160,-170,-152,-155,-191,-168},{-154,-159,-172,-171,-161,-174},{-156,-151,-156,-163,-158,-199},{-163,-148,-162,-160,-168,-199},{-165,-170,-149,-170,-180,-176},{-148,-149,-168,-156,-184,-176},{-168,-146,-157,-160,-170,-174},{-143,-173,-156,-173,-172,-197},{-146,-148,-157,-165,-177,-172},{-154,-173,-173,-181,-189,-165},{-154,-156,-178,-176,-193,-199},{-143,-154,-177,-185,-180,-195},{-156,-169,-159,-171,-166,-195},{-151,-151,-175,-161,-175,-172}}},{{{-322,-350,-350,-371,-364,-326},{-354,-354,-364,-315,-374,-382},{-318,-385,-322,-364,-385,-382},{-332,-371,-378,-343,-318,-326},{-350,-368,-340,-368,-318,-371},{-326,-315,-364,-329,-322,-374},{-343,-326,-385,-368,-315,-346},{-364,-322,-315,-322,-354,-315},{-322,-350,-382,-354,-315,-378},{-346,-378,-332,-332,-332,-343},{-329,-318,-315,-371,-382,-326},{-329,-357,-332,-326,-354,-368},{-374,-336,-360,-357,-336,-343},{-357,-326,-374,-332,-382,-329},{-329,-329,-374,-326,-368,-382},{-368,-318,-315,-378,-371,-374},{-315,-354,-343,-378,-336,-332},{-340,-357,-315,-340,-332,-371},{-322,-346,-343,-357,-368,-343},{-350,-343,-332,-346,-382,-315}},{{-317,-336,-346,-324,-318,-296},{-348,-346,-339,-364,-321,-354},{-320,-377,-356,-327,-295,-322},{-341,-309,-359,-364,-354,-328},{-365,-336,-359,-317,-295,-345},{-358,-357,-322,-321,-328,-322},{-358,-340,-342,-367,-328,-325},{-331,-340,-370,-314,-338,-319},{-355,-312,-356,-334,-318,-306},{-376,-353,-346,-351,-338,-328},{-345,-312,-342,-337,-338,-312},{-338,-360,-319,-327,-298,-332},{-327,-364,-319,-341,-351,-296},{-383,-360,-308,-357,-354,-351},{-372,-350,-336,-347,-361,-299},{-313,-316,-349,-307,-344,-354},{-327,-357,-336,-357,-331,-299},{-313,-374,-356,-361,-308,-299},{-348,-319,-359,-354,-312,-341},{-334,-333,-370,-301,-338,-293}},{{-324,-290,-309,-270,-265,-267},{-328,-296,-285,-299,-308,-306},{-296,-277,-324,-287,-268,-295},{-296,-314,-330,-270,-305,-264},{-315,-339,-270,-272,-305,-267},{-315,-308,-318,-302,-308,-267},{-343,-293,-270,-308,-276,-281},{-318,-339,-288,-299,-274,-250},{-337,-302,-312,-284,-262,-253},{-312,-311,-324,-311,-299,-286},{-287,-290,-306,-290,-308,-286},{-328,-308,-270,-284,-259,-272},{-284,-326,-270,-296,-279,-284},{-287,-302,-327,-299,-314,-259},{-296,-330,-279,-267,-256,-275},{-321,-280,-303,-278,-279,-284},{-312,-296,-288,-305,-311,-306},{-312,-326,-318,-293,-294,-292},{-290,-317,-324,-284,-311,-289},{-321,-317,-294,-308,-282,-256}},{{-294,-274,-267,-246,-252,-232},{-275,-258,-270,-231,-230,-244},{-259,-239,-262,-261,-255,-225},{-297,-287,-257,-256,-245,-263},{-262,-287,-257,-254,-265,-256},{-267,-289,-272,-256,-260,-239},{-248,-274,-252,-241,-230,-256},{-275,-252,-272,-228,-270,-246},{-297,-287,-257,-233,-223,-241},{-256,-279,-283,-264,-235,-258},{-251,-250,-267,-259,-252,-251},{-248,-255,-257,-233,-257,-263},{-292,-281,-249,-226,-228,-256},{-281,-263,-267,-261,-238,-237},{-275,-263,-272,-271,-270,-225},{-286,-287,-234,-231,-255,-246},{-286,-245,-280,-231,-250,-251},{-289,-239,-278,-254,-225,-241},{-248,-258,-234,-246,-245,-215},{-256,-281,-242,-248,-257,-249}},{{-235,-231,-249,-233,-254,-226},{-213,-229,-247,-219,-249,-252},{-249,-254,-240,-224,-249,-229},{-251,-208,-231,-215,-233,-208},{-218,-219,-238,-236,-210,-245},{-218,-249,-254,-249,-222,-208},{-230,-231,-219,-224,-238,-236},{-230,-254,-226,-215,-252,-247},{-254,-210,-247,-217,-236,-238},{-223,-254,-245,-247,-249,-240},{-239,-238,-231,-233,-219,-243},{-244,-222,-224,-210,-219,-231},{-251,-229,-215,-243,-243,-243},{-216,-210,-233,-222,-229,-222},{-232,-208,-247,-226,-243,-233},{-218,-247,-217,-238,-245,-238},{-244,-247,-210,-210,-217,-208},{-218,-233,-208,-224,-208,-226},{-258,-238,-240,-213,-238,-245},{-225,-243,-254,-254,-236,-249}},{{-224,-224,-233,-250,-264,-258},{-224,-254,-256,-255,-218,-229},{-233,-249,-245,-252,-230,-239},{-224,-243,-245,-243,-259,-256},{-226,-245,-228,-228,-254,-241},{-233,-217,-233,-236,-264,-263},{-208,-252,-238,-219,-254,-231},{-213,-226,-217,-238,-240,-261},{-238,-236,-233,-248,-232,-224},{-240,-213,-256,-259,-223,-221},{-236,-240,-233,-236,-227,-268},{-210,-231,-221,-214,-230,-221},{-217,-238,-256,-231,-266,-224},{-249,-222,-221,-221,-259,-268},{-222,-217,-247,-221,-230,-244},{-233,-229,-224,-240,-218,-234},{-247,-233,-210,-259,-244,-271},{-247,-226,-219,-259,-257,-271},{-243,-219,-221,-236,-264,-241},{-240,-243,-228,-221,-223,-266}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1052,192,238,253,176,234,280,264,252}; // initial inventory 
int ubiv[I]={2104,384,476,507,352,468,350,495,504}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.35,8.59,5.57,4.52,2.83,1.94,4.81,7.57}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.14,7.81,5.06,4.11,2.57,1.76,4.37,6.88}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.71,9.71,9.71,8.5,8.5,8.5,7.28,7.28,7.28,6.25,6.25,6.25,5.47,5.47,5.47,4.69,4.69,4.69,4.05,4.05,4.05,3.54,3.54,3.54,3.04,3.04,3.04,3.29,3.29,3.29,2.88,2.88,2.88,2.47,2.47,2.47,2.06,2.06,2.06,1.8,1.8,1.8,1.54,1.54,1.54,1.41,1.41,1.41,1.23,1.23,1.23,1.06,1.06,1.06,3.5,3.5,3.5,3.06,3.06,3.06,2.62,2.62,2.62,5.5,5.5,5.5,4.82,4.82,4.82,4.13,4.13,4.13}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={15,8,6,15,8,5,16,8,6,17,9,6,17,8,6,16,8,6,16,9,6,16,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,18,9,6,17,9,6,17,9,6,17,9,6,17,9,6,17,9,6,16,9,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},{744,745,746,747,748,749}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,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,0,4,8,12,16,20,24,28,2,8,14,20,26,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,1,7,13,19,25,31,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,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,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,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,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,2,8,14,20,26,32,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,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,34,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,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,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,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,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,2,8,14,20,26,32}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,6,10,14,18,22,26,30,34,5,11,17,23,29,35,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,7,13,19,25,31,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,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,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,5,9,13,17,21,25,29,33,5,11,17,23,29,35,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,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,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,4,10,16,22,28,34,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,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,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,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,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,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,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,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,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,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,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,5,9,13,17,21,25,29,33,5,11,17,23,29,35}; // set of end times of each shipment 
