int Dev = 10;// Deviation
extern const int CNN = 3;// 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 = 351;//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]={{{{12339,0,0,0,0,0},{12435,0,0,0,0,0},{12582,0,0,0,0,0},{12499,0,0,0,0,0},{12310,0,0,0,0,0},{12416,0,0,0,0,0},{12315,0,0,0,0,0},{12330,0,0,0,0,0},{12452,0,0,0,0,0},{12417,0,0,0,0,0},{12294,0,0,0,0,0},{12304,0,0,0,0,0},{12372,0,0,0,0,0},{12433,0,0,0,0,0},{12498,0,0,0,0,0},{12522,0,0,0,0,0},{12333,0,0,0,0,0},{12536,0,0,0,0,0},{12293,0,0,0,0,0},{12498,0,0,0,0,0},{12516,0,0,0,0,0},{12533,0,0,0,0,0},{12539,0,0,0,0,0},{12573,0,0,0,0,0},{12414,0,0,0,0,0},{12544,0,0,0,0,0},{12410,0,0,0,0,0},{12537,0,0,0,0,0},{12369,0,0,0,0,0},{12450,0,0,0,0,0},{12572,0,0,0,0,0},{12167,0,0,0,0,0},{12461,0,0,0,0,0},{12309,0,0,0,0,0},{12329,0,0,0,0,0},{12476,0,0,0,0,0},{12405,0,0,0,0,0},{12371,0,0,0,0,0},{12358,0,0,0,0,0},{12593,0,0,0,0,0},{12459,0,0,0,0,0},{12535,0,0,0,0,0},{12226,0,0,0,0,0},{12495,0,0,0,0,0},{12129,0,0,0,0,0},{12455,0,0,0,0,0},{12543,0,0,0,0,0},{12665,0,0,0,0,0},{12457,0,0,0,0,0},{12378,0,0,0,0,0}},{{12425,0,0,0,0,0},{12442,0,0,0,0,0},{12396,0,0,0,0,0},{12294,0,0,0,0,0},{12273,0,0,0,0,0},{12462,0,0,0,0,0},{12565,0,0,0,0,0},{12602,0,0,0,0,0},{12418,0,0,0,0,0},{12333,0,0,0,0,0},{12487,0,0,0,0,0},{12521,0,0,0,0,0},{12557,0,0,0,0,0},{12580,0,0,0,0,0},{12580,0,0,0,0,0},{12420,0,0,0,0,0},{12350,0,0,0,0,0},{12566,0,0,0,0,0},{12371,0,0,0,0,0},{12328,0,0,0,0,0},{12211,0,0,0,0,0},{12539,0,0,0,0,0},{12415,0,0,0,0,0},{12374,0,0,0,0,0},{12427,0,0,0,0,0},{12477,0,0,0,0,0},{12415,0,0,0,0,0},{12508,0,0,0,0,0},{12504,0,0,0,0,0},{12306,0,0,0,0,0},{12442,0,0,0,0,0},{12343,0,0,0,0,0},{12495,0,0,0,0,0},{12388,0,0,0,0,0},{12237,0,0,0,0,0},{12254,0,0,0,0,0},{12212,0,0,0,0,0},{12628,0,0,0,0,0},{12447,0,0,0,0,0},{12578,0,0,0,0,0},{12416,0,0,0,0,0},{12549,0,0,0,0,0},{12248,0,0,0,0,0},{12381,0,0,0,0,0},{12573,0,0,0,0,0},{12327,0,0,0,0,0},{12451,0,0,0,0,0},{12328,0,0,0,0,0},{12378,0,0,0,0,0},{12333,0,0,0,0,0}},{{11544,0,0,0,0,0},{11537,0,0,0,0,0},{11666,0,0,0,0,0},{11640,0,0,0,0,0},{11826,0,0,0,0,0},{11551,0,0,0,0,0},{11564,0,0,0,0,0},{11469,0,0,0,0,0},{11630,0,0,0,0,0},{11526,0,0,0,0,0},{11610,0,0,0,0,0},{11408,0,0,0,0,0},{11411,0,0,0,0,0},{11548,0,0,0,0,0},{11618,0,0,0,0,0},{11583,0,0,0,0,0},{11475,0,0,0,0,0},{11578,0,0,0,0,0},{11531,0,0,0,0,0},{11491,0,0,0,0,0},{11573,0,0,0,0,0},{11436,0,0,0,0,0},{11600,0,0,0,0,0},{11678,0,0,0,0,0},{11576,0,0,0,0,0},{11488,0,0,0,0,0},{11519,0,0,0,0,0},{11561,0,0,0,0,0},{11625,0,0,0,0,0},{11655,0,0,0,0,0},{11505,0,0,0,0,0},{11607,0,0,0,0,0},{11596,0,0,0,0,0},{11637,0,0,0,0,0},{11530,0,0,0,0,0},{11644,0,0,0,0,0},{11588,0,0,0,0,0},{11709,0,0,0,0,0},{11573,0,0,0,0,0},{11582,0,0,0,0,0},{11441,0,0,0,0,0},{11566,0,0,0,0,0},{11555,0,0,0,0,0},{11444,0,0,0,0,0},{11419,0,0,0,0,0},{11431,0,0,0,0,0},{11602,0,0,0,0,0},{11386,0,0,0,0,0},{11555,0,0,0,0,0},{11582,0,0,0,0,0}}},{{{-306,-276,-300,-303,-282,-273},{-273,-320,-282,-315,-268,-285},{-265,-323,-300,-285,-270,-297},{-270,-320,-291,-300,-309,-285},{-312,-291,-309,-285,-309,-276},{-306,-282,-300,-303,-268,-309},{-282,-309,-300,-306,-323,-320},{-276,-270,-294,-297,-285,-270},{-285,-323,-285,-297,-318,-276},{-300,-291,-306,-312,-285,-303},{-279,-285,-285,-288,-276,-288},{-276,-309,-268,-315,-294,-270},{-303,-315,-323,-300,-285,-303},{-320,-291,-318,-312,-270,-294},{-323,-297,-306,-288,-294,-268},{-323,-309,-303,-300,-303,-309},{-285,-306,-270,-303,-282,-294},{-315,-294,-297,-297,-291,-306},{-276,-288,-285,-265,-306,-282},{-270,-291,-288,-303,-312,-312},{-318,-300,-273,-282,-270,-282},{-315,-315,-309,-309,-318,-294},{-320,-294,-294,-323,-273,-279},{-297,-306,-303,-303,-315,-320},{-268,-323,-309,-303,-273,-282},{-303,-279,-270,-312,-306,-309},{-282,-279,-270,-312,-306,-282},{-279,-279,-279,-309,-312,-276},{-268,-270,-320,-306,-306,-303},{-294,-294,-318,-285,-303,-320},{-303,-306,-312,-318,-268,-300},{-312,-320,-265,-285,-291,-279},{-303,-276,-309,-288,-268,-268},{-309,-297,-285,-273,-265,-265},{-285,-303,-279,-279,-288,-312},{-276,-303,-323,-270,-318,-323},{-318,-270,-309,-294,-315,-300},{-303,-312,-282,-294,-306,-294},{-318,-279,-306,-320,-323,-288},{-270,-303,-309,-318,-273,-315},{-306,-291,-315,-288,-306,-312},{-318,-291,-282,-323,-279,-303},{-315,-291,-303,-265,-268,-285},{-282,-309,-312,-297,-309,-303},{-265,-312,-315,-291,-306,-270},{-279,-300,-273,-300,-318,-312},{-282,-312,-270,-273,-297,-315},{-273,-294,-288,-273,-312,-315},{-312,-282,-303,-265,-315,-265},{-291,-288,-303,-309,-309,-279}},{{-290,-295,-277,-258,-267,-254},{-261,-292,-263,-266,-254,-272},{-273,-286,-263,-249,-259,-256},{-310,-272,-308,-249,-240,-277},{-299,-297,-286,-290,-240,-249},{-310,-306,-286,-255,-240,-249},{-296,-295,-302,-293,-272,-277},{-287,-297,-260,-285,-248,-285},{-273,-280,-255,-249,-264,-254},{-299,-300,-272,-247,-243,-277},{-281,-303,-286,-299,-248,-269},{-264,-277,-294,-263,-280,-275},{-270,-309,-297,-247,-259,-238},{-313,-306,-302,-271,-286,-262},{-316,-269,-258,-299,-246,-256},{-307,-275,-308,-274,-278,-246},{-273,-272,-291,-296,-275,-285},{-310,-300,-286,-282,-264,-280},{-278,-286,-297,-247,-259,-277},{-281,-286,-272,-266,-286,-264},{-304,-312,-300,-266,-280,-236},{-313,-280,-277,-274,-259,-259},{-304,-286,-280,-288,-294,-280},{-276,-257,-294,-260,-251,-236},{-264,-272,-308,-290,-280,-238},{-293,-295,-258,-260,-275,-256},{-310,-275,-263,-293,-294,-254},{-304,-303,-263,-260,-272,-272},{-278,-309,-286,-266,-288,-236},{-316,-257,-260,-290,-251,-285},{-313,-280,-297,-290,-264,-280},{-270,-286,-297,-285,-291,-264},{-296,-295,-300,-282,-280,-254},{-319,-275,-294,-260,-251,-233},{-278,-303,-266,-274,-288,-264},{-267,-280,-286,-274,-278,-236},{-296,-315,-263,-274,-291,-236},{-267,-272,-272,-252,-272,-280},{-270,-275,-294,-301,-256,-241},{-293,-292,-263,-263,-291,-285},{-276,-292,-266,-299,-286,-285},{-316,-300,-297,-279,-256,-246},{-278,-306,-305,-266,-264,-243},{-293,-297,-252,-249,-286,-285},{-264,-266,-302,-271,-270,-272},{-307,-315,-274,-258,-288,-241},{-261,-263,-308,-279,-275,-272},{-284,-303,-280,-299,-283,-256},{-273,-312,-297,-266,-254,-267},{-319,-280,-283,-277,-288,-241}},{{-258,-264,-219,-228,-205,-200},{-275,-259,-254,-224,-197,-190},{-272,-218,-247,-237,-233,-204},{-260,-252,-242,-206,-231,-192},{-265,-264,-233,-224,-227,-216},{-228,-232,-256,-244,-231,-208},{-250,-242,-240,-246,-212,-202},{-225,-240,-245,-231,-223,-212},{-242,-249,-217,-240,-231,-198},{-250,-264,-240,-208,-225,-218},{-240,-254,-214,-240,-227,-218},{-258,-264,-247,-213,-210,-190},{-255,-218,-231,-231,-220,-190},{-275,-220,-219,-237,-193,-210},{-242,-252,-210,-228,-235,-220},{-270,-259,-219,-231,-212,-194},{-265,-249,-217,-206,-203,-212},{-252,-218,-224,-211,-227,-208},{-232,-240,-231,-213,-220,-190},{-232,-220,-240,-217,-235,-187},{-230,-266,-231,-220,-208,-196},{-265,-244,-252,-215,-197,-185},{-255,-237,-256,-204,-193,-198},{-270,-261,-224,-215,-223,-196},{-235,-249,-226,-213,-214,-220},{-238,-261,-214,-202,-203,-206},{-235,-235,-228,-220,-218,-185},{-248,-254,-217,-231,-193,-216},{-248,-240,-242,-202,-195,-190},{-255,-249,-219,-231,-225,-227},{-245,-237,-210,-202,-223,-216},{-235,-230,-231,-242,-197,-208},{-272,-244,-256,-231,-212,-220},{-258,-232,-219,-202,-212,-227},{-248,-230,-231,-206,-214,-187},{-255,-230,-219,-233,-235,-214},{-275,-257,-235,-202,-214,-214},{-245,-223,-238,-246,-231,-187},{-245,-264,-247,-233,-197,-192},{-260,-218,-238,-244,-199,-187},{-230,-254,-224,-224,-199,-185},{-245,-235,-219,-204,-223,-194},{-230,-259,-214,-231,-212,-206},{-268,-252,-214,-211,-220,-202},{-248,-218,-221,-206,-235,-194},{-242,-264,-235,-231,-199,-196},{-225,-257,-221,-211,-235,-194},{-275,-261,-212,-202,-195,-218},{-260,-218,-242,-202,-203,-185},{-275,-240,-219,-246,-208,-187}}},{{{-171,-162,-158,-186,-177,-176},{-155,-186,-170,-172,-191,-204},{-180,-177,-164,-175,-201,-195},{-151,-169,-158,-197,-197,-193},{-181,-159,-158,-166,-177,-193},{-158,-174,-184,-165,-202,-208},{-165,-181,-177,-163,-166,-206},{-173,-161,-191,-190,-202,-180},{-185,-169,-180,-168,-169,-189},{-156,-176,-170,-163,-180,-172},{-156,-159,-175,-175,-197,-210},{-183,-169,-168,-190,-202,-183},{-168,-186,-182,-172,-171,-189},{-171,-177,-175,-174,-191,-172},{-180,-162,-159,-175,-178,-181},{-160,-159,-161,-163,-191,-180},{-153,-179,-184,-174,-180,-174},{-173,-159,-180,-193,-195,-197},{-175,-184,-193,-170,-173,-210},{-158,-176,-163,-161,-193,-208},{-153,-167,-163,-192,-184,-202},{-178,-154,-164,-161,-182,-180},{-178,-169,-163,-192,-199,-195},{-165,-159,-180,-197,-190,-180},{-155,-177,-168,-163,-197,-206},{-153,-162,-161,-174,-177,-197},{-161,-181,-191,-168,-186,-176},{-153,-155,-161,-183,-193,-172},{-176,-177,-158,-183,-178,-183},{-155,-154,-193,-177,-186,-183},{-166,-154,-163,-188,-193,-195},{-166,-172,-168,-170,-171,-199},{-171,-159,-186,-174,-166,-178},{-168,-174,-159,-195,-193,-208},{-185,-183,-164,-165,-191,-204},{-153,-162,-184,-186,-166,-176},{-165,-157,-163,-168,-186,-185},{-165,-152,-182,-181,-201,-202},{-181,-155,-186,-186,-201,-185},{-158,-186,-164,-188,-202,-208},{-171,-157,-173,-163,-184,-202},{-161,-157,-191,-183,-180,-191},{-158,-177,-180,-192,-186,-193},{-178,-181,-177,-195,-171,-199},{-163,-169,-180,-184,-180,-210},{-178,-161,-161,-172,-199,-210},{-185,-186,-182,-172,-197,-210},{-178,-157,-193,-163,-184,-199},{-181,-162,-175,-168,-186,-197},{-153,-171,-178,-186,-175,-197}},{{-180,-184,-224,-206,-234,-217},{-190,-205,-222,-217,-206,-224},{-212,-205,-234,-243,-211,-240},{-208,-221,-194,-241,-220,-214},{-188,-193,-202,-212,-227,-257},{-204,-199,-198,-206,-229,-238},{-180,-209,-209,-214,-247,-217},{-186,-199,-202,-223,-208,-231},{-198,-215,-213,-241,-227,-255},{-196,-184,-192,-232,-218,-233},{-216,-226,-230,-206,-224,-226},{-216,-199,-234,-236,-215,-255},{-196,-195,-228,-203,-222,-243},{-200,-189,-215,-219,-243,-257},{-200,-219,-224,-214,-222,-252},{-196,-226,-198,-206,-222,-226},{-210,-215,-228,-217,-236,-248},{-210,-189,-215,-214,-218,-214},{-184,-201,-192,-234,-211,-224},{-180,-223,-202,-221,-215,-228},{-194,-221,-202,-212,-238,-231},{-218,-217,-194,-239,-252,-240},{-196,-184,-192,-223,-206,-224},{-218,-195,-230,-236,-211,-240},{-180,-201,-200,-212,-222,-231},{-198,-205,-209,-223,-229,-240},{-200,-195,-217,-214,-208,-228},{-210,-211,-230,-232,-243,-224},{-206,-187,-198,-232,-215,-259},{-196,-221,-215,-225,-243,-228},{-194,-213,-228,-236,-240,-248},{-214,-217,-215,-221,-213,-233},{-218,-211,-217,-201,-208,-250},{-178,-191,-194,-206,-211,-245},{-206,-184,-202,-228,-247,-238},{-210,-223,-198,-212,-231,-255},{-190,-193,-200,-225,-206,-226},{-212,-219,-222,-230,-215,-255},{-182,-219,-194,-201,-240,-238},{-218,-221,-192,-206,-252,-243},{-210,-207,-217,-232,-222,-245},{-204,-195,-196,-230,-224,-252},{-216,-195,-217,-236,-250,-240},{-178,-197,-213,-223,-208,-248},{-202,-217,-234,-214,-224,-259},{-218,-195,-232,-230,-236,-257},{-188,-217,-226,-232,-213,-228},{-200,-187,-232,-210,-208,-219},{-206,-209,-213,-243,-218,-231},{-194,-223,-224,-206,-247,-236}},{{-249,-265,-238,-270,-266,-308},{-237,-252,-272,-246,-260,-311},{-259,-235,-286,-243,-269,-280},{-225,-268,-244,-275,-299,-294},{-267,-275,-286,-262,-274,-275},{-237,-245,-252,-292,-288,-260},{-242,-263,-238,-275,-280,-311},{-235,-245,-241,-248,-288,-275},{-242,-268,-254,-286,-249,-286},{-269,-270,-236,-265,-263,-269},{-272,-275,-265,-292,-285,-308},{-242,-245,-254,-256,-280,-266},{-252,-245,-257,-248,-274,-269},{-235,-263,-254,-262,-266,-297},{-267,-250,-288,-286,-266,-275},{-259,-240,-254,-292,-258,-306},{-267,-275,-267,-273,-302,-263},{-264,-235,-283,-297,-291,-286},{-257,-273,-267,-256,-291,-263},{-237,-265,-262,-270,-291,-289},{-269,-237,-267,-273,-288,-272},{-264,-247,-244,-289,-269,-280},{-259,-258,-267,-262,-299,-260},{-235,-230,-236,-278,-263,-291},{-262,-247,-244,-294,-252,-297},{-269,-260,-257,-265,-252,-269},{-252,-245,-241,-270,-285,-286},{-222,-265,-286,-254,-302,-266},{-254,-278,-265,-289,-299,-297},{-249,-255,-280,-278,-269,-289},{-237,-252,-275,-273,-299,-291},{-257,-265,-272,-286,-277,-269},{-235,-242,-270,-251,-288,-311},{-225,-278,-262,-262,-274,-272},{-252,-245,-252,-270,-302,-277},{-259,-258,-270,-259,-266,-306},{-230,-268,-265,-243,-296,-286},{-230,-237,-244,-292,-302,-272},{-254,-268,-265,-251,-274,-269},{-225,-252,-275,-297,-283,-275},{-264,-255,-272,-251,-263,-294},{-237,-245,-288,-248,-288,-289},{-225,-237,-238,-281,-274,-311},{-264,-280,-238,-259,-266,-289},{-247,-278,-265,-243,-299,-289},{-240,-230,-257,-273,-255,-311},{-259,-265,-246,-284,-283,-308},{-269,-258,-272,-270,-258,-263},{-247,-237,-288,-286,-269,-280},{-245,-265,-288,-256,-249,-308}}},{{{-313,-309,-359,-326,-313,-355},{-296,-342,-299,-349,-316,-309},{-313,-359,-359,-306,-329,-322},{-329,-362,-329,-309,-299,-309},{-296,-345,-313,-355,-329,-303},{-342,-316,-339,-326,-299,-332},{-303,-322,-342,-352,-309,-319},{-345,-342,-296,-322,-359,-342},{-349,-345,-362,-342,-299,-326},{-339,-316,-336,-299,-306,-313},{-326,-339,-309,-299,-352,-345},{-326,-303,-299,-336,-326,-342},{-303,-306,-296,-332,-349,-359},{-332,-332,-299,-309,-339,-342},{-352,-296,-349,-349,-336,-349},{-352,-355,-342,-296,-352,-306},{-355,-299,-359,-319,-359,-342},{-299,-352,-352,-339,-296,-316},{-306,-336,-319,-326,-299,-329},{-329,-349,-342,-322,-322,-326},{-332,-326,-313,-345,-329,-316},{-355,-352,-303,-345,-313,-359},{-329,-349,-355,-355,-342,-336},{-316,-349,-349,-326,-332,-342},{-309,-339,-319,-329,-306,-326},{-355,-313,-355,-332,-303,-322},{-352,-326,-296,-329,-339,-342},{-359,-306,-336,-355,-345,-329},{-319,-306,-329,-332,-316,-355},{-362,-313,-332,-362,-296,-329},{-339,-362,-339,-299,-342,-326},{-342,-319,-326,-359,-313,-326},{-352,-352,-329,-362,-339,-362},{-322,-319,-296,-362,-352,-359},{-296,-299,-342,-329,-345,-319},{-322,-339,-336,-332,-345,-355},{-329,-336,-296,-322,-339,-342},{-316,-303,-359,-329,-349,-313},{-316,-299,-306,-329,-306,-326},{-329,-355,-322,-336,-362,-316},{-329,-359,-339,-362,-352,-299},{-336,-342,-322,-306,-355,-332},{-319,-313,-345,-296,-339,-339},{-306,-319,-355,-303,-309,-339},{-329,-309,-352,-319,-322,-322},{-299,-306,-299,-313,-332,-362},{-345,-336,-352,-303,-359,-303},{-313,-352,-345,-349,-329,-306},{-336,-322,-326,-359,-339,-349},{-352,-322,-296,-355,-313,-299}},{{-328,-325,-303,-283,-330,-301},{-358,-306,-341,-305,-326,-310},{-348,-354,-313,-308,-333,-313},{-305,-290,-329,-311,-290,-304},{-331,-306,-303,-345,-296,-313},{-358,-332,-287,-292,-314,-328},{-331,-312,-325,-323,-290,-277},{-341,-328,-332,-320,-339,-301},{-318,-312,-325,-333,-326,-319},{-298,-319,-300,-342,-326,-274},{-331,-296,-351,-283,-296,-322},{-325,-345,-300,-320,-311,-283},{-344,-354,-297,-330,-336,-274},{-331,-345,-303,-323,-299,-313},{-351,-299,-348,-305,-314,-322},{-335,-293,-351,-327,-326,-277},{-328,-316,-303,-345,-299,-289},{-338,-345,-309,-327,-326,-319},{-308,-332,-351,-298,-293,-283},{-302,-296,-351,-308,-311,-328},{-321,-325,-322,-317,-277,-277},{-338,-290,-341,-317,-314,-295},{-344,-328,-293,-317,-283,-316},{-335,-322,-309,-327,-299,-292},{-348,-319,-341,-317,-308,-322},{-318,-354,-338,-323,-290,-316},{-331,-354,-351,-289,-333,-301},{-335,-293,-345,-336,-330,-304},{-361,-328,-287,-311,-302,-280},{-358,-299,-345,-295,-290,-331},{-308,-335,-297,-301,-336,-319},{-331,-319,-322,-320,-286,-292},{-358,-296,-319,-295,-299,-322},{-315,-345,-332,-305,-333,-274},{-312,-348,-335,-311,-296,-274},{-315,-293,-335,-330,-283,-304},{-348,-316,-341,-333,-317,-298},{-335,-341,-329,-292,-302,-331},{-321,-341,-341,-292,-299,-301},{-361,-354,-325,-317,-283,-331},{-338,-316,-345,-308,-302,-274},{-344,-335,-335,-333,-336,-304},{-305,-303,-309,-314,-323,-304},{-351,-345,-335,-311,-317,-328},{-325,-332,-335,-308,-280,-304},{-344,-348,-313,-345,-283,-304},{-341,-290,-319,-308,-293,-295},{-358,-296,-332,-301,-277,-331},{-341,-341,-316,-301,-277,-280},{-325,-354,-293,-289,-280,-295}},{{-271,-265,-255,-248,-241,-249},{-324,-274,-263,-283,-278,-244},{-304,-305,-308,-277,-262,-234},{-298,-311,-308,-245,-278,-252},{-322,-294,-258,-299,-281,-262},{-274,-285,-277,-261,-270,-280},{-277,-294,-283,-286,-252,-236},{-324,-259,-258,-275,-260,-242},{-298,-271,-272,-248,-257,-244},{-295,-302,-286,-272,-265,-254},{-266,-305,-277,-272,-262,-231},{-271,-259,-252,-261,-289,-283},{-295,-268,-280,-294,-238,-242},{-304,-285,-280,-267,-284,-275},{-274,-302,-272,-269,-273,-257},{-280,-300,-288,-253,-273,-275},{-295,-288,-263,-256,-265,-249},{-289,-308,-252,-245,-270,-247},{-271,-276,-260,-291,-241,-280},{-289,-276,-258,-248,-278,-283},{-271,-300,-294,-275,-292,-272},{-313,-271,-266,-253,-281,-244},{-316,-259,-291,-261,-281,-265},{-280,-314,-305,-253,-262,-283},{-301,-311,-272,-248,-260,-239},{-301,-276,-288,-286,-289,-257},{-283,-259,-252,-258,-289,-283},{-268,-302,-255,-280,-238,-278},{-280,-291,-269,-269,-289,-270},{-301,-300,-300,-272,-278,-247},{-301,-262,-272,-269,-254,-265},{-298,-302,-255,-288,-281,-257},{-310,-271,-308,-272,-238,-239},{-316,-294,-297,-256,-276,-236},{-271,-265,-288,-280,-268,-265},{-266,-297,-308,-248,-286,-265},{-316,-285,-297,-269,-262,-275},{-322,-265,-274,-253,-262,-242},{-324,-308,-252,-256,-257,-239},{-286,-305,-305,-275,-254,-265},{-274,-288,-288,-256,-260,-262},{-310,-288,-266,-258,-265,-267},{-304,-317,-286,-272,-244,-260},{-286,-262,-291,-291,-246,-247},{-301,-294,-266,-267,-249,-275},{-298,-294,-277,-269,-254,-275},{-283,-314,-274,-256,-252,-247},{-313,-279,-297,-272,-265,-244},{-286,-285,-274,-258,-262,-280},{-304,-308,-255,-250,-260,-252}}},{{{-110,-108,-122,-123,-121,-133},{-112,-98,-114,-112,-131,-128},{-109,-106,-115,-109,-123,-131},{-106,-110,-115,-115,-112,-133},{-116,-104,-114,-123,-116,-115},{-111,-112,-113,-117,-111,-137},{-110,-105,-113,-106,-117,-138},{-103,-102,-115,-123,-128,-119},{-107,-96,-110,-123,-126,-128},{-116,-106,-108,-122,-117,-129},{-103,-111,-118,-119,-133,-123},{-114,-98,-106,-111,-120,-136},{-104,-117,-116,-108,-116,-131},{-116,-101,-114,-115,-120,-132},{-104,-109,-101,-108,-132,-140},{-98,-99,-122,-108,-128,-137},{-97,-103,-109,-118,-113,-133},{-107,-96,-102,-125,-128,-119},{-99,-103,-112,-117,-116,-124},{-110,-103,-119,-115,-116,-125},{-100,-104,-119,-116,-110,-118},{-96,-110,-102,-119,-112,-140},{-100,-103,-116,-110,-127,-116},{-114,-110,-123,-119,-118,-129},{-100,-111,-102,-105,-132,-141},{-114,-109,-114,-109,-124,-127},{-99,-114,-108,-106,-115,-125},{-106,-110,-114,-123,-115,-115},{-108,-96,-115,-121,-123,-124},{-106,-107,-104,-109,-113,-141},{-107,-103,-101,-117,-123,-116},{-113,-102,-118,-117,-128,-120},{-114,-114,-123,-110,-127,-128},{-106,-113,-110,-115,-121,-122},{-104,-107,-119,-108,-128,-124},{-111,-99,-110,-115,-113,-132},{-108,-110,-105,-124,-111,-127},{-103,-111,-115,-121,-132,-120},{-107,-117,-123,-126,-129,-129},{-106,-117,-116,-118,-122,-129},{-97,-114,-108,-105,-122,-127},{-103,-116,-116,-112,-115,-134},{-100,-108,-103,-110,-112,-125},{-104,-109,-106,-124,-111,-125},{-105,-96,-115,-110,-118,-120},{-94,-99,-110,-112,-120,-136},{-101,-101,-111,-106,-120,-125},{-107,-101,-120,-118,-117,-137},{-99,-109,-122,-110,-118,-125},{-107,-112,-102,-111,-117,-137}},{{-143,-138,-136,-167,-150,-166},{-148,-155,-154,-150,-158,-180},{-144,-131,-163,-152,-161,-151},{-138,-148,-152,-170,-171,-183},{-123,-149,-141,-158,-159,-180},{-148,-147,-135,-144,-164,-185},{-148,-140,-133,-170,-166,-181},{-124,-127,-163,-144,-175,-170},{-134,-127,-148,-158,-171,-178},{-144,-140,-142,-153,-171,-175},{-124,-155,-136,-170,-151,-163},{-143,-137,-158,-158,-164,-185},{-144,-127,-144,-167,-167,-185},{-130,-127,-141,-164,-158,-176},{-124,-152,-151,-149,-167,-161},{-128,-130,-163,-152,-164,-173},{-128,-141,-144,-153,-145,-165},{-139,-134,-158,-155,-164,-170},{-132,-144,-152,-155,-177,-156},{-138,-145,-147,-167,-172,-155},{-140,-137,-151,-158,-177,-165},{-138,-145,-138,-169,-167,-180},{-123,-145,-144,-155,-150,-170},{-130,-147,-155,-144,-175,-160},{-148,-145,-147,-170,-175,-185},{-128,-127,-144,-150,-153,-158},{-140,-134,-149,-140,-158,-155},{-128,-137,-144,-167,-161,-183},{-144,-133,-138,-169,-158,-185},{-142,-155,-154,-157,-148,-153},{-124,-131,-147,-152,-166,-151},{-123,-151,-161,-149,-150,-156},{-146,-133,-161,-147,-172,-176},{-143,-140,-145,-163,-156,-151},{-127,-130,-139,-163,-175,-175},{-122,-155,-154,-170,-159,-183},{-134,-135,-135,-160,-166,-153},{-147,-127,-133,-160,-177,-183},{-134,-142,-151,-150,-177,-168},{-146,-151,-135,-140,-147,-166},{-124,-131,-163,-144,-150,-165},{-127,-152,-133,-164,-158,-165},{-146,-131,-145,-146,-166,-163},{-142,-131,-145,-157,-166,-160},{-123,-128,-141,-153,-174,-171},{-132,-140,-136,-158,-167,-171},{-122,-130,-155,-147,-175,-175},{-124,-152,-161,-166,-167,-168},{-147,-154,-141,-160,-151,-153},{-127,-133,-149,-141,-156,-153}},{{-186,-180,-193,-209,-210,-204},{-159,-193,-167,-173,-208,-218},{-191,-182,-201,-194,-204,-196},{-159,-187,-186,-179,-212,-184},{-163,-194,-177,-196,-206,-218},{-186,-185,-182,-198,-176,-184},{-170,-193,-167,-180,-182,-204},{-166,-166,-195,-173,-198,-210},{-191,-198,-205,-196,-180,-208},{-172,-176,-205,-175,-194,-194},{-182,-185,-192,-180,-196,-184},{-187,-193,-199,-207,-176,-208},{-170,-175,-197,-171,-194,-184},{-161,-167,-199,-182,-216,-184},{-173,-194,-199,-190,-176,-198},{-163,-180,-175,-200,-180,-204},{-177,-184,-193,-173,-204,-178},{-182,-173,-177,-196,-178,-190},{-184,-176,-193,-209,-214,-178},{-164,-171,-182,-203,-178,-196},{-172,-173,-180,-186,-178,-200},{-184,-194,-169,-188,-214,-182},{-163,-194,-193,-203,-214,-178},{-172,-191,-203,-177,-190,-210},{-193,-176,-201,-194,-212,-214},{-187,-193,-203,-205,-216,-194},{-170,-167,-199,-205,-214,-194},{-186,-173,-192,-194,-206,-214},{-193,-185,-203,-201,-180,-200},{-168,-185,-195,-207,-182,-208},{-164,-193,-190,-173,-204,-212},{-164,-176,-169,-177,-188,-180},{-187,-196,-171,-198,-216,-178},{-180,-185,-188,-201,-190,-184},{-177,-162,-175,-184,-202,-186},{-166,-164,-167,-198,-210,-198},{-193,-191,-197,-186,-204,-182},{-184,-175,-203,-180,-200,-210},{-173,-166,-205,-190,-190,-194},{-191,-193,-190,-179,-208,-216},{-159,-175,-175,-198,-196,-198},{-170,-173,-190,-171,-192,-202},{-189,-164,-195,-186,-186,-180},{-168,-169,-199,-207,-180,-184},{-175,-189,-193,-182,-210,-178},{-170,-193,-169,-182,-184,-180},{-178,-182,-201,-190,-200,-192},{-173,-167,-173,-192,-182,-204},{-189,-178,-180,-209,-192,-194},{-163,-176,-182,-207,-182,-194}}},{{{-210,-255,-231,-217,-224,-233},{-254,-228,-238,-228,-224,-231},{-256,-219,-259,-245,-238,-243},{-235,-245,-245,-257,-240,-228},{-247,-226,-221,-228,-240,-259},{-256,-252,-243,-257,-217,-248},{-219,-224,-236,-250,-236,-233},{-252,-221,-257,-214,-243,-214},{-219,-245,-262,-257,-245,-224},{-233,-226,-245,-219,-262,-224},{-226,-250,-221,-250,-236,-217},{-240,-262,-236,-243,-255,-240},{-210,-224,-259,-240,-221,-245},{-238,-243,-250,-236,-219,-240},{-256,-245,-240,-257,-255,-219},{-249,-250,-250,-250,-217,-250},{-221,-252,-214,-243,-221,-217},{-252,-243,-259,-243,-221,-219},{-210,-252,-224,-250,-238,-236},{-221,-214,-255,-221,-252,-221},{-233,-259,-255,-248,-236,-259},{-224,-217,-243,-221,-250,-233},{-214,-233,-219,-243,-219,-257},{-249,-255,-224,-219,-248,-248},{-256,-250,-219,-236,-243,-250},{-228,-226,-226,-226,-236,-231},{-224,-236,-214,-243,-243,-231},{-221,-250,-236,-255,-217,-238},{-224,-240,-250,-233,-255,-217},{-245,-236,-238,-259,-226,-259},{-231,-262,-243,-231,-259,-243},{-233,-214,-214,-224,-240,-228},{-212,-236,-250,-224,-228,-245},{-252,-248,-248,-238,-214,-243},{-238,-250,-231,-240,-228,-245},{-247,-217,-245,-250,-219,-255},{-256,-233,-257,-231,-240,-262},{-256,-214,-240,-226,-224,-252},{-245,-224,-259,-259,-259,-236},{-235,-257,-219,-217,-243,-243},{-252,-217,-228,-250,-231,-238},{-235,-259,-224,-228,-259,-250},{-212,-240,-236,-245,-224,-224},{-228,-231,-257,-214,-240,-228},{-226,-250,-236,-248,-221,-217},{-247,-228,-236,-259,-243,-238},{-224,-248,-252,-221,-238,-257},{-217,-255,-257,-255,-243,-250},{-224,-255,-257,-245,-214,-217},{-217,-226,-238,-224,-238,-243}},{{-233,-262,-258,-243,-249,-243},{-231,-217,-247,-238,-242,-236},{-214,-257,-228,-219,-242,-199},{-250,-231,-240,-222,-203,-236},{-217,-238,-254,-243,-249,-206},{-257,-243,-258,-254,-228,-241},{-219,-219,-216,-226,-249,-217},{-243,-240,-228,-247,-237,-241},{-243,-238,-235,-243,-217,-232},{-233,-219,-249,-210,-203,-230},{-248,-219,-233,-215,-246,-219},{-259,-231,-256,-213,-237,-217},{-245,-238,-247,-238,-246,-230},{-250,-238,-256,-226,-219,-239},{-259,-250,-219,-231,-246,-228},{-257,-238,-219,-231,-219,-206},{-245,-224,-228,-238,-228,-228},{-238,-233,-228,-252,-242,-217},{-228,-255,-228,-243,-249,-201},{-221,-231,-216,-226,-208,-241},{-219,-259,-216,-215,-221,-201},{-248,-231,-254,-226,-246,-230},{-231,-243,-251,-247,-226,-236},{-231,-255,-256,-213,-203,-199},{-226,-236,-235,-222,-217,-214},{-236,-236,-258,-231,-219,-219},{-245,-255,-230,-222,-240,-206},{-233,-262,-230,-213,-249,-236},{-221,-262,-242,-231,-242,-230},{-245,-217,-212,-215,-240,-201},{-257,-245,-247,-219,-212,-228},{-224,-219,-247,-208,-208,-208},{-217,-245,-240,-245,-242,-219},{-252,-233,-230,-222,-210,-241},{-245,-214,-223,-224,-235,-217},{-245,-226,-228,-231,-219,-212},{-243,-248,-233,-219,-219,-217},{-224,-262,-251,-252,-212,-241},{-226,-231,-242,-213,-244,-239},{-248,-245,-244,-224,-235,-232},{-231,-217,-242,-247,-212,-228},{-243,-248,-247,-240,-217,-223},{-224,-224,-249,-224,-217,-208},{-233,-217,-237,-208,-231,-199},{-224,-226,-230,-243,-240,-208},{-236,-250,-256,-226,-203,-208},{-217,-259,-247,-210,-237,-228},{-250,-236,-254,-236,-210,-203},{-257,-224,-221,-215,-208,-214},{-226,-214,-219,-245,-233,-239}},{{-213,-194,-188,-195,-191,-164},{-228,-201,-186,-213,-191,-166},{-221,-194,-212,-189,-194,-176},{-217,-226,-200,-213,-189,-189},{-226,-226,-186,-205,-200,-184},{-204,-192,-204,-176,-200,-178},{-230,-230,-206,-183,-180,-175},{-221,-222,-190,-201,-204,-166},{-224,-211,-204,-215,-185,-178},{-204,-201,-192,-199,-174,-167},{-204,-213,-186,-187,-178,-182},{-196,-219,-218,-185,-183,-171},{-219,-226,-222,-177,-178,-164},{-200,-230,-212,-207,-187,-187},{-206,-190,-220,-187,-170,-185},{-230,-196,-186,-207,-202,-180},{-215,-228,-198,-195,-172,-185},{-213,-228,-186,-176,-204,-176},{-198,-226,-196,-199,-178,-194},{-237,-207,-206,-181,-194,-191},{-234,-224,-200,-207,-172,-166},{-206,-190,-188,-209,-183,-176},{-226,-201,-204,-176,-183,-175},{-200,-205,-196,-205,-187,-189},{-224,-226,-218,-191,-178,-182},{-209,-201,-198,-195,-172,-171},{-230,-192,-206,-191,-180,-196},{-202,-207,-216,-209,-185,-187},{-202,-230,-216,-185,-181,-178},{-196,-222,-208,-195,-194,-180},{-200,-222,-216,-183,-178,-164},{-221,-196,-204,-203,-180,-164},{-211,-228,-182,-201,-176,-164},{-196,-213,-212,-203,-198,-196},{-198,-228,-210,-177,-180,-176},{-215,-230,-208,-199,-204,-169},{-217,-207,-208,-189,-187,-189},{-204,-226,-210,-213,-202,-193},{-237,-203,-214,-209,-172,-194},{-232,-201,-192,-207,-191,-198},{-228,-190,-214,-176,-176,-180},{-219,-213,-212,-187,-191,-178},{-215,-213,-212,-207,-168,-189},{-204,-192,-220,-195,-181,-164},{-196,-190,-184,-176,-168,-175},{-211,-203,-190,-181,-193,-171},{-204,-217,-202,-185,-202,-178},{-211,-207,-200,-215,-200,-173},{-224,-228,-188,-179,-185,-176},{-200,-188,-208,-209,-174,-193}}},{{{-287,-269,-269,-269,-261,-242},{-266,-285,-271,-253,-279,-266},{-269,-290,-258,-250,-293,-285},{-293,-277,-285,-277,-285,-258},{-293,-250,-250,-242,-285,-239},{-293,-253,-255,-239,-261,-245},{-255,-239,-293,-261,-282,-242},{-293,-245,-245,-290,-261,-242},{-269,-274,-239,-245,-290,-271},{-285,-279,-293,-282,-242,-282},{-266,-277,-285,-242,-269,-274},{-290,-239,-261,-261,-274,-258},{-263,-279,-282,-253,-293,-274},{-253,-285,-245,-261,-255,-274},{-250,-247,-279,-293,-285,-245},{-293,-271,-247,-293,-290,-279},{-266,-279,-271,-261,-263,-285},{-258,-255,-255,-293,-282,-279},{-287,-285,-271,-269,-282,-242},{-282,-274,-293,-287,-266,-242},{-290,-279,-290,-250,-293,-247},{-271,-269,-271,-247,-269,-253},{-247,-282,-287,-293,-279,-242},{-277,-282,-279,-242,-279,-263},{-277,-239,-266,-250,-271,-285},{-250,-253,-263,-261,-261,-287},{-285,-258,-279,-253,-247,-279},{-287,-269,-290,-247,-242,-277},{-261,-274,-274,-239,-279,-247},{-247,-253,-255,-274,-269,-266},{-247,-287,-242,-263,-293,-293},{-253,-266,-287,-261,-269,-239},{-247,-271,-266,-261,-253,-274},{-263,-242,-263,-245,-255,-255},{-282,-250,-242,-285,-263,-277},{-290,-269,-282,-277,-277,-242},{-279,-239,-293,-250,-266,-293},{-258,-290,-247,-277,-285,-239},{-239,-242,-269,-245,-255,-287},{-261,-253,-239,-253,-239,-261},{-255,-258,-279,-290,-279,-274},{-287,-258,-279,-282,-293,-274},{-242,-253,-293,-250,-255,-239},{-290,-274,-282,-266,-247,-271},{-247,-247,-242,-250,-242,-250},{-269,-266,-250,-285,-285,-255},{-282,-285,-258,-271,-287,-247},{-253,-293,-263,-274,-285,-263},{-253,-266,-266,-269,-250,-271},{-282,-255,-290,-247,-287,-263}},{{-290,-255,-261,-287,-249,-264},{-279,-253,-269,-277,-241,-251},{-247,-255,-239,-266,-262,-259},{-261,-247,-279,-258,-259,-238},{-255,-253,-250,-263,-249,-238},{-282,-253,-258,-263,-249,-251},{-266,-285,-263,-239,-265,-280},{-277,-282,-279,-269,-275,-246},{-266,-279,-247,-277,-257,-251},{-263,-290,-253,-285,-252,-262},{-263,-245,-269,-279,-288,-246},{-274,-266,-255,-293,-275,-243},{-293,-255,-258,-274,-267,-282},{-287,-258,-261,-282,-259,-285},{-250,-253,-269,-293,-278,-280},{-263,-293,-258,-269,-238,-272},{-271,-269,-266,-279,-272,-233},{-250,-263,-258,-269,-272,-233},{-263,-245,-290,-287,-254,-233},{-242,-274,-261,-279,-288,-236},{-250,-263,-258,-239,-272,-256},{-253,-271,-255,-277,-246,-254},{-250,-271,-242,-277,-257,-285},{-279,-282,-271,-293,-286,-280},{-279,-258,-287,-253,-246,-243},{-293,-290,-277,-242,-259,-267},{-290,-266,-239,-242,-265,-282},{-255,-271,-253,-271,-267,-264},{-261,-277,-279,-247,-267,-267},{-271,-261,-255,-285,-286,-267},{-261,-293,-250,-242,-270,-272},{-245,-279,-269,-274,-280,-241},{-290,-263,-279,-250,-252,-233},{-255,-250,-250,-293,-270,-251},{-245,-247,-255,-266,-259,-249},{-242,-277,-258,-269,-238,-256},{-247,-239,-247,-282,-265,-254},{-269,-293,-271,-285,-267,-277},{-290,-285,-245,-271,-272,-238},{-290,-261,-258,-269,-280,-282},{-282,-271,-266,-255,-238,-269},{-282,-247,-250,-258,-252,-277},{-271,-239,-247,-258,-249,-285},{-274,-271,-287,-253,-267,-241},{-269,-274,-250,-285,-259,-280},{-287,-285,-261,-258,-236,-259},{-258,-282,-277,-261,-283,-259},{-245,-261,-253,-282,-244,-259},{-293,-258,-285,-293,-236,-269},{-266,-285,-250,-266,-267,-282}},{{-282,-248,-247,-273,-250,-258},{-241,-228,-272,-231,-250,-255},{-267,-253,-242,-243,-223,-258},{-238,-228,-275,-223,-225,-258},{-233,-268,-270,-226,-240,-253},{-267,-266,-247,-228,-270,-258},{-285,-228,-237,-226,-233,-236},{-256,-258,-237,-226,-265,-265},{-285,-230,-255,-268,-252,-217},{-269,-273,-262,-250,-228,-229},{-262,-233,-277,-226,-267,-229},{-272,-261,-239,-226,-247,-253},{-277,-261,-260,-255,-235,-219},{-236,-240,-262,-231,-223,-263},{-251,-278,-242,-250,-262,-229},{-246,-276,-229,-248,-240,-222},{-236,-250,-267,-255,-225,-236},{-254,-266,-242,-260,-265,-227},{-267,-230,-232,-250,-267,-258},{-256,-248,-270,-255,-260,-265},{-262,-258,-265,-253,-235,-248},{-280,-253,-242,-236,-238,-265},{-277,-243,-252,-236,-228,-239},{-267,-268,-272,-228,-233,-265},{-249,-233,-232,-248,-240,-258},{-246,-235,-260,-265,-267,-241},{-238,-230,-262,-248,-252,-260},{-241,-253,-257,-255,-270,-243},{-262,-228,-237,-253,-257,-231},{-249,-273,-237,-263,-238,-243},{-238,-268,-270,-243,-257,-219},{-264,-278,-272,-265,-262,-222},{-233,-266,-249,-255,-262,-234},{-254,-253,-262,-236,-267,-251},{-264,-263,-270,-265,-243,-241},{-241,-233,-257,-268,-265,-231},{-243,-261,-242,-258,-238,-251},{-285,-261,-232,-233,-238,-260},{-236,-243,-267,-228,-223,-253},{-241,-233,-237,-233,-228,-246},{-249,-250,-255,-241,-223,-217},{-269,-278,-277,-255,-225,-246},{-241,-268,-272,-255,-257,-236},{-243,-230,-270,-263,-235,-236},{-269,-248,-239,-223,-255,-255},{-238,-245,-247,-233,-252,-248},{-280,-263,-277,-243,-247,-236},{-246,-243,-242,-236,-267,-222},{-251,-263,-262,-253,-247,-260},{-238,-273,-260,-273,-228,-243}}},{{{-289,-274,-298,-289,-298,-320},{-316,-292,-289,-322,-304,-281},{-322,-304,-274,-331,-274,-326},{-313,-280,-301,-307,-307,-326},{-277,-307,-328,-286,-274,-281},{-289,-274,-301,-274,-283,-323},{-274,-304,-304,-289,-310,-266},{-307,-274,-277,-304,-295,-308},{-331,-271,-319,-274,-277,-308},{-319,-292,-325,-316,-292,-308},{-283,-310,-277,-295,-301,-296},{-280,-277,-298,-289,-289,-302},{-280,-313,-286,-316,-274,-290},{-319,-274,-331,-307,-331,-305},{-274,-331,-283,-271,-316,-278},{-328,-289,-292,-295,-313,-266},{-325,-298,-286,-307,-301,-290},{-310,-295,-271,-313,-298,-314},{-286,-292,-292,-301,-286,-272},{-319,-328,-307,-286,-322,-326},{-301,-271,-304,-313,-325,-272},{-277,-274,-325,-292,-307,-320},{-289,-328,-298,-307,-286,-299},{-325,-292,-295,-283,-280,-266},{-319,-280,-328,-328,-328,-281},{-304,-325,-319,-325,-319,-326},{-313,-316,-331,-307,-292,-290},{-322,-286,-295,-274,-310,-311},{-286,-328,-289,-286,-331,-314},{-274,-331,-325,-304,-310,-311},{-295,-331,-271,-322,-301,-308},{-286,-274,-292,-301,-283,-287},{-274,-319,-310,-307,-322,-266},{-274,-274,-307,-292,-271,-281},{-307,-286,-313,-271,-271,-317},{-286,-289,-304,-277,-277,-272},{-316,-298,-274,-283,-316,-311},{-298,-280,-271,-331,-292,-278},{-310,-274,-286,-280,-301,-317},{-298,-304,-289,-316,-331,-287},{-331,-283,-295,-283,-277,-275},{-286,-289,-295,-325,-292,-317},{-310,-304,-310,-274,-316,-302},{-325,-286,-286,-310,-331,-308},{-280,-328,-277,-289,-319,-272},{-298,-316,-310,-325,-283,-314},{-307,-304,-283,-280,-331,-293},{-304,-331,-280,-328,-289,-326},{-322,-316,-301,-304,-283,-326},{-307,-295,-307,-274,-298,-317}},{{-275,-293,-272,-289,-278,-257},{-322,-290,-302,-257,-289,-260},{-322,-273,-302,-268,-260,-278},{-281,-264,-286,-251,-292,-244},{-270,-273,-252,-298,-238,-239},{-264,-298,-283,-295,-246,-265},{-296,-307,-294,-292,-292,-265},{-284,-296,-308,-270,-276,-278},{-281,-264,-297,-300,-281,-247},{-308,-281,-288,-262,-254,-231},{-296,-270,-252,-292,-257,-278},{-322,-301,-308,-246,-252,-249},{-272,-301,-291,-265,-241,-239},{-264,-316,-280,-270,-289,-270},{-284,-313,-302,-268,-262,-234},{-322,-290,-266,-284,-252,-257},{-308,-276,-274,-257,-270,-252},{-316,-298,-291,-254,-265,-270},{-302,-296,-300,-284,-249,-249},{-302,-284,-258,-287,-244,-254},{-287,-270,-269,-273,-254,-265},{-305,-310,-277,-254,-286,-242},{-314,-264,-255,-259,-270,-252},{-275,-276,-297,-281,-268,-270},{-305,-281,-286,-257,-276,-249},{-299,-310,-283,-273,-268,-283},{-311,-273,-294,-259,-238,-278},{-311,-281,-280,-262,-276,-234},{-296,-316,-252,-284,-292,-247},{-314,-264,-277,-257,-238,-262},{-267,-261,-277,-259,-260,-272},{-314,-264,-294,-284,-262,-254},{-284,-298,-252,-284,-276,-280},{-316,-307,-283,-276,-286,-249},{-314,-301,-291,-257,-238,-257},{-267,-273,-263,-262,-244,-275},{-311,-287,-291,-278,-238,-244},{-299,-264,-291,-248,-252,-267},{-287,-310,-260,-298,-278,-260},{-281,-281,-272,-289,-246,-236},{-267,-270,-286,-292,-244,-280},{-290,-261,-277,-295,-273,-236},{-281,-258,-283,-257,-238,-234},{-311,-313,-252,-300,-286,-247},{-308,-304,-288,-292,-265,-239},{-264,-258,-263,-251,-273,-244},{-314,-301,-291,-268,-278,-270},{-287,-273,-283,-284,-246,-252},{-267,-296,-305,-284,-241,-242},{-270,-258,-252,-284,-289,-244}},{{-233,-264,-213,-201,-206,-218},{-250,-216,-218,-241,-204,-202},{-255,-226,-227,-210,-204,-222},{-258,-228,-208,-243,-231,-186},{-268,-262,-215,-236,-225,-184},{-258,-245,-227,-203,-208,-212},{-243,-242,-229,-234,-225,-212},{-233,-242,-206,-239,-199,-206},{-236,-262,-250,-203,-229,-202},{-223,-264,-206,-243,-201,-218},{-243,-250,-243,-243,-206,-198},{-241,-254,-208,-212,-204,-204},{-258,-250,-236,-221,-214,-190},{-270,-254,-206,-206,-199,-208},{-228,-247,-220,-199,-233,-222},{-263,-238,-229,-239,-225,-210},{-248,-254,-206,-241,-214,-196},{-231,-254,-213,-239,-218,-196},{-233,-216,-236,-208,-216,-206},{-231,-252,-206,-239,-210,-184},{-231,-264,-227,-230,-227,-206},{-258,-233,-206,-239,-193,-192},{-238,-247,-236,-236,-229,-212},{-260,-238,-240,-225,-216,-210},{-270,-235,-218,-210,-218,-208},{-250,-259,-208,-234,-191,-222},{-273,-223,-236,-214,-220,-216},{-243,-250,-208,-236,-231,-190},{-273,-245,-245,-217,-216,-206},{-233,-250,-208,-208,-208,-212},{-236,-221,-224,-221,-210,-216},{-238,-245,-250,-206,-216,-200},{-226,-223,-236,-239,-199,-194},{-223,-264,-218,-217,-233,-218},{-273,-240,-222,-217,-212,-192},{-246,-259,-243,-210,-210,-200},{-226,-216,-213,-241,-220,-208},{-268,-250,-213,-223,-214,-194},{-270,-257,-218,-243,-208,-212},{-243,-254,-227,-199,-197,-190},{-246,-252,-231,-199,-227,-192},{-231,-233,-231,-203,-233,-218},{-241,-254,-211,-243,-214,-184},{-270,-254,-224,-212,-223,-204},{-223,-238,-224,-217,-223,-218},{-273,-238,-220,-199,-223,-220},{-258,-250,-243,-201,-212,-194},{-270,-226,-211,-206,-206,-186},{-265,-228,-220,-223,-225,-202},{-258,-250,-247,-225,-195,-216}}},{{{-385,-315,-378,-346,-368,-350},{-385,-322,-350,-382,-374,-368},{-385,-336,-332,-332,-374,-374},{-340,-360,-326,-360,-346,-340},{-336,-329,-382,-385,-340,-360},{-385,-340,-350,-315,-378,-371},{-315,-346,-329,-378,-378,-318},{-385,-326,-346,-354,-374,-318},{-336,-374,-340,-364,-332,-329},{-318,-364,-322,-374,-368,-326},{-364,-340,-378,-318,-326,-343},{-340,-332,-382,-329,-315,-368},{-336,-329,-336,-332,-360,-343},{-318,-364,-315,-336,-382,-336},{-378,-332,-357,-350,-364,-357},{-336,-357,-326,-343,-364,-318},{-340,-346,-336,-346,-346,-329},{-340,-332,-374,-360,-378,-364},{-357,-382,-329,-371,-371,-315},{-357,-354,-354,-326,-332,-346},{-343,-350,-364,-378,-378,-364},{-385,-385,-336,-354,-343,-382},{-332,-354,-360,-364,-350,-340},{-368,-329,-368,-371,-332,-357},{-336,-357,-350,-322,-336,-364},{-374,-354,-350,-385,-364,-371},{-364,-346,-354,-374,-368,-318},{-350,-374,-378,-385,-374,-385},{-385,-354,-340,-329,-336,-326},{-343,-318,-378,-346,-318,-329},{-340,-318,-343,-364,-360,-385},{-382,-340,-326,-340,-329,-318},{-336,-374,-357,-360,-326,-385},{-371,-371,-336,-378,-360,-340},{-385,-329,-354,-315,-346,-346},{-318,-385,-371,-382,-322,-374},{-346,-315,-322,-322,-374,-350},{-326,-329,-357,-318,-374,-364},{-326,-350,-315,-378,-332,-329},{-368,-385,-360,-385,-354,-374},{-374,-346,-368,-326,-354,-315},{-332,-368,-371,-326,-332,-326},{-368,-360,-318,-357,-354,-318},{-378,-360,-336,-346,-360,-318},{-346,-322,-336,-357,-315,-350},{-346,-346,-364,-350,-371,-326},{-357,-340,-350,-360,-368,-357},{-374,-378,-385,-332,-357,-350},{-346,-385,-326,-371,-343,-322},{-322,-368,-382,-329,-350,-357}},{{-345,-329,-319,-361,-312,-345},{-327,-316,-308,-354,-341,-332},{-362,-316,-329,-341,-321,-335},{-331,-326,-359,-351,-315,-325},{-372,-370,-332,-321,-321,-328},{-372,-336,-325,-317,-361,-309},{-331,-357,-373,-347,-351,-309},{-331,-377,-359,-304,-348,-332},{-338,-343,-325,-321,-318,-345},{-383,-350,-356,-304,-358,-332},{-365,-364,-359,-307,-331,-354},{-327,-374,-325,-341,-321,-299},{-383,-364,-332,-314,-358,-348},{-313,-322,-339,-341,-318,-325},{-358,-353,-325,-351,-321,-335},{-327,-329,-349,-334,-315,-351},{-324,-333,-325,-321,-331,-296},{-372,-377,-332,-307,-335,-328},{-358,-346,-329,-354,-358,-299},{-369,-340,-305,-367,-335,-316},{-334,-357,-312,-331,-295,-332},{-365,-350,-325,-357,-295,-328},{-358,-353,-370,-304,-321,-354},{-338,-316,-322,-344,-305,-335},{-331,-360,-356,-307,-335,-345},{-327,-353,-359,-331,-331,-293},{-376,-319,-339,-317,-315,-328},{-327,-326,-339,-344,-312,-325},{-331,-374,-373,-327,-308,-322},{-345,-336,-332,-324,-295,-293},{-317,-377,-342,-311,-318,-335},{-327,-353,-349,-304,-358,-312},{-365,-312,-339,-341,-308,-345},{-376,-346,-359,-327,-315,-332},{-317,-360,-312,-301,-315,-332},{-376,-364,-305,-327,-328,-316},{-313,-316,-315,-331,-328,-296},{-348,-367,-353,-331,-331,-348},{-338,-367,-315,-347,-325,-338},{-327,-346,-370,-347,-344,-296},{-334,-350,-346,-307,-344,-341},{-317,-340,-366,-334,-354,-341},{-348,-350,-359,-317,-348,-309},{-331,-312,-319,-344,-325,-306},{-383,-377,-370,-341,-298,-351},{-313,-370,-329,-301,-298,-306},{-327,-350,-315,-341,-321,-345},{-369,-326,-356,-327,-295,-303},{-341,-312,-353,-331,-354,-328},{-383,-329,-325,-341,-315,-338}},{{-328,-333,-273,-302,-314,-275},{-346,-280,-300,-264,-296,-297},{-309,-333,-300,-299,-265,-303},{-321,-296,-312,-278,-308,-303},{-287,-336,-309,-272,-271,-306},{-284,-339,-312,-308,-262,-272},{-312,-339,-294,-302,-274,-284},{-343,-336,-270,-302,-256,-292},{-324,-326,-270,-311,-271,-292},{-328,-293,-285,-319,-256,-275},{-318,-308,-276,-311,-259,-289},{-309,-290,-279,-293,-262,-272},{-324,-317,-300,-287,-256,-267},{-312,-290,-330,-319,-285,-256},{-324,-323,-288,-311,-296,-261},{-296,-277,-291,-314,-288,-286},{-284,-299,-273,-272,-296,-306},{-334,-277,-315,-305,-299,-297},{-284,-305,-327,-299,-294,-306},{-312,-314,-297,-270,-276,-259},{-328,-277,-294,-264,-276,-275},{-299,-286,-276,-287,-296,-295},{-284,-339,-324,-272,-291,-286},{-306,-326,-294,-308,-311,-267},{-302,-323,-309,-264,-299,-267},{-287,-308,-276,-275,-274,-253},{-324,-277,-276,-319,-311,-272},{-302,-299,-291,-316,-274,-256},{-346,-314,-270,-278,-259,-267},{-299,-280,-315,-270,-308,-297},{-315,-286,-294,-305,-305,-295},{-334,-305,-330,-287,-305,-256},{-293,-296,-315,-290,-311,-297},{-306,-323,-327,-278,-291,-272},{-340,-320,-276,-322,-311,-253},{-337,-311,-312,-264,-299,-256},{-299,-311,-279,-278,-279,-286},{-334,-308,-303,-314,-308,-306},{-306,-280,-291,-308,-282,-306},{-343,-314,-285,-311,-282,-278},{-331,-336,-321,-272,-305,-286},{-284,-296,-309,-322,-294,-295},{-296,-302,-324,-308,-285,-259},{-302,-283,-300,-308,-271,-267},{-334,-320,-270,-281,-268,-303},{-312,-336,-288,-284,-276,-272},{-318,-336,-306,-267,-276,-250},{-306,-283,-285,-316,-259,-256},{-343,-277,-306,-284,-262,-300},{-284,-336,-291,-316,-274,-284}}}}; // 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]={6,3,3,6,4,2,6,3,3,8,4,3,8,4,3,7,4,3,7,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,5,3,9,4,3,8,4,3,8,4,3,9,4,3,8,5,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3,8,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,350}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,1,5,9,0,6,12,2,4,6,8,10,12,0,4,8,12,2,8,2,4,6,8,10,12,1,5,9,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,2,8,14,0,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,2,4,6,8,10,12,14,0,4,8,12,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,1,7,13,1,3,5,7,9,11,13,15,1,5,9,13,2,8,14,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,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,1,5,9,13,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,16,0,6,12,1,3,5,7,9,11,13,15,1,5,9,13,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,1,3,5,7,9,11,13,1,5,9,13,1,7,13,1,3,5,7,9,11,13,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,6,10,14,5,11,17,7,9,11,13,15,17,5,9,13,17,7,13,7,9,11,13,15,17,6,10,14,5,11,17,3,5,7,9,11,13,15,17,5,9,13,17,5,11,17,3,5,7,9,11,13,15,17,3,7,11,15,5,11,17,5,7,9,11,13,15,17,3,7,11,15,5,11,17,4,6,8,10,12,14,16,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,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,3,7,11,15,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,1,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,17,1,7,13,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,4,6,8,10,12,14,16,4,8,12,16,4,10,16,4,6,8,10,12,14,16,4,8,12,16,4,10,16,3,5,7,9,11,13,15,17,5,9,13,17,3,9,15}; // set of end times of each shipment 
