int Dev = 30;// Deviation
extern const int CNN = 4;// Case Index
extern const int P = 3;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 18;// 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 = 343;//Number of shipments
extern const int SN = 50;//Number of scenarios at each stage
extern const int MBSN = 8;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={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}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{11603,0,0,0,0,0},{10686,0,0,0,0,0},{10964,0,0,0,0,0},{11299,0,0,0,0,0},{11280,0,0,0,0,0},{11046,0,0,0,0,0},{11425,0,0,0,0,0},{10916,0,0,0,0,0},{10495,0,0,0,0,0},{11105,0,0,0,0,0},{11343,0,0,0,0,0},{11143,0,0,0,0,0},{10982,0,0,0,0,0},{11279,0,0,0,0,0},{11304,0,0,0,0,0},{11583,0,0,0,0,0},{10775,0,0,0,0,0},{11251,0,0,0,0,0},{11868,0,0,0,0,0},{11101,0,0,0,0,0},{10837,0,0,0,0,0},{11198,0,0,0,0,0},{10908,0,0,0,0,0},{11078,0,0,0,0,0},{10875,0,0,0,0,0},{11152,0,0,0,0,0},{10995,0,0,0,0,0},{11341,0,0,0,0,0},{10920,0,0,0,0,0},{11399,0,0,0,0,0},{11314,0,0,0,0,0},{11428,0,0,0,0,0},{11266,0,0,0,0,0},{10967,0,0,0,0,0},{10490,0,0,0,0,0},{11191,0,0,0,0,0},{10881,0,0,0,0,0},{10602,0,0,0,0,0},{11334,0,0,0,0,0},{11401,0,0,0,0,0},{11482,0,0,0,0,0},{11182,0,0,0,0,0},{11029,0,0,0,0,0},{11199,0,0,0,0,0},{10642,0,0,0,0,0},{11071,0,0,0,0,0},{10685,0,0,0,0,0},{11644,0,0,0,0,0},{11140,0,0,0,0,0},{10923,0,0,0,0,0}},{{10831,0,0,0,0,0},{11526,0,0,0,0,0},{11255,0,0,0,0,0},{10777,0,0,0,0,0},{11049,0,0,0,0,0},{11096,0,0,0,0,0},{11278,0,0,0,0,0},{10731,0,0,0,0,0},{11237,0,0,0,0,0},{11339,0,0,0,0,0},{10558,0,0,0,0,0},{11243,0,0,0,0,0},{11443,0,0,0,0,0},{11477,0,0,0,0,0},{10907,0,0,0,0,0},{11454,0,0,0,0,0},{11452,0,0,0,0,0},{11343,0,0,0,0,0},{10835,0,0,0,0,0},{10511,0,0,0,0,0},{10853,0,0,0,0,0},{11365,0,0,0,0,0},{10639,0,0,0,0,0},{11081,0,0,0,0,0},{10791,0,0,0,0,0},{11243,0,0,0,0,0},{11083,0,0,0,0,0},{11090,0,0,0,0,0},{10984,0,0,0,0,0},{10890,0,0,0,0,0},{11252,0,0,0,0,0},{10878,0,0,0,0,0},{11047,0,0,0,0,0},{11490,0,0,0,0,0},{10583,0,0,0,0,0},{11504,0,0,0,0,0},{11241,0,0,0,0,0},{11419,0,0,0,0,0},{10788,0,0,0,0,0},{11037,0,0,0,0,0},{11068,0,0,0,0,0},{11370,0,0,0,0,0},{11358,0,0,0,0,0},{11509,0,0,0,0,0},{11078,0,0,0,0,0},{10703,0,0,0,0,0},{11175,0,0,0,0,0},{10790,0,0,0,0,0},{10998,0,0,0,0,0},{11354,0,0,0,0,0}},{{11038,0,0,0,0,0},{11444,0,0,0,0,0},{11022,0,0,0,0,0},{11050,0,0,0,0,0},{11044,0,0,0,0,0},{11216,0,0,0,0,0},{10298,0,0,0,0,0},{11126,0,0,0,0,0},{10260,0,0,0,0,0},{10643,0,0,0,0,0},{11213,0,0,0,0,0},{10882,0,0,0,0,0},{11025,0,0,0,0,0},{11326,0,0,0,0,0},{11333,0,0,0,0,0},{11180,0,0,0,0,0},{11091,0,0,0,0,0},{11568,0,0,0,0,0},{11030,0,0,0,0,0},{10960,0,0,0,0,0},{10585,0,0,0,0,0},{10969,0,0,0,0,0},{10834,0,0,0,0,0},{11230,0,0,0,0,0},{11007,0,0,0,0,0},{11206,0,0,0,0,0},{11291,0,0,0,0,0},{10584,0,0,0,0,0},{11119,0,0,0,0,0},{10979,0,0,0,0,0},{10721,0,0,0,0,0},{10865,0,0,0,0,0},{11500,0,0,0,0,0},{10989,0,0,0,0,0},{10786,0,0,0,0,0},{11263,0,0,0,0,0},{11173,0,0,0,0,0},{11422,0,0,0,0,0},{11259,0,0,0,0,0},{10805,0,0,0,0,0},{10821,0,0,0,0,0},{10859,0,0,0,0,0},{10737,0,0,0,0,0},{11166,0,0,0,0,0},{11151,0,0,0,0,0},{10592,0,0,0,0,0},{11244,0,0,0,0,0},{11150,0,0,0,0,0},{11288,0,0,0,0,0},{10675,0,0,0,0,0}}},{{{-237,-211,-264,-188,-235,-271},{-197,-188,-181,-159,-164,-186},{-172,-226,-228,-181,-170,-242},{-157,-190,-170,-175,-226,-276},{-166,-258,-197,-197,-184,-276},{-208,-251,-226,-267,-177,-282},{-282,-157,-280,-179,-202,-161},{-186,-249,-197,-186,-181,-168},{-204,-271,-258,-235,-166,-255},{-249,-208,-246,-244,-251,-264},{-284,-269,-267,-164,-258,-170},{-271,-240,-195,-271,-179,-242},{-213,-253,-186,-177,-284,-269},{-271,-202,-253,-190,-195,-240},{-193,-172,-231,-206,-228,-255},{-224,-217,-161,-278,-244,-269},{-184,-226,-179,-231,-226,-224},{-242,-186,-251,-280,-267,-172},{-262,-228,-240,-278,-258,-291},{-204,-208,-186,-246,-197,-233},{-177,-235,-193,-226,-157,-264},{-273,-260,-282,-262,-289,-204},{-186,-197,-260,-260,-211,-235},{-262,-220,-172,-264,-244,-177},{-235,-175,-172,-168,-193,-179},{-226,-269,-159,-251,-269,-282},{-193,-287,-253,-179,-255,-262},{-208,-215,-186,-262,-284,-284},{-159,-190,-188,-164,-291,-253},{-215,-278,-287,-284,-262,-199},{-231,-246,-193,-273,-260,-197},{-168,-188,-211,-246,-278,-249},{-237,-244,-269,-233,-231,-186},{-188,-217,-278,-184,-172,-280},{-233,-258,-228,-226,-211,-255},{-246,-264,-264,-202,-175,-235},{-280,-197,-284,-204,-161,-249},{-175,-224,-215,-170,-157,-233},{-197,-269,-233,-193,-240,-278},{-168,-282,-206,-235,-278,-233},{-226,-186,-276,-260,-264,-262},{-195,-228,-177,-161,-226,-244},{-172,-226,-249,-166,-269,-220},{-235,-208,-226,-166,-235,-289},{-188,-159,-269,-235,-211,-202},{-233,-244,-206,-168,-280,-193},{-228,-164,-168,-235,-287,-262},{-211,-267,-262,-287,-269,-199},{-249,-282,-262,-220,-271,-199},{-276,-215,-177,-188,-168,-289}},{{-291,-213,-249,-184,-242,-240},{-206,-287,-267,-161,-269,-264},{-217,-260,-242,-197,-224,-276},{-231,-273,-206,-204,-170,-231},{-172,-255,-228,-220,-235,-244},{-222,-177,-197,-282,-193,-244},{-166,-175,-217,-231,-190,-260},{-255,-168,-213,-282,-157,-267},{-249,-195,-255,-222,-271,-179},{-273,-262,-164,-244,-168,-233},{-181,-237,-181,-260,-226,-184},{-175,-204,-237,-213,-213,-271},{-246,-199,-267,-273,-159,-202},{-188,-195,-197,-284,-179,-287},{-233,-168,-175,-197,-206,-159},{-168,-195,-235,-202,-204,-282},{-202,-240,-199,-190,-204,-190},{-276,-231,-278,-280,-226,-260},{-228,-222,-260,-168,-211,-186},{-235,-255,-175,-164,-208,-251},{-258,-291,-181,-237,-197,-253},{-282,-197,-233,-262,-264,-242},{-280,-282,-240,-202,-195,-168},{-240,-157,-177,-228,-190,-161},{-282,-195,-184,-184,-177,-193},{-170,-264,-282,-284,-188,-202},{-215,-224,-168,-217,-264,-267},{-276,-197,-186,-244,-177,-240},{-220,-287,-260,-172,-273,-217},{-195,-228,-186,-175,-280,-215},{-253,-242,-273,-179,-184,-264},{-179,-188,-159,-269,-175,-170},{-202,-166,-287,-202,-208,-233},{-269,-258,-159,-273,-220,-231},{-181,-273,-233,-164,-222,-258},{-253,-262,-291,-242,-215,-251},{-179,-271,-199,-159,-226,-202},{-244,-168,-280,-190,-202,-276},{-233,-188,-208,-269,-184,-231},{-244,-199,-253,-262,-170,-284},{-289,-255,-170,-220,-161,-215},{-235,-166,-271,-193,-186,-291},{-204,-211,-251,-289,-255,-188},{-170,-188,-233,-262,-282,-291},{-224,-213,-237,-202,-258,-284},{-197,-199,-202,-222,-278,-244},{-255,-276,-235,-228,-188,-282},{-168,-215,-208,-220,-264,-208},{-260,-237,-271,-170,-159,-179},{-284,-284,-273,-246,-157,-181}},{{-188,-177,-164,-289,-235,-282},{-289,-164,-224,-204,-273,-168},{-177,-170,-211,-233,-280,-206},{-278,-264,-197,-251,-199,-242},{-271,-184,-224,-190,-195,-282},{-222,-224,-291,-224,-166,-161},{-184,-159,-190,-260,-260,-184},{-159,-211,-197,-228,-228,-282},{-166,-193,-253,-226,-206,-226},{-157,-233,-260,-211,-197,-177},{-269,-170,-269,-273,-280,-159},{-222,-235,-177,-188,-244,-175},{-271,-249,-170,-255,-190,-222},{-244,-269,-242,-284,-260,-206},{-170,-217,-262,-220,-211,-291},{-175,-164,-255,-181,-291,-237},{-166,-161,-190,-193,-280,-231},{-246,-280,-262,-233,-217,-280},{-166,-231,-235,-211,-206,-193},{-280,-242,-289,-258,-249,-276},{-264,-181,-271,-199,-181,-282},{-170,-240,-175,-211,-206,-181},{-168,-195,-233,-269,-181,-215},{-251,-276,-242,-262,-237,-208},{-231,-260,-220,-168,-244,-179},{-226,-280,-188,-264,-258,-175},{-208,-291,-215,-224,-157,-255},{-271,-190,-193,-237,-157,-204},{-217,-224,-164,-186,-159,-213},{-249,-264,-181,-253,-260,-164},{-208,-237,-181,-164,-168,-242},{-237,-226,-282,-280,-244,-157},{-237,-246,-251,-284,-260,-220},{-175,-226,-208,-253,-199,-159},{-166,-226,-287,-258,-220,-168},{-217,-284,-251,-267,-190,-157},{-193,-276,-251,-264,-231,-255},{-188,-170,-202,-273,-170,-164},{-184,-244,-280,-161,-276,-226},{-244,-172,-284,-211,-211,-157},{-278,-282,-181,-168,-255,-220},{-260,-235,-170,-276,-255,-237},{-271,-224,-237,-199,-262,-159},{-235,-193,-202,-273,-164,-235},{-240,-262,-168,-164,-262,-271},{-215,-211,-202,-166,-193,-215},{-211,-282,-242,-177,-195,-226},{-289,-190,-246,-258,-242,-255},{-273,-251,-253,-204,-190,-161},{-186,-278,-166,-289,-159,-278}}},{{{-198,-178,-302,-217,-255,-305},{-181,-209,-309,-276,-183,-302},{-276,-286,-262,-228,-178,-205},{-169,-207,-262,-169,-250,-207},{-250,-302,-181,-226,-259,-255},{-214,-236,-193,-183,-245,-267},{-305,-245,-214,-298,-290,-190},{-219,-231,-228,-214,-228,-250},{-169,-231,-188,-167,-269,-264},{-264,-271,-188,-257,-200,-264},{-283,-290,-300,-217,-257,-295},{-188,-176,-288,-245,-293,-278},{-262,-233,-205,-188,-195,-243},{-271,-259,-212,-178,-243,-305},{-167,-259,-264,-186,-188,-219},{-250,-188,-238,-233,-231,-283},{-209,-271,-205,-183,-200,-231},{-290,-264,-181,-252,-267,-207},{-307,-248,-205,-293,-240,-262},{-264,-281,-286,-250,-250,-224},{-188,-300,-257,-300,-300,-209},{-188,-224,-250,-281,-226,-193},{-290,-305,-195,-240,-250,-238},{-186,-214,-257,-269,-214,-264},{-271,-259,-183,-295,-195,-188},{-207,-169,-252,-293,-181,-221},{-307,-257,-302,-236,-176,-181},{-274,-286,-286,-212,-240,-264},{-188,-174,-252,-188,-255,-300},{-307,-300,-257,-259,-219,-262},{-302,-236,-238,-205,-217,-307},{-278,-267,-178,-217,-274,-250},{-240,-302,-198,-288,-269,-176},{-288,-176,-278,-288,-233,-188},{-293,-174,-219,-224,-183,-195},{-245,-219,-231,-271,-264,-217},{-276,-243,-188,-302,-245,-278},{-226,-295,-174,-259,-207,-212},{-245,-276,-188,-171,-281,-295},{-293,-264,-202,-238,-307,-167},{-300,-295,-264,-224,-224,-224},{-169,-171,-219,-262,-267,-300},{-193,-221,-286,-226,-255,-300},{-262,-200,-243,-240,-288,-257},{-252,-290,-283,-302,-183,-214},{-198,-264,-300,-276,-274,-269},{-198,-231,-205,-295,-183,-219},{-236,-240,-305,-300,-214,-224},{-259,-271,-262,-224,-305,-195},{-257,-219,-300,-288,-202,-228}},{{-183,-167,-214,-228,-226,-257},{-259,-307,-271,-231,-193,-298},{-176,-252,-302,-181,-198,-278},{-298,-240,-186,-295,-248,-186},{-188,-278,-245,-228,-236,-209},{-233,-290,-278,-228,-245,-183},{-307,-224,-278,-293,-307,-252},{-195,-293,-252,-176,-286,-188},{-255,-271,-202,-205,-259,-198},{-278,-307,-252,-224,-169,-233},{-269,-281,-167,-178,-271,-233},{-188,-276,-278,-274,-171,-300},{-298,-176,-271,-298,-305,-221},{-305,-171,-286,-295,-190,-200},{-178,-167,-264,-245,-286,-264},{-169,-295,-290,-198,-195,-262},{-300,-259,-190,-186,-259,-262},{-307,-200,-300,-198,-293,-264},{-267,-209,-169,-298,-281,-183},{-169,-286,-224,-290,-167,-209},{-259,-183,-271,-198,-276,-205},{-255,-176,-240,-300,-240,-207},{-181,-181,-269,-305,-178,-264},{-178,-178,-255,-281,-307,-250},{-259,-269,-169,-286,-248,-267},{-171,-190,-226,-269,-207,-295},{-264,-245,-169,-248,-176,-188},{-305,-259,-226,-219,-295,-188},{-183,-245,-274,-221,-200,-283},{-298,-212,-305,-298,-198,-198},{-202,-226,-305,-217,-205,-188},{-290,-290,-252,-233,-290,-231},{-288,-212,-293,-221,-274,-248},{-209,-271,-293,-298,-274,-305},{-274,-198,-207,-252,-171,-178},{-190,-267,-283,-293,-276,-252},{-271,-233,-248,-302,-183,-202},{-195,-183,-171,-245,-290,-236},{-274,-231,-236,-305,-278,-231},{-188,-226,-195,-271,-295,-278},{-171,-243,-207,-252,-252,-224},{-188,-238,-224,-171,-298,-286},{-228,-283,-250,-228,-219,-238},{-281,-167,-200,-300,-305,-288},{-248,-259,-178,-195,-276,-283},{-238,-205,-276,-271,-183,-298},{-283,-262,-248,-281,-198,-274},{-209,-200,-167,-214,-217,-209},{-214,-286,-290,-228,-169,-250},{-243,-259,-236,-293,-288,-217}},{{-271,-252,-271,-290,-233,-169},{-176,-176,-283,-288,-238,-217},{-264,-278,-236,-209,-226,-298},{-193,-286,-252,-264,-200,-217},{-186,-233,-205,-295,-305,-300},{-198,-190,-202,-269,-209,-233},{-243,-167,-209,-300,-271,-248},{-198,-224,-202,-276,-174,-293},{-198,-167,-252,-252,-276,-193},{-183,-236,-264,-202,-202,-212},{-295,-174,-257,-178,-219,-238},{-281,-257,-200,-200,-252,-209},{-205,-212,-252,-186,-286,-245},{-193,-257,-302,-302,-288,-307},{-300,-221,-200,-302,-262,-286},{-183,-288,-252,-276,-198,-274},{-262,-295,-302,-245,-167,-267},{-274,-271,-243,-238,-255,-278},{-302,-240,-205,-226,-286,-269},{-169,-205,-276,-262,-188,-200},{-288,-167,-226,-190,-200,-219},{-195,-298,-190,-224,-167,-267},{-300,-183,-288,-305,-245,-219},{-286,-300,-209,-212,-293,-217},{-174,-169,-214,-307,-217,-290},{-302,-214,-298,-293,-183,-281},{-190,-190,-228,-281,-193,-295},{-226,-181,-181,-171,-252,-245},{-221,-255,-276,-207,-267,-219},{-205,-259,-288,-288,-212,-200},{-293,-269,-221,-243,-181,-205},{-300,-212,-309,-259,-193,-231},{-257,-302,-293,-293,-233,-212},{-167,-293,-224,-233,-281,-188},{-269,-245,-240,-298,-298,-214},{-176,-178,-238,-281,-212,-305},{-278,-226,-221,-250,-243,-221},{-205,-276,-238,-183,-307,-307},{-262,-219,-240,-307,-198,-255},{-202,-205,-209,-195,-188,-236},{-295,-174,-298,-278,-233,-271},{-171,-202,-269,-212,-290,-240},{-248,-233,-167,-169,-212,-236},{-290,-286,-226,-198,-245,-250},{-183,-283,-295,-186,-183,-248},{-300,-290,-298,-195,-276,-178},{-169,-248,-259,-238,-298,-202},{-188,-214,-245,-250,-169,-209},{-243,-267,-236,-236,-290,-233},{-269,-202,-188,-167,-233,-240}}},{{{-287,-319,-292,-270,-276,-202},{-311,-330,-336,-207,-278,-276},{-227,-341,-317,-344,-278,-303},{-344,-235,-270,-207,-221,-330},{-284,-322,-341,-216,-197,-281},{-235,-330,-273,-333,-306,-333},{-251,-347,-328,-339,-276,-235},{-276,-330,-336,-232,-341,-347},{-227,-281,-268,-216,-287,-328},{-268,-257,-306,-221,-191,-341},{-328,-314,-227,-308,-238,-311},{-248,-311,-314,-191,-246,-229},{-243,-341,-303,-303,-238,-262},{-213,-194,-330,-199,-265,-311},{-303,-349,-268,-306,-276,-328},{-339,-341,-319,-268,-268,-295},{-246,-216,-205,-292,-246,-308},{-308,-339,-284,-317,-197,-229},{-199,-325,-295,-292,-262,-308},{-314,-216,-317,-270,-308,-339},{-194,-306,-298,-240,-251,-257},{-333,-284,-341,-325,-333,-257},{-289,-202,-292,-311,-284,-328},{-349,-199,-314,-251,-328,-300},{-300,-347,-298,-221,-311,-213},{-278,-213,-243,-273,-265,-333},{-216,-317,-251,-207,-349,-311},{-202,-194,-194,-336,-268,-243},{-259,-295,-314,-202,-254,-259},{-341,-224,-251,-336,-317,-243},{-268,-205,-287,-339,-284,-298},{-341,-328,-308,-314,-259,-289},{-303,-344,-251,-347,-336,-243},{-322,-224,-205,-191,-287,-306},{-281,-248,-306,-284,-308,-224},{-287,-224,-216,-308,-281,-292},{-238,-281,-317,-251,-216,-259},{-322,-336,-273,-325,-355,-333},{-325,-229,-224,-216,-216,-336},{-270,-314,-349,-344,-218,-298},{-333,-207,-317,-232,-210,-336},{-216,-218,-300,-311,-330,-199},{-352,-314,-227,-240,-336,-254},{-355,-328,-349,-265,-248,-328},{-243,-352,-336,-191,-339,-238},{-328,-191,-257,-257,-268,-251},{-303,-229,-344,-194,-243,-207},{-276,-273,-276,-205,-325,-194},{-202,-355,-262,-295,-333,-238},{-202,-289,-336,-303,-246,-202}},{{-270,-191,-322,-238,-273,-238},{-336,-287,-311,-221,-344,-303},{-218,-259,-341,-276,-314,-308},{-330,-235,-229,-287,-232,-270},{-322,-322,-213,-317,-311,-284},{-270,-199,-352,-202,-224,-221},{-303,-202,-257,-218,-292,-235},{-207,-308,-347,-224,-339,-317},{-251,-251,-300,-221,-339,-270},{-352,-298,-287,-251,-311,-229},{-205,-191,-265,-322,-199,-278},{-216,-218,-207,-349,-273,-248},{-259,-276,-330,-276,-246,-352},{-311,-317,-349,-251,-330,-251},{-273,-227,-295,-328,-306,-339},{-262,-328,-328,-306,-202,-347},{-339,-191,-289,-248,-306,-317},{-235,-278,-339,-262,-347,-281},{-251,-292,-205,-268,-273,-311},{-191,-328,-221,-281,-333,-205},{-317,-199,-199,-268,-289,-268},{-278,-281,-213,-284,-314,-273},{-229,-308,-298,-218,-221,-287},{-218,-322,-254,-325,-306,-218},{-333,-336,-246,-213,-273,-202},{-330,-270,-273,-330,-213,-333},{-349,-284,-317,-289,-229,-207},{-213,-235,-265,-207,-246,-341},{-210,-273,-319,-235,-205,-319},{-246,-213,-352,-289,-251,-229},{-257,-344,-259,-278,-325,-213},{-210,-336,-281,-202,-281,-194},{-191,-254,-289,-218,-306,-246},{-311,-235,-341,-298,-341,-273},{-325,-344,-303,-352,-344,-240},{-265,-344,-216,-336,-298,-347},{-336,-308,-287,-319,-311,-240},{-278,-341,-341,-246,-298,-347},{-314,-227,-257,-199,-319,-344},{-314,-308,-330,-281,-281,-197},{-347,-330,-295,-216,-276,-298},{-265,-207,-229,-268,-344,-311},{-330,-347,-347,-262,-284,-303},{-251,-227,-322,-322,-262,-347},{-254,-270,-336,-325,-352,-289},{-199,-336,-194,-210,-240,-240},{-197,-325,-341,-229,-194,-270},{-300,-246,-197,-347,-205,-248},{-194,-216,-276,-352,-284,-257},{-224,-317,-349,-355,-328,-278}},{{-257,-262,-284,-322,-216,-306},{-298,-248,-194,-229,-311,-344},{-287,-240,-191,-295,-238,-213},{-205,-210,-339,-276,-289,-268},{-207,-308,-268,-270,-300,-262},{-213,-265,-284,-352,-303,-218},{-344,-232,-259,-216,-248,-317},{-243,-202,-339,-251,-284,-268},{-268,-238,-314,-257,-213,-259},{-218,-339,-216,-259,-295,-287},{-240,-330,-229,-213,-333,-319},{-235,-281,-243,-330,-257,-306},{-248,-319,-287,-259,-238,-199},{-303,-197,-319,-295,-333,-289},{-306,-295,-270,-289,-248,-276},{-325,-202,-330,-319,-229,-330},{-227,-224,-199,-287,-216,-281},{-311,-268,-265,-207,-298,-303},{-259,-246,-270,-248,-292,-240},{-319,-306,-213,-191,-278,-268},{-257,-205,-221,-207,-197,-352},{-317,-262,-355,-254,-349,-325},{-303,-317,-306,-254,-205,-218},{-221,-278,-292,-306,-251,-311},{-199,-251,-243,-341,-232,-216},{-355,-243,-311,-339,-262,-352},{-232,-248,-314,-227,-325,-341},{-232,-199,-319,-199,-328,-300},{-262,-325,-344,-259,-347,-199},{-317,-191,-303,-207,-213,-292},{-278,-199,-248,-210,-339,-265},{-202,-227,-314,-317,-218,-311},{-213,-197,-341,-284,-287,-276},{-303,-213,-254,-355,-336,-243},{-216,-281,-229,-336,-251,-352},{-235,-257,-276,-333,-205,-303},{-262,-221,-229,-213,-216,-281},{-349,-238,-333,-265,-248,-339},{-221,-265,-319,-349,-300,-333},{-205,-197,-300,-227,-289,-308},{-347,-205,-246,-325,-213,-259},{-243,-317,-347,-273,-259,-199},{-218,-284,-213,-287,-344,-259},{-325,-306,-330,-289,-194,-205},{-284,-259,-207,-224,-257,-314},{-221,-254,-218,-199,-352,-289},{-235,-319,-259,-303,-298,-248},{-254,-303,-202,-298,-213,-308},{-224,-330,-352,-254,-207,-246},{-238,-210,-317,-298,-254,-325}}},{{{-185,-185,-152,-114,-148,-140},{-136,-149,-108,-142,-200,-180},{-131,-134,-151,-116,-145,-148},{-120,-192,-162,-172,-176,-126},{-169,-182,-148,-131,-189,-172},{-186,-123,-200,-136,-197,-172},{-186,-154,-114,-143,-143,-172},{-199,-171,-125,-108,-142,-200},{-126,-180,-156,-172,-151,-128},{-152,-169,-132,-189,-109,-136},{-157,-145,-180,-192,-168,-160},{-140,-111,-140,-183,-156,-191},{-165,-163,-136,-151,-191,-180},{-171,-140,-180,-196,-171,-148},{-191,-143,-134,-137,-171,-194},{-180,-188,-108,-179,-200,-154},{-151,-183,-157,-111,-137,-122},{-157,-120,-162,-196,-145,-154},{-174,-134,-159,-142,-125,-114},{-171,-131,-137,-143,-171,-163},{-191,-134,-185,-117,-145,-169},{-148,-126,-188,-182,-142,-145},{-149,-163,-180,-172,-123,-194},{-142,-186,-188,-159,-134,-142},{-154,-145,-132,-162,-166,-166},{-172,-186,-112,-123,-108,-152},{-140,-132,-157,-123,-182,-112},{-160,-131,-156,-177,-166,-114},{-128,-157,-122,-139,-140,-200},{-156,-123,-188,-179,-197,-194},{-180,-172,-109,-160,-185,-131},{-188,-180,-192,-185,-145,-119},{-196,-142,-119,-156,-128,-171},{-145,-197,-142,-116,-172,-111},{-179,-166,-146,-183,-137,-129},{-108,-179,-179,-111,-197,-169},{-142,-176,-131,-131,-185,-151},{-139,-136,-160,-171,-122,-111},{-157,-177,-148,-139,-200,-177},{-151,-119,-129,-132,-122,-192},{-114,-192,-166,-179,-146,-191},{-128,-168,-145,-191,-162,-151},{-119,-152,-196,-159,-171,-182},{-183,-109,-183,-129,-136,-179},{-149,-176,-171,-143,-146,-140},{-123,-196,-139,-140,-140,-137},{-186,-126,-192,-166,-114,-151},{-186,-192,-182,-160,-137,-182},{-174,-152,-109,-148,-157,-123},{-134,-148,-149,-123,-151,-108}},{{-152,-189,-137,-168,-197,-154},{-131,-114,-156,-142,-189,-156},{-185,-125,-156,-140,-125,-182},{-182,-200,-116,-191,-165,-126},{-142,-182,-166,-154,-200,-119},{-156,-145,-128,-142,-120,-177},{-174,-143,-117,-176,-186,-134},{-112,-157,-114,-116,-183,-142},{-188,-159,-145,-149,-186,-131},{-162,-131,-137,-185,-196,-114},{-137,-108,-139,-151,-142,-129},{-171,-146,-166,-159,-146,-165},{-166,-185,-166,-132,-136,-129},{-149,-182,-165,-180,-132,-136},{-136,-156,-200,-163,-146,-186},{-163,-116,-119,-140,-179,-131},{-125,-176,-109,-152,-128,-125},{-119,-177,-199,-182,-194,-117},{-111,-196,-199,-129,-146,-148},{-165,-171,-157,-156,-156,-122},{-162,-156,-159,-182,-111,-112},{-157,-191,-143,-183,-159,-176},{-119,-116,-169,-123,-196,-197},{-159,-123,-117,-166,-196,-182},{-182,-182,-132,-123,-142,-131},{-134,-156,-165,-172,-159,-200},{-140,-137,-160,-162,-165,-191},{-182,-140,-166,-199,-136,-166},{-200,-136,-139,-139,-163,-160},{-131,-168,-165,-128,-171,-186},{-200,-192,-112,-146,-151,-182},{-122,-163,-157,-159,-143,-159},{-149,-160,-191,-152,-182,-196},{-131,-186,-182,-176,-168,-117},{-131,-116,-109,-154,-166,-169},{-189,-199,-176,-148,-134,-159},{-117,-163,-154,-166,-146,-128},{-188,-192,-176,-139,-176,-172},{-123,-157,-140,-177,-139,-112},{-168,-129,-123,-145,-125,-131},{-132,-179,-149,-180,-116,-172},{-179,-134,-142,-116,-146,-183},{-116,-145,-162,-142,-196,-125},{-156,-116,-137,-129,-131,-109},{-185,-194,-116,-185,-129,-109},{-140,-136,-183,-196,-128,-200},{-185,-131,-159,-154,-169,-156},{-131,-145,-180,-172,-114,-112},{-132,-166,-177,-140,-117,-166},{-142,-122,-157,-171,-122,-168}},{{-132,-116,-154,-172,-185,-122},{-168,-171,-123,-139,-174,-199},{-132,-159,-177,-166,-148,-111},{-139,-191,-111,-176,-125,-157},{-183,-197,-125,-182,-134,-163},{-200,-196,-149,-112,-194,-126},{-111,-188,-171,-176,-148,-174},{-172,-162,-136,-197,-176,-123},{-111,-169,-146,-123,-131,-149},{-177,-186,-188,-132,-165,-143},{-149,-174,-119,-169,-148,-183},{-109,-171,-151,-192,-174,-120},{-114,-136,-129,-140,-168,-169},{-191,-140,-172,-179,-156,-132},{-108,-172,-188,-160,-169,-137},{-160,-169,-186,-140,-157,-163},{-146,-177,-140,-128,-191,-188},{-166,-159,-180,-199,-194,-188},{-122,-145,-151,-128,-163,-137},{-182,-128,-163,-194,-174,-109},{-111,-128,-145,-140,-114,-186},{-176,-152,-117,-151,-142,-194},{-192,-140,-163,-126,-108,-177},{-152,-131,-159,-149,-143,-166},{-140,-114,-129,-180,-152,-159},{-143,-160,-119,-194,-157,-162},{-171,-108,-154,-162,-126,-128},{-152,-145,-186,-200,-174,-169},{-129,-169,-168,-111,-185,-128},{-171,-197,-183,-197,-109,-128},{-196,-109,-116,-199,-182,-151},{-194,-142,-183,-152,-148,-134},{-194,-168,-143,-168,-152,-120},{-154,-152,-123,-154,-183,-200},{-171,-125,-165,-199,-160,-112},{-128,-183,-159,-120,-183,-199},{-139,-146,-200,-169,-182,-200},{-114,-182,-183,-136,-163,-156},{-180,-194,-156,-169,-183,-149},{-196,-109,-166,-128,-156,-182},{-171,-154,-152,-126,-182,-145},{-163,-137,-191,-139,-151,-122},{-129,-120,-189,-176,-111,-123},{-148,-119,-108,-112,-179,-188},{-126,-132,-132,-179,-149,-180},{-197,-111,-114,-119,-111,-177},{-199,-120,-156,-185,-189,-199},{-131,-131,-197,-159,-179,-146},{-160,-126,-197,-112,-166,-166},{-126,-196,-120,-169,-128,-160}}},{{{-224,-157,-142,-193,-229,-218},{-164,-218,-173,-136,-175,-182},{-144,-129,-178,-228,-189,-131},{-218,-206,-198,-166,-166,-140},{-206,-155,-220,-213,-177,-206},{-202,-180,-129,-157,-127,-129},{-187,-153,-149,-191,-211,-206},{-169,-169,-155,-213,-211,-162},{-173,-146,-140,-207,-158,-155},{-138,-233,-140,-228,-202,-162},{-222,-191,-136,-160,-127,-218},{-164,-138,-217,-200,-220,-187},{-133,-200,-158,-235,-144,-157},{-204,-195,-177,-178,-217,-167},{-198,-235,-213,-140,-164,-133},{-140,-157,-220,-191,-187,-237},{-142,-144,-237,-202,-142,-211},{-136,-237,-231,-146,-228,-169},{-175,-198,-200,-131,-197,-226},{-162,-222,-129,-197,-182,-215},{-218,-178,-184,-198,-167,-206},{-189,-220,-198,-191,-147,-207},{-157,-167,-167,-169,-127,-142},{-189,-228,-129,-127,-129,-166},{-129,-213,-211,-147,-193,-215},{-197,-164,-146,-193,-200,-224},{-180,-213,-187,-191,-173,-147},{-155,-224,-207,-157,-162,-127},{-211,-138,-177,-162,-173,-162},{-215,-173,-189,-151,-147,-171},{-173,-224,-158,-151,-209,-218},{-187,-157,-140,-173,-158,-180},{-180,-160,-136,-220,-162,-155},{-197,-226,-195,-211,-140,-182},{-129,-138,-189,-218,-133,-184},{-144,-173,-200,-233,-149,-180},{-157,-146,-131,-169,-169,-173},{-171,-200,-151,-180,-131,-140},{-164,-233,-189,-182,-178,-173},{-198,-187,-142,-204,-217,-178},{-195,-157,-235,-222,-142,-231},{-187,-186,-200,-224,-144,-233},{-177,-182,-191,-233,-135,-149},{-220,-135,-129,-151,-158,-129},{-153,-147,-167,-138,-171,-206},{-157,-197,-138,-162,-228,-220},{-189,-149,-191,-169,-180,-218},{-222,-233,-171,-144,-213,-142},{-127,-191,-209,-184,-155,-226},{-140,-215,-235,-182,-177,-147}},{{-187,-144,-144,-180,-157,-215},{-142,-220,-195,-211,-235,-178},{-218,-187,-222,-136,-169,-211},{-144,-129,-155,-155,-166,-202},{-233,-226,-147,-207,-151,-167},{-215,-167,-226,-133,-222,-169},{-209,-186,-173,-175,-193,-189},{-142,-195,-136,-191,-151,-228},{-226,-200,-220,-180,-129,-173},{-129,-187,-173,-166,-228,-138},{-171,-135,-135,-167,-166,-177},{-207,-224,-226,-133,-162,-173},{-233,-195,-195,-209,-198,-186},{-229,-197,-133,-235,-209,-151},{-129,-184,-144,-129,-129,-177},{-144,-178,-235,-189,-237,-229},{-146,-202,-209,-191,-129,-138},{-164,-229,-171,-136,-133,-184},{-222,-151,-187,-140,-228,-149},{-231,-218,-195,-202,-127,-169},{-175,-204,-166,-235,-226,-155},{-191,-204,-186,-207,-222,-178},{-186,-151,-149,-186,-180,-144},{-182,-155,-211,-215,-187,-197},{-155,-195,-131,-228,-164,-182},{-198,-142,-177,-157,-131,-198},{-146,-209,-228,-140,-164,-171},{-211,-129,-158,-204,-220,-151},{-235,-207,-226,-164,-167,-164},{-207,-166,-155,-144,-127,-169},{-153,-186,-209,-206,-206,-127},{-155,-151,-195,-206,-178,-178},{-198,-200,-229,-195,-198,-153},{-202,-204,-218,-171,-175,-151},{-142,-186,-147,-158,-158,-129},{-231,-228,-131,-171,-235,-209},{-187,-129,-197,-166,-229,-147},{-215,-178,-131,-198,-142,-133},{-186,-178,-204,-235,-138,-220},{-149,-226,-228,-160,-220,-169},{-217,-237,-177,-233,-189,-151},{-202,-209,-200,-173,-228,-167},{-136,-191,-135,-202,-131,-229},{-171,-193,-160,-233,-166,-184},{-158,-180,-200,-169,-153,-171},{-204,-202,-169,-200,-138,-231},{-189,-231,-164,-200,-213,-167},{-222,-235,-191,-204,-155,-215},{-233,-175,-175,-149,-157,-213},{-166,-198,-175,-218,-217,-142}},{{-189,-235,-189,-153,-158,-213},{-231,-222,-213,-129,-147,-131},{-187,-231,-200,-209,-175,-237},{-140,-209,-220,-231,-226,-169},{-224,-153,-226,-182,-220,-191},{-211,-135,-211,-182,-215,-193},{-147,-138,-135,-133,-173,-142},{-146,-213,-237,-217,-167,-151},{-158,-228,-197,-200,-146,-235},{-175,-133,-197,-167,-164,-173},{-158,-180,-129,-195,-206,-215},{-186,-197,-186,-200,-213,-177},{-211,-151,-198,-229,-142,-135},{-140,-177,-142,-136,-218,-207},{-127,-231,-129,-187,-224,-215},{-171,-229,-235,-153,-127,-180},{-144,-228,-127,-215,-204,-207},{-157,-140,-229,-224,-131,-180},{-136,-233,-157,-180,-178,-127},{-180,-204,-136,-131,-127,-187},{-191,-200,-157,-146,-217,-237},{-180,-160,-229,-224,-166,-146},{-187,-140,-157,-226,-200,-162},{-173,-173,-158,-162,-211,-164},{-189,-175,-144,-222,-211,-133},{-153,-217,-224,-184,-204,-151},{-169,-211,-202,-164,-200,-144},{-204,-178,-171,-237,-149,-146},{-237,-217,-164,-226,-173,-209},{-226,-167,-231,-211,-186,-186},{-160,-129,-140,-133,-197,-213},{-153,-136,-166,-140,-160,-220},{-149,-158,-153,-189,-202,-220},{-182,-191,-231,-147,-215,-131},{-144,-211,-226,-155,-218,-149},{-157,-167,-224,-204,-200,-131},{-175,-180,-129,-218,-202,-184},{-140,-193,-215,-142,-127,-164},{-140,-206,-153,-220,-202,-180},{-164,-169,-157,-220,-226,-146},{-138,-144,-191,-146,-160,-191},{-136,-233,-187,-222,-157,-146},{-207,-229,-131,-153,-144,-209},{-178,-167,-204,-193,-135,-177},{-204,-175,-231,-206,-144,-237},{-197,-206,-197,-155,-135,-127},{-215,-129,-215,-149,-182,-189},{-155,-198,-195,-133,-213,-220},{-164,-160,-220,-197,-180,-153},{-166,-144,-178,-175,-191,-129}}},{{{-272,-299,-181,-289,-294,-294},{-203,-198,-255,-265,-216,-213},{-255,-304,-301,-198,-206,-279},{-318,-316,-230,-194,-306,-318},{-252,-247,-191,-306,-252,-274},{-294,-284,-247,-189,-208,-257},{-292,-267,-304,-311,-296,-189},{-179,-314,-223,-309,-262,-228},{-306,-247,-247,-186,-176,-272},{-301,-179,-260,-296,-247,-289},{-299,-238,-174,-318,-191,-172},{-289,-176,-272,-243,-201,-267},{-238,-176,-225,-250,-181,-243},{-255,-299,-257,-223,-272,-247},{-267,-174,-223,-265,-211,-235},{-304,-272,-252,-172,-233,-233},{-260,-311,-282,-270,-243,-277},{-233,-265,-223,-287,-294,-179},{-284,-277,-316,-314,-304,-301},{-316,-245,-220,-228,-172,-213},{-198,-316,-282,-287,-243,-179},{-191,-179,-179,-284,-245,-206},{-277,-309,-243,-223,-235,-196},{-265,-294,-294,-211,-228,-201},{-318,-194,-274,-240,-260,-172},{-318,-208,-289,-225,-299,-292},{-228,-247,-181,-230,-304,-252},{-296,-272,-257,-294,-174,-301},{-292,-282,-191,-306,-260,-309},{-255,-176,-265,-267,-206,-194},{-284,-240,-265,-174,-181,-174},{-296,-220,-181,-279,-316,-250},{-316,-260,-181,-314,-225,-181},{-314,-216,-196,-218,-299,-228},{-262,-174,-267,-220,-292,-179},{-262,-247,-255,-208,-238,-272},{-225,-265,-196,-194,-194,-223},{-179,-279,-174,-189,-176,-186},{-292,-272,-223,-184,-309,-235},{-270,-267,-304,-260,-201,-284},{-279,-284,-284,-277,-174,-267},{-265,-274,-257,-233,-316,-179},{-184,-172,-172,-172,-294,-186},{-250,-267,-309,-294,-194,-238},{-243,-208,-277,-194,-172,-318},{-194,-235,-233,-282,-235,-250},{-198,-216,-218,-235,-314,-304},{-189,-250,-186,-279,-306,-223},{-252,-225,-247,-235,-208,-272},{-247,-235,-272,-186,-238,-223}},{{-257,-184,-179,-223,-252,-255},{-272,-189,-198,-172,-208,-247},{-243,-247,-203,-274,-223,-238},{-191,-277,-186,-245,-216,-270},{-201,-287,-279,-179,-262,-206},{-225,-304,-243,-289,-257,-194},{-284,-218,-318,-255,-309,-301},{-306,-257,-198,-265,-220,-252},{-218,-311,-318,-299,-172,-228},{-208,-314,-186,-225,-240,-301},{-270,-260,-198,-314,-245,-189},{-314,-184,-267,-218,-255,-191},{-238,-245,-194,-191,-260,-267},{-260,-282,-292,-184,-306,-311},{-228,-186,-243,-277,-299,-304},{-216,-289,-309,-218,-304,-172},{-272,-301,-314,-314,-296,-309},{-230,-267,-318,-223,-220,-206},{-230,-270,-282,-247,-189,-245},{-270,-284,-176,-223,-277,-174},{-287,-230,-194,-216,-299,-194},{-176,-194,-292,-250,-238,-279},{-306,-265,-238,-304,-282,-196},{-240,-257,-309,-225,-304,-172},{-272,-309,-181,-208,-287,-235},{-238,-252,-314,-252,-309,-316},{-277,-272,-279,-306,-287,-176},{-240,-289,-174,-257,-296,-208},{-208,-230,-247,-230,-267,-301},{-260,-277,-243,-287,-238,-230},{-318,-230,-262,-230,-216,-218},{-238,-228,-265,-301,-277,-299},{-216,-230,-299,-225,-216,-274},{-191,-211,-292,-299,-184,-220},{-174,-186,-216,-272,-309,-255},{-277,-196,-240,-201,-296,-247},{-196,-318,-186,-316,-174,-277},{-294,-203,-287,-296,-252,-309},{-201,-294,-174,-206,-179,-206},{-176,-314,-279,-216,-218,-282},{-223,-233,-216,-240,-184,-318},{-213,-203,-238,-223,-318,-194},{-203,-277,-174,-272,-172,-218},{-318,-230,-279,-194,-260,-301},{-250,-218,-287,-223,-252,-240},{-245,-314,-250,-176,-243,-257},{-176,-172,-247,-228,-243,-267},{-316,-203,-265,-257,-247,-292},{-238,-257,-228,-250,-277,-216},{-292,-228,-279,-213,-279,-287}},{{-270,-316,-274,-294,-274,-213},{-287,-184,-257,-287,-309,-306},{-198,-216,-304,-272,-172,-311},{-257,-260,-304,-176,-179,-309},{-211,-279,-181,-186,-311,-318},{-277,-284,-301,-262,-247,-304},{-296,-211,-179,-206,-194,-213},{-189,-301,-172,-299,-267,-296},{-262,-189,-191,-181,-262,-238},{-174,-198,-257,-245,-228,-184},{-257,-314,-230,-238,-279,-316},{-238,-230,-179,-196,-223,-233},{-257,-233,-196,-279,-196,-318},{-213,-186,-179,-294,-225,-174},{-294,-247,-257,-196,-296,-267},{-213,-296,-265,-304,-228,-233},{-289,-292,-277,-289,-272,-311},{-284,-318,-284,-228,-250,-272},{-184,-194,-260,-306,-318,-309},{-218,-213,-292,-220,-250,-191},{-284,-235,-184,-309,-238,-184},{-196,-301,-198,-245,-299,-203},{-274,-211,-257,-314,-174,-314},{-294,-306,-230,-218,-208,-240},{-267,-316,-220,-314,-287,-211},{-216,-247,-243,-299,-277,-223},{-304,-238,-318,-316,-304,-206},{-220,-289,-184,-233,-314,-179},{-311,-186,-211,-189,-311,-245},{-287,-194,-191,-228,-211,-311},{-260,-223,-184,-172,-309,-233},{-191,-277,-250,-316,-191,-225},{-272,-189,-218,-213,-235,-309},{-243,-267,-292,-250,-174,-225},{-213,-218,-228,-250,-218,-179},{-203,-299,-172,-277,-265,-233},{-203,-203,-243,-306,-233,-216},{-277,-243,-252,-272,-304,-289},{-257,-194,-223,-252,-198,-250},{-257,-189,-250,-247,-250,-316},{-228,-294,-267,-245,-309,-223},{-252,-225,-247,-174,-306,-243},{-267,-306,-296,-223,-174,-240},{-230,-311,-245,-306,-181,-304},{-296,-240,-243,-282,-292,-314},{-213,-282,-240,-260,-238,-208},{-235,-262,-223,-287,-223,-287},{-262,-282,-247,-213,-240,-287},{-216,-301,-213,-240,-186,-301},{-304,-194,-294,-213,-318,-198}}},{{{-187,-256,-196,-273,-252,-247},{-238,-273,-261,-266,-201,-194},{-238,-206,-219,-263,-210,-192},{-224,-268,-254,-224,-277,-169},{-215,-286,-222,-268,-217,-268},{-196,-233,-215,-247,-182,-268},{-206,-259,-266,-219,-240,-189},{-187,-222,-243,-252,-296,-196},{-213,-275,-226,-233,-233,-182},{-300,-208,-201,-300,-280,-270},{-275,-226,-240,-192,-236,-268},{-199,-284,-180,-166,-266,-282},{-268,-222,-247,-238,-270,-282},{-173,-243,-275,-270,-275,-222},{-199,-210,-275,-245,-213,-256},{-275,-224,-229,-240,-275,-270},{-192,-296,-206,-189,-208,-261},{-215,-233,-247,-261,-185,-261},{-261,-196,-256,-169,-173,-254},{-231,-229,-171,-206,-256,-291},{-194,-180,-231,-173,-192,-187},{-196,-254,-217,-206,-185,-162},{-208,-187,-236,-263,-289,-169},{-268,-169,-233,-263,-268,-182},{-185,-252,-217,-282,-206,-296},{-277,-268,-233,-210,-233,-231},{-180,-275,-245,-252,-182,-164},{-171,-273,-173,-231,-249,-252},{-249,-240,-300,-249,-182,-166},{-280,-194,-261,-224,-162,-166},{-219,-171,-219,-219,-201,-249},{-282,-201,-286,-166,-259,-263},{-171,-268,-231,-199,-266,-222},{-224,-173,-180,-210,-296,-178},{-213,-282,-210,-201,-171,-229},{-180,-286,-245,-249,-247,-259},{-247,-273,-233,-203,-275,-293},{-286,-247,-282,-180,-233,-277},{-296,-243,-194,-180,-247,-254},{-296,-229,-293,-166,-252,-213},{-178,-194,-182,-263,-173,-291},{-185,-240,-189,-254,-293,-252},{-217,-243,-256,-256,-268,-243},{-201,-245,-289,-187,-226,-187},{-224,-162,-178,-268,-217,-162},{-233,-259,-298,-273,-203,-296},{-249,-215,-275,-236,-217,-192},{-280,-289,-222,-240,-196,-300},{-293,-263,-252,-180,-222,-173},{-273,-180,-169,-166,-169,-266}},{{-277,-229,-284,-240,-226,-296},{-215,-284,-273,-284,-236,-249},{-286,-282,-203,-293,-203,-192},{-199,-162,-192,-298,-217,-224},{-270,-245,-224,-275,-224,-166},{-243,-277,-243,-270,-273,-196},{-247,-252,-180,-171,-252,-166},{-185,-194,-249,-270,-277,-289},{-203,-224,-196,-187,-238,-296},{-194,-185,-300,-229,-219,-252},{-226,-296,-164,-182,-176,-277},{-229,-289,-280,-185,-296,-194},{-240,-286,-284,-178,-164,-275},{-164,-284,-187,-263,-236,-275},{-261,-206,-270,-284,-298,-169},{-245,-247,-289,-187,-298,-229},{-162,-275,-256,-259,-298,-284},{-280,-284,-217,-243,-217,-219},{-277,-176,-247,-203,-243,-185},{-268,-203,-203,-187,-270,-173},{-187,-196,-252,-296,-224,-180},{-192,-229,-282,-215,-233,-286},{-201,-178,-231,-275,-194,-238},{-249,-296,-185,-201,-229,-192},{-291,-199,-261,-189,-196,-259},{-224,-273,-231,-280,-182,-243},{-277,-240,-247,-210,-263,-210},{-199,-268,-236,-180,-291,-178},{-268,-164,-166,-166,-247,-296},{-236,-210,-270,-284,-231,-201},{-273,-268,-222,-201,-217,-284},{-189,-199,-206,-219,-231,-231},{-243,-222,-182,-169,-166,-171},{-270,-171,-187,-245,-240,-249},{-201,-164,-178,-196,-219,-187},{-199,-194,-162,-192,-291,-226},{-210,-185,-268,-226,-254,-213},{-206,-206,-176,-261,-162,-300},{-166,-226,-252,-252,-249,-282},{-249,-189,-284,-196,-229,-166},{-263,-240,-164,-273,-169,-176},{-245,-261,-298,-187,-293,-222},{-282,-236,-280,-243,-219,-282},{-280,-189,-229,-182,-219,-296},{-173,-199,-201,-203,-275,-182},{-238,-203,-266,-231,-213,-194},{-240,-162,-273,-226,-240,-203},{-173,-247,-173,-245,-286,-236},{-261,-206,-233,-180,-254,-249},{-243,-210,-162,-268,-270,-238}},{{-203,-296,-275,-180,-178,-182},{-240,-275,-231,-203,-300,-298},{-178,-208,-289,-247,-182,-247},{-187,-280,-270,-222,-226,-243},{-206,-226,-226,-263,-213,-222},{-296,-199,-192,-180,-249,-189},{-173,-240,-280,-176,-182,-178},{-298,-240,-238,-224,-224,-187},{-245,-166,-171,-229,-219,-178},{-291,-173,-194,-210,-270,-259},{-180,-247,-176,-185,-298,-289},{-238,-289,-224,-291,-236,-194},{-282,-291,-213,-233,-208,-254},{-243,-189,-162,-229,-275,-277},{-203,-240,-247,-185,-268,-164},{-182,-243,-173,-280,-178,-293},{-273,-231,-210,-180,-215,-219},{-164,-210,-203,-213,-256,-270},{-293,-277,-180,-266,-268,-215},{-284,-259,-194,-268,-203,-178},{-180,-245,-270,-196,-169,-189},{-194,-261,-210,-210,-266,-249},{-208,-164,-192,-162,-231,-222},{-192,-189,-166,-229,-233,-210},{-275,-256,-231,-171,-180,-238},{-270,-169,-185,-203,-249,-169},{-277,-215,-203,-259,-243,-187},{-203,-206,-196,-185,-176,-245},{-164,-192,-226,-249,-243,-185},{-192,-243,-194,-182,-196,-182},{-243,-217,-286,-182,-266,-238},{-206,-300,-266,-233,-252,-229},{-273,-224,-206,-300,-213,-296},{-282,-284,-164,-263,-268,-180},{-229,-217,-245,-180,-187,-277},{-185,-252,-293,-261,-243,-291},{-208,-266,-282,-247,-284,-208},{-275,-210,-236,-226,-187,-249},{-289,-268,-240,-162,-252,-224},{-268,-293,-275,-192,-289,-176},{-176,-162,-176,-277,-236,-219},{-187,-166,-268,-171,-256,-178},{-247,-268,-162,-270,-171,-277},{-284,-189,-280,-256,-293,-296},{-210,-261,-245,-176,-296,-182},{-243,-219,-162,-185,-268,-171},{-289,-192,-166,-266,-256,-275},{-284,-270,-210,-185,-215,-213},{-180,-245,-229,-185,-238,-233},{-261,-268,-270,-249,-194,-219}}},{{{-220,-353,-329,-312,-382,-373},{-279,-265,-226,-300,-297,-300},{-335,-253,-300,-362,-229,-326},{-373,-297,-356,-356,-347,-365},{-344,-226,-338,-241,-338,-235},{-265,-341,-262,-329,-323,-209},{-268,-270,-326,-206,-370,-359},{-259,-297,-276,-226,-215,-309},{-291,-309,-223,-282,-206,-212},{-218,-270,-238,-218,-312,-238},{-338,-229,-279,-300,-279,-253},{-365,-247,-368,-250,-318,-318},{-279,-341,-247,-226,-262,-376},{-306,-329,-259,-276,-335,-288},{-356,-376,-379,-320,-326,-323},{-265,-335,-297,-259,-288,-373},{-303,-368,-332,-218,-244,-294},{-318,-229,-229,-235,-373,-370},{-285,-379,-309,-376,-273,-373},{-338,-235,-223,-335,-241,-335},{-335,-250,-212,-323,-329,-282},{-309,-262,-250,-376,-309,-300},{-209,-244,-220,-326,-368,-223},{-382,-356,-250,-220,-350,-241},{-344,-273,-303,-338,-247,-238},{-265,-223,-338,-370,-253,-259},{-332,-253,-312,-279,-306,-297},{-273,-370,-309,-370,-326,-376},{-259,-368,-379,-332,-209,-253},{-379,-326,-244,-291,-250,-335},{-262,-359,-309,-382,-368,-382},{-303,-238,-297,-335,-306,-303},{-347,-215,-300,-368,-268,-312},{-276,-341,-318,-329,-320,-312},{-256,-206,-220,-259,-353,-215},{-238,-320,-341,-320,-329,-232},{-347,-241,-212,-368,-309,-253},{-229,-244,-226,-353,-318,-241},{-273,-338,-250,-347,-356,-312},{-288,-359,-226,-238,-309,-309},{-235,-359,-282,-353,-359,-238},{-318,-312,-382,-247,-315,-359},{-268,-288,-347,-291,-382,-238},{-341,-359,-256,-223,-326,-244},{-270,-273,-218,-303,-273,-288},{-306,-223,-256,-220,-309,-332},{-232,-326,-291,-206,-291,-244},{-373,-294,-335,-323,-250,-382},{-370,-238,-235,-312,-206,-318},{-376,-315,-347,-382,-312,-273}},{{-256,-312,-282,-323,-291,-215},{-268,-329,-306,-329,-268,-315},{-226,-226,-350,-276,-356,-359},{-256,-318,-256,-350,-256,-382},{-312,-209,-256,-294,-241,-318},{-326,-335,-288,-288,-335,-270},{-256,-282,-276,-382,-320,-347},{-250,-229,-209,-226,-226,-288},{-373,-382,-320,-279,-235,-279},{-259,-376,-370,-318,-382,-300},{-268,-379,-365,-276,-288,-300},{-373,-359,-218,-312,-320,-370},{-362,-335,-212,-326,-270,-332},{-262,-376,-206,-209,-323,-373},{-215,-291,-253,-338,-270,-326},{-268,-353,-373,-226,-341,-362},{-362,-353,-244,-353,-329,-270},{-309,-206,-212,-306,-250,-276},{-265,-256,-338,-265,-326,-303},{-247,-241,-259,-262,-265,-268},{-318,-303,-262,-356,-247,-220},{-291,-256,-215,-294,-376,-329},{-212,-209,-235,-338,-215,-300},{-241,-335,-320,-259,-350,-382},{-223,-318,-250,-223,-365,-262},{-338,-212,-244,-247,-329,-273},{-335,-238,-344,-256,-265,-268},{-370,-265,-382,-215,-291,-370},{-282,-291,-291,-232,-220,-382},{-338,-291,-223,-265,-212,-309},{-332,-312,-303,-244,-265,-373},{-226,-212,-300,-382,-332,-347},{-341,-279,-350,-238,-356,-329},{-215,-256,-359,-285,-347,-329},{-276,-215,-365,-268,-306,-312},{-268,-265,-253,-241,-359,-306},{-353,-370,-320,-262,-332,-376},{-356,-309,-370,-353,-229,-279},{-238,-238,-235,-332,-209,-312},{-297,-220,-238,-250,-382,-303},{-238,-226,-332,-303,-335,-382},{-379,-285,-362,-291,-370,-338},{-368,-332,-294,-291,-253,-335},{-365,-285,-300,-323,-297,-379},{-247,-232,-356,-341,-282,-285},{-265,-270,-212,-279,-268,-220},{-359,-297,-256,-270,-256,-376},{-215,-326,-297,-362,-253,-279},{-376,-323,-218,-235,-373,-332},{-303,-247,-247,-223,-273,-282}},{{-326,-309,-235,-253,-256,-218},{-365,-347,-338,-276,-279,-291},{-282,-329,-359,-253,-365,-226},{-297,-229,-270,-250,-294,-273},{-215,-226,-326,-273,-285,-212},{-368,-259,-362,-300,-373,-226},{-370,-235,-329,-209,-253,-247},{-332,-268,-356,-294,-300,-285},{-276,-218,-291,-215,-235,-344},{-303,-303,-320,-318,-356,-212},{-270,-223,-312,-288,-376,-265},{-359,-350,-220,-326,-262,-226},{-350,-206,-347,-306,-373,-268},{-318,-215,-332,-373,-256,-306},{-320,-250,-326,-332,-265,-303},{-229,-326,-232,-300,-338,-288},{-382,-270,-226,-244,-335,-288},{-368,-282,-276,-341,-241,-232},{-220,-256,-270,-318,-344,-370},{-306,-341,-353,-306,-238,-262},{-303,-368,-262,-285,-270,-335},{-279,-235,-350,-279,-356,-215},{-338,-282,-212,-262,-276,-359},{-335,-329,-338,-332,-335,-253},{-338,-309,-379,-382,-212,-318},{-253,-226,-220,-209,-312,-344},{-338,-218,-379,-359,-356,-218},{-303,-315,-279,-341,-232,-288},{-300,-344,-338,-300,-350,-315},{-368,-318,-244,-312,-220,-368},{-294,-238,-368,-306,-244,-382},{-215,-212,-268,-279,-285,-223},{-244,-223,-315,-356,-356,-356},{-365,-253,-259,-300,-306,-241},{-223,-218,-244,-206,-353,-312},{-379,-288,-344,-206,-329,-323},{-268,-329,-379,-300,-273,-270},{-382,-309,-365,-368,-382,-226},{-276,-209,-365,-241,-294,-294},{-332,-356,-350,-265,-212,-229},{-238,-235,-270,-359,-253,-226},{-253,-256,-206,-320,-353,-359},{-329,-220,-238,-297,-347,-262},{-256,-303,-232,-270,-238,-338},{-282,-362,-247,-262,-353,-223},{-347,-241,-218,-347,-262,-370},{-338,-282,-312,-303,-206,-306},{-220,-338,-344,-347,-294,-309},{-382,-347,-362,-294,-379,-306},{-206,-276,-238,-256,-279,-259}}}}; // 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]={6,4,2,6,3,2,6,3,2,7,4,3,7,4,3,8,4,3,7,4,3,8,4,3,8,4,3,7,4,3,7,4,3,8,4,3,8,5,3,8,4,3,8,4,3,8,4,3,8,5,3,8,4,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3}; // 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}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,0,4,8,12,2,8,2,4,6,8,10,12,1,5,9,2,8,1,3,5,7,9,11,1,5,9,1,7,2,4,6,8,10,12,14,1,5,9,13,1,7,13,2,4,6,8,10,12,14,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,1,5,9,13,2,8,14,2,4,6,8,10,12,14,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,2,8,14,2,4,6,8,10,12,14,1,5,9,13,2,8,14,2,4,6,8,10,12,14,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,16,0,4,8,12,16,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,1,3,5,7,9,11,13,15,1,5,9,13,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,16,0,6,12,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,2,8,14,1,3,5,7,9,11,13,0,4,8,12,2,8,14,2,4,6,8,10,12,14,1,5,9,13,1,7,13,2,4,6,8,10,12,14,2,6,10,14,0,6,12}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,5,9,13,17,7,13,7,9,11,13,15,17,6,10,14,7,13,6,8,10,12,14,16,6,10,14,6,12,5,7,9,11,13,15,17,4,8,12,16,4,10,16,5,7,9,11,13,15,17,5,9,13,17,5,11,17,3,5,7,9,11,13,15,17,4,8,12,16,5,11,17,4,6,8,10,12,14,16,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,4,10,16,3,5,7,9,11,13,15,17,2,6,10,14,4,10,16,4,6,8,10,12,14,16,3,7,11,15,4,10,16,4,6,8,10,12,14,16,4,8,12,16,3,9,15,2,4,6,8,10,12,14,16,4,8,12,16,2,8,14,3,5,7,9,11,13,15,17,1,5,9,13,17,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,1,7,13,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,2,4,6,8,10,12,14,16,1,5,9,13,17,1,7,13,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,4,10,16,4,6,8,10,12,14,16,3,7,11,15,5,11,17,5,7,9,11,13,15,17,4,8,12,16,4,10,16,5,7,9,11,13,15,17,5,9,13,17,3,9,15}; // set of end times of each shipment 
