int Dev = 30;// Deviation
extern const int CNN = 2;// 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 = 350;//Number of shipments
extern const int SN = 50;//Number of scenarios at each stage
extern const int MBSN = 9;//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]={{{{10873,0,0,0,0,0},{10948,0,0,0,0,0},{11296,0,0,0,0,0},{11271,0,0,0,0,0},{11308,0,0,0,0,0},{10543,0,0,0,0,0},{11102,0,0,0,0,0},{10769,0,0,0,0,0},{10549,0,0,0,0,0},{11056,0,0,0,0,0},{11373,0,0,0,0,0},{11063,0,0,0,0,0},{11768,0,0,0,0,0},{11055,0,0,0,0,0},{11343,0,0,0,0,0},{11420,0,0,0,0,0},{11106,0,0,0,0,0},{11177,0,0,0,0,0},{11453,0,0,0,0,0},{11267,0,0,0,0,0},{10951,0,0,0,0,0},{11052,0,0,0,0,0},{11259,0,0,0,0,0},{11132,0,0,0,0,0},{10892,0,0,0,0,0},{11062,0,0,0,0,0},{10802,0,0,0,0,0},{11021,0,0,0,0,0},{11254,0,0,0,0,0},{11369,0,0,0,0,0},{11066,0,0,0,0,0},{10824,0,0,0,0,0},{11126,0,0,0,0,0},{10787,0,0,0,0,0},{11383,0,0,0,0,0},{10878,0,0,0,0,0},{11107,0,0,0,0,0},{10939,0,0,0,0,0},{11107,0,0,0,0,0},{11914,0,0,0,0,0},{11435,0,0,0,0,0},{10557,0,0,0,0,0},{10757,0,0,0,0,0},{11090,0,0,0,0,0},{10693,0,0,0,0,0},{10312,0,0,0,0,0},{10693,0,0,0,0,0},{11226,0,0,0,0,0},{10641,0,0,0,0,0},{11226,0,0,0,0,0}},{{11293,0,0,0,0,0},{10947,0,0,0,0,0},{11088,0,0,0,0,0},{11060,0,0,0,0,0},{11188,0,0,0,0,0},{11348,0,0,0,0,0},{11272,0,0,0,0,0},{11023,0,0,0,0,0},{11163,0,0,0,0,0},{11248,0,0,0,0,0},{10653,0,0,0,0,0},{10991,0,0,0,0,0},{11172,0,0,0,0,0},{11431,0,0,0,0,0},{11376,0,0,0,0,0},{10733,0,0,0,0,0},{11207,0,0,0,0,0},{11100,0,0,0,0,0},{11191,0,0,0,0,0},{10907,0,0,0,0,0},{11040,0,0,0,0,0},{10540,0,0,0,0,0},{11128,0,0,0,0,0},{10647,0,0,0,0,0},{10774,0,0,0,0,0},{11420,0,0,0,0,0},{11158,0,0,0,0,0},{10855,0,0,0,0,0},{11202,0,0,0,0,0},{10986,0,0,0,0,0},{10721,0,0,0,0,0},{11307,0,0,0,0,0},{11266,0,0,0,0,0},{11308,0,0,0,0,0},{10977,0,0,0,0,0},{11437,0,0,0,0,0},{11087,0,0,0,0,0},{10616,0,0,0,0,0},{10912,0,0,0,0,0},{11160,0,0,0,0,0},{10827,0,0,0,0,0},{10768,0,0,0,0,0},{10894,0,0,0,0,0},{11040,0,0,0,0,0},{10503,0,0,0,0,0},{10817,0,0,0,0,0},{11131,0,0,0,0,0},{11188,0,0,0,0,0},{10939,0,0,0,0,0},{11477,0,0,0,0,0}},{{11132,0,0,0,0,0},{10994,0,0,0,0,0},{11230,0,0,0,0,0},{10586,0,0,0,0,0},{10771,0,0,0,0,0},{10868,0,0,0,0,0},{11620,0,0,0,0,0},{11017,0,0,0,0,0},{10445,0,0,0,0,0},{11092,0,0,0,0,0},{11001,0,0,0,0,0},{11043,0,0,0,0,0},{11013,0,0,0,0,0},{11466,0,0,0,0,0},{11242,0,0,0,0,0},{10464,0,0,0,0,0},{11020,0,0,0,0,0},{10839,0,0,0,0,0},{10990,0,0,0,0,0},{10673,0,0,0,0,0},{11046,0,0,0,0,0},{10841,0,0,0,0,0},{11081,0,0,0,0,0},{11390,0,0,0,0,0},{11077,0,0,0,0,0},{10712,0,0,0,0,0},{11214,0,0,0,0,0},{10978,0,0,0,0,0},{10929,0,0,0,0,0},{10843,0,0,0,0,0},{11271,0,0,0,0,0},{11076,0,0,0,0,0},{11531,0,0,0,0,0},{11582,0,0,0,0,0},{10834,0,0,0,0,0},{11517,0,0,0,0,0},{11148,0,0,0,0,0},{10994,0,0,0,0,0},{10947,0,0,0,0,0},{11640,0,0,0,0,0},{11195,0,0,0,0,0},{11102,0,0,0,0,0},{11003,0,0,0,0,0},{10584,0,0,0,0,0},{10958,0,0,0,0,0},{10899,0,0,0,0,0},{10917,0,0,0,0,0},{10454,0,0,0,0,0},{11140,0,0,0,0,0},{11117,0,0,0,0,0}}},{{{-181,-172,-175,-287,-228,-190},{-186,-175,-249,-215,-164,-159},{-222,-284,-276,-242,-284,-282},{-181,-255,-278,-217,-237,-287},{-289,-186,-213,-186,-284,-242},{-181,-195,-186,-291,-177,-186},{-186,-204,-177,-267,-262,-244},{-175,-282,-213,-224,-264,-253},{-284,-199,-264,-228,-202,-159},{-220,-190,-249,-188,-282,-289},{-195,-260,-258,-253,-267,-282},{-244,-244,-224,-242,-166,-166},{-166,-289,-159,-249,-168,-220},{-255,-175,-164,-195,-235,-282},{-282,-267,-202,-289,-287,-188},{-273,-208,-202,-181,-280,-195},{-253,-269,-197,-240,-278,-260},{-267,-228,-199,-204,-193,-287},{-253,-278,-168,-244,-224,-211},{-231,-222,-164,-208,-168,-157},{-206,-215,-291,-168,-249,-231},{-206,-284,-249,-242,-282,-181},{-233,-235,-291,-228,-231,-289},{-159,-181,-159,-213,-168,-258},{-211,-249,-249,-202,-188,-228},{-273,-273,-249,-224,-188,-164},{-237,-264,-166,-271,-224,-193},{-213,-244,-220,-291,-226,-224},{-273,-264,-197,-224,-280,-235},{-280,-267,-159,-269,-206,-177},{-226,-213,-233,-186,-278,-280},{-211,-289,-190,-193,-179,-262},{-197,-260,-177,-215,-289,-172},{-188,-251,-233,-235,-166,-273},{-260,-228,-193,-249,-249,-208},{-289,-271,-181,-222,-215,-181},{-287,-237,-197,-168,-231,-276},{-204,-157,-269,-235,-244,-164},{-242,-179,-269,-170,-276,-202},{-170,-278,-258,-262,-269,-251},{-233,-168,-278,-208,-240,-278},{-166,-197,-206,-276,-289,-244},{-206,-260,-168,-215,-291,-166},{-161,-233,-188,-278,-195,-228},{-188,-231,-188,-188,-166,-199},{-267,-253,-224,-179,-193,-168},{-184,-233,-220,-199,-213,-291},{-197,-164,-260,-213,-190,-282},{-282,-242,-262,-164,-159,-244},{-280,-276,-224,-262,-220,-222}},{{-215,-222,-159,-253,-278,-217},{-217,-280,-175,-233,-202,-253},{-188,-278,-237,-260,-231,-177},{-220,-224,-179,-284,-224,-228},{-271,-273,-287,-231,-289,-168},{-202,-224,-186,-224,-258,-269},{-287,-208,-215,-260,-217,-177},{-251,-186,-255,-287,-228,-208},{-170,-273,-231,-197,-233,-175},{-278,-233,-269,-170,-199,-199},{-242,-157,-211,-179,-157,-204},{-224,-237,-190,-195,-273,-276},{-246,-246,-222,-276,-190,-208},{-284,-222,-157,-284,-289,-172},{-289,-235,-170,-177,-172,-204},{-222,-213,-172,-260,-262,-179},{-170,-211,-282,-280,-244,-269},{-220,-204,-161,-267,-262,-179},{-157,-249,-170,-170,-284,-206},{-287,-246,-267,-226,-184,-161},{-170,-193,-199,-179,-284,-278},{-159,-231,-211,-206,-170,-246},{-240,-224,-164,-235,-220,-262},{-157,-157,-264,-177,-251,-222},{-193,-278,-202,-217,-159,-220},{-267,-276,-242,-253,-186,-235},{-253,-282,-215,-264,-197,-199},{-157,-235,-231,-188,-190,-273},{-179,-206,-190,-177,-278,-246},{-195,-184,-246,-204,-269,-242},{-179,-170,-224,-246,-177,-202},{-269,-251,-244,-202,-202,-168},{-260,-175,-204,-164,-278,-258},{-188,-215,-172,-190,-202,-213},{-190,-213,-208,-202,-233,-237},{-269,-251,-188,-157,-211,-237},{-175,-213,-193,-235,-273,-226},{-211,-213,-175,-181,-289,-206},{-168,-220,-172,-244,-289,-273},{-172,-215,-228,-175,-282,-202},{-170,-195,-159,-255,-289,-231},{-161,-159,-181,-168,-289,-271},{-282,-262,-273,-246,-284,-161},{-251,-255,-237,-284,-280,-186},{-206,-289,-170,-193,-255,-208},{-204,-260,-267,-172,-228,-193},{-251,-190,-217,-251,-199,-197},{-197,-202,-184,-195,-251,-235},{-235,-204,-168,-237,-215,-211},{-276,-237,-177,-235,-267,-253}},{{-262,-190,-233,-271,-276,-181},{-287,-206,-193,-255,-161,-240},{-289,-175,-224,-280,-224,-273},{-269,-284,-168,-278,-161,-168},{-190,-175,-233,-186,-161,-284},{-253,-244,-251,-255,-179,-255},{-260,-181,-193,-284,-181,-157},{-235,-271,-195,-159,-197,-172},{-161,-278,-244,-282,-195,-231},{-164,-262,-246,-249,-193,-228},{-273,-172,-253,-260,-195,-287},{-246,-220,-202,-264,-202,-164},{-190,-204,-278,-255,-168,-226},{-284,-215,-282,-269,-181,-282},{-284,-224,-199,-242,-264,-217},{-190,-208,-175,-159,-231,-253},{-224,-166,-199,-164,-208,-267},{-197,-220,-271,-233,-202,-249},{-240,-159,-220,-166,-228,-177},{-175,-251,-159,-166,-291,-244},{-249,-159,-280,-260,-157,-224},{-217,-186,-177,-284,-193,-161},{-181,-186,-246,-278,-177,-246},{-170,-215,-161,-164,-215,-164},{-233,-193,-291,-186,-190,-284},{-186,-177,-271,-217,-273,-217},{-228,-197,-242,-260,-251,-235},{-228,-213,-244,-175,-188,-222},{-287,-161,-181,-269,-273,-211},{-269,-287,-251,-255,-181,-166},{-164,-161,-284,-193,-206,-204},{-195,-211,-215,-170,-287,-188},{-159,-271,-253,-280,-287,-240},{-237,-202,-262,-249,-267,-226},{-284,-184,-202,-237,-237,-278},{-206,-291,-284,-217,-220,-291},{-186,-181,-251,-235,-237,-255},{-181,-253,-157,-289,-267,-262},{-276,-195,-211,-199,-242,-166},{-166,-157,-197,-237,-242,-231},{-184,-262,-197,-235,-262,-251},{-278,-211,-253,-159,-195,-246},{-244,-235,-184,-215,-278,-186},{-240,-253,-282,-186,-224,-184},{-226,-220,-251,-168,-197,-166},{-179,-190,-273,-164,-213,-271},{-164,-186,-228,-186,-235,-226},{-231,-157,-264,-157,-217,-190},{-228,-251,-226,-161,-190,-175},{-184,-170,-195,-211,-276,-278}}},{{{-171,-181,-240,-243,-274,-195},{-233,-174,-205,-245,-190,-245},{-298,-298,-281,-295,-188,-212},{-290,-243,-198,-259,-193,-307},{-257,-283,-248,-231,-278,-286},{-271,-198,-188,-290,-262,-307},{-214,-233,-290,-202,-212,-226},{-221,-250,-307,-188,-181,-214},{-169,-274,-209,-269,-236,-300},{-288,-283,-207,-248,-248,-224},{-245,-295,-283,-228,-221,-205},{-205,-174,-228,-276,-267,-262},{-307,-248,-276,-264,-240,-286},{-245,-186,-186,-271,-198,-169},{-309,-255,-198,-198,-298,-283},{-250,-290,-264,-233,-293,-271},{-267,-171,-217,-281,-236,-209},{-300,-219,-214,-183,-309,-236},{-240,-267,-238,-238,-252,-264},{-202,-212,-295,-198,-236,-169},{-207,-274,-176,-174,-240,-214},{-300,-286,-183,-226,-178,-176},{-176,-195,-243,-286,-190,-181},{-224,-309,-283,-190,-224,-202},{-205,-174,-231,-276,-269,-212},{-286,-274,-209,-198,-300,-257},{-236,-240,-205,-221,-250,-231},{-259,-278,-174,-209,-245,-240},{-274,-209,-178,-181,-309,-252},{-288,-250,-288,-169,-198,-200},{-240,-305,-195,-243,-286,-205},{-255,-236,-190,-171,-274,-298},{-274,-178,-221,-186,-257,-236},{-224,-250,-262,-167,-183,-236},{-262,-188,-178,-221,-286,-250},{-305,-283,-221,-283,-200,-169},{-205,-200,-283,-290,-219,-248},{-255,-178,-169,-207,-264,-243},{-252,-207,-267,-264,-300,-269},{-245,-269,-281,-195,-305,-207},{-167,-205,-248,-181,-302,-195},{-219,-212,-226,-190,-209,-257},{-290,-259,-300,-214,-278,-283},{-226,-262,-300,-167,-302,-238},{-288,-171,-271,-212,-198,-198},{-188,-181,-174,-176,-224,-171},{-245,-195,-217,-250,-293,-240},{-169,-302,-298,-176,-286,-262},{-167,-167,-212,-200,-293,-205},{-169,-298,-302,-183,-190,-217}},{{-245,-183,-193,-228,-257,-300},{-259,-221,-209,-181,-238,-236},{-302,-209,-248,-174,-274,-186},{-224,-288,-226,-195,-269,-257},{-290,-217,-290,-195,-193,-219},{-219,-286,-288,-259,-286,-233},{-293,-283,-295,-188,-226,-295},{-212,-198,-207,-198,-240,-267},{-202,-240,-231,-252,-283,-281},{-295,-212,-217,-193,-245,-298},{-231,-221,-183,-219,-295,-259},{-238,-212,-245,-243,-226,-226},{-271,-267,-188,-200,-190,-214},{-183,-276,-236,-183,-295,-271},{-205,-250,-309,-307,-214,-190},{-305,-295,-278,-195,-174,-188},{-252,-250,-259,-288,-205,-169},{-243,-198,-181,-255,-274,-298},{-193,-259,-252,-200,-290,-240},{-293,-205,-269,-231,-226,-198},{-302,-214,-221,-219,-288,-250},{-183,-298,-205,-248,-181,-217},{-167,-167,-183,-300,-302,-293},{-233,-183,-217,-202,-190,-209},{-286,-214,-181,-264,-226,-221},{-221,-190,-288,-283,-259,-183},{-217,-226,-186,-209,-283,-224},{-188,-181,-281,-248,-248,-278},{-290,-286,-228,-236,-207,-217},{-243,-214,-171,-231,-286,-238},{-188,-183,-193,-281,-238,-200},{-278,-278,-195,-276,-298,-236},{-183,-264,-169,-231,-195,-302},{-305,-262,-305,-302,-307,-305},{-293,-269,-226,-209,-212,-202},{-281,-276,-243,-181,-217,-238},{-207,-171,-167,-269,-307,-226},{-190,-290,-188,-267,-174,-217},{-307,-298,-193,-188,-240,-288},{-255,-238,-181,-307,-188,-264},{-283,-176,-193,-181,-176,-238},{-267,-236,-212,-267,-271,-217},{-240,-236,-202,-176,-238,-245},{-233,-283,-245,-219,-309,-290},{-200,-236,-221,-298,-257,-228},{-259,-255,-226,-217,-288,-221},{-267,-226,-278,-176,-198,-307},{-174,-207,-274,-305,-283,-174},{-262,-217,-178,-202,-188,-283},{-302,-295,-286,-176,-305,-290}},{{-281,-300,-240,-267,-207,-212},{-240,-240,-298,-228,-190,-250},{-245,-281,-188,-200,-281,-243},{-198,-212,-255,-205,-264,-195},{-283,-290,-276,-271,-224,-276},{-219,-169,-252,-302,-271,-286},{-250,-283,-233,-186,-264,-231},{-207,-207,-207,-167,-257,-202},{-293,-169,-167,-174,-178,-307},{-259,-302,-274,-188,-245,-243},{-252,-300,-190,-233,-290,-274},{-202,-288,-243,-183,-257,-217},{-193,-255,-224,-298,-193,-212},{-171,-255,-307,-288,-198,-295},{-228,-302,-202,-195,-283,-207},{-262,-181,-298,-195,-286,-198},{-167,-290,-298,-214,-288,-274},{-195,-257,-290,-183,-233,-209},{-274,-295,-298,-176,-274,-274},{-217,-259,-181,-245,-178,-198},{-300,-233,-171,-290,-171,-243},{-250,-243,-288,-269,-271,-205},{-305,-207,-259,-209,-240,-207},{-219,-281,-250,-186,-171,-286},{-178,-269,-243,-267,-217,-226},{-205,-167,-167,-209,-281,-181},{-283,-198,-269,-178,-295,-290},{-205,-205,-271,-267,-257,-224},{-231,-167,-171,-290,-290,-200},{-186,-195,-271,-176,-298,-171},{-250,-252,-236,-209,-195,-264},{-245,-295,-307,-248,-293,-169},{-226,-307,-183,-214,-298,-281},{-286,-219,-248,-167,-307,-183},{-267,-259,-307,-274,-186,-248},{-207,-305,-283,-295,-224,-221},{-267,-228,-195,-221,-271,-186},{-271,-262,-186,-207,-231,-176},{-290,-200,-240,-176,-264,-198},{-288,-233,-276,-281,-267,-221},{-186,-300,-174,-169,-307,-236},{-167,-181,-293,-176,-217,-293},{-305,-236,-226,-298,-267,-176},{-186,-181,-257,-183,-178,-219},{-236,-286,-217,-269,-290,-178},{-233,-224,-293,-240,-278,-307},{-214,-262,-219,-281,-257,-205},{-198,-186,-193,-212,-190,-188},{-302,-305,-305,-169,-307,-276},{-193,-278,-245,-305,-240,-167}}},{{{-314,-229,-243,-213,-254,-303},{-259,-281,-325,-352,-257,-330},{-246,-270,-194,-349,-300,-202},{-347,-319,-248,-254,-213,-298},{-289,-229,-224,-344,-298,-333},{-278,-229,-199,-213,-319,-218},{-336,-328,-243,-330,-319,-303},{-287,-268,-213,-298,-254,-224},{-238,-199,-322,-246,-191,-227},{-240,-273,-306,-303,-194,-243},{-317,-325,-235,-251,-232,-303},{-262,-210,-265,-273,-347,-311},{-344,-325,-207,-259,-355,-224},{-347,-232,-289,-224,-248,-317},{-276,-349,-243,-221,-232,-317},{-341,-355,-295,-273,-194,-311},{-308,-287,-221,-202,-210,-295},{-273,-306,-221,-205,-355,-298},{-330,-306,-298,-325,-235,-341},{-300,-243,-246,-319,-292,-248},{-218,-229,-257,-246,-336,-248},{-336,-265,-262,-202,-300,-308},{-344,-344,-229,-262,-352,-311},{-259,-227,-210,-322,-254,-229},{-224,-328,-199,-229,-276,-218},{-207,-270,-281,-213,-344,-339},{-347,-254,-191,-262,-333,-314},{-317,-251,-235,-303,-298,-197},{-284,-333,-322,-240,-289,-300},{-306,-254,-251,-265,-292,-210},{-216,-281,-289,-232,-344,-232},{-339,-341,-224,-292,-229,-238},{-197,-317,-344,-194,-268,-205},{-300,-278,-221,-268,-314,-336},{-328,-317,-213,-243,-210,-336},{-251,-235,-205,-265,-268,-336},{-248,-265,-199,-265,-336,-227},{-287,-328,-191,-232,-273,-218},{-251,-257,-207,-292,-317,-251},{-287,-330,-347,-289,-273,-322},{-339,-229,-246,-311,-300,-347},{-194,-278,-306,-205,-317,-248},{-232,-229,-235,-254,-352,-300},{-344,-317,-227,-289,-191,-202},{-197,-268,-328,-289,-257,-240},{-224,-322,-311,-248,-317,-235},{-213,-202,-251,-295,-213,-278},{-322,-194,-289,-341,-339,-308},{-202,-289,-248,-240,-259,-298},{-218,-221,-308,-276,-292,-213}},{{-322,-352,-246,-314,-333,-218},{-218,-229,-235,-292,-262,-287},{-295,-336,-202,-243,-311,-235},{-317,-314,-262,-238,-284,-246},{-347,-276,-298,-306,-311,-216},{-355,-339,-265,-243,-289,-202},{-194,-265,-339,-216,-270,-235},{-287,-243,-235,-311,-273,-276},{-322,-218,-303,-287,-330,-333},{-336,-300,-218,-349,-257,-248},{-243,-328,-295,-270,-232,-191},{-216,-248,-319,-352,-218,-207},{-306,-276,-298,-284,-259,-257},{-295,-251,-287,-308,-355,-336},{-355,-284,-276,-300,-317,-317},{-262,-218,-265,-259,-202,-355},{-341,-281,-300,-289,-352,-194},{-278,-289,-270,-191,-344,-246},{-322,-243,-276,-349,-333,-339},{-265,-246,-306,-292,-251,-218},{-197,-276,-292,-240,-259,-213},{-191,-292,-333,-224,-281,-322},{-251,-295,-194,-322,-197,-210},{-197,-246,-235,-229,-224,-333},{-300,-303,-248,-238,-224,-191},{-311,-218,-306,-330,-317,-281},{-289,-270,-229,-281,-218,-262},{-278,-199,-284,-289,-292,-273},{-347,-257,-191,-344,-300,-199},{-308,-251,-298,-229,-311,-292},{-355,-199,-246,-289,-325,-235},{-240,-355,-207,-246,-278,-281},{-191,-317,-328,-246,-224,-229},{-221,-289,-221,-248,-273,-347},{-336,-262,-254,-281,-238,-257},{-276,-339,-311,-278,-330,-205},{-306,-238,-311,-199,-251,-270},{-336,-199,-287,-207,-317,-205},{-328,-306,-246,-202,-336,-325},{-273,-311,-194,-265,-251,-284},{-347,-322,-276,-202,-322,-270},{-284,-284,-202,-306,-194,-268},{-235,-344,-333,-306,-221,-243},{-317,-227,-199,-298,-268,-328},{-257,-197,-191,-210,-221,-336},{-227,-314,-319,-325,-278,-197},{-216,-210,-202,-205,-210,-306},{-243,-303,-325,-339,-311,-298},{-213,-347,-284,-240,-278,-276},{-257,-333,-292,-248,-306,-191}},{{-303,-232,-257,-257,-344,-328},{-311,-319,-292,-246,-205,-199},{-344,-289,-281,-229,-197,-349},{-330,-210,-210,-339,-235,-194},{-227,-284,-314,-284,-213,-341},{-339,-287,-224,-227,-265,-229},{-287,-347,-330,-328,-303,-347},{-262,-238,-235,-339,-254,-218},{-352,-235,-227,-240,-232,-328},{-276,-235,-298,-254,-268,-199},{-248,-243,-303,-221,-278,-314},{-347,-355,-265,-254,-224,-270},{-281,-199,-355,-355,-314,-298},{-344,-314,-276,-221,-259,-238},{-262,-268,-191,-248,-311,-229},{-273,-262,-191,-344,-221,-210},{-238,-339,-216,-339,-248,-257},{-246,-281,-191,-303,-259,-197},{-333,-221,-210,-295,-333,-229},{-295,-300,-339,-238,-248,-325},{-344,-352,-235,-284,-251,-191},{-202,-251,-268,-224,-281,-341},{-295,-311,-207,-319,-281,-347},{-339,-300,-347,-355,-243,-308},{-205,-246,-300,-349,-349,-303},{-265,-259,-210,-262,-251,-232},{-240,-281,-240,-197,-308,-216},{-257,-197,-251,-273,-330,-238},{-197,-213,-347,-336,-352,-314},{-308,-197,-333,-273,-295,-205},{-325,-347,-270,-199,-292,-349},{-235,-278,-287,-199,-319,-325},{-344,-336,-199,-229,-333,-191},{-341,-292,-197,-314,-355,-347},{-207,-202,-218,-292,-339,-333},{-284,-336,-235,-199,-330,-349},{-289,-339,-235,-276,-273,-319},{-289,-213,-278,-325,-207,-319},{-289,-218,-355,-273,-333,-227},{-298,-265,-240,-238,-355,-314},{-333,-191,-246,-229,-243,-224},{-246,-235,-298,-306,-287,-311},{-319,-341,-317,-298,-352,-306},{-216,-273,-325,-257,-325,-232},{-339,-240,-276,-308,-218,-213},{-262,-276,-224,-268,-265,-210},{-257,-259,-303,-322,-347,-251},{-349,-238,-238,-308,-352,-303},{-303,-207,-341,-317,-202,-276},{-207,-235,-322,-229,-306,-270}}},{{{-199,-111,-174,-137,-174,-160},{-176,-112,-109,-140,-185,-149},{-126,-186,-134,-117,-188,-125},{-136,-112,-189,-200,-114,-199},{-111,-151,-109,-162,-169,-186},{-136,-196,-192,-129,-131,-142},{-174,-172,-171,-192,-192,-120},{-160,-183,-169,-156,-112,-112},{-112,-194,-142,-136,-146,-186},{-139,-114,-151,-139,-131,-131},{-111,-120,-172,-129,-180,-139},{-169,-146,-137,-197,-196,-149},{-185,-142,-200,-116,-149,-112},{-166,-152,-145,-129,-131,-177},{-171,-151,-125,-116,-171,-157},{-111,-129,-185,-200,-129,-180},{-131,-162,-183,-126,-174,-142},{-134,-162,-131,-122,-119,-139},{-129,-191,-154,-162,-145,-162},{-189,-199,-125,-180,-186,-196},{-186,-160,-134,-131,-122,-197},{-151,-151,-108,-120,-131,-143},{-128,-159,-123,-191,-137,-108},{-139,-194,-117,-192,-182,-134},{-197,-194,-117,-163,-109,-186},{-122,-117,-149,-152,-172,-126},{-174,-117,-109,-188,-114,-157},{-109,-119,-162,-185,-146,-126},{-131,-176,-132,-129,-191,-166},{-148,-126,-169,-199,-171,-172},{-169,-162,-185,-154,-191,-125},{-192,-200,-151,-191,-132,-200},{-185,-179,-157,-189,-134,-174},{-137,-132,-152,-112,-174,-119},{-123,-156,-185,-149,-134,-157},{-128,-148,-166,-123,-176,-171},{-146,-146,-200,-191,-149,-200},{-192,-172,-159,-159,-122,-188},{-169,-199,-151,-189,-197,-111},{-131,-146,-199,-177,-139,-163},{-179,-139,-182,-192,-152,-112},{-132,-151,-145,-163,-188,-134},{-151,-142,-125,-116,-111,-162},{-185,-125,-179,-142,-119,-134},{-145,-199,-136,-117,-139,-172},{-111,-109,-148,-136,-108,-157},{-126,-196,-111,-128,-188,-169},{-154,-165,-151,-194,-174,-159},{-126,-163,-108,-176,-188,-166},{-131,-188,-159,-189,-116,-120}},{{-122,-171,-116,-129,-128,-174},{-125,-149,-111,-160,-179,-114},{-166,-171,-163,-123,-165,-114},{-131,-194,-196,-200,-160,-109},{-122,-159,-129,-145,-154,-145},{-177,-174,-139,-200,-116,-123},{-137,-159,-134,-189,-166,-168},{-172,-146,-109,-179,-183,-143},{-185,-122,-189,-123,-142,-109},{-131,-112,-197,-142,-129,-123},{-151,-145,-120,-131,-168,-189},{-194,-200,-137,-111,-149,-180},{-159,-142,-117,-197,-132,-140},{-189,-149,-165,-194,-125,-119},{-199,-171,-200,-174,-123,-137},{-145,-189,-177,-132,-163,-188},{-109,-168,-151,-143,-157,-176},{-125,-142,-188,-119,-112,-139},{-194,-125,-189,-117,-122,-172},{-123,-157,-177,-176,-132,-143},{-169,-134,-200,-151,-179,-125},{-117,-111,-156,-139,-145,-116},{-171,-145,-160,-188,-142,-156},{-142,-120,-159,-145,-186,-146},{-179,-140,-145,-194,-174,-165},{-162,-134,-160,-192,-157,-168},{-166,-199,-176,-129,-172,-199},{-159,-149,-156,-131,-152,-199},{-188,-117,-189,-126,-180,-134},{-200,-139,-171,-165,-114,-129},{-120,-129,-162,-114,-162,-149},{-188,-134,-169,-172,-185,-119},{-159,-194,-192,-111,-171,-159},{-112,-139,-196,-114,-117,-108},{-172,-162,-200,-136,-117,-191},{-169,-120,-136,-152,-145,-116},{-126,-186,-116,-188,-149,-196},{-156,-116,-176,-174,-163,-142},{-117,-160,-116,-149,-143,-109},{-140,-151,-120,-192,-142,-182},{-116,-146,-188,-182,-163,-134},{-177,-134,-136,-131,-196,-156},{-137,-119,-111,-191,-117,-139},{-156,-139,-131,-185,-149,-148},{-197,-112,-156,-166,-200,-108},{-197,-189,-156,-152,-197,-189},{-183,-112,-191,-132,-197,-134},{-177,-149,-126,-146,-145,-180},{-132,-123,-131,-117,-194,-180},{-176,-179,-197,-143,-174,-165}},{{-174,-166,-120,-109,-116,-120},{-126,-162,-137,-172,-165,-112},{-117,-145,-123,-134,-194,-199},{-165,-120,-123,-176,-146,-136},{-172,-132,-112,-132,-123,-137},{-143,-131,-111,-192,-179,-108},{-169,-176,-183,-176,-152,-188},{-188,-197,-126,-128,-148,-132},{-131,-114,-156,-159,-109,-126},{-109,-196,-134,-117,-122,-108},{-142,-151,-137,-197,-116,-191},{-136,-139,-154,-159,-154,-179},{-109,-149,-162,-151,-171,-125},{-189,-123,-165,-116,-162,-166},{-197,-131,-172,-154,-162,-165},{-179,-139,-131,-177,-134,-151},{-165,-148,-176,-168,-123,-112},{-159,-182,-114,-180,-151,-197},{-189,-123,-137,-114,-146,-177},{-140,-186,-163,-109,-186,-157},{-186,-174,-112,-120,-185,-151},{-182,-116,-157,-157,-140,-200},{-116,-145,-152,-109,-120,-159},{-129,-168,-145,-163,-162,-174},{-174,-152,-146,-171,-192,-116},{-166,-200,-137,-182,-191,-146},{-166,-112,-197,-159,-140,-168},{-111,-200,-129,-171,-119,-154},{-128,-123,-183,-199,-149,-159},{-109,-174,-136,-142,-116,-196},{-182,-123,-146,-199,-200,-186},{-197,-129,-176,-126,-145,-176},{-112,-194,-196,-140,-140,-174},{-168,-114,-172,-128,-166,-179},{-152,-146,-182,-154,-177,-194},{-180,-148,-137,-162,-152,-194},{-176,-119,-191,-168,-169,-122},{-123,-131,-109,-134,-182,-192},{-156,-172,-123,-123,-132,-149},{-182,-183,-200,-140,-126,-166},{-194,-197,-119,-162,-116,-131},{-128,-188,-143,-143,-131,-174},{-140,-142,-131,-165,-114,-171},{-185,-143,-122,-140,-123,-111},{-131,-199,-182,-136,-152,-132},{-188,-129,-140,-145,-119,-169},{-139,-120,-157,-165,-165,-137},{-129,-199,-137,-151,-146,-123},{-140,-134,-200,-152,-111,-160},{-172,-126,-142,-185,-120,-131}}},{{{-131,-220,-160,-233,-224,-215},{-229,-127,-169,-146,-228,-197},{-178,-167,-151,-193,-171,-186},{-195,-202,-204,-147,-235,-220},{-147,-209,-175,-162,-173,-193},{-233,-173,-162,-207,-229,-178},{-173,-140,-191,-197,-198,-206},{-220,-228,-142,-175,-169,-189},{-204,-140,-231,-211,-217,-127},{-144,-237,-218,-186,-171,-186},{-193,-169,-197,-229,-177,-233},{-202,-204,-162,-209,-184,-147},{-197,-129,-191,-177,-140,-175},{-158,-187,-140,-220,-153,-228},{-198,-162,-129,-184,-127,-186},{-189,-184,-142,-149,-209,-204},{-175,-231,-231,-133,-135,-231},{-146,-200,-158,-160,-237,-135},{-146,-157,-193,-224,-198,-206},{-204,-235,-177,-127,-237,-138},{-204,-213,-177,-193,-207,-197},{-187,-204,-169,-138,-195,-135},{-235,-220,-135,-180,-175,-204},{-147,-133,-157,-195,-155,-153},{-129,-138,-233,-162,-138,-213},{-177,-191,-158,-186,-157,-222},{-153,-177,-140,-198,-215,-151},{-178,-138,-229,-140,-237,-144},{-222,-206,-162,-133,-184,-231},{-213,-218,-226,-231,-228,-233},{-217,-164,-140,-175,-229,-127},{-157,-129,-138,-157,-144,-140},{-206,-193,-146,-224,-206,-229},{-189,-209,-209,-177,-204,-166},{-157,-127,-224,-224,-229,-182},{-235,-198,-178,-207,-144,-153},{-147,-171,-186,-186,-133,-167},{-146,-206,-151,-235,-229,-162},{-129,-195,-184,-211,-220,-189},{-191,-213,-200,-173,-171,-133},{-197,-226,-175,-151,-233,-204},{-138,-166,-193,-153,-220,-220},{-166,-186,-213,-195,-164,-147},{-169,-138,-222,-193,-186,-175},{-136,-184,-131,-162,-209,-229},{-182,-153,-133,-226,-178,-222},{-224,-178,-177,-177,-151,-144},{-177,-186,-138,-162,-224,-193},{-222,-200,-142,-146,-157,-169},{-222,-200,-129,-135,-166,-217}},{{-171,-191,-160,-207,-218,-160},{-151,-178,-187,-200,-158,-220},{-173,-182,-229,-136,-153,-167},{-193,-222,-202,-229,-131,-158},{-151,-151,-191,-171,-207,-140},{-233,-202,-157,-173,-233,-222},{-197,-146,-202,-224,-158,-144},{-129,-171,-206,-200,-193,-229},{-171,-235,-180,-202,-136,-218},{-162,-160,-202,-209,-226,-173},{-191,-182,-215,-164,-180,-151},{-209,-222,-233,-162,-160,-167},{-177,-228,-218,-177,-226,-213},{-229,-127,-209,-131,-226,-180},{-217,-191,-211,-235,-226,-160},{-147,-197,-211,-142,-136,-202},{-206,-173,-167,-193,-220,-155},{-151,-202,-162,-237,-131,-200},{-191,-222,-175,-207,-157,-175},{-218,-186,-136,-204,-200,-144},{-187,-231,-155,-206,-215,-200},{-157,-138,-153,-151,-215,-186},{-233,-229,-200,-135,-177,-229},{-158,-237,-135,-209,-193,-209},{-155,-197,-131,-186,-171,-129},{-147,-158,-182,-136,-149,-195},{-224,-187,-175,-142,-222,-233},{-173,-135,-217,-200,-202,-229},{-133,-169,-169,-158,-209,-169},{-167,-184,-131,-220,-206,-195},{-197,-166,-218,-191,-217,-146},{-222,-233,-129,-222,-213,-213},{-231,-182,-133,-228,-153,-226},{-171,-135,-220,-224,-133,-217},{-164,-226,-144,-215,-129,-171},{-184,-231,-195,-171,-209,-180},{-226,-138,-195,-222,-237,-155},{-197,-182,-211,-200,-144,-189},{-206,-151,-175,-147,-178,-178},{-217,-133,-195,-217,-207,-233},{-169,-155,-140,-149,-206,-142},{-224,-138,-193,-131,-149,-235},{-142,-135,-217,-171,-135,-164},{-149,-142,-233,-180,-198,-182},{-135,-184,-162,-217,-144,-164},{-187,-215,-160,-189,-200,-138},{-191,-131,-147,-197,-198,-166},{-162,-177,-157,-218,-182,-187},{-198,-131,-171,-193,-166,-140},{-184,-237,-147,-138,-189,-162}},{{-231,-195,-151,-162,-207,-218},{-211,-182,-149,-178,-198,-155},{-142,-147,-213,-186,-231,-136},{-187,-231,-226,-215,-173,-166},{-167,-218,-217,-220,-133,-160},{-222,-220,-133,-211,-211,-204},{-180,-151,-229,-173,-233,-169},{-218,-151,-155,-171,-193,-149},{-162,-231,-162,-157,-171,-133},{-169,-220,-193,-229,-186,-147},{-180,-164,-182,-158,-197,-153},{-207,-133,-127,-144,-146,-189},{-167,-193,-162,-233,-209,-177},{-206,-226,-177,-164,-200,-229},{-142,-200,-220,-173,-195,-237},{-135,-131,-189,-135,-144,-140},{-204,-135,-226,-133,-229,-202},{-202,-178,-186,-184,-151,-171},{-162,-169,-217,-135,-235,-138},{-140,-229,-135,-226,-158,-140},{-228,-189,-229,-197,-204,-153},{-133,-237,-226,-151,-204,-173},{-160,-142,-220,-186,-142,-133},{-175,-153,-151,-197,-211,-195},{-229,-146,-144,-233,-193,-211},{-224,-155,-133,-173,-218,-177},{-167,-136,-149,-146,-228,-191},{-167,-220,-169,-200,-206,-138},{-222,-171,-135,-220,-131,-182},{-129,-195,-224,-231,-160,-158},{-217,-140,-158,-140,-166,-127},{-169,-142,-211,-220,-204,-207},{-195,-222,-222,-233,-220,-146},{-187,-158,-226,-157,-195,-182},{-220,-127,-147,-213,-200,-206},{-195,-235,-191,-211,-209,-136},{-146,-155,-215,-167,-222,-129},{-180,-186,-204,-206,-146,-138},{-140,-157,-173,-235,-167,-222},{-228,-178,-184,-217,-189,-197},{-195,-187,-167,-164,-138,-177},{-220,-180,-166,-182,-131,-133},{-218,-136,-127,-140,-133,-215},{-200,-228,-237,-182,-226,-187},{-131,-180,-175,-187,-160,-233},{-226,-224,-202,-177,-151,-204},{-169,-140,-131,-173,-186,-213},{-151,-147,-142,-224,-135,-202},{-146,-178,-228,-207,-142,-173},{-226,-136,-138,-229,-186,-129}}},{{{-272,-223,-292,-191,-296,-247},{-233,-309,-243,-206,-292,-203},{-255,-284,-225,-238,-216,-174},{-284,-213,-243,-279,-201,-279},{-206,-260,-304,-235,-225,-172},{-216,-220,-223,-189,-174,-294},{-179,-184,-299,-292,-260,-262},{-309,-176,-225,-206,-189,-316},{-274,-289,-304,-201,-287,-174},{-247,-201,-306,-198,-184,-252},{-309,-198,-277,-238,-218,-238},{-250,-245,-284,-289,-172,-233},{-289,-265,-299,-296,-296,-238},{-213,-223,-225,-218,-299,-184},{-228,-314,-301,-316,-240,-206},{-213,-306,-211,-196,-247,-174},{-218,-270,-282,-316,-235,-181},{-216,-213,-225,-260,-262,-294},{-267,-206,-294,-299,-274,-314},{-228,-289,-304,-243,-279,-304},{-277,-265,-240,-230,-257,-181},{-306,-252,-245,-179,-250,-292},{-233,-235,-211,-172,-228,-208},{-287,-301,-194,-220,-287,-172},{-218,-201,-316,-238,-220,-176},{-189,-213,-284,-203,-311,-282},{-265,-272,-279,-201,-235,-181},{-272,-265,-299,-301,-299,-186},{-245,-316,-279,-201,-274,-270},{-257,-233,-274,-172,-296,-289},{-198,-240,-267,-191,-255,-194},{-265,-292,-238,-250,-240,-172},{-270,-289,-247,-255,-203,-257},{-206,-186,-267,-267,-299,-213},{-272,-309,-262,-179,-208,-238},{-252,-186,-223,-287,-247,-294},{-267,-196,-243,-203,-260,-272},{-230,-213,-265,-257,-240,-311},{-233,-196,-208,-216,-228,-274},{-179,-247,-311,-287,-292,-201},{-316,-272,-250,-218,-223,-181},{-216,-223,-191,-272,-174,-196},{-282,-172,-304,-255,-240,-184},{-289,-250,-311,-230,-301,-289},{-174,-245,-282,-262,-223,-296},{-306,-270,-301,-243,-257,-176},{-292,-299,-235,-196,-196,-174},{-228,-191,-203,-277,-233,-265},{-250,-245,-252,-225,-274,-314},{-292,-296,-309,-174,-301,-294}},{{-206,-306,-240,-238,-186,-292},{-274,-272,-301,-233,-301,-213},{-191,-238,-292,-228,-250,-279},{-270,-314,-174,-270,-191,-211},{-238,-277,-262,-189,-223,-267},{-184,-184,-311,-206,-235,-277},{-267,-314,-255,-203,-287,-179},{-296,-287,-294,-274,-270,-194},{-194,-306,-225,-194,-274,-301},{-265,-316,-216,-184,-247,-294},{-189,-274,-301,-208,-309,-181},{-220,-243,-262,-252,-213,-189},{-289,-311,-287,-240,-240,-174},{-211,-255,-292,-311,-262,-316},{-252,-265,-309,-198,-318,-250},{-179,-181,-194,-203,-230,-201},{-238,-282,-287,-260,-311,-179},{-309,-238,-301,-223,-179,-289},{-250,-250,-306,-277,-225,-213},{-218,-306,-196,-233,-218,-247},{-189,-223,-179,-306,-235,-189},{-296,-172,-186,-211,-225,-274},{-277,-179,-255,-252,-189,-299},{-174,-282,-270,-250,-309,-294},{-304,-181,-299,-284,-301,-240},{-318,-203,-247,-270,-255,-270},{-172,-176,-206,-296,-194,-203},{-255,-284,-176,-235,-257,-287},{-272,-316,-289,-184,-316,-233},{-289,-220,-238,-289,-206,-277},{-184,-201,-277,-203,-309,-287},{-223,-223,-309,-194,-289,-265},{-230,-287,-306,-228,-250,-296},{-260,-216,-287,-277,-289,-314},{-223,-277,-299,-233,-176,-272},{-198,-304,-309,-311,-284,-228},{-299,-233,-252,-203,-238,-306},{-203,-203,-252,-265,-184,-203},{-220,-255,-228,-213,-223,-179},{-299,-279,-289,-194,-292,-306},{-174,-225,-299,-245,-172,-277},{-211,-247,-189,-235,-213,-238},{-247,-230,-316,-198,-282,-316},{-318,-228,-189,-181,-277,-279},{-181,-184,-243,-301,-201,-181},{-176,-316,-198,-252,-287,-225},{-265,-243,-272,-316,-272,-311},{-203,-250,-299,-228,-189,-301},{-230,-270,-304,-255,-272,-245},{-211,-299,-194,-223,-304,-287}},{{-186,-191,-306,-247,-206,-301},{-311,-194,-233,-213,-191,-301},{-309,-206,-206,-250,-306,-282},{-211,-245,-184,-174,-223,-243},{-220,-235,-174,-318,-179,-201},{-172,-272,-223,-201,-252,-228},{-287,-216,-287,-279,-235,-279},{-316,-318,-262,-235,-311,-314},{-272,-306,-267,-203,-172,-174},{-274,-181,-201,-198,-301,-198},{-181,-208,-243,-220,-225,-228},{-265,-270,-225,-250,-274,-301},{-216,-235,-257,-191,-255,-179},{-284,-198,-287,-247,-223,-196},{-255,-270,-230,-260,-181,-265},{-198,-176,-198,-270,-318,-198},{-262,-186,-240,-233,-216,-194},{-294,-225,-252,-184,-213,-196},{-309,-282,-228,-223,-208,-247},{-247,-203,-284,-216,-243,-235},{-309,-216,-294,-299,-299,-196},{-174,-174,-306,-228,-186,-176},{-314,-306,-172,-299,-267,-262},{-296,-311,-238,-233,-301,-216},{-228,-181,-179,-314,-262,-270},{-174,-252,-267,-279,-267,-228},{-174,-272,-240,-213,-240,-318},{-299,-282,-262,-260,-198,-211},{-196,-216,-225,-247,-252,-301},{-189,-316,-201,-176,-284,-196},{-243,-179,-304,-260,-230,-238},{-262,-206,-201,-257,-252,-301},{-294,-181,-211,-220,-233,-306},{-267,-289,-316,-311,-181,-208},{-252,-172,-289,-186,-220,-196},{-314,-203,-274,-223,-296,-299},{-233,-181,-304,-240,-189,-272},{-201,-174,-282,-287,-191,-318},{-201,-318,-216,-194,-265,-296},{-296,-257,-174,-267,-287,-265},{-194,-306,-301,-245,-189,-267},{-282,-311,-252,-216,-289,-311},{-174,-189,-213,-235,-189,-179},{-174,-267,-211,-208,-252,-245},{-220,-296,-247,-220,-299,-179},{-233,-257,-292,-260,-206,-272},{-189,-181,-292,-252,-240,-265},{-198,-201,-230,-213,-301,-294},{-304,-238,-245,-179,-304,-243},{-220,-296,-262,-211,-296,-304}}},{{{-222,-261,-291,-263,-162,-243},{-280,-201,-203,-203,-284,-293},{-194,-245,-300,-289,-169,-280},{-171,-178,-192,-296,-266,-169},{-259,-266,-219,-219,-199,-201},{-263,-236,-194,-187,-162,-263},{-194,-162,-231,-270,-256,-185},{-259,-286,-208,-173,-219,-189},{-203,-252,-192,-206,-162,-173},{-219,-254,-270,-187,-206,-182},{-240,-261,-268,-215,-180,-300},{-243,-164,-196,-266,-280,-256},{-261,-289,-254,-293,-273,-187},{-266,-277,-169,-169,-268,-261},{-280,-171,-199,-166,-268,-270},{-268,-277,-284,-261,-194,-252},{-178,-173,-238,-199,-203,-300},{-296,-208,-282,-252,-280,-247},{-199,-171,-201,-199,-256,-206},{-189,-231,-282,-270,-226,-203},{-298,-273,-231,-199,-185,-185},{-270,-164,-215,-252,-231,-217},{-247,-219,-261,-280,-300,-263},{-256,-296,-277,-266,-277,-266},{-210,-289,-180,-231,-185,-282},{-300,-215,-286,-171,-215,-180},{-259,-162,-256,-185,-203,-194},{-229,-213,-176,-296,-217,-268},{-176,-169,-254,-169,-176,-180},{-275,-266,-286,-196,-284,-208},{-210,-296,-180,-233,-268,-189},{-164,-275,-229,-169,-275,-201},{-229,-252,-273,-180,-282,-275},{-291,-236,-173,-266,-229,-164},{-284,-280,-296,-280,-268,-286},{-215,-194,-247,-259,-178,-289},{-162,-180,-261,-249,-213,-277},{-173,-162,-231,-162,-215,-217},{-196,-203,-226,-254,-210,-210},{-217,-231,-296,-256,-300,-213},{-275,-210,-206,-185,-280,-256},{-201,-219,-164,-233,-238,-213},{-166,-203,-164,-277,-210,-291},{-291,-201,-164,-169,-224,-185},{-217,-284,-178,-275,-201,-185},{-289,-249,-189,-196,-169,-208},{-166,-273,-247,-282,-203,-178},{-270,-164,-238,-182,-238,-254},{-240,-224,-256,-293,-164,-162},{-249,-194,-213,-268,-277,-178}},{{-213,-185,-196,-256,-259,-291},{-169,-199,-277,-261,-203,-268},{-240,-249,-284,-178,-226,-293},{-189,-229,-199,-240,-252,-254},{-254,-236,-222,-254,-256,-222},{-268,-231,-189,-266,-229,-199},{-289,-210,-277,-289,-187,-206},{-189,-196,-189,-169,-169,-256},{-245,-176,-176,-222,-229,-185},{-300,-164,-270,-187,-180,-166},{-284,-263,-187,-245,-254,-245},{-263,-238,-217,-236,-189,-166},{-201,-166,-270,-199,-166,-277},{-298,-169,-247,-178,-215,-215},{-219,-208,-171,-266,-275,-171},{-224,-233,-213,-268,-219,-233},{-173,-252,-189,-178,-217,-229},{-203,-213,-300,-187,-296,-291},{-173,-206,-199,-208,-199,-217},{-240,-240,-180,-206,-240,-296},{-256,-293,-291,-261,-245,-277},{-201,-192,-199,-215,-300,-166},{-226,-252,-256,-187,-236,-233},{-222,-238,-266,-252,-254,-189},{-247,-166,-173,-300,-268,-180},{-252,-247,-266,-222,-222,-213},{-259,-275,-243,-226,-249,-196},{-192,-282,-256,-213,-206,-245},{-293,-252,-199,-162,-266,-173},{-182,-263,-236,-189,-298,-206},{-171,-282,-286,-169,-236,-249},{-254,-289,-231,-217,-201,-206},{-266,-270,-259,-194,-229,-192},{-203,-289,-261,-233,-254,-275},{-189,-206,-169,-259,-173,-259},{-171,-289,-270,-236,-206,-293},{-173,-261,-282,-219,-213,-222},{-196,-233,-236,-189,-201,-282},{-300,-284,-231,-296,-266,-162},{-173,-215,-194,-210,-300,-296},{-263,-254,-226,-187,-173,-284},{-203,-298,-268,-196,-187,-233},{-229,-210,-189,-206,-192,-182},{-206,-182,-189,-259,-217,-171},{-201,-293,-268,-284,-178,-298},{-187,-203,-178,-176,-164,-166},{-300,-199,-231,-201,-282,-196},{-240,-219,-194,-256,-259,-162},{-284,-256,-164,-282,-180,-249},{-213,-275,-266,-261,-215,-196}},{{-201,-275,-162,-249,-270,-176},{-263,-199,-226,-280,-164,-219},{-266,-261,-268,-215,-245,-277},{-208,-219,-247,-164,-286,-229},{-219,-206,-164,-229,-252,-231},{-164,-289,-222,-199,-164,-289},{-201,-259,-196,-231,-180,-298},{-245,-187,-243,-162,-263,-240},{-236,-275,-199,-171,-176,-182},{-231,-219,-240,-256,-296,-222},{-217,-180,-213,-284,-185,-273},{-203,-185,-289,-277,-273,-182},{-171,-282,-247,-282,-240,-171},{-268,-273,-178,-266,-176,-180},{-219,-273,-280,-233,-247,-284},{-300,-273,-169,-291,-176,-176},{-275,-240,-194,-266,-298,-270},{-178,-282,-243,-249,-238,-182},{-238,-259,-231,-180,-240,-176},{-240,-166,-298,-189,-217,-203},{-187,-210,-219,-275,-245,-226},{-259,-252,-286,-273,-245,-171},{-277,-203,-293,-166,-233,-187},{-268,-166,-275,-233,-291,-275},{-173,-243,-300,-261,-233,-238},{-224,-293,-293,-222,-291,-236},{-273,-189,-213,-275,-273,-171},{-293,-266,-199,-224,-293,-245},{-164,-176,-277,-187,-259,-199},{-247,-298,-268,-245,-238,-254},{-178,-289,-176,-270,-201,-291},{-189,-196,-245,-164,-226,-249},{-208,-199,-282,-196,-277,-210},{-270,-289,-224,-210,-215,-293},{-173,-166,-231,-210,-203,-238},{-291,-180,-261,-254,-224,-201},{-243,-293,-196,-171,-291,-245},{-185,-213,-182,-284,-259,-192},{-185,-194,-284,-185,-194,-173},{-256,-238,-282,-224,-300,-208},{-236,-293,-173,-273,-298,-254},{-178,-236,-178,-270,-210,-270},{-291,-208,-203,-266,-298,-199},{-268,-176,-277,-180,-196,-226},{-162,-210,-171,-252,-247,-298},{-203,-192,-270,-238,-222,-196},{-298,-289,-266,-166,-268,-182},{-270,-173,-222,-243,-194,-217},{-171,-284,-213,-236,-247,-282},{-213,-215,-275,-293,-178,-194}}},{{{-206,-326,-347,-297,-247,-256},{-256,-235,-238,-329,-350,-379},{-300,-303,-309,-244,-335,-291},{-270,-309,-329,-206,-294,-315},{-223,-359,-341,-315,-338,-320},{-220,-212,-209,-379,-291,-315},{-359,-259,-338,-220,-232,-218},{-218,-368,-238,-315,-218,-326},{-238,-362,-232,-253,-226,-259},{-294,-376,-309,-335,-232,-382},{-273,-370,-232,-347,-220,-285},{-253,-306,-247,-353,-276,-282},{-365,-326,-247,-379,-359,-353},{-359,-347,-370,-332,-368,-303},{-215,-368,-241,-315,-306,-368},{-347,-262,-288,-288,-350,-282},{-344,-309,-279,-344,-329,-253},{-332,-291,-350,-332,-238,-259},{-353,-253,-318,-226,-279,-359},{-347,-294,-329,-294,-326,-326},{-268,-288,-250,-303,-353,-368},{-232,-382,-318,-344,-376,-229},{-306,-335,-288,-232,-273,-353},{-335,-303,-376,-353,-315,-382},{-320,-379,-318,-241,-373,-368},{-206,-285,-382,-362,-256,-244},{-288,-297,-359,-276,-323,-235},{-206,-241,-276,-282,-276,-382},{-262,-300,-300,-297,-326,-353},{-373,-265,-250,-265,-294,-223},{-273,-253,-344,-359,-338,-256},{-341,-215,-359,-265,-279,-253},{-288,-206,-312,-270,-335,-294},{-247,-241,-320,-223,-235,-359},{-312,-238,-350,-223,-306,-326},{-291,-215,-359,-294,-226,-215},{-356,-376,-206,-368,-262,-353},{-303,-370,-379,-370,-223,-379},{-362,-223,-241,-300,-332,-379},{-323,-359,-356,-379,-320,-273},{-241,-353,-309,-350,-373,-320},{-276,-218,-347,-379,-326,-229},{-279,-209,-347,-244,-276,-244},{-306,-303,-359,-212,-373,-318},{-265,-259,-341,-326,-309,-335},{-238,-285,-209,-244,-247,-318},{-359,-347,-215,-353,-212,-265},{-347,-232,-332,-306,-347,-250},{-235,-341,-356,-223,-232,-259},{-312,-209,-253,-370,-347,-347}},{{-285,-373,-288,-312,-341,-344},{-303,-226,-312,-265,-332,-379},{-256,-306,-262,-373,-265,-350},{-270,-288,-250,-326,-209,-320},{-338,-306,-320,-309,-241,-232},{-270,-232,-376,-353,-344,-218},{-303,-382,-229,-332,-306,-270},{-326,-350,-300,-256,-268,-318},{-270,-332,-279,-353,-353,-276},{-297,-365,-350,-312,-350,-303},{-353,-223,-297,-209,-318,-209},{-285,-373,-320,-247,-353,-256},{-247,-326,-209,-344,-373,-329},{-291,-268,-279,-347,-265,-285},{-341,-212,-326,-306,-265,-209},{-273,-376,-341,-209,-373,-250},{-318,-347,-235,-229,-297,-332},{-218,-365,-356,-282,-262,-320},{-318,-320,-347,-241,-335,-329},{-312,-212,-229,-276,-368,-323},{-232,-362,-206,-379,-232,-259},{-365,-370,-218,-288,-365,-315},{-282,-309,-329,-282,-347,-347},{-223,-229,-250,-315,-359,-306},{-276,-356,-268,-279,-265,-256},{-262,-229,-329,-315,-338,-376},{-256,-318,-373,-303,-373,-312},{-332,-273,-212,-288,-235,-212},{-309,-300,-332,-326,-335,-326},{-259,-288,-229,-226,-326,-332},{-232,-329,-350,-285,-329,-241},{-262,-285,-238,-253,-297,-368},{-341,-285,-315,-382,-291,-288},{-244,-218,-247,-379,-291,-320},{-382,-373,-241,-250,-315,-332},{-220,-232,-306,-370,-379,-335},{-379,-276,-326,-273,-288,-273},{-382,-373,-368,-209,-212,-223},{-253,-218,-291,-303,-329,-209},{-256,-297,-265,-326,-279,-276},{-315,-273,-368,-335,-232,-350},{-368,-206,-368,-315,-250,-306},{-309,-373,-329,-241,-220,-320},{-291,-382,-212,-235,-288,-235},{-265,-368,-215,-259,-215,-250},{-247,-359,-359,-206,-226,-273},{-370,-312,-250,-315,-376,-335},{-382,-268,-309,-273,-338,-312},{-223,-376,-265,-285,-344,-341},{-276,-256,-279,-370,-320,-215}},{{-353,-315,-209,-223,-273,-379},{-229,-329,-312,-288,-370,-365},{-368,-247,-247,-262,-206,-250},{-291,-253,-329,-309,-241,-291},{-373,-235,-297,-209,-315,-279},{-291,-362,-215,-303,-244,-206},{-329,-326,-320,-294,-282,-297},{-382,-382,-306,-379,-226,-268},{-215,-212,-353,-335,-373,-220},{-306,-368,-329,-368,-312,-279},{-226,-323,-347,-235,-294,-365},{-262,-244,-206,-382,-315,-370},{-329,-232,-223,-359,-323,-315},{-276,-338,-244,-309,-356,-365},{-259,-253,-335,-206,-353,-335},{-338,-291,-376,-220,-212,-362},{-329,-259,-294,-206,-379,-262},{-350,-291,-359,-353,-250,-229},{-241,-323,-294,-379,-270,-318},{-353,-226,-300,-220,-332,-223},{-229,-297,-226,-315,-276,-206},{-218,-265,-356,-382,-256,-247},{-350,-241,-335,-344,-262,-285},{-376,-365,-253,-244,-270,-382},{-262,-306,-223,-244,-315,-209},{-220,-247,-235,-232,-373,-247},{-356,-241,-344,-341,-382,-332},{-212,-297,-312,-297,-320,-279},{-218,-309,-279,-265,-376,-291},{-244,-303,-320,-218,-206,-353},{-332,-370,-291,-306,-359,-370},{-320,-320,-300,-341,-206,-273},{-300,-323,-229,-323,-341,-373},{-270,-306,-320,-238,-326,-318},{-215,-265,-223,-218,-373,-332},{-220,-356,-218,-253,-235,-288},{-344,-244,-347,-270,-315,-347},{-347,-323,-341,-273,-268,-370},{-376,-238,-356,-247,-368,-356},{-326,-250,-282,-341,-329,-362},{-370,-353,-282,-373,-294,-318},{-376,-323,-279,-215,-365,-270},{-318,-309,-323,-244,-218,-332},{-247,-285,-220,-241,-332,-294},{-315,-341,-250,-238,-373,-344},{-212,-223,-232,-309,-315,-323},{-350,-356,-279,-223,-209,-315},{-306,-209,-241,-368,-273,-244},{-350,-273,-244,-285,-212,-318},{-212,-379,-303,-359,-376,-300}}}}; // 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,3,6,3,3,7,4,3,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3,8,4,3,8,4,3,9,5,3,9,5,3,8,4,3,8,5,3,8,4,3,8,4,3,7,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},{343,344,345,346},{347,348,349}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,0,4,8,12,0,6,12,1,3,5,7,9,11,1,5,9,0,6,12,0,2,4,6,8,10,12,0,4,8,12,0,6,12,1,3,5,7,9,11,13,1,5,9,13,0,6,12,2,4,6,8,10,12,14,1,5,9,13,2,8,14,1,3,5,7,9,11,13,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,0,4,8,12,2,8,14,2,4,6,8,10,12,14,0,4,8,12,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14,0,2,4,6,8,10,12,14,16,0,4,8,12,16,0,6,12,1,3,5,7,9,11,13,15,1,5,9,13,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,16,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,2,4,6,8,10,12,14,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,2,8,14,1,3,5,7,9,11,13,2,6,10,14,2,8,14,1,3,5,7,9,11,13,1,5,9,13,2,8,14,2,4,6,8,10,12,14,1,5,9,13,1,7,13}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,5,9,13,17,5,11,17,6,8,10,12,14,16,6,10,14,5,11,17,5,7,9,11,13,15,17,5,9,13,17,5,11,17,4,6,8,10,12,14,16,4,8,12,16,3,9,15,5,7,9,11,13,15,17,4,8,12,16,5,11,17,4,6,8,10,12,14,16,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,2,4,6,8,10,12,14,16,4,8,12,16,3,9,15,4,6,8,10,12,14,16,2,6,10,14,4,10,16,4,6,8,10,12,14,16,2,6,10,14,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,2,4,6,8,10,12,14,16,3,7,11,15,2,8,14,1,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15,1,3,5,7,9,11,13,15,17,1,5,9,13,17,1,7,13,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,2,4,6,8,10,12,14,16,1,5,9,13,17,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,4,6,8,10,12,14,16,3,7,11,15,3,9,15,2,4,6,8,10,12,14,16,4,8,12,16,4,10,16,4,6,8,10,12,14,16,5,9,13,17,5,11,17,4,6,8,10,12,14,16,4,8,12,16,5,11,17,5,7,9,11,13,15,17,4,8,12,16,4,10,16}; // set of end times of each shipment 
