int Dev = 30;// Deviation
extern const int CNN = 2;// 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]={{{{11136,0,0,0,0,0},{11055,0,0,0,0,0},{10933,0,0,0,0,0},{10654,0,0,0,0,0},{11317,0,0,0,0,0},{10989,0,0,0,0,0},{11067,0,0,0,0,0},{11336,0,0,0,0,0},{11366,0,0,0,0,0},{10932,0,0,0,0,0},{10721,0,0,0,0,0},{10908,0,0,0,0,0},{10763,0,0,0,0,0},{11399,0,0,0,0,0},{11106,0,0,0,0,0},{11290,0,0,0,0,0},{10877,0,0,0,0,0},{11028,0,0,0,0,0},{10953,0,0,0,0,0},{11628,0,0,0,0,0}},{{11189,0,0,0,0,0},{11304,0,0,0,0,0},{11208,0,0,0,0,0},{10824,0,0,0,0,0},{11418,0,0,0,0,0},{11115,0,0,0,0,0},{10658,0,0,0,0,0},{10910,0,0,0,0,0},{10631,0,0,0,0,0},{10787,0,0,0,0,0},{10916,0,0,0,0,0},{11018,0,0,0,0,0},{11212,0,0,0,0,0},{10560,0,0,0,0,0},{11060,0,0,0,0,0},{11506,0,0,0,0,0},{10895,0,0,0,0,0},{11099,0,0,0,0,0},{11085,0,0,0,0,0},{11406,0,0,0,0,0}},{{10891,0,0,0,0,0},{11019,0,0,0,0,0},{11127,0,0,0,0,0},{10729,0,0,0,0,0},{11211,0,0,0,0,0},{11159,0,0,0,0,0},{11151,0,0,0,0,0},{11364,0,0,0,0,0},{10835,0,0,0,0,0},{10932,0,0,0,0,0},{11331,0,0,0,0,0},{11626,0,0,0,0,0},{11167,0,0,0,0,0},{10738,0,0,0,0,0},{10963,0,0,0,0,0},{11273,0,0,0,0,0},{11264,0,0,0,0,0},{10569,0,0,0,0,0},{11114,0,0,0,0,0},{11174,0,0,0,0,0}},{{11027,0,0,0,0,0},{11557,0,0,0,0,0},{11194,0,0,0,0,0},{11110,0,0,0,0,0},{11412,0,0,0,0,0},{11023,0,0,0,0,0},{11096,0,0,0,0,0},{10653,0,0,0,0,0},{10886,0,0,0,0,0},{10904,0,0,0,0,0},{11093,0,0,0,0,0},{11483,0,0,0,0,0},{11199,0,0,0,0,0},{10945,0,0,0,0,0},{10442,0,0,0,0,0},{10526,0,0,0,0,0},{11489,0,0,0,0,0},{10784,0,0,0,0,0},{10678,0,0,0,0,0},{11268,0,0,0,0,0}},{{10833,0,0,0,0,0},{10794,0,0,0,0,0},{11371,0,0,0,0,0},{11024,0,0,0,0,0},{11048,0,0,0,0,0},{11059,0,0,0,0,0},{10565,0,0,0,0,0},{11124,0,0,0,0,0},{10816,0,0,0,0,0},{10779,0,0,0,0,0},{11104,0,0,0,0,0},{11396,0,0,0,0,0},{10765,0,0,0,0,0},{11037,0,0,0,0,0},{11309,0,0,0,0,0},{10687,0,0,0,0,0},{11177,0,0,0,0,0},{10774,0,0,0,0,0},{10896,0,0,0,0,0},{10779,0,0,0,0,0}},{{10953,0,0,0,0,0},{10828,0,0,0,0,0},{11128,0,0,0,0,0},{11453,0,0,0,0,0},{10931,0,0,0,0,0},{11009,0,0,0,0,0},{11658,0,0,0,0,0},{11137,0,0,0,0,0},{11236,0,0,0,0,0},{11064,0,0,0,0,0},{11586,0,0,0,0,0},{10863,0,0,0,0,0},{10949,0,0,0,0,0},{11308,0,0,0,0,0},{11786,0,0,0,0,0},{10420,0,0,0,0,0},{10851,0,0,0,0,0},{11029,0,0,0,0,0},{11211,0,0,0,0,0},{11259,0,0,0,0,0}}},{{{-287,-206,-251,-287,-291,-287},{-175,-193,-228,-246,-164,-208},{-164,-287,-170,-190,-177,-228},{-226,-161,-242,-222,-159,-228},{-211,-276,-170,-240,-195,-204},{-184,-211,-197,-177,-220,-287},{-175,-260,-168,-253,-215,-157},{-231,-217,-204,-255,-197,-181},{-271,-273,-249,-170,-168,-291},{-237,-188,-287,-157,-220,-202},{-168,-287,-287,-157,-253,-226},{-166,-262,-188,-206,-217,-237},{-202,-157,-231,-246,-244,-289},{-267,-262,-258,-278,-267,-269},{-161,-202,-273,-179,-235,-280},{-226,-278,-188,-267,-231,-240},{-164,-161,-170,-267,-170,-188},{-244,-278,-190,-267,-264,-282},{-164,-211,-258,-193,-170,-222},{-271,-202,-278,-181,-276,-161}},{{-213,-168,-255,-282,-199,-188},{-258,-264,-244,-262,-193,-179},{-224,-190,-213,-267,-186,-246},{-175,-289,-280,-278,-255,-168},{-202,-222,-208,-213,-280,-255},{-220,-291,-226,-242,-186,-217},{-164,-237,-237,-202,-280,-251},{-253,-249,-166,-233,-258,-172},{-170,-224,-215,-258,-186,-199},{-193,-269,-237,-220,-161,-204},{-188,-161,-278,-164,-215,-222},{-251,-271,-213,-226,-161,-258},{-186,-179,-208,-202,-206,-271},{-253,-258,-170,-242,-246,-262},{-253,-208,-251,-213,-177,-246},{-213,-228,-240,-287,-193,-220},{-184,-251,-208,-215,-202,-168},{-282,-242,-159,-157,-179,-276},{-188,-242,-222,-253,-253,-271},{-195,-242,-282,-220,-190,-222}},{{-193,-228,-202,-179,-244,-237},{-267,-157,-240,-164,-172,-215},{-267,-282,-260,-253,-211,-164},{-184,-258,-235,-188,-179,-264},{-240,-188,-289,-190,-284,-177},{-289,-228,-260,-249,-208,-240},{-220,-172,-282,-217,-278,-264},{-217,-161,-237,-206,-291,-260},{-215,-226,-217,-179,-168,-251},{-278,-168,-237,-199,-186,-276},{-224,-197,-228,-224,-217,-208},{-172,-291,-235,-161,-271,-262},{-282,-253,-215,-255,-264,-253},{-190,-246,-226,-202,-260,-199},{-195,-206,-240,-211,-220,-211},{-249,-166,-208,-255,-289,-206},{-184,-262,-202,-284,-267,-289},{-190,-157,-199,-175,-188,-253},{-170,-197,-222,-193,-280,-233},{-222,-284,-204,-168,-157,-184}},{{-233,-211,-235,-159,-235,-260},{-202,-215,-197,-197,-246,-280},{-197,-184,-157,-240,-175,-202},{-276,-161,-246,-269,-253,-195},{-240,-195,-157,-240,-197,-222},{-168,-231,-251,-251,-249,-166},{-197,-222,-202,-159,-276,-251},{-208,-208,-220,-269,-193,-271},{-228,-228,-237,-211,-164,-166},{-226,-197,-235,-179,-278,-184},{-168,-287,-231,-287,-264,-217},{-235,-284,-211,-164,-181,-249},{-262,-284,-244,-168,-237,-258},{-213,-177,-193,-284,-213,-251},{-251,-291,-181,-280,-206,-170},{-240,-213,-161,-255,-199,-202},{-276,-291,-215,-251,-208,-172},{-264,-271,-267,-172,-255,-159},{-228,-159,-172,-181,-193,-177},{-282,-276,-280,-228,-251,-159}},{{-244,-222,-186,-228,-177,-280},{-166,-226,-172,-246,-244,-267},{-157,-222,-188,-264,-228,-278},{-262,-222,-237,-177,-217,-244},{-278,-222,-199,-253,-215,-161},{-172,-186,-208,-197,-177,-195},{-240,-249,-213,-184,-172,-220},{-220,-181,-269,-267,-213,-190},{-175,-168,-262,-172,-179,-220},{-251,-267,-161,-213,-202,-291},{-289,-255,-262,-186,-161,-220},{-224,-262,-164,-278,-276,-224},{-177,-251,-179,-157,-199,-222},{-181,-251,-186,-193,-289,-206},{-184,-211,-269,-242,-282,-282},{-166,-195,-280,-202,-255,-273},{-258,-208,-253,-276,-253,-291},{-199,-251,-166,-226,-226,-224},{-289,-195,-179,-231,-267,-159},{-235,-177,-273,-273,-206,-289}},{{-211,-228,-208,-166,-217,-280},{-235,-181,-190,-172,-273,-271},{-235,-282,-231,-267,-253,-193},{-164,-260,-284,-231,-255,-289},{-242,-193,-172,-262,-284,-159},{-199,-235,-188,-233,-253,-199},{-249,-190,-260,-282,-260,-258},{-166,-199,-172,-224,-278,-204},{-199,-249,-253,-224,-197,-276},{-228,-181,-284,-204,-168,-244},{-267,-242,-204,-217,-190,-188},{-197,-208,-242,-278,-280,-237},{-202,-260,-224,-199,-271,-240},{-220,-217,-226,-253,-267,-184},{-258,-181,-233,-291,-278,-159},{-233,-253,-217,-172,-170,-273},{-184,-206,-284,-204,-175,-253},{-276,-233,-181,-240,-184,-291},{-289,-249,-208,-231,-222,-217},{-215,-287,-188,-273,-251,-166}}},{{{-264,-224,-271,-274,-238,-200},{-214,-264,-257,-298,-298,-169},{-226,-283,-226,-255,-193,-286},{-224,-262,-259,-288,-183,-198},{-298,-255,-195,-307,-178,-259},{-302,-195,-167,-226,-233,-209},{-219,-274,-271,-252,-200,-295},{-183,-293,-248,-262,-243,-274},{-309,-252,-259,-309,-228,-236},{-183,-224,-302,-248,-236,-307},{-193,-250,-255,-281,-283,-240},{-281,-255,-171,-178,-238,-212},{-169,-283,-281,-209,-231,-212},{-236,-298,-290,-278,-181,-240},{-226,-298,-250,-167,-205,-181},{-205,-259,-240,-255,-176,-252},{-171,-300,-257,-181,-176,-250},{-231,-217,-226,-305,-231,-255},{-243,-238,-221,-198,-193,-267},{-190,-226,-257,-278,-290,-245}},{{-233,-293,-290,-259,-269,-300},{-193,-174,-288,-169,-209,-198},{-183,-221,-238,-219,-176,-200},{-231,-221,-174,-202,-195,-252},{-309,-214,-283,-238,-212,-233},{-178,-250,-240,-283,-181,-217},{-269,-298,-176,-200,-178,-278},{-264,-236,-224,-228,-231,-281},{-233,-200,-219,-293,-248,-178},{-217,-167,-226,-298,-167,-178},{-276,-207,-302,-288,-224,-198},{-274,-278,-202,-198,-186,-188},{-276,-214,-295,-202,-198,-307},{-283,-169,-207,-202,-252,-245},{-288,-212,-307,-255,-188,-264},{-307,-214,-176,-209,-255,-293},{-305,-283,-195,-300,-174,-305},{-259,-243,-295,-186,-309,-226},{-283,-209,-248,-186,-169,-176},{-250,-193,-278,-243,-252,-238}},{{-295,-238,-298,-245,-293,-221},{-214,-228,-267,-276,-193,-195},{-231,-288,-231,-298,-238,-238},{-198,-267,-171,-171,-174,-240},{-221,-267,-252,-248,-276,-209},{-183,-264,-293,-259,-271,-243},{-286,-212,-202,-171,-174,-198},{-276,-195,-236,-281,-286,-188},{-309,-198,-278,-212,-186,-231},{-236,-221,-186,-255,-236,-209},{-271,-243,-236,-286,-276,-262},{-252,-183,-274,-255,-290,-283},{-188,-283,-293,-243,-212,-259},{-276,-200,-176,-207,-219,-202},{-195,-264,-240,-190,-167,-262},{-278,-309,-188,-228,-174,-233},{-302,-264,-202,-240,-188,-214},{-295,-198,-238,-274,-209,-176},{-214,-224,-207,-205,-281,-214},{-305,-264,-231,-274,-195,-283}},{{-207,-298,-302,-171,-202,-252},{-214,-252,-243,-193,-174,-193},{-295,-217,-217,-176,-298,-219},{-278,-276,-217,-238,-269,-305},{-286,-293,-252,-195,-274,-212},{-231,-309,-176,-183,-264,-243},{-248,-233,-200,-212,-293,-295},{-183,-198,-186,-248,-214,-228},{-188,-300,-221,-248,-295,-221},{-233,-248,-257,-248,-188,-302},{-293,-248,-302,-167,-212,-243},{-293,-295,-252,-295,-231,-243},{-209,-188,-298,-288,-228,-295},{-276,-195,-295,-205,-200,-290},{-169,-231,-221,-174,-267,-245},{-269,-202,-207,-240,-264,-186},{-271,-248,-248,-295,-238,-233},{-214,-269,-209,-243,-238,-233},{-224,-302,-207,-305,-295,-188},{-276,-257,-217,-305,-224,-262}},{{-195,-300,-271,-255,-276,-217},{-207,-226,-298,-190,-298,-245},{-224,-302,-267,-262,-269,-300},{-240,-195,-309,-290,-207,-219},{-309,-176,-271,-169,-250,-298},{-198,-298,-245,-226,-228,-283},{-259,-221,-224,-286,-217,-278},{-219,-276,-193,-257,-198,-302},{-250,-236,-209,-231,-178,-295},{-171,-174,-274,-243,-236,-257},{-219,-231,-195,-264,-298,-219},{-290,-259,-286,-205,-169,-248},{-305,-257,-171,-245,-219,-171},{-188,-307,-202,-264,-198,-288},{-167,-212,-238,-224,-262,-305},{-257,-257,-248,-236,-174,-309},{-257,-217,-238,-178,-290,-209},{-198,-231,-174,-302,-250,-176},{-193,-176,-198,-198,-274,-231},{-286,-209,-252,-190,-252,-248}},{{-271,-252,-193,-178,-178,-214},{-176,-255,-243,-252,-264,-209},{-286,-236,-236,-300,-224,-264},{-309,-171,-305,-221,-214,-205},{-276,-307,-231,-255,-228,-262},{-309,-226,-269,-300,-193,-181},{-257,-233,-198,-278,-300,-307},{-269,-245,-252,-300,-200,-188},{-257,-221,-286,-267,-207,-214},{-195,-259,-207,-293,-298,-250},{-281,-302,-298,-300,-226,-307},{-217,-171,-271,-188,-283,-250},{-276,-228,-205,-255,-309,-221},{-228,-228,-274,-205,-240,-205},{-295,-269,-248,-300,-255,-183},{-252,-221,-178,-231,-228,-221},{-240,-226,-271,-271,-236,-295},{-205,-174,-248,-181,-269,-236},{-243,-302,-288,-281,-226,-186},{-307,-228,-238,-305,-176,-243}}},{{{-205,-227,-328,-276,-207,-221},{-265,-191,-333,-265,-333,-257},{-229,-308,-276,-218,-355,-344},{-197,-248,-317,-273,-218,-339},{-330,-311,-328,-355,-251,-205},{-308,-273,-205,-347,-232,-355},{-319,-251,-276,-287,-311,-232},{-325,-352,-344,-311,-325,-292},{-317,-344,-355,-191,-273,-248},{-216,-300,-224,-238,-317,-355},{-259,-213,-306,-328,-251,-308},{-278,-355,-238,-276,-232,-254},{-259,-281,-325,-292,-246,-199},{-295,-314,-224,-341,-265,-339},{-262,-210,-333,-330,-317,-344},{-341,-319,-248,-207,-322,-314},{-246,-355,-349,-227,-344,-284},{-205,-268,-284,-292,-292,-210},{-197,-246,-344,-224,-197,-251},{-306,-308,-246,-218,-306,-355}},{{-298,-235,-339,-205,-333,-235},{-306,-281,-300,-336,-325,-328},{-349,-202,-270,-347,-273,-300},{-235,-311,-248,-191,-248,-257},{-284,-270,-339,-276,-289,-355},{-281,-213,-251,-347,-344,-194},{-224,-322,-227,-278,-218,-240},{-314,-197,-273,-352,-243,-221},{-216,-344,-328,-210,-243,-191},{-344,-205,-191,-259,-300,-218},{-194,-306,-213,-273,-276,-344},{-325,-330,-207,-284,-229,-216},{-295,-339,-284,-262,-248,-333},{-308,-251,-238,-254,-314,-292},{-339,-339,-218,-232,-303,-328},{-347,-339,-292,-339,-330,-325},{-207,-232,-194,-295,-308,-349},{-319,-300,-284,-248,-341,-224},{-322,-328,-194,-317,-344,-292},{-207,-355,-289,-278,-355,-243}},{{-194,-216,-229,-287,-289,-205},{-339,-336,-246,-270,-330,-248},{-207,-262,-227,-207,-328,-344},{-243,-300,-292,-317,-216,-352},{-254,-317,-352,-303,-213,-262},{-333,-243,-352,-191,-199,-235},{-227,-268,-232,-347,-218,-347},{-216,-246,-355,-339,-330,-303},{-213,-314,-251,-306,-229,-287},{-259,-210,-292,-347,-349,-243},{-216,-306,-292,-325,-227,-319},{-227,-336,-339,-268,-199,-292},{-278,-278,-235,-328,-339,-270},{-344,-251,-240,-295,-270,-197},{-336,-273,-197,-240,-210,-347},{-339,-317,-278,-262,-289,-325},{-259,-303,-287,-194,-339,-216},{-295,-349,-210,-319,-333,-341},{-344,-232,-328,-311,-221,-248},{-319,-207,-295,-292,-336,-232}},{{-308,-303,-238,-339,-355,-314},{-325,-295,-221,-268,-308,-300},{-278,-287,-248,-248,-238,-347},{-199,-243,-278,-235,-322,-197},{-213,-235,-319,-306,-341,-278},{-191,-240,-238,-349,-298,-284},{-210,-328,-216,-259,-339,-268},{-311,-328,-268,-251,-306,-344},{-311,-289,-248,-229,-262,-308},{-194,-300,-284,-306,-268,-265},{-194,-262,-213,-213,-251,-306},{-347,-251,-308,-213,-265,-314},{-199,-268,-265,-246,-317,-262},{-240,-265,-319,-317,-281,-292},{-218,-221,-243,-276,-262,-199},{-227,-191,-270,-240,-349,-352},{-191,-311,-308,-341,-355,-218},{-322,-259,-218,-199,-276,-248},{-289,-314,-273,-240,-227,-270},{-298,-344,-349,-207,-295,-194}},{{-216,-284,-240,-232,-235,-268},{-328,-240,-262,-314,-347,-273},{-292,-229,-240,-213,-295,-333},{-333,-240,-322,-199,-227,-333},{-311,-240,-205,-199,-322,-218},{-306,-227,-278,-349,-325,-235},{-278,-287,-197,-238,-207,-197},{-303,-339,-265,-298,-314,-235},{-235,-202,-300,-344,-229,-205},{-278,-235,-194,-251,-194,-232},{-298,-221,-268,-298,-339,-216},{-325,-352,-262,-284,-270,-344},{-265,-298,-257,-317,-333,-292},{-347,-238,-295,-325,-287,-216},{-303,-254,-352,-270,-197,-251},{-333,-202,-300,-303,-251,-330},{-191,-339,-238,-344,-199,-238},{-352,-191,-278,-317,-257,-243},{-289,-259,-235,-229,-317,-259},{-205,-232,-257,-257,-314,-300}},{{-268,-210,-218,-289,-265,-268},{-262,-276,-224,-191,-308,-205},{-257,-246,-205,-210,-330,-328},{-322,-278,-246,-216,-319,-273},{-319,-273,-199,-308,-194,-347},{-229,-232,-270,-254,-325,-292},{-276,-218,-238,-259,-229,-238},{-218,-349,-330,-347,-227,-341},{-295,-330,-314,-341,-191,-262},{-295,-232,-218,-281,-303,-265},{-352,-322,-221,-303,-336,-339},{-344,-251,-265,-240,-319,-325},{-308,-229,-314,-352,-194,-243},{-333,-322,-330,-281,-229,-344},{-319,-199,-349,-311,-333,-289},{-210,-199,-339,-216,-300,-210},{-287,-273,-284,-281,-268,-273},{-273,-191,-330,-210,-330,-262},{-218,-224,-243,-322,-221,-257},{-218,-284,-268,-284,-221,-341}}},{{{-199,-159,-151,-192,-119,-128},{-179,-156,-172,-152,-152,-152},{-154,-136,-179,-142,-169,-137},{-131,-131,-151,-137,-109,-152},{-183,-186,-143,-197,-186,-131},{-116,-163,-186,-152,-185,-148},{-172,-185,-117,-137,-182,-192},{-188,-116,-125,-122,-131,-199},{-132,-137,-126,-157,-196,-142},{-120,-188,-111,-112,-123,-122},{-157,-197,-112,-122,-142,-125},{-177,-183,-166,-160,-188,-168},{-162,-112,-148,-136,-129,-169},{-125,-160,-140,-194,-159,-116},{-131,-136,-108,-199,-126,-166},{-192,-132,-163,-125,-123,-165},{-145,-171,-185,-111,-125,-148},{-191,-120,-176,-166,-129,-192},{-189,-196,-163,-112,-114,-160},{-192,-197,-108,-114,-189,-166}},{{-200,-159,-145,-165,-168,-131},{-148,-148,-145,-171,-165,-169},{-180,-109,-189,-159,-172,-189},{-162,-143,-174,-159,-171,-120},{-172,-143,-126,-192,-148,-185},{-194,-129,-177,-182,-152,-160},{-194,-172,-123,-142,-140,-176},{-137,-169,-162,-131,-197,-114},{-179,-128,-165,-194,-143,-165},{-117,-112,-194,-140,-112,-176},{-139,-162,-142,-137,-188,-152},{-186,-171,-131,-129,-139,-143},{-163,-126,-180,-128,-189,-185},{-112,-134,-191,-136,-119,-159},{-179,-114,-186,-157,-132,-160},{-166,-159,-148,-123,-145,-148},{-109,-160,-117,-194,-200,-171},{-156,-172,-112,-116,-152,-120},{-111,-197,-123,-171,-191,-183},{-112,-191,-185,-136,-177,-146}},{{-125,-108,-182,-169,-177,-174},{-179,-148,-129,-179,-139,-183},{-117,-120,-171,-189,-149,-169},{-119,-122,-136,-109,-179,-151},{-157,-186,-197,-160,-129,-186},{-157,-194,-152,-171,-174,-125},{-162,-128,-186,-182,-162,-165},{-169,-149,-122,-182,-165,-137},{-131,-162,-146,-176,-185,-168},{-136,-192,-188,-108,-196,-177},{-200,-151,-197,-196,-191,-122},{-180,-111,-182,-114,-179,-189},{-152,-145,-197,-142,-119,-132},{-132,-132,-168,-191,-149,-114},{-163,-120,-192,-197,-109,-194},{-154,-131,-112,-197,-192,-194},{-114,-192,-129,-189,-142,-165},{-154,-126,-159,-111,-157,-166},{-169,-196,-179,-174,-179,-117},{-180,-111,-120,-128,-139,-177}},{{-196,-111,-157,-194,-172,-131},{-132,-146,-192,-171,-168,-176},{-169,-163,-165,-177,-171,-112},{-119,-200,-160,-186,-156,-189},{-111,-151,-169,-182,-128,-136},{-188,-199,-185,-199,-156,-174},{-185,-174,-126,-122,-197,-126},{-188,-119,-117,-199,-112,-134},{-179,-171,-186,-120,-123,-172},{-108,-188,-143,-188,-174,-117},{-159,-166,-116,-149,-116,-163},{-142,-146,-196,-194,-166,-125},{-197,-151,-140,-108,-191,-182},{-159,-194,-111,-137,-129,-163},{-154,-146,-200,-166,-129,-128},{-131,-145,-112,-129,-128,-131},{-145,-196,-197,-125,-183,-197},{-169,-131,-129,-157,-116,-172},{-125,-143,-125,-152,-152,-125},{-143,-143,-148,-179,-160,-116}},{{-120,-197,-148,-186,-137,-137},{-196,-174,-120,-197,-186,-172},{-134,-196,-165,-132,-180,-199},{-112,-114,-197,-120,-174,-162},{-108,-146,-186,-172,-166,-171},{-109,-191,-191,-182,-165,-174},{-182,-112,-179,-145,-134,-183},{-185,-129,-159,-162,-183,-139},{-162,-142,-196,-116,-194,-128},{-166,-125,-108,-143,-108,-108},{-136,-172,-139,-125,-136,-111},{-185,-116,-136,-163,-134,-111},{-168,-169,-122,-189,-177,-137},{-128,-126,-114,-108,-137,-200},{-154,-162,-137,-139,-145,-146},{-160,-122,-114,-134,-116,-165},{-197,-160,-189,-180,-142,-131},{-172,-176,-117,-140,-199,-162},{-171,-137,-188,-192,-126,-186},{-149,-192,-149,-125,-109,-168}},{{-146,-197,-114,-200,-109,-165},{-169,-108,-139,-168,-137,-125},{-148,-169,-132,-109,-142,-200},{-166,-196,-152,-109,-136,-134},{-137,-112,-128,-169,-174,-119},{-200,-123,-111,-168,-108,-172},{-169,-108,-154,-174,-108,-166},{-177,-183,-171,-152,-179,-117},{-116,-159,-152,-197,-131,-199},{-122,-194,-177,-152,-112,-143},{-200,-151,-149,-129,-112,-111},{-148,-174,-109,-183,-151,-172},{-137,-137,-152,-183,-109,-196},{-111,-194,-143,-136,-132,-180},{-169,-114,-140,-189,-196,-176},{-163,-120,-182,-143,-177,-119},{-200,-111,-154,-116,-157,-152},{-119,-134,-148,-183,-183,-108},{-122,-143,-177,-172,-163,-168},{-119,-142,-111,-151,-136,-149}}},{{{-136,-162,-155,-233,-155,-235},{-184,-157,-226,-204,-171,-195},{-127,-162,-193,-142,-167,-235},{-198,-155,-204,-146,-178,-155},{-169,-157,-178,-133,-180,-204},{-224,-186,-177,-204,-220,-147},{-131,-191,-237,-175,-180,-138},{-157,-133,-233,-209,-129,-164},{-213,-195,-189,-160,-187,-217},{-191,-215,-144,-200,-173,-215},{-167,-187,-133,-180,-146,-177},{-207,-127,-173,-151,-173,-182},{-135,-187,-158,-149,-191,-226},{-180,-157,-151,-140,-142,-173},{-231,-209,-191,-164,-184,-173},{-218,-153,-207,-180,-133,-220},{-158,-160,-224,-200,-209,-209},{-153,-149,-211,-142,-224,-160},{-162,-140,-173,-187,-164,-135},{-228,-231,-213,-171,-136,-127}},{{-224,-173,-164,-182,-136,-155},{-178,-224,-164,-186,-209,-231},{-220,-213,-189,-207,-200,-144},{-217,-186,-187,-222,-178,-235},{-195,-149,-186,-167,-218,-209},{-136,-206,-200,-193,-237,-160},{-142,-197,-166,-204,-211,-166},{-237,-140,-178,-131,-136,-160},{-195,-195,-189,-131,-233,-211},{-224,-226,-129,-171,-164,-193},{-167,-213,-173,-218,-211,-167},{-218,-222,-155,-131,-171,-129},{-202,-138,-207,-217,-153,-187},{-149,-218,-164,-211,-149,-129},{-142,-207,-204,-155,-155,-131},{-144,-187,-191,-198,-177,-129},{-155,-215,-164,-166,-146,-226},{-136,-146,-215,-218,-222,-149},{-233,-189,-202,-138,-142,-217},{-226,-135,-233,-169,-138,-217}},{{-153,-157,-131,-127,-157,-151},{-215,-178,-142,-207,-173,-142},{-226,-164,-178,-191,-169,-186},{-171,-191,-211,-229,-202,-207},{-182,-169,-180,-129,-153,-166},{-193,-140,-189,-158,-129,-178},{-222,-222,-135,-220,-187,-133},{-224,-193,-204,-146,-180,-204},{-193,-153,-200,-136,-151,-204},{-202,-175,-231,-220,-151,-177},{-209,-133,-136,-200,-211,-215},{-233,-218,-215,-229,-226,-162},{-138,-127,-193,-140,-220,-142},{-175,-193,-175,-151,-166,-162},{-133,-224,-235,-129,-127,-131},{-178,-209,-206,-184,-160,-215},{-233,-153,-237,-182,-146,-147},{-164,-147,-144,-129,-173,-178},{-206,-206,-166,-131,-135,-177},{-187,-175,-173,-157,-213,-197}},{{-160,-162,-171,-160,-211,-173},{-198,-142,-209,-213,-127,-153},{-229,-171,-220,-133,-187,-175},{-166,-169,-198,-220,-177,-218},{-200,-155,-175,-173,-231,-222},{-184,-198,-191,-204,-191,-135},{-215,-229,-131,-198,-138,-169},{-204,-167,-186,-155,-226,-198},{-229,-157,-158,-131,-213,-228},{-164,-209,-153,-129,-151,-180},{-157,-198,-133,-213,-129,-231},{-191,-197,-195,-237,-182,-151},{-173,-224,-215,-202,-157,-157},{-218,-146,-135,-222,-229,-136},{-144,-204,-140,-204,-184,-153},{-178,-135,-164,-204,-129,-166},{-197,-193,-133,-149,-231,-231},{-169,-180,-127,-173,-167,-151},{-226,-153,-144,-171,-226,-173},{-131,-229,-186,-178,-200,-231}},{{-213,-144,-231,-198,-228,-129},{-184,-229,-169,-217,-189,-209},{-226,-157,-231,-133,-138,-218},{-133,-138,-131,-229,-149,-197},{-204,-135,-206,-175,-180,-175},{-189,-171,-136,-155,-186,-217},{-195,-217,-167,-171,-211,-129},{-220,-191,-231,-186,-135,-160},{-127,-157,-186,-200,-157,-195},{-140,-224,-166,-220,-217,-155},{-229,-131,-135,-222,-197,-211},{-220,-178,-166,-129,-171,-171},{-127,-187,-153,-136,-138,-138},{-213,-164,-133,-138,-144,-133},{-233,-162,-127,-237,-195,-144},{-149,-131,-158,-160,-213,-202},{-177,-198,-186,-189,-191,-202},{-151,-198,-133,-140,-133,-149},{-233,-146,-198,-220,-206,-213},{-209,-133,-146,-177,-144,-187}},{{-169,-169,-184,-140,-222,-198},{-186,-189,-135,-222,-207,-197},{-151,-195,-202,-222,-169,-149},{-178,-237,-158,-217,-164,-162},{-182,-220,-142,-204,-198,-222},{-136,-177,-206,-167,-149,-142},{-235,-146,-229,-191,-220,-127},{-147,-228,-157,-177,-191,-198},{-211,-129,-222,-153,-184,-178},{-231,-195,-224,-177,-215,-178},{-153,-175,-204,-158,-191,-138},{-198,-129,-229,-140,-187,-127},{-180,-180,-162,-184,-135,-171},{-215,-178,-207,-140,-218,-164},{-224,-222,-175,-166,-151,-237},{-195,-235,-138,-177,-224,-186},{-167,-233,-175,-187,-184,-175},{-135,-173,-229,-136,-217,-171},{-229,-198,-195,-222,-151,-235},{-178,-229,-140,-182,-153,-224}}},{{{-260,-306,-260,-179,-260,-267},{-304,-218,-228,-260,-318,-238},{-252,-189,-301,-306,-206,-225},{-279,-309,-247,-270,-318,-225},{-172,-299,-216,-304,-252,-245},{-181,-216,-238,-257,-247,-218},{-233,-257,-257,-233,-198,-172},{-176,-274,-245,-282,-262,-223},{-220,-247,-289,-255,-260,-211},{-270,-257,-184,-172,-316,-299},{-220,-216,-247,-172,-213,-216},{-316,-220,-257,-250,-265,-299},{-289,-186,-294,-277,-267,-189},{-186,-299,-294,-301,-230,-218},{-277,-284,-279,-267,-289,-220},{-309,-194,-257,-284,-274,-172},{-208,-284,-201,-243,-191,-245},{-265,-243,-250,-238,-216,-203},{-245,-309,-274,-292,-257,-306},{-311,-292,-206,-265,-314,-247}},{{-201,-223,-274,-196,-220,-181},{-176,-223,-252,-218,-191,-301},{-284,-282,-220,-262,-284,-252},{-272,-176,-245,-176,-287,-252},{-235,-309,-243,-206,-194,-287},{-211,-240,-218,-252,-218,-265},{-174,-172,-230,-216,-208,-211},{-243,-316,-179,-296,-316,-196},{-235,-296,-176,-220,-191,-311},{-238,-301,-277,-223,-314,-191},{-228,-289,-228,-243,-270,-270},{-230,-314,-277,-304,-213,-309},{-225,-181,-279,-274,-176,-252},{-311,-172,-179,-245,-238,-225},{-191,-252,-289,-191,-265,-274},{-294,-267,-238,-233,-247,-250},{-272,-243,-228,-238,-211,-294},{-245,-235,-265,-206,-257,-282},{-235,-230,-255,-213,-289,-255},{-250,-174,-238,-294,-250,-292}},{{-284,-279,-191,-274,-284,-181},{-282,-284,-216,-270,-311,-260},{-306,-245,-186,-252,-230,-296},{-272,-292,-289,-301,-194,-270},{-206,-186,-272,-238,-282,-208},{-277,-216,-274,-255,-309,-225},{-306,-216,-216,-235,-287,-240},{-198,-262,-270,-299,-176,-233},{-211,-208,-238,-296,-189,-267},{-243,-250,-174,-282,-230,-181},{-265,-279,-201,-301,-225,-294},{-316,-306,-314,-243,-287,-316},{-233,-257,-309,-270,-289,-255},{-184,-265,-255,-191,-243,-198},{-176,-316,-296,-198,-216,-265},{-230,-223,-216,-274,-208,-172},{-252,-191,-230,-262,-211,-299},{-270,-296,-257,-274,-208,-174},{-181,-252,-208,-203,-262,-179},{-230,-228,-267,-306,-270,-279}},{{-208,-230,-255,-306,-238,-243},{-279,-274,-309,-316,-287,-292},{-282,-223,-218,-208,-279,-277},{-233,-260,-287,-277,-260,-257},{-225,-250,-211,-289,-318,-282},{-201,-306,-299,-304,-206,-213},{-296,-230,-189,-277,-240,-270},{-243,-174,-220,-211,-257,-172},{-216,-299,-223,-304,-216,-220},{-181,-196,-223,-216,-287,-304},{-318,-247,-250,-262,-252,-274},{-230,-309,-287,-179,-206,-316},{-257,-292,-260,-201,-316,-311},{-191,-174,-206,-311,-299,-267},{-235,-206,-284,-252,-262,-186},{-240,-274,-181,-233,-228,-230},{-240,-262,-270,-301,-255,-176},{-223,-274,-274,-252,-318,-203},{-240,-267,-262,-270,-189,-287},{-191,-228,-201,-267,-301,-274}},{{-172,-228,-306,-247,-292,-306},{-174,-213,-289,-223,-201,-252},{-225,-189,-284,-172,-265,-306},{-284,-194,-220,-277,-240,-294},{-252,-314,-186,-277,-272,-270},{-301,-247,-181,-250,-233,-270},{-179,-238,-172,-191,-216,-265},{-250,-172,-265,-230,-230,-189},{-279,-306,-245,-262,-309,-296},{-228,-206,-220,-255,-274,-198},{-252,-198,-196,-318,-252,-282},{-299,-213,-174,-223,-179,-306},{-262,-233,-194,-282,-267,-189},{-250,-245,-257,-309,-316,-272},{-243,-267,-208,-311,-257,-172},{-250,-296,-260,-194,-203,-238},{-296,-191,-223,-274,-230,-240},{-216,-265,-198,-189,-247,-304},{-216,-206,-306,-181,-287,-223},{-240,-301,-235,-174,-228,-213}},{{-252,-230,-309,-243,-247,-318},{-220,-245,-296,-270,-213,-216},{-225,-301,-225,-247,-282,-267},{-314,-265,-294,-181,-206,-255},{-191,-201,-220,-176,-172,-235},{-277,-318,-233,-218,-306,-172},{-218,-189,-294,-203,-318,-309},{-265,-306,-186,-216,-223,-306},{-294,-228,-245,-316,-257,-299},{-274,-211,-274,-252,-194,-238},{-233,-306,-260,-265,-257,-245},{-318,-301,-176,-184,-174,-282},{-220,-235,-213,-216,-304,-262},{-220,-284,-299,-260,-208,-304},{-318,-203,-206,-314,-272,-233},{-208,-172,-218,-184,-194,-262},{-247,-279,-172,-184,-218,-228},{-289,-238,-314,-289,-274,-306},{-265,-304,-277,-196,-198,-189},{-318,-311,-274,-176,-294,-238}}},{{{-238,-229,-261,-217,-277,-194},{-180,-229,-284,-171,-219,-275},{-268,-298,-226,-277,-208,-182},{-213,-229,-289,-166,-233,-280},{-236,-240,-284,-203,-189,-199},{-286,-280,-236,-240,-256,-245},{-300,-243,-192,-256,-169,-296},{-208,-196,-289,-249,-215,-261},{-249,-261,-162,-238,-180,-208},{-231,-196,-231,-243,-199,-247},{-222,-286,-229,-213,-275,-217},{-199,-243,-187,-296,-268,-261},{-215,-222,-277,-182,-180,-266},{-222,-238,-233,-166,-199,-296},{-240,-226,-187,-256,-219,-162},{-194,-261,-219,-187,-178,-213},{-201,-298,-273,-266,-187,-171},{-268,-196,-249,-203,-208,-169},{-263,-263,-164,-280,-240,-206},{-293,-261,-270,-296,-192,-199}},{{-245,-300,-192,-280,-259,-189},{-245,-291,-259,-238,-300,-245},{-189,-256,-280,-217,-256,-194},{-210,-229,-185,-185,-298,-173},{-171,-259,-238,-266,-206,-208},{-229,-286,-252,-206,-219,-180},{-282,-229,-192,-164,-300,-243},{-249,-180,-162,-203,-169,-203},{-173,-261,-210,-199,-173,-189},{-245,-201,-236,-196,-243,-252},{-247,-192,-270,-254,-173,-286},{-173,-268,-201,-268,-164,-296},{-162,-280,-289,-298,-189,-169},{-171,-201,-266,-243,-192,-196},{-245,-194,-229,-173,-213,-229},{-187,-266,-162,-256,-243,-247},{-284,-291,-236,-178,-203,-176},{-236,-194,-164,-286,-270,-275},{-254,-166,-277,-277,-169,-169},{-291,-270,-224,-231,-226,-166}},{{-245,-293,-169,-261,-238,-266},{-256,-256,-166,-178,-268,-176},{-231,-224,-293,-203,-180,-252},{-238,-215,-180,-173,-247,-261},{-254,-249,-217,-247,-226,-189},{-261,-291,-166,-213,-249,-233},{-282,-256,-284,-169,-236,-263},{-222,-263,-217,-252,-256,-275},{-300,-245,-249,-185,-203,-164},{-201,-233,-192,-238,-293,-229},{-210,-300,-254,-199,-222,-247},{-171,-293,-169,-270,-282,-201},{-208,-178,-261,-208,-194,-185},{-219,-199,-215,-291,-277,-284},{-213,-199,-280,-213,-213,-247},{-266,-226,-180,-273,-298,-280},{-231,-256,-293,-252,-254,-196},{-249,-231,-166,-196,-206,-180},{-298,-247,-289,-293,-217,-182},{-224,-270,-182,-300,-224,-215}},{{-189,-231,-178,-206,-236,-240},{-298,-284,-173,-233,-286,-291},{-240,-236,-213,-247,-192,-164},{-210,-215,-201,-236,-280,-187},{-224,-236,-236,-162,-254,-275},{-208,-238,-243,-164,-217,-236},{-245,-300,-206,-261,-180,-293},{-226,-208,-254,-268,-210,-192},{-192,-256,-189,-231,-176,-238},{-291,-176,-231,-243,-196,-277},{-266,-196,-245,-166,-176,-162},{-293,-166,-215,-226,-236,-196},{-213,-280,-178,-293,-169,-164},{-166,-173,-196,-240,-231,-185},{-192,-261,-226,-249,-189,-176},{-178,-280,-185,-286,-249,-173},{-252,-219,-252,-189,-284,-219},{-178,-240,-189,-273,-300,-173},{-268,-189,-222,-293,-273,-277},{-162,-298,-178,-164,-286,-194}},{{-226,-196,-226,-270,-206,-182},{-166,-245,-162,-233,-240,-185},{-194,-245,-236,-206,-249,-282},{-233,-293,-273,-298,-171,-171},{-286,-226,-189,-284,-263,-224},{-249,-213,-182,-266,-226,-256},{-185,-208,-176,-201,-252,-166},{-289,-213,-238,-231,-270,-243},{-215,-206,-187,-293,-162,-286},{-300,-286,-185,-300,-240,-208},{-254,-270,-256,-263,-199,-222},{-240,-252,-277,-296,-261,-187},{-254,-166,-185,-206,-192,-259},{-182,-162,-284,-231,-280,-300},{-266,-254,-201,-289,-226,-280},{-166,-261,-164,-249,-176,-203},{-238,-192,-208,-245,-293,-217},{-229,-268,-296,-182,-282,-201},{-236,-229,-289,-254,-196,-233},{-289,-217,-254,-226,-189,-226}},{{-233,-263,-219,-293,-296,-196},{-233,-273,-273,-252,-164,-222},{-259,-192,-273,-196,-254,-280},{-166,-280,-284,-233,-252,-275},{-229,-275,-263,-282,-259,-300},{-273,-199,-222,-213,-201,-252},{-296,-284,-238,-300,-286,-282},{-176,-182,-203,-187,-222,-291},{-210,-270,-201,-233,-231,-226},{-176,-233,-243,-284,-247,-270},{-243,-291,-268,-236,-219,-187},{-189,-243,-201,-222,-261,-249},{-185,-224,-286,-178,-178,-293},{-266,-231,-243,-286,-231,-254},{-222,-293,-215,-194,-164,-296},{-243,-266,-210,-240,-224,-185},{-263,-169,-194,-233,-187,-210},{-300,-178,-243,-210,-178,-215},{-277,-275,-247,-224,-254,-259},{-215,-245,-243,-284,-162,-293}}},{{{-206,-241,-344,-247,-350,-232},{-244,-356,-223,-247,-250,-353},{-220,-294,-273,-306,-244,-300},{-244,-250,-297,-223,-285,-206},{-303,-262,-212,-362,-365,-359},{-215,-215,-212,-353,-279,-379},{-256,-256,-359,-347,-215,-376},{-297,-270,-297,-244,-382,-323},{-229,-297,-265,-268,-365,-368},{-220,-300,-282,-297,-368,-265},{-256,-294,-270,-359,-220,-206},{-356,-218,-206,-262,-300,-206},{-379,-235,-220,-318,-256,-253},{-270,-282,-353,-226,-379,-268},{-332,-212,-253,-362,-300,-270},{-303,-303,-382,-285,-320,-376},{-241,-250,-347,-370,-320,-276},{-253,-370,-323,-244,-247,-329},{-344,-329,-379,-288,-235,-347},{-294,-347,-253,-329,-373,-220}},{{-368,-268,-215,-373,-256,-353},{-329,-253,-309,-335,-209,-285},{-212,-288,-276,-373,-373,-235},{-285,-279,-220,-268,-347,-373},{-350,-368,-309,-259,-226,-312},{-235,-309,-247,-382,-344,-335},{-373,-297,-250,-241,-323,-241},{-344,-288,-347,-359,-226,-347},{-259,-353,-256,-370,-241,-235},{-226,-344,-365,-320,-338,-265},{-218,-206,-303,-320,-215,-306},{-276,-282,-250,-368,-244,-359},{-373,-326,-329,-253,-209,-368},{-244,-282,-206,-270,-329,-273},{-244,-320,-382,-332,-276,-218},{-288,-353,-226,-362,-315,-350},{-270,-206,-229,-273,-362,-303},{-279,-335,-268,-259,-356,-244},{-265,-241,-270,-359,-232,-335},{-250,-309,-300,-353,-368,-323}},{{-238,-370,-332,-356,-250,-276},{-229,-326,-350,-329,-250,-241},{-212,-376,-241,-253,-223,-359},{-253,-353,-206,-209,-262,-238},{-365,-306,-212,-362,-300,-356},{-250,-326,-220,-288,-368,-238},{-315,-285,-250,-318,-268,-306},{-218,-223,-238,-350,-332,-382},{-288,-306,-256,-376,-370,-209},{-262,-235,-338,-256,-323,-232},{-265,-259,-268,-209,-256,-359},{-259,-218,-379,-212,-253,-309},{-273,-306,-238,-273,-276,-379},{-312,-309,-262,-347,-300,-279},{-309,-365,-297,-335,-335,-332},{-382,-297,-220,-218,-353,-232},{-218,-376,-365,-368,-215,-270},{-303,-212,-320,-368,-220,-232},{-250,-338,-294,-344,-356,-362},{-356,-241,-229,-315,-288,-341}},{{-268,-259,-220,-350,-268,-282},{-382,-212,-285,-362,-312,-332},{-350,-362,-373,-332,-368,-335},{-220,-259,-270,-338,-223,-282},{-359,-268,-359,-253,-350,-373},{-356,-212,-306,-291,-215,-282},{-382,-218,-232,-353,-206,-300},{-247,-235,-265,-294,-235,-303},{-288,-223,-359,-315,-232,-288},{-235,-356,-279,-335,-320,-262},{-370,-273,-276,-326,-376,-370},{-250,-268,-365,-320,-318,-350},{-285,-253,-335,-259,-220,-300},{-259,-318,-356,-303,-215,-370},{-291,-362,-247,-253,-282,-232},{-326,-232,-306,-362,-309,-235},{-218,-235,-379,-256,-262,-373},{-212,-268,-362,-373,-209,-306},{-335,-247,-209,-218,-220,-253},{-285,-329,-250,-347,-315,-250}},{{-268,-220,-232,-332,-218,-312},{-282,-229,-209,-262,-232,-206},{-379,-265,-379,-288,-235,-300},{-318,-259,-235,-303,-306,-326},{-270,-362,-259,-226,-306,-262},{-218,-253,-306,-356,-347,-306},{-323,-373,-294,-376,-232,-326},{-370,-212,-232,-303,-350,-218},{-206,-379,-382,-206,-241,-306},{-285,-326,-253,-350,-373,-288},{-209,-370,-268,-318,-315,-279},{-226,-300,-362,-297,-376,-326},{-297,-329,-347,-350,-232,-365},{-268,-350,-253,-335,-318,-226},{-297,-273,-332,-209,-376,-362},{-326,-309,-256,-212,-206,-323},{-215,-338,-285,-315,-273,-285},{-315,-344,-270,-279,-270,-288},{-250,-300,-220,-356,-276,-244},{-329,-229,-256,-318,-209,-303}},{{-262,-353,-265,-315,-253,-279},{-379,-329,-259,-218,-312,-285},{-244,-320,-309,-212,-259,-212},{-294,-262,-353,-312,-338,-318},{-209,-300,-318,-253,-265,-265},{-318,-291,-332,-341,-279,-318},{-379,-226,-350,-335,-300,-294},{-256,-338,-256,-370,-318,-250},{-262,-215,-288,-341,-300,-206},{-320,-238,-262,-276,-335,-212},{-218,-276,-379,-226,-370,-341},{-223,-291,-362,-218,-206,-250},{-329,-215,-223,-282,-344,-306},{-368,-297,-212,-247,-268,-226},{-341,-382,-303,-288,-318,-315},{-300,-212,-335,-226,-312,-247},{-220,-379,-323,-223,-338,-262},{-306,-276,-315,-262,-268,-318},{-223,-347,-241,-209,-356,-268},{-282,-226,-288,-368,-356,-279}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1841,192,221,150,198,208,315,198,294}; // initial inventory 
int ubiv[I]={2104,384,442,300,396,416,630,396,588}; // 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.32,8.46,5.6,4.24,2.89,1.51,4.53,7.74}; // 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.11,7.69,5.09,3.85,2.63,1.37,4.12,7.04}}; // 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.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,6.15,6.15,6.15,5.38,5.38,5.38,4.61,4.61,4.61,4.07,4.07,4.07,3.56,3.56,3.56,3.05,3.05,3.05,3.08,3.08,3.08,2.7,2.7,2.7,2.31,2.31,2.31,2.1,2.1,2.1,1.84,1.84,1.84,1.58,1.58,1.58,1.1,1.1,1.1,0.96,0.96,0.96,0.82,0.82,0.82,3.3,3.3,3.3,2.88,2.88,2.88,2.47,2.47,2.47,5.63,5.63,5.63,4.93,4.93,4.93,4.22,4.22,4.22}; // 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,16,8,6,15,8,5,17,9,6,17,9,6,16,8,6,17,9,6,16,9,6,16,9,6,16,9,6,17,9,6,16,8,6,17,9,6,17,9,6,18,9,6,17,9,6,18,9,6,17,9,6,17,9,6,17,9,6,17,9,6,16,8,6,16,8,6,17,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,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,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,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,1,5,9,13,17,21,25,29,1,7,13,19,25,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,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,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,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,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,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,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,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,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,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,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,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,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,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,2,6,10,14,18,22,26,30,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32}; // 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,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,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,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,5,11,17,23,29,35,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,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,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,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,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,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,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,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,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,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,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,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,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,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,5,11,17,23,29,35}; // set of end times of each shipment 
