int Dev = 10;// Deviation
extern const int CNN = 5;// 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 = 349;//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]={{{{12369,0,0,0,0,0},{12482,0,0,0,0,0},{12590,0,0,0,0,0},{12488,0,0,0,0,0},{12327,0,0,0,0,0},{12243,0,0,0,0,0},{12585,0,0,0,0,0},{12322,0,0,0,0,0},{12617,0,0,0,0,0},{12527,0,0,0,0,0},{12522,0,0,0,0,0},{12366,0,0,0,0,0},{12443,0,0,0,0,0},{12455,0,0,0,0,0},{12429,0,0,0,0,0},{12380,0,0,0,0,0},{12577,0,0,0,0,0},{12491,0,0,0,0,0},{12429,0,0,0,0,0},{12460,0,0,0,0,0},{12238,0,0,0,0,0},{12556,0,0,0,0,0},{12561,0,0,0,0,0},{12237,0,0,0,0,0},{12668,0,0,0,0,0},{12581,0,0,0,0,0},{12299,0,0,0,0,0},{12244,0,0,0,0,0},{12364,0,0,0,0,0},{12382,0,0,0,0,0},{12531,0,0,0,0,0},{12292,0,0,0,0,0},{12524,0,0,0,0,0},{12487,0,0,0,0,0},{12595,0,0,0,0,0},{12378,0,0,0,0,0},{12337,0,0,0,0,0},{12497,0,0,0,0,0},{12324,0,0,0,0,0},{12465,0,0,0,0,0},{12399,0,0,0,0,0},{12487,0,0,0,0,0},{12365,0,0,0,0,0},{12229,0,0,0,0,0},{12422,0,0,0,0,0},{12312,0,0,0,0,0},{12477,0,0,0,0,0},{12436,0,0,0,0,0},{12380,0,0,0,0,0},{12334,0,0,0,0,0}},{{12428,0,0,0,0,0},{12354,0,0,0,0,0},{12529,0,0,0,0,0},{12420,0,0,0,0,0},{12212,0,0,0,0,0},{12312,0,0,0,0,0},{12594,0,0,0,0,0},{12337,0,0,0,0,0},{12478,0,0,0,0,0},{12482,0,0,0,0,0},{12337,0,0,0,0,0},{12301,0,0,0,0,0},{12536,0,0,0,0,0},{12615,0,0,0,0,0},{12306,0,0,0,0,0},{12395,0,0,0,0,0},{12416,0,0,0,0,0},{12336,0,0,0,0,0},{12461,0,0,0,0,0},{12391,0,0,0,0,0},{12498,0,0,0,0,0},{12295,0,0,0,0,0},{12598,0,0,0,0,0},{12574,0,0,0,0,0},{12249,0,0,0,0,0},{12423,0,0,0,0,0},{12394,0,0,0,0,0},{12539,0,0,0,0,0},{12554,0,0,0,0,0},{12390,0,0,0,0,0},{12488,0,0,0,0,0},{12525,0,0,0,0,0},{12404,0,0,0,0,0},{12287,0,0,0,0,0},{12512,0,0,0,0,0},{12342,0,0,0,0,0},{12499,0,0,0,0,0},{12307,0,0,0,0,0},{12627,0,0,0,0,0},{12262,0,0,0,0,0},{12623,0,0,0,0,0},{12551,0,0,0,0,0},{12342,0,0,0,0,0},{12548,0,0,0,0,0},{12332,0,0,0,0,0},{12439,0,0,0,0,0},{12398,0,0,0,0,0},{12376,0,0,0,0,0},{12508,0,0,0,0,0},{12312,0,0,0,0,0}},{{11652,0,0,0,0,0},{11575,0,0,0,0,0},{11414,0,0,0,0,0},{11519,0,0,0,0,0},{11445,0,0,0,0,0},{11567,0,0,0,0,0},{11449,0,0,0,0,0},{11572,0,0,0,0,0},{11431,0,0,0,0,0},{11475,0,0,0,0,0},{11512,0,0,0,0,0},{11593,0,0,0,0,0},{11427,0,0,0,0,0},{11530,0,0,0,0,0},{11596,0,0,0,0,0},{11376,0,0,0,0,0},{11646,0,0,0,0,0},{11498,0,0,0,0,0},{11446,0,0,0,0,0},{11642,0,0,0,0,0},{11554,0,0,0,0,0},{11525,0,0,0,0,0},{11417,0,0,0,0,0},{11549,0,0,0,0,0},{11599,0,0,0,0,0},{11761,0,0,0,0,0},{11661,0,0,0,0,0},{11730,0,0,0,0,0},{11486,0,0,0,0,0},{11525,0,0,0,0,0},{11617,0,0,0,0,0},{11677,0,0,0,0,0},{11649,0,0,0,0,0},{11547,0,0,0,0,0},{11641,0,0,0,0,0},{11507,0,0,0,0,0},{11586,0,0,0,0,0},{11490,0,0,0,0,0},{11584,0,0,0,0,0},{11668,0,0,0,0,0},{11652,0,0,0,0,0},{11552,0,0,0,0,0},{11491,0,0,0,0,0},{11445,0,0,0,0,0},{11687,0,0,0,0,0},{11530,0,0,0,0,0},{11473,0,0,0,0,0},{11651,0,0,0,0,0},{11462,0,0,0,0,0},{11546,0,0,0,0,0}}},{{{-315,-268,-300,-273,-273,-270},{-276,-306,-285,-318,-265,-268},{-270,-288,-320,-291,-273,-323},{-318,-306,-309,-312,-309,-312},{-282,-291,-265,-315,-288,-323},{-297,-320,-276,-303,-294,-279},{-312,-303,-273,-294,-323,-273},{-268,-294,-276,-279,-318,-276},{-270,-282,-318,-306,-300,-320},{-282,-309,-265,-318,-320,-297},{-303,-320,-312,-268,-273,-276},{-303,-282,-294,-288,-318,-288},{-270,-294,-265,-312,-320,-315},{-315,-306,-303,-309,-285,-273},{-294,-309,-303,-288,-300,-276},{-320,-315,-315,-282,-300,-315},{-303,-282,-273,-309,-288,-300},{-312,-291,-309,-279,-285,-282},{-312,-300,-306,-320,-303,-285},{-294,-300,-282,-268,-300,-291},{-318,-300,-291,-315,-288,-270},{-312,-318,-323,-268,-297,-323},{-265,-323,-288,-297,-312,-315},{-276,-318,-273,-323,-279,-312},{-265,-300,-323,-323,-268,-306},{-318,-273,-315,-273,-294,-320},{-273,-270,-268,-320,-265,-303},{-276,-303,-279,-315,-273,-282},{-294,-303,-265,-309,-303,-291},{-297,-318,-268,-303,-268,-279},{-315,-315,-279,-282,-282,-320},{-297,-279,-268,-312,-312,-315},{-312,-282,-309,-285,-303,-320},{-309,-276,-312,-315,-303,-282},{-309,-312,-268,-323,-288,-291},{-297,-323,-265,-268,-312,-276},{-306,-276,-285,-306,-282,-320},{-306,-285,-312,-279,-320,-323},{-309,-303,-320,-282,-285,-315},{-323,-318,-276,-268,-288,-273},{-318,-268,-294,-318,-303,-285},{-282,-323,-320,-270,-288,-276},{-294,-323,-265,-312,-294,-265},{-315,-306,-276,-303,-318,-268},{-312,-276,-297,-315,-270,-323},{-297,-291,-323,-273,-312,-291},{-303,-300,-300,-320,-320,-276},{-276,-282,-315,-312,-294,-285},{-294,-315,-276,-285,-291,-306},{-265,-297,-294,-270,-265,-323}},{{-310,-257,-297,-299,-270,-241},{-261,-289,-260,-249,-286,-285},{-276,-275,-294,-274,-278,-246},{-319,-269,-286,-255,-251,-259},{-267,-257,-294,-299,-283,-238},{-276,-280,-280,-252,-254,-282},{-261,-289,-255,-290,-254,-259},{-290,-289,-255,-293,-243,-241},{-290,-283,-263,-269,-251,-262},{-267,-315,-272,-285,-254,-249},{-307,-303,-272,-271,-264,-233},{-261,-289,-258,-288,-256,-238},{-316,-297,-305,-249,-254,-238},{-273,-283,-291,-299,-246,-243},{-319,-272,-308,-247,-283,-251},{-264,-292,-291,-274,-251,-243},{-296,-286,-308,-247,-272,-264},{-278,-312,-272,-260,-278,-282},{-284,-306,-308,-301,-270,-267},{-290,-306,-300,-255,-272,-238},{-281,-280,-255,-285,-248,-280},{-281,-283,-308,-290,-256,-249},{-296,-260,-288,-277,-280,-251},{-299,-315,-286,-277,-243,-277},{-290,-292,-272,-255,-248,-251},{-278,-292,-255,-258,-248,-267},{-270,-263,-288,-258,-278,-254},{-267,-306,-283,-279,-280,-262},{-264,-312,-294,-249,-254,-256},{-304,-312,-274,-247,-264,-251},{-310,-260,-277,-279,-291,-259},{-273,-277,-272,-299,-275,-259},{-302,-263,-272,-258,-248,-254},{-290,-295,-269,-247,-272,-236},{-299,-272,-277,-277,-288,-254},{-316,-257,-263,-271,-288,-285},{-307,-272,-277,-260,-283,-272},{-319,-260,-252,-255,-243,-256},{-302,-297,-305,-293,-278,-269},{-304,-280,-272,-263,-248,-236},{-313,-297,-280,-255,-294,-285},{-307,-295,-272,-290,-243,-264},{-278,-257,-302,-301,-286,-249},{-304,-272,-294,-288,-267,-282},{-264,-266,-305,-260,-275,-277},{-284,-283,-274,-288,-267,-238},{-304,-257,-260,-301,-288,-269},{-313,-277,-294,-252,-283,-243},{-307,-312,-277,-274,-275,-280},{-261,-286,-260,-299,-254,-272}},{{-235,-218,-214,-235,-225,-212},{-260,-266,-219,-202,-197,-202},{-242,-225,-219,-231,-193,-187},{-230,-261,-249,-217,-210,-190},{-272,-237,-252,-220,-216,-214},{-248,-220,-238,-222,-218,-222},{-235,-240,-245,-211,-197,-198},{-258,-230,-226,-235,-201,-222},{-235,-244,-240,-242,-229,-216},{-235,-232,-228,-244,-210,-187},{-252,-249,-240,-220,-225,-216},{-255,-218,-217,-202,-212,-218},{-265,-249,-219,-202,-218,-194},{-275,-232,-221,-208,-225,-187},{-250,-225,-217,-231,-218,-192},{-252,-227,-240,-231,-220,-216},{-265,-244,-238,-242,-220,-218},{-245,-244,-252,-233,-235,-216},{-252,-235,-245,-208,-197,-214},{-250,-254,-235,-211,-197,-185},{-245,-232,-247,-226,-220,-212},{-258,-218,-219,-213,-201,-192},{-248,-232,-242,-246,-197,-210},{-265,-218,-219,-224,-195,-194},{-260,-249,-238,-222,-210,-212},{-270,-264,-254,-242,-225,-198},{-238,-242,-214,-226,-229,-204},{-265,-232,-249,-240,-218,-227},{-230,-247,-245,-220,-229,-198},{-238,-225,-226,-208,-214,-225},{-272,-232,-212,-215,-225,-220},{-252,-218,-231,-213,-205,-200},{-238,-249,-210,-240,-233,-185},{-275,-227,-240,-228,-214,-196},{-230,-264,-252,-244,-210,-220},{-260,-218,-221,-215,-214,-194},{-248,-244,-254,-202,-218,-190},{-248,-220,-235,-217,-233,-187},{-232,-235,-226,-228,-233,-202},{-272,-247,-219,-235,-195,-218},{-238,-223,-233,-208,-203,-198},{-270,-235,-233,-233,-223,-204},{-258,-230,-235,-215,-195,-204},{-225,-259,-214,-213,-233,-210},{-235,-259,-226,-242,-229,-192},{-228,-252,-228,-231,-227,-200},{-260,-240,-240,-228,-218,-190},{-265,-259,-245,-208,-214,-222},{-265,-242,-210,-224,-210,-218},{-262,-227,-212,-206,-227,-196}}},{{{-153,-166,-175,-190,-167,-208},{-151,-183,-173,-186,-173,-204},{-185,-174,-175,-195,-178,-199},{-156,-186,-172,-190,-186,-204},{-165,-174,-161,-174,-186,-210},{-173,-184,-180,-165,-166,-197},{-183,-176,-189,-163,-173,-174},{-151,-183,-161,-192,-193,-195},{-161,-186,-170,-165,-197,-201},{-155,-161,-168,-174,-173,-178},{-168,-167,-161,-181,-188,-189},{-185,-161,-186,-170,-199,-178},{-165,-166,-180,-181,-175,-210},{-161,-164,-168,-179,-201,-189},{-180,-161,-173,-197,-199,-183},{-155,-174,-158,-174,-182,-206},{-176,-155,-187,-190,-186,-210},{-166,-159,-163,-163,-186,-201},{-170,-171,-186,-161,-182,-210},{-155,-167,-164,-195,-180,-195},{-156,-161,-166,-166,-193,-176},{-170,-169,-166,-161,-177,-193},{-173,-159,-175,-195,-188,-174},{-160,-161,-163,-186,-199,-204},{-178,-157,-161,-193,-190,-178},{-180,-179,-172,-193,-167,-178},{-158,-172,-180,-174,-195,-183},{-175,-152,-166,-197,-193,-191},{-178,-162,-187,-179,-178,-204},{-161,-186,-186,-184,-188,-208},{-171,-172,-158,-161,-202,-210},{-161,-162,-161,-193,-201,-187},{-168,-171,-182,-193,-169,-208},{-163,-166,-163,-172,-171,-204},{-163,-154,-182,-186,-182,-195},{-171,-162,-173,-174,-167,-204},{-183,-183,-186,-168,-166,-206},{-160,-177,-164,-161,-188,-195},{-158,-161,-193,-177,-195,-172},{-173,-179,-186,-172,-175,-195},{-170,-159,-164,-175,-166,-176},{-158,-176,-163,-192,-191,-201},{-181,-159,-177,-165,-169,-206},{-168,-164,-168,-168,-202,-197},{-166,-177,-164,-183,-199,-185},{-163,-167,-172,-174,-166,-195},{-170,-154,-173,-172,-197,-178},{-170,-179,-168,-166,-177,-191},{-181,-162,-187,-183,-173,-193},{-183,-176,-184,-166,-184,-210}},{{-196,-209,-194,-223,-206,-221},{-212,-187,-224,-236,-215,-248},{-196,-201,-219,-243,-211,-259},{-192,-197,-209,-223,-243,-255},{-198,-207,-213,-228,-222,-219},{-184,-184,-228,-203,-236,-238},{-218,-226,-200,-217,-243,-236},{-194,-223,-234,-225,-218,-228},{-186,-203,-234,-203,-213,-214},{-184,-195,-230,-223,-220,-236},{-214,-187,-222,-223,-206,-240},{-212,-197,-211,-230,-243,-214},{-218,-213,-224,-201,-243,-259},{-196,-209,-192,-212,-213,-240},{-204,-199,-202,-217,-240,-245},{-198,-201,-213,-206,-247,-228},{-214,-213,-196,-208,-220,-245},{-184,-221,-202,-241,-218,-224},{-218,-221,-222,-212,-224,-226},{-206,-217,-219,-223,-243,-221},{-178,-195,-228,-199,-250,-255},{-198,-221,-196,-223,-236,-236},{-212,-203,-211,-243,-252,-259},{-196,-226,-209,-219,-245,-228},{-206,-195,-202,-199,-247,-257},{-194,-226,-202,-201,-224,-219},{-204,-213,-209,-201,-229,-231},{-178,-219,-234,-228,-213,-226},{-194,-221,-198,-228,-236,-252},{-212,-221,-219,-223,-220,-219},{-204,-217,-192,-236,-234,-236},{-202,-211,-207,-230,-208,-226},{-214,-207,-215,-243,-240,-231},{-202,-205,-215,-203,-252,-219},{-204,-217,-213,-236,-252,-262},{-182,-187,-198,-234,-252,-255},{-212,-199,-219,-223,-227,-245},{-194,-201,-219,-228,-213,-231},{-216,-193,-200,-228,-224,-236},{-192,-199,-228,-206,-243,-231},{-184,-211,-211,-232,-240,-255},{-202,-215,-207,-225,-224,-226},{-196,-201,-192,-199,-208,-226},{-180,-203,-226,-236,-224,-245},{-218,-189,-211,-225,-215,-238},{-208,-221,-230,-208,-240,-262},{-204,-184,-228,-225,-211,-250},{-218,-195,-198,-201,-220,-233},{-202,-211,-192,-212,-234,-262},{-212,-191,-198,-232,-224,-240}},{{-267,-250,-238,-297,-260,-289},{-264,-268,-272,-292,-274,-266},{-254,-273,-278,-273,-294,-297},{-227,-230,-257,-259,-296,-275},{-264,-245,-288,-270,-249,-263},{-252,-273,-286,-262,-280,-306},{-264,-247,-236,-292,-294,-303},{-232,-237,-275,-256,-302,-308},{-264,-268,-244,-275,-258,-260},{-247,-252,-272,-270,-305,-289},{-222,-278,-280,-265,-302,-275},{-230,-260,-270,-289,-255,-280},{-257,-245,-272,-267,-255,-255},{-259,-273,-259,-281,-271,-291},{-222,-268,-246,-275,-305,-297},{-254,-247,-241,-251,-252,-280},{-247,-263,-288,-275,-274,-306},{-245,-280,-280,-267,-266,-300},{-225,-235,-241,-270,-277,-300},{-254,-273,-254,-284,-266,-269},{-252,-275,-267,-270,-299,-269},{-230,-252,-249,-286,-255,-306},{-222,-278,-286,-259,-266,-289},{-259,-258,-238,-289,-280,-255},{-269,-280,-272,-284,-263,-280},{-259,-242,-275,-273,-266,-258},{-272,-252,-236,-273,-263,-303},{-225,-280,-286,-286,-305,-280},{-240,-268,-257,-281,-263,-283},{-267,-258,-241,-281,-277,-263},{-225,-260,-280,-297,-274,-308},{-240,-268,-262,-278,-305,-277},{-252,-260,-283,-267,-249,-266},{-230,-270,-249,-273,-294,-260},{-264,-273,-244,-248,-294,-280},{-259,-273,-257,-243,-294,-308},{-262,-258,-259,-248,-260,-303},{-230,-242,-252,-254,-280,-308},{-269,-258,-238,-265,-302,-269},{-249,-280,-288,-262,-274,-289},{-257,-275,-278,-294,-263,-308},{-262,-280,-246,-254,-283,-258},{-230,-258,-262,-270,-288,-272},{-252,-255,-267,-292,-274,-260},{-272,-240,-259,-292,-263,-277},{-230,-273,-249,-286,-291,-255},{-262,-265,-286,-259,-252,-258},{-232,-275,-236,-294,-299,-286},{-240,-268,-280,-273,-274,-266},{-247,-235,-254,-248,-305,-297}}},{{{-329,-326,-316,-359,-322,-316},{-359,-319,-339,-352,-296,-306},{-342,-316,-336,-309,-359,-319},{-332,-322,-339,-316,-309,-359},{-362,-319,-299,-296,-306,-362},{-355,-309,-342,-316,-313,-329},{-359,-309,-362,-326,-296,-309},{-332,-306,-306,-326,-303,-322},{-303,-362,-319,-345,-319,-349},{-329,-329,-309,-362,-362,-359},{-306,-345,-352,-349,-362,-326},{-342,-332,-352,-306,-309,-342},{-359,-306,-355,-296,-316,-339},{-296,-352,-299,-309,-326,-355},{-326,-303,-362,-319,-332,-336},{-359,-322,-299,-306,-299,-329},{-296,-313,-352,-349,-329,-339},{-306,-299,-349,-322,-352,-326},{-303,-316,-332,-316,-303,-322},{-355,-359,-306,-349,-326,-306},{-303,-322,-329,-329,-319,-322},{-306,-362,-349,-336,-306,-313},{-359,-362,-352,-349,-329,-349},{-339,-319,-319,-303,-355,-296},{-352,-359,-345,-349,-316,-349},{-319,-359,-322,-306,-349,-326},{-332,-339,-303,-332,-352,-326},{-329,-316,-345,-339,-362,-322},{-313,-352,-326,-355,-362,-316},{-349,-319,-329,-319,-316,-336},{-349,-349,-355,-359,-349,-296},{-359,-303,-359,-299,-313,-332},{-322,-345,-306,-309,-336,-329},{-352,-306,-329,-299,-319,-362},{-352,-359,-345,-355,-322,-319},{-359,-322,-306,-355,-352,-313},{-352,-329,-326,-322,-336,-329},{-355,-352,-359,-349,-326,-306},{-306,-313,-296,-362,-303,-326},{-316,-326,-362,-345,-299,-349},{-345,-303,-359,-332,-313,-342},{-336,-345,-319,-299,-355,-359},{-339,-313,-355,-303,-339,-319},{-316,-309,-296,-296,-309,-342},{-345,-306,-296,-349,-362,-342},{-309,-306,-355,-319,-322,-316},{-359,-336,-326,-319,-349,-316},{-319,-349,-319,-339,-336,-339},{-352,-319,-359,-359,-349,-329},{-303,-303,-322,-349,-352,-309}},{{-354,-338,-297,-305,-311,-283},{-298,-345,-345,-286,-320,-319},{-312,-322,-351,-330,-339,-316},{-331,-299,-345,-342,-286,-310},{-295,-316,-316,-286,-317,-298},{-315,-296,-309,-345,-280,-289},{-308,-316,-351,-336,-290,-316},{-331,-319,-351,-339,-320,-310},{-315,-354,-338,-339,-308,-316},{-338,-348,-303,-342,-308,-292},{-321,-338,-341,-301,-296,-289},{-302,-296,-322,-342,-320,-331},{-361,-290,-341,-289,-320,-310},{-312,-338,-332,-339,-314,-301},{-348,-296,-325,-301,-314,-301},{-298,-299,-293,-339,-336,-313},{-318,-316,-351,-314,-311,-328},{-308,-316,-341,-286,-286,-289},{-302,-341,-293,-327,-299,-304},{-295,-345,-300,-286,-336,-271},{-295,-303,-325,-342,-296,-328},{-341,-335,-300,-305,-286,-271},{-361,-341,-338,-345,-293,-310},{-354,-303,-338,-298,-333,-322},{-358,-341,-313,-345,-283,-280},{-321,-325,-335,-314,-314,-301},{-308,-345,-341,-327,-293,-307},{-361,-338,-303,-339,-320,-328},{-354,-306,-341,-327,-296,-316},{-331,-316,-329,-320,-333,-277},{-305,-341,-351,-305,-277,-322},{-312,-290,-303,-333,-336,-301},{-341,-322,-325,-333,-299,-277},{-328,-316,-297,-342,-293,-289},{-348,-316,-319,-314,-326,-304},{-335,-332,-338,-283,-286,-280},{-348,-341,-297,-301,-323,-280},{-318,-322,-290,-345,-299,-307},{-328,-319,-303,-314,-336,-331},{-295,-319,-322,-330,-286,-271},{-361,-332,-338,-320,-339,-304},{-344,-341,-348,-336,-296,-283},{-315,-332,-313,-311,-296,-277},{-358,-319,-335,-333,-320,-331},{-318,-335,-338,-327,-296,-292},{-315,-338,-313,-308,-326,-325},{-341,-306,-300,-317,-296,-280},{-351,-306,-351,-286,-339,-295},{-344,-325,-319,-305,-286,-271},{-335,-303,-300,-295,-299,-274}},{{-301,-279,-305,-280,-276,-239},{-313,-317,-280,-288,-278,-249},{-283,-276,-255,-294,-244,-283},{-292,-317,-291,-256,-278,-234},{-266,-288,-263,-250,-254,-247},{-301,-297,-288,-248,-254,-270},{-316,-274,-288,-272,-252,-280},{-301,-276,-291,-283,-268,-270},{-292,-291,-277,-248,-246,-231},{-280,-285,-302,-256,-265,-257},{-310,-282,-269,-258,-270,-234},{-274,-311,-283,-264,-257,-242},{-292,-276,-274,-269,-249,-244},{-271,-302,-305,-277,-260,-244},{-319,-308,-272,-272,-281,-249},{-266,-288,-294,-296,-241,-262},{-277,-302,-272,-280,-270,-231},{-295,-279,-252,-258,-262,-231},{-266,-300,-260,-299,-265,-234},{-324,-271,-302,-299,-265,-267},{-307,-311,-305,-275,-244,-270},{-289,-294,-258,-264,-270,-270},{-298,-285,-300,-261,-268,-239},{-283,-297,-291,-245,-284,-262},{-274,-276,-272,-283,-281,-242},{-292,-317,-258,-264,-241,-280},{-322,-268,-291,-291,-257,-275},{-292,-291,-280,-269,-289,-231},{-283,-274,-305,-277,-273,-260},{-274,-305,-288,-269,-281,-234},{-286,-300,-258,-291,-260,-260},{-324,-300,-294,-253,-254,-267},{-324,-262,-294,-283,-286,-257},{-301,-308,-272,-288,-268,-247},{-289,-285,-274,-283,-281,-234},{-274,-268,-274,-250,-257,-239},{-295,-276,-277,-294,-292,-234},{-313,-297,-266,-253,-278,-249},{-301,-308,-258,-277,-262,-262},{-322,-282,-280,-264,-241,-267},{-324,-305,-308,-277,-281,-234},{-310,-262,-300,-261,-241,-239},{-280,-265,-260,-267,-289,-252},{-304,-271,-274,-264,-252,-278},{-280,-268,-294,-286,-281,-283},{-324,-288,-286,-258,-246,-257},{-268,-288,-297,-269,-252,-278},{-274,-314,-288,-286,-281,-267},{-313,-288,-297,-291,-241,-231},{-324,-279,-300,-277,-238,-267}}},{{{-111,-101,-104,-105,-112,-138},{-94,-116,-121,-109,-121,-119},{-104,-105,-101,-129,-124,-136},{-112,-99,-101,-110,-132,-132},{-104,-98,-115,-106,-121,-124},{-110,-96,-112,-116,-113,-122},{-105,-110,-115,-119,-111,-137},{-109,-105,-114,-109,-117,-118},{-101,-100,-108,-128,-123,-123},{-113,-117,-123,-121,-128,-127},{-116,-110,-101,-123,-132,-132},{-107,-98,-102,-122,-113,-120},{-104,-109,-101,-106,-118,-141},{-116,-98,-122,-129,-128,-136},{-99,-95,-123,-129,-111,-120},{-101,-101,-106,-110,-121,-136},{-94,-103,-104,-121,-116,-125},{-96,-110,-114,-124,-129,-125},{-110,-102,-108,-125,-134,-138},{-102,-114,-102,-106,-110,-131},{-99,-109,-103,-116,-116,-134},{-104,-101,-116,-105,-112,-124},{-111,-111,-102,-113,-115,-140},{-100,-106,-106,-119,-124,-118},{-104,-113,-108,-118,-115,-140},{-100,-114,-113,-109,-133,-119},{-97,-117,-108,-121,-118,-138},{-105,-107,-105,-115,-124,-119},{-107,-106,-110,-112,-132,-119},{-113,-106,-108,-121,-118,-140},{-98,-105,-104,-128,-121,-127},{-112,-98,-113,-118,-126,-120},{-104,-95,-113,-118,-124,-127},{-103,-109,-111,-121,-120,-128},{-105,-114,-108,-123,-122,-120},{-106,-102,-122,-126,-123,-132},{-98,-100,-123,-128,-117,-118},{-111,-95,-121,-106,-128,-119},{-106,-113,-110,-119,-132,-122},{-105,-96,-115,-106,-127,-119},{-105,-104,-123,-113,-129,-123},{-99,-104,-121,-117,-123,-137},{-114,-102,-102,-111,-122,-118},{-94,-110,-120,-121,-132,-125},{-105,-101,-111,-111,-132,-138},{-96,-99,-113,-112,-123,-137},{-110,-95,-106,-119,-110,-122},{-94,-108,-105,-111,-122,-133},{-102,-96,-115,-111,-121,-125},{-103,-108,-106,-128,-116,-118}},{{-148,-151,-144,-150,-158,-168},{-146,-148,-145,-166,-169,-168},{-142,-128,-149,-152,-145,-183},{-135,-152,-148,-169,-147,-183},{-123,-140,-157,-164,-163,-170},{-143,-134,-163,-152,-177,-156},{-136,-147,-152,-157,-147,-166},{-139,-128,-145,-146,-171,-171},{-142,-137,-142,-149,-163,-156},{-138,-131,-158,-170,-145,-158},{-135,-141,-144,-164,-156,-178},{-148,-127,-145,-155,-156,-166},{-148,-151,-151,-170,-153,-173},{-128,-141,-142,-152,-161,-158},{-132,-133,-133,-161,-174,-165},{-138,-138,-145,-157,-164,-175},{-136,-133,-154,-164,-174,-156},{-130,-147,-141,-163,-169,-176},{-132,-154,-138,-144,-150,-175},{-140,-148,-139,-140,-163,-163},{-123,-145,-152,-143,-166,-163},{-126,-134,-160,-157,-163,-163},{-148,-133,-148,-152,-151,-173},{-124,-144,-139,-153,-174,-180},{-148,-128,-147,-157,-171,-166},{-130,-154,-151,-160,-147,-180},{-148,-148,-144,-158,-169,-166},{-139,-152,-157,-143,-145,-158},{-135,-133,-142,-150,-164,-161},{-147,-145,-160,-152,-174,-165},{-139,-137,-155,-163,-169,-173},{-146,-138,-144,-140,-163,-171},{-132,-134,-144,-166,-156,-160},{-123,-133,-158,-160,-151,-170},{-126,-131,-147,-150,-153,-178},{-127,-140,-155,-149,-158,-170},{-136,-134,-151,-147,-159,-151},{-124,-130,-161,-163,-169,-176},{-126,-131,-136,-144,-167,-173},{-134,-151,-158,-141,-171,-170},{-135,-147,-163,-150,-174,-180},{-132,-152,-151,-157,-177,-161},{-144,-131,-138,-170,-171,-153},{-135,-127,-157,-158,-156,-178},{-143,-142,-141,-169,-156,-161},{-143,-128,-160,-163,-151,-166},{-147,-155,-147,-164,-161,-173},{-131,-147,-139,-157,-163,-173},{-136,-137,-155,-144,-171,-155},{-140,-144,-163,-147,-151,-155}},{{-159,-173,-179,-200,-210,-196},{-193,-180,-169,-179,-188,-178},{-189,-166,-193,-171,-178,-180},{-173,-191,-199,-180,-200,-216},{-187,-169,-201,-182,-204,-186},{-175,-171,-190,-184,-176,-178},{-163,-193,-205,-209,-194,-186},{-168,-178,-184,-203,-184,-194},{-187,-167,-188,-186,-202,-184},{-182,-175,-186,-186,-184,-194},{-180,-187,-182,-179,-182,-180},{-173,-182,-205,-175,-194,-214},{-180,-173,-169,-196,-210,-188},{-161,-182,-175,-171,-186,-216},{-170,-175,-177,-179,-182,-198},{-182,-164,-190,-184,-186,-204},{-189,-194,-180,-194,-190,-178},{-186,-196,-197,-175,-200,-178},{-193,-167,-167,-188,-206,-182},{-175,-185,-167,-192,-208,-212},{-177,-173,-197,-173,-192,-196},{-175,-185,-180,-205,-198,-178},{-182,-171,-190,-173,-180,-218},{-186,-189,-180,-190,-216,-184},{-189,-162,-173,-209,-184,-218},{-164,-167,-195,-209,-200,-178},{-164,-194,-180,-194,-194,-184},{-170,-184,-199,-201,-182,-218},{-158,-164,-169,-171,-194,-194},{-164,-196,-201,-177,-192,-192},{-163,-189,-175,-201,-182,-200},{-175,-189,-192,-192,-192,-182},{-164,-176,-167,-194,-210,-208},{-177,-184,-203,-182,-186,-206},{-163,-182,-195,-207,-204,-188},{-193,-173,-179,-173,-182,-192},{-172,-180,-169,-180,-198,-208},{-168,-176,-199,-194,-196,-178},{-173,-164,-175,-182,-212,-200},{-193,-164,-205,-200,-200,-182},{-164,-194,-173,-201,-208,-210},{-164,-171,-188,-188,-184,-192},{-191,-171,-182,-203,-194,-212},{-173,-171,-169,-207,-214,-184},{-191,-185,-186,-207,-204,-182},{-158,-173,-184,-196,-204,-206},{-178,-175,-192,-192,-198,-218},{-175,-191,-195,-182,-216,-184},{-182,-194,-186,-184,-194,-192},{-161,-185,-171,-203,-182,-188}}},{{{-219,-257,-240,-231,-255,-221},{-254,-248,-243,-236,-224,-219},{-212,-217,-248,-243,-257,-257},{-224,-238,-221,-236,-243,-257},{-233,-243,-236,-228,-238,-224},{-226,-259,-240,-255,-231,-259},{-235,-240,-255,-257,-243,-217},{-247,-228,-243,-238,-219,-240},{-235,-224,-224,-233,-243,-214},{-238,-236,-255,-248,-245,-224},{-245,-245,-221,-231,-228,-214},{-247,-240,-226,-257,-233,-248},{-238,-224,-233,-257,-240,-231},{-228,-236,-243,-240,-248,-226},{-233,-250,-255,-219,-228,-257},{-210,-255,-262,-248,-226,-250},{-242,-262,-236,-228,-262,-238},{-235,-259,-257,-226,-238,-219},{-240,-219,-219,-231,-243,-217},{-249,-217,-238,-248,-245,-255},{-256,-226,-255,-233,-221,-231},{-240,-245,-252,-240,-257,-236},{-233,-224,-257,-219,-257,-228},{-228,-217,-217,-224,-231,-245},{-233,-248,-236,-221,-250,-238},{-252,-245,-262,-250,-233,-233},{-242,-236,-259,-214,-238,-259},{-240,-236,-255,-217,-240,-214},{-226,-250,-250,-217,-262,-214},{-214,-259,-219,-217,-217,-231},{-252,-233,-240,-221,-214,-233},{-240,-252,-250,-226,-257,-221},{-217,-226,-245,-240,-255,-245},{-233,-217,-233,-228,-219,-224},{-245,-245,-255,-252,-259,-221},{-252,-257,-243,-245,-262,-228},{-221,-236,-233,-217,-236,-255},{-233,-228,-226,-243,-252,-228},{-210,-252,-243,-262,-262,-214},{-210,-217,-236,-224,-252,-250},{-221,-252,-217,-252,-243,-231},{-210,-219,-231,-217,-224,-250},{-235,-214,-214,-224,-245,-236},{-221,-259,-231,-233,-221,-226},{-217,-228,-240,-255,-255,-233},{-221,-257,-240,-231,-226,-224},{-256,-245,-248,-238,-257,-231},{-212,-224,-243,-252,-214,-221},{-212,-238,-262,-224,-233,-236},{-226,-221,-259,-228,-255,-221}},{{-262,-250,-254,-247,-240,-214},{-219,-226,-244,-243,-235,-241},{-257,-238,-258,-222,-231,-203},{-248,-233,-244,-224,-210,-230},{-228,-233,-216,-229,-203,-201},{-221,-221,-249,-254,-210,-230},{-250,-245,-226,-252,-237,-243},{-245,-257,-230,-252,-226,-199},{-240,-243,-254,-219,-203,-228},{-214,-231,-212,-243,-217,-230},{-224,-252,-244,-231,-233,-223},{-221,-219,-249,-226,-208,-236},{-238,-257,-240,-219,-212,-217},{-248,-259,-237,-238,-237,-236},{-243,-226,-233,-217,-212,-221},{-255,-262,-244,-252,-233,-212},{-221,-252,-237,-208,-226,-219},{-228,-257,-212,-213,-208,-225},{-240,-214,-233,-213,-231,-239},{-231,-217,-244,-236,-212,-210},{-252,-245,-258,-245,-233,-201},{-240,-255,-221,-217,-203,-230},{-214,-259,-237,-249,-228,-236},{-217,-236,-223,-217,-221,-239},{-250,-224,-219,-215,-206,-225},{-221,-248,-247,-247,-210,-225},{-217,-233,-233,-238,-224,-217},{-259,-250,-256,-208,-206,-206},{-252,-245,-258,-254,-244,-217},{-236,-243,-216,-233,-217,-201},{-248,-228,-240,-210,-235,-241},{-233,-221,-223,-252,-237,-230},{-226,-248,-228,-238,-208,-225},{-228,-236,-216,-222,-217,-236},{-252,-214,-226,-254,-210,-243},{-217,-240,-214,-252,-249,-206},{-221,-238,-230,-226,-221,-232},{-262,-219,-219,-213,-206,-223},{-250,-248,-256,-222,-217,-236},{-238,-231,-244,-231,-203,-203},{-243,-245,-216,-224,-231,-199},{-252,-257,-242,-226,-224,-201},{-238,-231,-235,-224,-219,-219},{-214,-240,-226,-229,-219,-219},{-231,-233,-235,-233,-219,-199},{-259,-238,-242,-208,-208,-203},{-262,-262,-247,-231,-206,-208},{-243,-219,-233,-229,-215,-225},{-252,-245,-212,-249,-244,-236},{-238,-221,-254,-238,-224,-239}},{{-211,-201,-186,-193,-191,-198},{-230,-215,-204,-207,-187,-164},{-209,-196,-204,-177,-193,-162},{-215,-217,-206,-201,-193,-184},{-206,-199,-196,-213,-191,-193},{-217,-219,-196,-179,-170,-194},{-211,-219,-192,-201,-176,-173},{-206,-224,-186,-205,-183,-173},{-209,-205,-206,-181,-170,-178},{-202,-219,-200,-205,-193,-185},{-204,-201,-188,-201,-200,-164},{-198,-215,-216,-201,-168,-176},{-211,-211,-194,-213,-170,-180},{-198,-213,-212,-215,-168,-196},{-217,-228,-214,-205,-204,-180},{-213,-226,-194,-203,-181,-166},{-232,-213,-206,-191,-191,-164},{-209,-205,-200,-205,-206,-171},{-194,-226,-188,-211,-183,-171},{-234,-192,-198,-193,-194,-167},{-209,-199,-216,-187,-196,-176},{-221,-215,-188,-189,-196,-162},{-211,-194,-186,-185,-181,-167},{-228,-219,-182,-211,-206,-182},{-206,-230,-206,-195,-206,-194},{-224,-222,-204,-203,-172,-198},{-211,-209,-208,-179,-198,-194},{-219,-230,-200,-195,-176,-189},{-206,-219,-198,-195,-191,-196},{-202,-222,-204,-179,-191,-187},{-224,-203,-194,-211,-176,-178},{-196,-226,-206,-199,-189,-191},{-217,-226,-222,-176,-191,-182},{-209,-194,-184,-205,-198,-176},{-219,-209,-212,-201,-183,-167},{-213,-226,-204,-191,-206,-191},{-217,-199,-200,-199,-198,-196},{-228,-207,-190,-187,-193,-194},{-213,-222,-218,-183,-196,-182},{-237,-213,-204,-199,-168,-175},{-237,-222,-190,-181,-187,-164},{-234,-203,-184,-177,-198,-176},{-237,-228,-214,-176,-202,-176},{-221,-217,-204,-181,-185,-167},{-196,-215,-184,-213,-168,-166},{-200,-201,-190,-189,-174,-166},{-206,-196,-192,-199,-168,-167},{-206,-188,-222,-213,-181,-164},{-196,-230,-190,-201,-172,-198},{-202,-215,-214,-193,-178,-169}}},{{{-287,-258,-293,-290,-271,-263},{-290,-271,-287,-263,-290,-290},{-269,-277,-269,-274,-242,-271},{-261,-293,-242,-239,-263,-266},{-279,-247,-266,-263,-242,-271},{-245,-250,-271,-250,-271,-266},{-261,-279,-285,-269,-239,-274},{-266,-282,-290,-255,-261,-271},{-285,-269,-293,-242,-253,-287},{-258,-250,-261,-285,-269,-293},{-263,-285,-263,-274,-277,-266},{-263,-258,-245,-242,-266,-282},{-287,-287,-287,-290,-239,-285},{-279,-245,-255,-239,-263,-269},{-263,-239,-274,-242,-282,-285},{-245,-282,-269,-253,-258,-253},{-263,-285,-274,-290,-261,-261},{-271,-290,-279,-255,-255,-279},{-266,-277,-253,-293,-250,-271},{-274,-271,-263,-242,-285,-250},{-269,-277,-258,-247,-258,-255},{-274,-285,-290,-266,-266,-261},{-285,-247,-261,-258,-261,-247},{-282,-279,-274,-293,-271,-266},{-293,-269,-269,-279,-261,-287},{-253,-245,-277,-245,-245,-287},{-269,-255,-279,-239,-261,-247},{-258,-253,-247,-269,-271,-271},{-285,-255,-239,-290,-263,-239},{-253,-245,-290,-293,-269,-253},{-242,-282,-269,-282,-266,-263},{-245,-285,-247,-253,-239,-290},{-250,-282,-261,-271,-279,-285},{-279,-261,-269,-269,-261,-287},{-261,-287,-277,-293,-250,-239},{-239,-255,-242,-245,-242,-287},{-247,-242,-263,-285,-250,-293},{-269,-242,-245,-255,-258,-290},{-245,-285,-242,-261,-242,-279},{-245,-250,-290,-271,-242,-290},{-269,-271,-277,-269,-253,-285},{-250,-253,-269,-290,-269,-293},{-290,-282,-290,-255,-239,-285},{-269,-253,-250,-287,-287,-269},{-279,-282,-239,-293,-269,-253},{-277,-263,-269,-282,-287,-269},{-285,-271,-263,-242,-253,-239},{-266,-290,-287,-245,-282,-269},{-242,-239,-293,-287,-250,-277},{-266,-250,-247,-285,-253,-242}},{{-239,-250,-279,-242,-275,-267},{-250,-258,-250,-290,-241,-264},{-285,-293,-239,-293,-283,-285},{-263,-269,-277,-282,-265,-238},{-258,-245,-290,-239,-252,-264},{-250,-269,-290,-290,-288,-236},{-293,-290,-285,-287,-241,-241},{-271,-255,-277,-242,-236,-246},{-269,-293,-279,-277,-257,-249},{-261,-261,-282,-258,-252,-264},{-274,-269,-250,-261,-259,-241},{-290,-239,-274,-279,-252,-280},{-282,-258,-263,-250,-278,-249},{-285,-250,-285,-287,-286,-277},{-255,-250,-290,-253,-249,-275},{-287,-258,-285,-261,-278,-236},{-279,-250,-287,-263,-249,-236},{-253,-255,-285,-266,-286,-272},{-253,-261,-247,-287,-257,-238},{-271,-245,-242,-293,-272,-241},{-287,-290,-271,-274,-241,-280},{-285,-287,-258,-285,-244,-246},{-245,-250,-253,-239,-262,-243},{-271,-287,-266,-245,-286,-246},{-247,-247,-253,-261,-288,-238},{-253,-279,-247,-290,-257,-236},{-250,-287,-285,-250,-238,-243},{-271,-269,-274,-293,-254,-272},{-258,-290,-255,-258,-246,-275},{-263,-253,-250,-277,-236,-238},{-250,-263,-247,-279,-286,-272},{-282,-247,-271,-261,-257,-282},{-287,-285,-242,-290,-241,-264},{-239,-271,-290,-253,-238,-243},{-277,-239,-263,-242,-286,-251},{-285,-266,-274,-266,-267,-249},{-287,-250,-287,-239,-257,-267},{-263,-271,-250,-285,-286,-277},{-287,-266,-250,-279,-259,-282},{-279,-247,-287,-269,-265,-280},{-245,-255,-271,-239,-238,-259},{-247,-282,-271,-239,-257,-259},{-269,-266,-258,-277,-262,-251},{-271,-274,-239,-279,-257,-275},{-250,-255,-266,-274,-275,-259},{-245,-287,-247,-290,-275,-267},{-242,-253,-290,-287,-241,-256},{-250,-271,-261,-253,-280,-254},{-247,-271,-290,-287,-267,-241},{-290,-274,-293,-285,-252,-246}},{{-275,-273,-265,-238,-255,-227},{-236,-228,-260,-228,-238,-251},{-275,-263,-249,-273,-238,-231},{-277,-240,-242,-273,-220,-246},{-233,-248,-234,-250,-233,-251},{-285,-278,-242,-241,-252,-239},{-249,-256,-255,-226,-247,-222},{-236,-273,-270,-243,-270,-258},{-259,-258,-275,-265,-230,-227},{-233,-238,-255,-238,-225,-243},{-238,-256,-255,-238,-225,-234},{-249,-248,-249,-226,-233,-248},{-259,-268,-267,-263,-235,-243},{-256,-278,-247,-243,-225,-229},{-264,-261,-234,-231,-240,-222},{-236,-243,-244,-236,-270,-231},{-251,-243,-267,-270,-238,-258},{-275,-233,-234,-241,-250,-227},{-267,-268,-262,-273,-252,-248},{-282,-240,-227,-273,-270,-219},{-233,-263,-244,-226,-262,-234},{-262,-278,-227,-250,-243,-224},{-254,-228,-227,-263,-243,-241},{-238,-276,-247,-241,-260,-217},{-249,-235,-252,-243,-228,-219},{-262,-261,-267,-253,-223,-246},{-236,-253,-232,-268,-265,-234},{-246,-238,-232,-223,-250,-255},{-282,-248,-272,-236,-245,-253},{-249,-243,-277,-270,-223,-243},{-236,-256,-265,-273,-240,-253},{-246,-273,-260,-246,-270,-236},{-272,-253,-227,-238,-270,-248},{-233,-253,-234,-231,-245,-217},{-233,-258,-227,-243,-270,-255},{-256,-266,-234,-270,-228,-260},{-243,-263,-277,-231,-247,-241},{-272,-235,-239,-231,-225,-217},{-262,-278,-242,-260,-255,-255},{-285,-228,-227,-265,-250,-239},{-285,-256,-260,-226,-233,-253},{-256,-233,-242,-273,-255,-258},{-233,-228,-249,-248,-228,-258},{-264,-230,-232,-263,-260,-239},{-264,-258,-262,-241,-267,-263},{-280,-235,-244,-246,-228,-246},{-254,-256,-227,-250,-220,-255},{-267,-256,-257,-265,-247,-246},{-238,-228,-257,-223,-270,-231},{-249,-268,-270,-253,-238,-248}}},{{{-325,-322,-271,-298,-301,-311},{-280,-301,-319,-289,-322,-317},{-280,-322,-319,-319,-325,-317},{-319,-274,-316,-319,-271,-311},{-298,-313,-322,-292,-310,-311},{-277,-280,-280,-292,-319,-287},{-328,-310,-271,-325,-322,-308},{-331,-304,-292,-280,-277,-278},{-322,-307,-325,-325,-307,-284},{-280,-292,-292,-280,-286,-281},{-319,-310,-292,-283,-328,-320},{-283,-304,-280,-277,-292,-305},{-280,-289,-307,-316,-295,-278},{-331,-271,-316,-304,-313,-317},{-295,-325,-289,-286,-313,-269},{-307,-331,-283,-292,-304,-284},{-310,-331,-271,-316,-313,-317},{-316,-280,-313,-307,-304,-317},{-301,-328,-277,-280,-325,-320},{-316,-304,-322,-325,-286,-281},{-313,-304,-316,-313,-274,-284},{-271,-277,-310,-295,-295,-326},{-310,-283,-331,-319,-295,-293},{-280,-274,-271,-298,-274,-296},{-286,-298,-322,-295,-280,-299},{-331,-331,-271,-313,-289,-320},{-271,-325,-328,-274,-307,-266},{-301,-283,-283,-286,-298,-281},{-316,-301,-286,-301,-307,-278},{-304,-301,-283,-319,-298,-317},{-301,-280,-310,-331,-292,-266},{-331,-298,-292,-286,-280,-278},{-304,-277,-295,-301,-313,-326},{-319,-286,-283,-289,-316,-314},{-301,-289,-295,-328,-292,-311},{-298,-325,-301,-313,-271,-296},{-328,-298,-271,-289,-316,-275},{-301,-331,-295,-271,-304,-317},{-280,-313,-313,-274,-274,-281},{-274,-298,-307,-316,-271,-326},{-322,-286,-301,-271,-277,-308},{-274,-301,-298,-301,-328,-320},{-283,-322,-316,-292,-307,-311},{-331,-277,-274,-328,-298,-269},{-289,-313,-277,-295,-277,-269},{-286,-310,-301,-280,-271,-269},{-274,-271,-286,-328,-301,-317},{-322,-322,-316,-307,-274,-269},{-328,-283,-280,-301,-277,-278},{-271,-313,-307,-328,-304,-281}},{{-316,-258,-288,-298,-278,-272},{-287,-270,-308,-298,-244,-247},{-287,-293,-297,-251,-281,-249},{-296,-287,-300,-289,-268,-249},{-308,-307,-286,-262,-238,-234},{-272,-278,-286,-251,-238,-272},{-319,-261,-291,-262,-262,-267},{-293,-278,-272,-265,-289,-252},{-322,-273,-300,-300,-281,-244},{-319,-258,-288,-298,-286,-242},{-267,-290,-308,-289,-260,-254},{-270,-287,-308,-281,-241,-247},{-319,-276,-269,-281,-276,-231},{-290,-316,-280,-246,-286,-260},{-270,-276,-269,-289,-276,-244},{-308,-284,-277,-268,-244,-280},{-311,-270,-272,-276,-265,-272},{-319,-278,-260,-254,-260,-252},{-293,-301,-269,-292,-289,-260},{-319,-310,-297,-298,-241,-242},{-311,-273,-274,-259,-262,-280},{-267,-301,-286,-254,-276,-239},{-293,-298,-294,-300,-276,-275},{-293,-304,-258,-295,-270,-244},{-314,-296,-263,-273,-254,-231},{-284,-293,-294,-281,-281,-283},{-264,-313,-280,-300,-273,-278},{-264,-278,-286,-262,-265,-278},{-284,-276,-294,-292,-254,-260},{-316,-296,-308,-262,-246,-262},{-322,-264,-260,-281,-278,-280},{-308,-296,-288,-265,-241,-267},{-322,-310,-283,-246,-252,-252},{-305,-270,-300,-298,-265,-262},{-319,-284,-288,-254,-260,-254},{-296,-290,-260,-246,-244,-249},{-305,-273,-305,-262,-273,-234},{-290,-290,-266,-246,-286,-247},{-314,-287,-277,-287,-246,-260},{-299,-264,-280,-257,-254,-280},{-308,-284,-302,-276,-246,-270},{-293,-296,-294,-262,-254,-262},{-270,-296,-300,-289,-289,-280},{-305,-301,-266,-298,-292,-249},{-284,-296,-258,-298,-249,-239},{-278,-261,-283,-265,-262,-262},{-322,-278,-263,-292,-260,-249},{-305,-276,-280,-251,-257,-275},{-299,-307,-286,-262,-257,-275},{-267,-298,-258,-292,-281,-252}},{{-233,-254,-238,-243,-225,-196},{-263,-218,-245,-225,-214,-214},{-241,-254,-213,-206,-223,-186},{-231,-254,-218,-217,-218,-196},{-268,-240,-224,-210,-218,-184},{-258,-240,-222,-234,-206,-200},{-228,-218,-236,-199,-223,-192},{-268,-235,-220,-223,-225,-182},{-228,-230,-236,-201,-212,-210},{-255,-228,-224,-221,-220,-218},{-231,-247,-252,-212,-210,-194},{-258,-245,-243,-243,-227,-212},{-226,-216,-227,-225,-231,-190},{-253,-228,-227,-225,-208,-202},{-236,-235,-243,-217,-229,-206},{-263,-216,-208,-214,-212,-200},{-260,-252,-224,-203,-191,-196},{-236,-235,-215,-214,-199,-184},{-253,-223,-218,-219,-197,-214},{-265,-218,-243,-208,-193,-208},{-255,-228,-213,-203,-208,-212},{-246,-240,-236,-223,-231,-222},{-241,-247,-250,-219,-191,-194},{-226,-230,-247,-201,-225,-186},{-241,-250,-222,-201,-227,-196},{-268,-233,-243,-236,-191,-218},{-241,-240,-243,-243,-210,-222},{-268,-228,-220,-201,-212,-208},{-248,-226,-215,-230,-223,-208},{-253,-257,-247,-212,-223,-196},{-253,-226,-247,-234,-199,-188},{-265,-254,-231,-232,-220,-214},{-260,-216,-243,-234,-204,-222},{-226,-259,-234,-201,-233,-212},{-246,-223,-231,-221,-193,-216},{-233,-228,-220,-225,-191,-218},{-233,-259,-245,-225,-197,-222},{-270,-233,-224,-203,-199,-220},{-258,-247,-245,-210,-229,-196},{-231,-254,-220,-208,-214,-222},{-258,-259,-245,-221,-206,-196},{-250,-262,-229,-223,-216,-220},{-233,-223,-234,-236,-204,-192},{-263,-221,-243,-210,-208,-192},{-258,-250,-240,-232,-206,-200},{-273,-228,-208,-236,-216,-212},{-248,-259,-234,-228,-191,-208},{-223,-257,-240,-210,-216,-218},{-228,-252,-252,-199,-199,-206},{-223,-216,-218,-230,-225,-216}}},{{{-350,-329,-315,-340,-340,-385},{-364,-329,-346,-322,-371,-368},{-343,-350,-340,-385,-329,-374},{-329,-382,-329,-374,-315,-343},{-357,-343,-332,-368,-350,-315},{-322,-318,-346,-374,-329,-329},{-329,-364,-346,-364,-385,-385},{-385,-326,-357,-357,-368,-374},{-340,-364,-382,-357,-364,-382},{-357,-332,-374,-374,-360,-378},{-368,-315,-378,-354,-357,-326},{-368,-382,-360,-329,-318,-364},{-322,-340,-340,-357,-364,-354},{-332,-378,-360,-318,-357,-368},{-360,-343,-329,-329,-364,-382},{-329,-315,-385,-340,-346,-368},{-368,-374,-340,-315,-360,-360},{-340,-382,-354,-315,-378,-374},{-382,-340,-318,-371,-329,-364},{-350,-322,-368,-340,-378,-374},{-336,-336,-364,-332,-343,-336},{-322,-357,-374,-368,-378,-360},{-360,-343,-364,-326,-368,-336},{-360,-318,-360,-360,-329,-332},{-374,-340,-385,-374,-336,-385},{-343,-368,-357,-368,-354,-378},{-354,-343,-343,-374,-329,-343},{-318,-378,-326,-364,-329,-336},{-318,-364,-332,-350,-336,-322},{-382,-350,-340,-343,-329,-336},{-329,-368,-357,-354,-357,-382},{-332,-315,-343,-322,-378,-332},{-368,-350,-357,-364,-368,-315},{-382,-371,-382,-360,-378,-332},{-360,-343,-360,-318,-374,-343},{-346,-329,-382,-318,-374,-318},{-368,-346,-357,-329,-315,-322},{-340,-340,-336,-364,-364,-368},{-332,-350,-326,-385,-371,-350},{-378,-346,-371,-382,-364,-364},{-315,-374,-371,-326,-385,-336},{-326,-378,-343,-378,-329,-382},{-332,-350,-346,-340,-374,-336},{-346,-354,-329,-326,-322,-346},{-346,-354,-371,-368,-326,-329},{-382,-332,-382,-343,-357,-322},{-385,-364,-340,-318,-350,-385},{-343,-326,-385,-350,-378,-350},{-332,-332,-357,-354,-332,-350},{-371,-360,-340,-336,-382,-354}},{{-341,-350,-356,-314,-302,-306},{-320,-329,-339,-301,-305,-338},{-327,-319,-325,-351,-318,-303},{-327,-343,-325,-301,-338,-309},{-313,-340,-370,-337,-354,-335},{-379,-346,-356,-307,-341,-322},{-376,-360,-336,-347,-305,-348},{-327,-316,-359,-317,-302,-328},{-379,-364,-319,-357,-295,-303},{-383,-377,-319,-354,-321,-351},{-334,-326,-322,-301,-325,-354},{-327,-316,-373,-347,-305,-319},{-365,-357,-319,-334,-344,-328},{-379,-357,-325,-351,-344,-341},{-358,-377,-322,-314,-298,-319},{-320,-360,-336,-301,-358,-293},{-317,-309,-353,-357,-344,-319},{-338,-357,-363,-301,-358,-312},{-338,-350,-315,-347,-348,-328},{-383,-312,-373,-317,-321,-348},{-313,-367,-353,-361,-328,-325},{-334,-316,-373,-307,-341,-312},{-351,-329,-312,-341,-344,-345},{-362,-367,-319,-347,-325,-354},{-351,-333,-342,-351,-308,-309},{-351,-367,-342,-357,-344,-290},{-365,-364,-308,-331,-358,-293},{-358,-319,-356,-324,-341,-332},{-345,-326,-370,-361,-351,-306},{-379,-360,-315,-334,-338,-296},{-341,-364,-353,-307,-308,-299},{-348,-360,-370,-367,-358,-345},{-313,-374,-349,-351,-338,-296},{-324,-333,-359,-364,-315,-338},{-348,-326,-339,-364,-331,-325},{-362,-353,-359,-327,-321,-309},{-365,-374,-349,-334,-361,-345},{-376,-357,-332,-334,-331,-303},{-334,-367,-370,-337,-348,-299},{-334,-377,-339,-307,-348,-296},{-369,-333,-370,-337,-351,-312},{-383,-336,-366,-304,-358,-338},{-365,-336,-370,-341,-312,-299},{-317,-333,-353,-324,-312,-328},{-358,-353,-336,-331,-331,-309},{-341,-377,-319,-307,-331,-345},{-355,-336,-363,-307,-298,-322},{-348,-329,-373,-314,-358,-312},{-379,-326,-336,-347,-308,-299},{-313,-346,-359,-307,-318,-332}},{{-343,-320,-297,-293,-288,-272},{-290,-286,-321,-308,-265,-284},{-340,-286,-297,-272,-262,-286},{-346,-323,-273,-275,-262,-264},{-343,-305,-294,-305,-256,-264},{-299,-314,-276,-296,-262,-289},{-343,-290,-270,-264,-265,-300},{-306,-296,-297,-264,-291,-256},{-343,-330,-288,-284,-279,-253},{-312,-277,-294,-308,-256,-303},{-315,-330,-285,-299,-296,-300},{-331,-326,-315,-316,-314,-256},{-312,-339,-330,-281,-262,-256},{-309,-336,-285,-293,-268,-284},{-328,-293,-279,-319,-308,-275},{-306,-286,-330,-264,-294,-272},{-302,-290,-300,-299,-279,-289},{-302,-317,-285,-316,-311,-256},{-312,-293,-270,-302,-276,-300},{-346,-302,-303,-311,-279,-278},{-321,-336,-303,-284,-259,-253},{-346,-326,-288,-305,-259,-303},{-296,-326,-279,-319,-268,-267},{-318,-305,-312,-299,-311,-281},{-346,-305,-300,-275,-274,-297},{-315,-311,-312,-305,-308,-295},{-290,-320,-312,-296,-288,-303},{-302,-336,-321,-322,-271,-289},{-306,-293,-303,-278,-276,-256},{-287,-277,-297,-293,-305,-292},{-346,-323,-282,-290,-271,-264},{-331,-293,-315,-267,-279,-275},{-328,-283,-324,-296,-282,-278},{-343,-333,-327,-302,-259,-261},{-318,-317,-312,-308,-282,-289},{-346,-336,-291,-278,-294,-292},{-328,-296,-297,-305,-288,-259},{-328,-336,-309,-311,-302,-264},{-290,-283,-300,-272,-268,-289},{-324,-302,-279,-299,-311,-286},{-312,-286,-273,-305,-262,-278},{-324,-308,-288,-305,-282,-275},{-337,-299,-321,-278,-285,-289},{-324,-290,-282,-316,-265,-253},{-321,-317,-276,-311,-274,-272},{-321,-305,-312,-305,-285,-300},{-321,-330,-282,-284,-285,-250},{-318,-283,-282,-272,-271,-261},{-321,-283,-282,-287,-259,-297},{-340,-330,-315,-284,-302,-259}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1052,192,238,253,176,234,280,264,252}; // initial inventory 
int ubiv[I]={2104,384,476,507,352,468,350,495,504}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.35,8.59,5.57,4.52,2.83,1.94,4.81,7.57}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.14,7.81,5.06,4.11,2.57,1.76,4.37,6.88}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.71,9.71,9.71,8.5,8.5,8.5,7.28,7.28,7.28,6.25,6.25,6.25,5.47,5.47,5.47,4.69,4.69,4.69,4.05,4.05,4.05,3.54,3.54,3.54,3.04,3.04,3.04,3.29,3.29,3.29,2.88,2.88,2.88,2.47,2.47,2.47,2.06,2.06,2.06,1.8,1.8,1.8,1.54,1.54,1.54,1.41,1.41,1.41,1.23,1.23,1.23,1.06,1.06,1.06,3.5,3.5,3.5,3.06,3.06,3.06,2.62,2.62,2.62,5.5,5.5,5.5,4.82,4.82,4.82,4.13,4.13,4.13}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={7,3,2,7,4,2,7,4,2,7,4,3,8,4,3,7,4,3,7,4,3,8,4,3,8,4,3,7,4,3,8,4,3,8,4,3,8,4,3,9,4,3,8,5,3,8,4,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}; // 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}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,1,5,9,1,7,0,2,4,6,8,10,12,0,4,8,12,1,7,0,2,4,6,8,10,12,0,4,8,12,1,7,1,3,5,7,9,11,13,0,4,8,12,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,1,3,5,7,9,11,13,2,6,10,14,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,1,5,9,13,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,0,6,12,2,4,6,8,10,12,14,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,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,0,4,8,12,16,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,2,8,14,2,4,6,8,10,12,14,1,5,9,13,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,1,5,9,13,1,7,13,2,4,6,8,10,12,14,0,4,8,12,2,8,14}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,6,10,14,6,12,5,7,9,11,13,15,17,5,9,13,17,6,12,5,7,9,11,13,15,17,5,9,13,17,6,12,4,6,8,10,12,14,16,3,7,11,15,5,11,17,3,5,7,9,11,13,15,17,5,9,13,17,3,9,15,4,6,8,10,12,14,16,5,9,13,17,4,10,16,4,6,8,10,12,14,16,3,7,11,15,3,9,15,2,4,6,8,10,12,14,16,3,7,11,15,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,4,6,8,10,12,14,16,4,8,12,16,4,10,16,3,5,7,9,11,13,15,17,4,8,12,16,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,4,10,16,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,1,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,17,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,4,6,8,10,12,14,16,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,5,9,13,17,3,9,15,5,7,9,11,13,15,17,4,8,12,16,4,10,16,5,7,9,11,13,15,17,3,7,11,15,5,11,17}; // set of end times of each shipment 
