int Dev = 20;// Deviation
extern const int CNN = 4;// Case Index
extern const int P = 3;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 18;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 352;//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]={{{{11210,0,0,0,0,0},{11134,0,0,0,0,0},{11293,0,0,0,0,0},{10984,0,0,0,0,0},{11220,0,0,0,0,0},{10733,0,0,0,0,0},{10966,0,0,0,0,0},{11299,0,0,0,0,0},{10929,0,0,0,0,0},{10781,0,0,0,0,0},{10920,0,0,0,0,0},{10952,0,0,0,0,0},{10874,0,0,0,0,0},{10785,0,0,0,0,0},{10982,0,0,0,0,0},{10892,0,0,0,0,0},{11327,0,0,0,0,0},{10534,0,0,0,0,0},{10959,0,0,0,0,0},{10909,0,0,0,0,0},{10751,0,0,0,0,0},{10994,0,0,0,0,0},{11192,0,0,0,0,0},{10984,0,0,0,0,0},{11126,0,0,0,0,0},{10769,0,0,0,0,0},{10901,0,0,0,0,0},{11472,0,0,0,0,0},{11119,0,0,0,0,0},{10952,0,0,0,0,0},{11046,0,0,0,0,0},{11060,0,0,0,0,0},{11239,0,0,0,0,0},{11136,0,0,0,0,0},{10871,0,0,0,0,0},{10982,0,0,0,0,0},{10935,0,0,0,0,0},{10862,0,0,0,0,0},{11068,0,0,0,0,0},{11138,0,0,0,0,0},{11188,0,0,0,0,0},{11018,0,0,0,0,0},{10592,0,0,0,0,0},{11058,0,0,0,0,0},{10948,0,0,0,0,0},{11158,0,0,0,0,0},{11042,0,0,0,0,0},{11035,0,0,0,0,0},{11152,0,0,0,0,0},{10893,0,0,0,0,0}},{{11321,0,0,0,0,0},{11175,0,0,0,0,0},{11045,0,0,0,0,0},{10719,0,0,0,0,0},{10771,0,0,0,0,0},{11190,0,0,0,0,0},{11247,0,0,0,0,0},{10734,0,0,0,0,0},{11056,0,0,0,0,0},{10843,0,0,0,0,0},{11044,0,0,0,0,0},{10840,0,0,0,0,0},{10926,0,0,0,0,0},{10936,0,0,0,0,0},{11298,0,0,0,0,0},{11136,0,0,0,0,0},{10790,0,0,0,0,0},{10953,0,0,0,0,0},{10917,0,0,0,0,0},{10921,0,0,0,0,0},{10879,0,0,0,0,0},{10873,0,0,0,0,0},{10990,0,0,0,0,0},{10934,0,0,0,0,0},{11409,0,0,0,0,0},{10971,0,0,0,0,0},{10922,0,0,0,0,0},{11083,0,0,0,0,0},{11143,0,0,0,0,0},{11092,0,0,0,0,0},{10884,0,0,0,0,0},{11185,0,0,0,0,0},{10773,0,0,0,0,0},{10903,0,0,0,0,0},{11051,0,0,0,0,0},{10885,0,0,0,0,0},{11204,0,0,0,0,0},{10851,0,0,0,0,0},{11192,0,0,0,0,0},{11228,0,0,0,0,0},{10965,0,0,0,0,0},{10762,0,0,0,0,0},{11013,0,0,0,0,0},{11301,0,0,0,0,0},{10963,0,0,0,0,0},{10943,0,0,0,0,0},{11168,0,0,0,0,0},{10967,0,0,0,0,0},{11022,0,0,0,0,0},{11329,0,0,0,0,0}},{{10972,0,0,0,0,0},{10679,0,0,0,0,0},{10998,0,0,0,0,0},{10983,0,0,0,0,0},{11163,0,0,0,0,0},{11406,0,0,0,0,0},{11306,0,0,0,0,0},{10932,0,0,0,0,0},{10784,0,0,0,0,0},{10889,0,0,0,0,0},{11189,0,0,0,0,0},{10877,0,0,0,0,0},{11372,0,0,0,0,0},{11113,0,0,0,0,0},{10889,0,0,0,0,0},{11414,0,0,0,0,0},{11165,0,0,0,0,0},{10876,0,0,0,0,0},{11105,0,0,0,0,0},{10858,0,0,0,0,0},{11071,0,0,0,0,0},{11085,0,0,0,0,0},{11224,0,0,0,0,0},{11197,0,0,0,0,0},{11222,0,0,0,0,0},{11081,0,0,0,0,0},{11354,0,0,0,0,0},{11471,0,0,0,0,0},{10851,0,0,0,0,0},{11103,0,0,0,0,0},{11377,0,0,0,0,0},{11189,0,0,0,0,0},{10991,0,0,0,0,0},{10979,0,0,0,0,0},{11039,0,0,0,0,0},{10763,0,0,0,0,0},{10888,0,0,0,0,0},{11483,0,0,0,0,0},{11143,0,0,0,0,0},{11220,0,0,0,0,0},{10936,0,0,0,0,0},{10575,0,0,0,0,0},{11039,0,0,0,0,0},{10856,0,0,0,0,0},{10901,0,0,0,0,0},{10772,0,0,0,0,0},{11095,0,0,0,0,0},{11070,0,0,0,0,0},{11364,0,0,0,0,0},{11220,0,0,0,0,0}}},{{{-231,-199,-242,-179,-260,-251},{-222,-242,-264,-188,-258,-215},{-226,-246,-269,-262,-220,-253},{-267,-242,-262,-179,-184,-204},{-193,-246,-233,-224,-228,-242},{-195,-199,-224,-190,-213,-181},{-260,-233,-220,-204,-228,-195},{-215,-197,-240,-258,-197,-193},{-213,-197,-190,-260,-233,-197},{-258,-231,-181,-186,-220,-188},{-240,-217,-199,-255,-190,-228},{-246,-179,-251,-206,-264,-184},{-204,-220,-226,-186,-255,-211},{-190,-255,-220,-204,-186,-249},{-244,-220,-193,-215,-226,-253},{-242,-211,-267,-186,-222,-186},{-231,-220,-213,-202,-231,-190},{-213,-228,-224,-186,-208,-211},{-260,-197,-188,-240,-184,-249},{-222,-244,-195,-211,-217,-208},{-193,-202,-233,-240,-226,-197},{-181,-258,-186,-220,-246,-242},{-231,-179,-224,-260,-186,-226},{-235,-249,-211,-249,-179,-258},{-255,-255,-204,-264,-179,-197},{-235,-228,-197,-213,-215,-231},{-206,-253,-253,-188,-258,-264},{-215,-195,-204,-264,-231,-226},{-253,-235,-197,-190,-226,-235},{-237,-179,-240,-197,-206,-260},{-258,-206,-222,-240,-226,-269},{-199,-222,-246,-195,-181,-217},{-217,-204,-260,-224,-255,-211},{-226,-204,-267,-217,-181,-258},{-253,-204,-244,-199,-244,-213},{-217,-211,-206,-193,-226,-217},{-184,-228,-206,-179,-197,-237},{-244,-197,-211,-269,-224,-206},{-251,-188,-211,-181,-226,-179},{-226,-267,-260,-264,-222,-181},{-220,-220,-224,-222,-255,-222},{-231,-240,-264,-228,-206,-184},{-211,-184,-264,-190,-208,-208},{-184,-179,-197,-269,-244,-260},{-202,-193,-188,-249,-251,-184},{-213,-184,-244,-231,-224,-251},{-242,-228,-269,-193,-217,-231},{-226,-242,-197,-193,-222,-211},{-233,-220,-249,-235,-202,-206},{-199,-179,-249,-193,-255,-255}},{{-197,-235,-251,-269,-231,-211},{-188,-195,-235,-197,-228,-249},{-188,-211,-267,-202,-235,-195},{-202,-208,-224,-202,-242,-217},{-249,-240,-249,-195,-197,-220},{-244,-226,-251,-206,-231,-211},{-258,-233,-237,-193,-246,-253},{-235,-215,-213,-222,-206,-249},{-264,-181,-202,-197,-213,-208},{-244,-222,-186,-258,-184,-244},{-188,-195,-228,-258,-267,-246},{-188,-258,-197,-220,-188,-190},{-184,-208,-246,-260,-181,-258},{-220,-231,-208,-267,-190,-228},{-213,-249,-251,-224,-260,-217},{-224,-235,-262,-262,-264,-233},{-197,-195,-181,-224,-206,-251},{-184,-231,-262,-181,-233,-233},{-226,-197,-208,-226,-181,-186},{-228,-208,-215,-226,-197,-269},{-235,-188,-211,-193,-181,-253},{-217,-262,-262,-228,-246,-204},{-253,-202,-215,-240,-206,-262},{-269,-199,-184,-235,-242,-188},{-260,-260,-246,-242,-224,-186},{-249,-211,-186,-222,-237,-264},{-193,-197,-246,-197,-215,-197},{-228,-190,-179,-255,-237,-253},{-262,-226,-202,-181,-240,-262},{-237,-202,-258,-220,-202,-267},{-237,-244,-213,-224,-186,-255},{-233,-224,-231,-267,-235,-211},{-222,-204,-231,-186,-204,-267},{-242,-233,-253,-235,-181,-242},{-235,-179,-255,-202,-179,-202},{-184,-251,-179,-249,-188,-251},{-240,-237,-260,-264,-228,-197},{-199,-202,-228,-195,-184,-206},{-237,-208,-222,-249,-260,-260},{-240,-211,-260,-179,-269,-262},{-206,-215,-242,-226,-249,-181},{-199,-253,-181,-235,-262,-220},{-179,-197,-215,-181,-199,-253},{-222,-226,-206,-235,-240,-217},{-242,-224,-188,-258,-264,-255},{-215,-233,-233,-215,-253,-188},{-233,-224,-204,-267,-240,-267},{-199,-222,-249,-211,-244,-244},{-231,-260,-195,-258,-220,-186},{-267,-179,-202,-237,-197,-235}},{{-258,-181,-226,-222,-208,-195},{-195,-242,-211,-220,-235,-199},{-199,-228,-222,-262,-193,-246},{-195,-233,-231,-262,-267,-222},{-215,-226,-246,-240,-237,-260},{-226,-240,-249,-206,-242,-260},{-262,-233,-181,-255,-199,-244},{-262,-181,-231,-231,-206,-208},{-237,-184,-217,-195,-264,-195},{-260,-211,-251,-240,-197,-208},{-206,-190,-206,-255,-237,-226},{-235,-181,-206,-193,-204,-253},{-195,-267,-233,-195,-267,-208},{-235,-222,-211,-188,-181,-208},{-231,-211,-195,-249,-208,-244},{-195,-224,-202,-253,-184,-217},{-199,-253,-197,-202,-233,-251},{-269,-237,-253,-186,-181,-237},{-228,-237,-269,-206,-222,-202},{-213,-262,-193,-206,-211,-228},{-190,-193,-226,-199,-240,-224},{-199,-244,-215,-242,-226,-269},{-204,-190,-262,-204,-231,-231},{-190,-188,-193,-220,-233,-269},{-253,-231,-193,-213,-260,-186},{-193,-217,-258,-190,-246,-226},{-264,-213,-251,-264,-199,-208},{-246,-228,-188,-184,-231,-260},{-267,-237,-190,-199,-240,-195},{-190,-246,-222,-179,-244,-220},{-260,-258,-226,-224,-222,-237},{-264,-253,-244,-231,-258,-269},{-199,-246,-253,-220,-226,-195},{-184,-199,-224,-184,-253,-181},{-264,-184,-190,-260,-233,-208},{-199,-204,-246,-231,-228,-197},{-244,-217,-231,-226,-228,-190},{-224,-206,-235,-253,-213,-197},{-237,-260,-226,-255,-188,-208},{-202,-228,-184,-228,-202,-255},{-202,-217,-184,-220,-249,-204},{-215,-240,-215,-267,-224,-197},{-235,-260,-206,-224,-217,-253},{-237,-237,-240,-233,-233,-193},{-217,-188,-253,-204,-242,-190},{-237,-269,-224,-251,-179,-267},{-190,-181,-255,-228,-184,-215},{-213,-251,-199,-213,-195,-267},{-228,-186,-231,-251,-184,-235},{-190,-249,-237,-222,-255,-211}}},{{{-274,-274,-228,-245,-217,-233},{-283,-281,-195,-250,-212,-198},{-240,-276,-250,-286,-267,-271},{-276,-269,-224,-200,-193,-267},{-283,-226,-214,-238,-228,-267},{-221,-274,-202,-224,-274,-214},{-267,-217,-276,-255,-193,-255},{-198,-224,-219,-231,-262,-205},{-231,-271,-238,-257,-255,-214},{-195,-257,-200,-236,-217,-243},{-252,-259,-262,-271,-200,-221},{-209,-207,-209,-245,-274,-248},{-231,-286,-231,-198,-195,-245},{-274,-286,-236,-217,-214,-221},{-190,-262,-278,-257,-236,-255},{-195,-283,-255,-262,-190,-190},{-286,-236,-226,-281,-269,-198},{-262,-250,-259,-224,-257,-212},{-276,-255,-195,-200,-276,-198},{-267,-207,-271,-257,-255,-231},{-238,-250,-202,-252,-283,-236},{-274,-214,-243,-212,-271,-219},{-269,-202,-200,-269,-245,-278},{-245,-224,-226,-250,-283,-231},{-221,-205,-231,-217,-212,-236},{-276,-200,-243,-193,-228,-267},{-240,-190,-221,-262,-224,-238},{-195,-245,-255,-240,-209,-269},{-283,-252,-226,-224,-195,-257},{-233,-207,-240,-200,-269,-228},{-193,-276,-219,-224,-224,-224},{-278,-224,-269,-217,-255,-267},{-219,-274,-231,-217,-252,-212},{-257,-281,-200,-238,-224,-267},{-226,-278,-200,-200,-286,-207},{-195,-283,-252,-228,-257,-214},{-195,-248,-269,-271,-233,-209},{-257,-233,-195,-255,-214,-205},{-278,-224,-264,-217,-205,-274},{-193,-209,-221,-255,-209,-228},{-286,-217,-276,-269,-271,-255},{-252,-271,-238,-205,-231,-205},{-195,-267,-212,-221,-269,-245},{-202,-274,-255,-250,-271,-281},{-252,-193,-255,-250,-202,-221},{-221,-267,-276,-231,-238,-278},{-243,-264,-195,-281,-236,-236},{-209,-205,-248,-217,-219,-233},{-262,-202,-259,-259,-255,-274},{-195,-243,-245,-252,-269,-240}},{{-269,-219,-214,-286,-224,-219},{-286,-217,-276,-202,-278,-236},{-274,-236,-190,-267,-226,-212},{-219,-226,-276,-198,-233,-264},{-198,-236,-228,-226,-195,-190},{-209,-228,-262,-236,-271,-255},{-257,-286,-283,-233,-207,-281},{-257,-207,-195,-200,-240,-219},{-267,-200,-226,-193,-198,-231},{-217,-214,-252,-231,-202,-226},{-205,-190,-205,-214,-257,-262},{-198,-286,-267,-219,-276,-198},{-243,-233,-202,-233,-271,-228},{-281,-198,-262,-221,-198,-276},{-264,-269,-278,-240,-252,-231},{-233,-278,-250,-271,-259,-238},{-221,-236,-255,-240,-195,-231},{-209,-267,-221,-250,-243,-267},{-271,-202,-245,-245,-243,-257},{-276,-271,-259,-248,-202,-243},{-271,-286,-240,-257,-248,-255},{-190,-255,-205,-276,-228,-226},{-269,-278,-226,-202,-264,-245},{-267,-281,-207,-209,-233,-245},{-281,-219,-276,-255,-245,-193},{-214,-217,-233,-257,-195,-209},{-245,-259,-205,-212,-195,-233},{-286,-195,-236,-221,-252,-202},{-236,-212,-240,-274,-271,-209},{-214,-236,-262,-207,-271,-195},{-219,-262,-193,-202,-233,-212},{-221,-283,-233,-231,-243,-207},{-240,-245,-224,-190,-205,-269},{-190,-219,-269,-255,-257,-240},{-262,-267,-240,-269,-228,-248},{-226,-255,-202,-274,-248,-228},{-276,-224,-248,-243,-283,-283},{-205,-214,-259,-193,-262,-255},{-262,-248,-243,-219,-248,-271},{-248,-236,-200,-262,-262,-207},{-190,-193,-231,-281,-243,-262},{-243,-195,-214,-219,-202,-217},{-217,-233,-257,-250,-252,-283},{-248,-240,-193,-267,-267,-281},{-269,-255,-207,-286,-198,-224},{-195,-238,-200,-205,-278,-245},{-269,-195,-250,-248,-264,-219},{-264,-212,-219,-214,-283,-205},{-209,-267,-202,-214,-209,-221},{-257,-264,-209,-248,-198,-238}},{{-231,-198,-271,-278,-257,-271},{-202,-202,-283,-193,-209,-271},{-248,-286,-248,-207,-267,-231},{-248,-243,-226,-205,-221,-217},{-226,-257,-257,-226,-193,-195},{-195,-278,-248,-193,-243,-267},{-212,-276,-224,-255,-255,-207},{-276,-236,-221,-262,-278,-224},{-193,-217,-257,-259,-243,-250},{-281,-224,-214,-240,-190,-224},{-236,-276,-278,-209,-283,-276},{-219,-238,-278,-238,-252,-226},{-198,-271,-259,-219,-240,-228},{-248,-283,-259,-281,-226,-212},{-217,-250,-255,-233,-286,-286},{-250,-233,-257,-217,-269,-236},{-212,-264,-257,-233,-274,-257},{-243,-214,-207,-255,-205,-224},{-198,-221,-252,-267,-245,-224},{-200,-231,-214,-278,-205,-221},{-250,-264,-228,-212,-274,-238},{-214,-278,-202,-267,-259,-240},{-271,-195,-259,-231,-193,-269},{-286,-248,-195,-271,-193,-240},{-236,-248,-236,-286,-286,-202},{-245,-198,-240,-248,-198,-236},{-245,-200,-209,-231,-278,-245},{-267,-283,-262,-278,-283,-252},{-255,-207,-257,-193,-255,-286},{-198,-274,-276,-259,-190,-193},{-228,-286,-248,-228,-221,-286},{-228,-276,-248,-214,-205,-214},{-193,-224,-281,-238,-233,-209},{-271,-243,-283,-209,-212,-240},{-233,-262,-243,-233,-271,-217},{-205,-217,-219,-233,-245,-200},{-274,-228,-245,-224,-198,-255},{-252,-267,-240,-200,-255,-190},{-209,-286,-267,-250,-209,-252},{-278,-224,-198,-248,-245,-214},{-262,-255,-240,-231,-228,-195},{-195,-231,-248,-267,-221,-200},{-207,-190,-243,-209,-252,-245},{-224,-200,-202,-252,-250,-207},{-207,-233,-262,-281,-228,-276},{-212,-231,-205,-198,-276,-248},{-243,-283,-286,-278,-240,-219},{-221,-209,-257,-207,-274,-257},{-259,-193,-255,-252,-262,-228},{-267,-281,-276,-257,-217,-252}}},{{{-289,-268,-262,-218,-295,-278},{-232,-317,-314,-240,-298,-276},{-300,-328,-270,-276,-218,-322},{-273,-306,-227,-276,-224,-243},{-322,-298,-281,-292,-284,-265},{-278,-224,-268,-259,-268,-325},{-221,-317,-265,-278,-221,-259},{-322,-295,-314,-311,-221,-306},{-229,-229,-319,-243,-268,-229},{-268,-292,-300,-319,-232,-218},{-251,-306,-281,-270,-232,-298},{-248,-243,-292,-311,-300,-314},{-289,-273,-224,-317,-254,-221},{-257,-224,-278,-265,-265,-218},{-270,-265,-270,-300,-295,-265},{-229,-232,-292,-224,-273,-243},{-314,-306,-328,-240,-303,-311},{-259,-319,-243,-229,-224,-268},{-306,-319,-257,-278,-281,-227},{-322,-218,-292,-278,-243,-292},{-284,-273,-248,-259,-232,-251},{-238,-248,-284,-262,-276,-270},{-281,-314,-292,-325,-289,-292},{-235,-314,-240,-218,-246,-319},{-306,-325,-229,-235,-325,-265},{-289,-257,-287,-240,-238,-265},{-292,-259,-276,-224,-306,-238},{-287,-308,-229,-325,-251,-311},{-257,-227,-298,-238,-221,-298},{-257,-319,-298,-276,-218,-298},{-292,-325,-268,-289,-308,-262},{-306,-314,-295,-273,-298,-257},{-284,-298,-284,-227,-278,-319},{-238,-268,-276,-311,-303,-270},{-235,-311,-276,-254,-276,-254},{-281,-317,-240,-251,-281,-227},{-276,-314,-314,-262,-224,-289},{-251,-287,-246,-289,-224,-281},{-221,-257,-268,-246,-259,-276},{-248,-238,-325,-298,-281,-246},{-243,-218,-306,-246,-284,-289},{-224,-221,-295,-317,-314,-281},{-254,-265,-287,-262,-254,-232},{-265,-284,-284,-295,-251,-268},{-238,-276,-268,-287,-238,-246},{-232,-273,-317,-295,-322,-298},{-322,-259,-306,-240,-328,-270},{-311,-311,-319,-278,-224,-248},{-224,-289,-308,-298,-218,-308},{-314,-218,-232,-311,-262,-306}},{{-232,-317,-232,-257,-322,-287},{-273,-262,-295,-273,-240,-325},{-273,-273,-317,-303,-227,-328},{-287,-281,-270,-317,-232,-232},{-268,-311,-270,-284,-218,-273},{-224,-298,-281,-273,-243,-276},{-218,-248,-235,-281,-328,-292},{-284,-328,-322,-229,-224,-278},{-243,-221,-246,-278,-259,-262},{-232,-276,-254,-218,-292,-257},{-314,-306,-229,-257,-273,-328},{-281,-311,-221,-273,-295,-221},{-232,-289,-262,-298,-246,-265},{-268,-251,-262,-306,-319,-229},{-325,-314,-240,-295,-251,-259},{-251,-317,-284,-246,-218,-284},{-259,-221,-314,-276,-292,-227},{-259,-278,-259,-251,-306,-270},{-218,-308,-221,-319,-229,-300},{-248,-232,-232,-298,-257,-240},{-300,-303,-224,-287,-235,-257},{-232,-257,-298,-292,-319,-308},{-319,-314,-246,-227,-238,-317},{-328,-238,-308,-238,-232,-232},{-289,-270,-292,-328,-257,-254},{-287,-246,-303,-287,-295,-295},{-317,-319,-300,-308,-254,-248},{-265,-319,-314,-317,-221,-240},{-251,-218,-300,-295,-306,-281},{-262,-278,-311,-270,-246,-257},{-270,-246,-218,-229,-278,-221},{-325,-227,-298,-246,-281,-278},{-229,-251,-254,-254,-298,-240},{-265,-292,-270,-303,-287,-240},{-273,-262,-259,-224,-289,-235},{-281,-218,-240,-251,-322,-325},{-273,-311,-328,-224,-308,-270},{-292,-227,-276,-298,-262,-240},{-232,-265,-281,-311,-306,-273},{-265,-254,-270,-322,-238,-322},{-308,-287,-325,-314,-284,-227},{-262,-289,-278,-325,-319,-292},{-284,-303,-319,-238,-243,-232},{-259,-308,-262,-227,-284,-328},{-270,-248,-254,-251,-235,-289},{-306,-319,-229,-229,-314,-284},{-248,-254,-262,-317,-257,-298},{-221,-295,-308,-254,-303,-238},{-319,-287,-221,-322,-259,-322},{-311,-322,-325,-259,-300,-254}},{{-319,-287,-303,-311,-303,-289},{-278,-227,-311,-273,-300,-248},{-254,-287,-248,-243,-227,-232},{-227,-319,-232,-295,-221,-218},{-303,-322,-317,-328,-265,-325},{-295,-273,-287,-298,-311,-308},{-224,-292,-251,-292,-270,-325},{-268,-314,-243,-243,-300,-300},{-298,-319,-317,-295,-273,-278},{-257,-246,-328,-248,-238,-317},{-284,-289,-287,-328,-311,-298},{-273,-276,-298,-248,-314,-298},{-248,-322,-308,-229,-284,-281},{-221,-289,-300,-273,-300,-328},{-248,-295,-278,-227,-257,-325},{-238,-319,-254,-281,-276,-273},{-257,-284,-298,-306,-298,-273},{-325,-251,-251,-221,-298,-268},{-311,-289,-295,-218,-218,-328},{-300,-257,-221,-268,-300,-218},{-232,-240,-281,-306,-284,-235},{-298,-325,-227,-319,-289,-284},{-328,-227,-246,-308,-300,-306},{-257,-295,-273,-289,-238,-270},{-319,-289,-248,-298,-235,-248},{-292,-221,-240,-235,-262,-317},{-317,-300,-270,-221,-262,-308},{-322,-325,-276,-281,-298,-292},{-278,-229,-227,-218,-257,-292},{-300,-238,-308,-295,-328,-251},{-257,-257,-246,-289,-314,-257},{-268,-221,-287,-292,-238,-232},{-265,-238,-306,-295,-298,-289},{-270,-300,-306,-292,-281,-295},{-246,-227,-276,-284,-300,-262},{-227,-276,-221,-224,-273,-276},{-273,-238,-248,-235,-325,-273},{-325,-328,-229,-248,-292,-311},{-328,-328,-243,-229,-257,-281},{-289,-243,-238,-311,-281,-273},{-325,-295,-224,-276,-287,-328},{-268,-218,-218,-218,-254,-287},{-325,-328,-259,-257,-265,-240},{-254,-257,-232,-273,-265,-322},{-248,-276,-308,-232,-270,-303},{-229,-248,-229,-273,-289,-246},{-306,-243,-325,-287,-284,-224},{-232,-311,-311,-273,-308,-246},{-254,-268,-319,-276,-243,-265},{-289,-268,-232,-328,-325,-298}}},{{{-185,-168,-143,-156,-134,-139},{-168,-146,-143,-179,-132,-185},{-136,-156,-129,-182,-166,-132},{-149,-123,-152,-171,-136,-125},{-172,-169,-142,-179,-165,-129},{-149,-185,-156,-166,-126,-129},{-132,-149,-157,-131,-163,-169},{-168,-146,-176,-145,-168,-157},{-142,-185,-126,-131,-154,-145},{-125,-132,-179,-148,-152,-177},{-166,-166,-172,-172,-132,-162},{-145,-137,-156,-174,-140,-136},{-163,-159,-132,-136,-179,-169},{-125,-149,-132,-125,-140,-183},{-183,-165,-176,-149,-179,-125},{-152,-129,-149,-136,-169,-125},{-183,-154,-162,-140,-132,-136},{-169,-157,-174,-143,-134,-145},{-160,-149,-172,-146,-146,-163},{-126,-156,-128,-128,-177,-162},{-136,-123,-159,-137,-180,-134},{-171,-171,-131,-143,-154,-149},{-145,-182,-168,-160,-136,-148},{-142,-146,-128,-143,-139,-129},{-174,-134,-148,-156,-157,-134},{-125,-174,-182,-157,-168,-142},{-146,-162,-157,-180,-145,-159},{-165,-169,-154,-166,-143,-179},{-163,-139,-126,-136,-169,-159},{-159,-183,-174,-180,-131,-149},{-166,-140,-151,-169,-168,-176},{-132,-129,-168,-165,-132,-168},{-139,-146,-165,-160,-171,-140},{-145,-145,-168,-143,-183,-142},{-137,-134,-151,-137,-129,-134},{-125,-177,-177,-142,-176,-157},{-180,-182,-148,-149,-149,-162},{-157,-182,-160,-143,-149,-149},{-129,-166,-169,-149,-176,-160},{-176,-182,-123,-160,-177,-137},{-163,-151,-129,-182,-129,-143},{-140,-142,-151,-131,-179,-134},{-140,-169,-179,-134,-174,-169},{-125,-148,-137,-136,-165,-171},{-159,-142,-169,-157,-134,-183},{-171,-125,-162,-132,-148,-174},{-131,-140,-157,-126,-143,-149},{-134,-132,-169,-146,-165,-168},{-177,-166,-140,-145,-179,-146},{-125,-172,-152,-139,-148,-163}},{{-154,-157,-171,-156,-159,-183},{-154,-125,-131,-132,-137,-176},{-128,-131,-180,-148,-145,-185},{-145,-129,-134,-180,-128,-137},{-137,-132,-152,-166,-171,-142},{-163,-152,-154,-171,-123,-123},{-172,-142,-185,-140,-163,-163},{-176,-125,-157,-126,-179,-180},{-157,-159,-148,-168,-166,-177},{-180,-128,-160,-177,-180,-137},{-166,-151,-134,-156,-177,-140},{-154,-154,-125,-160,-169,-137},{-163,-160,-125,-151,-142,-152},{-128,-129,-142,-180,-140,-168},{-154,-156,-149,-123,-137,-176},{-131,-156,-123,-152,-171,-146},{-157,-128,-139,-169,-165,-131},{-183,-145,-154,-177,-125,-159},{-177,-131,-123,-176,-142,-126},{-152,-180,-168,-137,-129,-160},{-163,-159,-162,-126,-146,-145},{-129,-136,-185,-168,-126,-129},{-174,-169,-134,-131,-128,-165},{-139,-128,-166,-142,-134,-183},{-154,-151,-146,-123,-168,-163},{-145,-183,-171,-151,-163,-128},{-137,-160,-156,-174,-142,-174},{-136,-140,-172,-169,-151,-136},{-160,-142,-156,-179,-128,-172},{-142,-148,-183,-156,-126,-134},{-162,-139,-125,-154,-160,-165},{-126,-162,-143,-143,-151,-145},{-166,-171,-131,-163,-169,-142},{-166,-125,-165,-142,-162,-165},{-136,-168,-179,-168,-131,-139},{-137,-145,-148,-129,-177,-146},{-152,-166,-182,-180,-168,-123},{-145,-185,-131,-128,-160,-185},{-123,-123,-132,-140,-177,-160},{-162,-143,-152,-166,-131,-183},{-165,-129,-177,-134,-182,-132},{-171,-131,-151,-132,-149,-125},{-180,-151,-139,-125,-176,-128},{-128,-160,-157,-136,-140,-154},{-131,-137,-139,-123,-160,-177},{-165,-137,-143,-128,-183,-182},{-165,-169,-159,-171,-123,-171},{-149,-169,-123,-142,-146,-172},{-145,-179,-185,-171,-168,-174},{-165,-152,-177,-137,-171,-140}},{{-126,-132,-126,-137,-185,-146},{-125,-172,-143,-174,-152,-176},{-169,-182,-182,-157,-174,-139},{-163,-123,-143,-160,-165,-169},{-137,-142,-146,-134,-143,-174},{-179,-159,-180,-182,-182,-123},{-182,-183,-160,-129,-125,-168},{-169,-131,-152,-159,-143,-165},{-160,-148,-154,-149,-160,-129},{-166,-125,-162,-145,-125,-125},{-148,-183,-182,-145,-145,-129},{-139,-131,-180,-140,-177,-137},{-183,-131,-126,-125,-174,-177},{-180,-136,-129,-160,-168,-162},{-149,-142,-177,-132,-157,-145},{-179,-179,-154,-142,-139,-174},{-152,-185,-163,-132,-159,-140},{-136,-174,-159,-171,-151,-176},{-179,-126,-169,-154,-125,-172},{-126,-128,-179,-185,-156,-157},{-156,-156,-140,-139,-185,-171},{-163,-157,-174,-132,-134,-169},{-131,-180,-137,-168,-132,-128},{-142,-160,-152,-168,-151,-185},{-163,-183,-149,-154,-160,-143},{-143,-123,-123,-131,-137,-156},{-163,-169,-145,-149,-157,-180},{-146,-148,-152,-174,-146,-146},{-157,-143,-139,-131,-159,-123},{-125,-176,-179,-171,-129,-149},{-134,-151,-143,-163,-180,-134},{-179,-168,-185,-123,-179,-179},{-149,-148,-176,-149,-149,-182},{-132,-152,-140,-151,-180,-152},{-151,-176,-166,-123,-176,-131},{-152,-146,-163,-180,-169,-132},{-171,-143,-143,-176,-136,-165},{-171,-176,-176,-166,-142,-129},{-179,-177,-128,-125,-180,-140},{-185,-172,-152,-142,-156,-151},{-154,-137,-145,-146,-163,-139},{-145,-169,-169,-129,-125,-148},{-136,-160,-131,-129,-123,-174},{-168,-126,-149,-128,-134,-160},{-177,-123,-156,-139,-128,-148},{-125,-139,-185,-160,-143,-125},{-146,-177,-177,-168,-137,-145},{-177,-148,-177,-136,-142,-151},{-140,-123,-179,-172,-179,-183},{-143,-177,-146,-129,-154,-163}}},{{{-197,-166,-197,-182,-189,-167},{-169,-195,-149,-146,-198,-187},{-187,-202,-211,-180,-173,-171},{-191,-182,-218,-207,-155,-218},{-191,-146,-167,-171,-211,-195},{-182,-195,-160,-180,-157,-217},{-160,-175,-204,-149,-193,-218},{-191,-218,-215,-147,-206,-186},{-151,-155,-207,-195,-218,-186},{-153,-198,-202,-146,-191,-158},{-178,-147,-153,-153,-200,-177},{-167,-184,-182,-206,-167,-202},{-146,-206,-160,-207,-164,-218},{-215,-184,-207,-202,-195,-180},{-207,-213,-160,-186,-182,-167},{-215,-160,-169,-157,-217,-160},{-160,-187,-175,-180,-207,-178},{-149,-175,-209,-187,-166,-162},{-189,-175,-169,-184,-189,-215},{-202,-162,-147,-155,-200,-166},{-155,-160,-158,-164,-209,-217},{-146,-173,-184,-217,-189,-167},{-149,-218,-182,-207,-217,-191},{-207,-218,-167,-178,-171,-177},{-160,-180,-158,-180,-171,-195},{-155,-177,-193,-173,-211,-191},{-195,-189,-202,-177,-202,-147},{-198,-200,-153,-213,-184,-209},{-164,-178,-171,-175,-173,-171},{-182,-197,-195,-173,-169,-193},{-191,-186,-164,-160,-211,-158},{-204,-162,-149,-189,-189,-178},{-186,-162,-187,-186,-187,-164},{-211,-164,-193,-177,-206,-197},{-184,-184,-182,-191,-207,-202},{-180,-157,-160,-155,-186,-202},{-197,-187,-147,-162,-193,-213},{-180,-207,-218,-187,-215,-217},{-153,-155,-177,-160,-167,-193},{-193,-207,-187,-207,-218,-193},{-164,-169,-197,-191,-184,-175},{-209,-171,-151,-160,-202,-162},{-151,-167,-217,-157,-146,-215},{-191,-158,-155,-209,-217,-169},{-173,-213,-213,-206,-178,-215},{-182,-180,-209,-157,-198,-195},{-195,-146,-186,-197,-158,-146},{-195,-186,-166,-160,-218,-153},{-166,-186,-215,-187,-164,-177},{-164,-180,-173,-167,-162,-187}},{{-213,-153,-187,-177,-186,-189},{-197,-187,-200,-218,-204,-175},{-206,-167,-162,-184,-206,-175},{-167,-175,-164,-155,-171,-164},{-162,-200,-197,-153,-189,-173},{-187,-211,-202,-213,-211,-204},{-182,-186,-187,-193,-200,-164},{-151,-180,-166,-207,-180,-184},{-180,-175,-153,-218,-175,-207},{-182,-187,-204,-157,-202,-189},{-198,-218,-209,-167,-217,-146},{-177,-146,-206,-175,-158,-171},{-191,-151,-204,-213,-184,-195},{-207,-162,-193,-171,-164,-160},{-149,-160,-175,-207,-218,-153},{-153,-195,-217,-157,-184,-180},{-147,-200,-197,-173,-207,-177},{-186,-149,-187,-200,-173,-147},{-167,-213,-169,-171,-153,-189},{-175,-178,-162,-204,-149,-171},{-155,-202,-155,-169,-175,-166},{-198,-186,-158,-178,-164,-180},{-162,-173,-171,-218,-182,-213},{-153,-178,-146,-178,-147,-211},{-202,-169,-195,-213,-166,-147},{-151,-147,-149,-213,-171,-146},{-149,-153,-147,-158,-169,-178},{-164,-171,-182,-215,-160,-198},{-166,-166,-173,-189,-218,-186},{-166,-164,-151,-206,-173,-169},{-158,-206,-197,-189,-191,-209},{-202,-169,-158,-153,-197,-184},{-158,-164,-171,-193,-175,-206},{-147,-160,-213,-158,-180,-197},{-204,-202,-175,-160,-186,-171},{-193,-153,-162,-180,-167,-180},{-200,-186,-177,-195,-200,-177},{-193,-151,-211,-184,-215,-153},{-178,-147,-204,-173,-171,-184},{-164,-213,-147,-160,-177,-157},{-158,-182,-211,-184,-215,-157},{-157,-173,-153,-178,-162,-166},{-218,-169,-169,-166,-218,-207},{-175,-206,-207,-193,-147,-149},{-171,-186,-211,-206,-171,-146},{-153,-189,-160,-146,-146,-171},{-155,-217,-173,-186,-213,-162},{-166,-164,-204,-193,-211,-206},{-218,-146,-189,-146,-182,-175},{-215,-200,-178,-209,-184,-184}},{{-182,-164,-157,-146,-175,-209},{-206,-167,-215,-158,-187,-191},{-149,-195,-184,-166,-197,-200},{-146,-147,-195,-151,-155,-184},{-200,-158,-169,-209,-184,-155},{-175,-204,-202,-149,-164,-213},{-193,-218,-149,-215,-173,-207},{-191,-146,-191,-167,-146,-149},{-175,-200,-146,-149,-200,-193},{-207,-157,-151,-171,-206,-193},{-158,-189,-167,-202,-180,-202},{-215,-158,-157,-160,-151,-166},{-213,-204,-195,-167,-217,-204},{-175,-206,-213,-186,-182,-162},{-200,-166,-146,-200,-206,-187},{-215,-213,-207,-162,-217,-204},{-189,-198,-169,-209,-155,-182},{-202,-193,-191,-147,-204,-155},{-155,-218,-215,-215,-182,-204},{-158,-146,-189,-217,-191,-198},{-202,-171,-197,-171,-157,-157},{-202,-180,-218,-204,-189,-160},{-171,-149,-160,-187,-204,-189},{-197,-147,-213,-200,-209,-158},{-209,-180,-197,-151,-164,-211},{-209,-217,-218,-153,-162,-197},{-187,-182,-198,-211,-200,-169},{-173,-206,-207,-218,-167,-173},{-147,-211,-146,-217,-211,-206},{-209,-182,-197,-149,-173,-175},{-202,-213,-147,-195,-200,-182},{-146,-198,-147,-173,-173,-206},{-157,-211,-198,-202,-198,-155},{-146,-146,-207,-162,-164,-211},{-207,-184,-167,-195,-184,-171},{-198,-173,-171,-178,-167,-182},{-171,-169,-173,-182,-189,-171},{-151,-153,-195,-191,-184,-207},{-173,-197,-191,-162,-157,-200},{-218,-182,-151,-204,-149,-191},{-175,-160,-193,-182,-167,-182},{-177,-171,-151,-182,-166,-155},{-178,-193,-166,-178,-182,-157},{-162,-191,-164,-177,-197,-157},{-213,-167,-149,-146,-213,-211},{-166,-157,-160,-211,-158,-213},{-182,-193,-178,-180,-153,-166},{-151,-171,-166,-191,-211,-147},{-157,-184,-189,-206,-218,-146},{-153,-186,-162,-200,-200,-149}}},{{{-279,-257,-225,-220,-279,-277},{-196,-203,-277,-223,-274,-277},{-292,-211,-289,-252,-218,-216},{-265,-208,-225,-260,-225,-274},{-230,-233,-220,-230,-270,-250},{-282,-247,-216,-213,-250,-235},{-233,-233,-274,-257,-289,-211},{-233,-250,-274,-250,-216,-287},{-267,-198,-196,-252,-255,-272},{-218,-245,-235,-272,-255,-292},{-196,-196,-211,-292,-289,-198},{-198,-255,-228,-233,-279,-240},{-220,-203,-206,-208,-238,-265},{-294,-233,-216,-203,-265,-218},{-238,-201,-262,-198,-250,-274},{-213,-287,-255,-265,-274,-196},{-267,-289,-211,-238,-274,-196},{-238,-294,-196,-201,-220,-201},{-198,-218,-220,-203,-238,-211},{-255,-233,-230,-292,-252,-201},{-196,-233,-201,-208,-277,-257},{-250,-257,-265,-218,-282,-260},{-267,-208,-279,-228,-245,-238},{-265,-216,-225,-208,-265,-208},{-282,-287,-294,-211,-272,-284},{-201,-279,-216,-250,-240,-211},{-270,-262,-198,-243,-206,-262},{-272,-218,-272,-196,-289,-196},{-206,-289,-255,-216,-270,-289},{-270,-203,-223,-252,-277,-255},{-235,-198,-260,-228,-206,-196},{-208,-203,-245,-247,-284,-245},{-260,-243,-284,-211,-292,-225},{-265,-267,-274,-225,-208,-235},{-282,-201,-235,-250,-252,-201},{-196,-255,-243,-282,-284,-289},{-223,-270,-235,-247,-233,-203},{-245,-216,-201,-208,-203,-208},{-225,-284,-284,-277,-267,-274},{-277,-292,-238,-225,-208,-228},{-289,-240,-225,-262,-240,-198},{-208,-270,-267,-213,-235,-272},{-223,-201,-282,-213,-208,-228},{-228,-233,-270,-270,-272,-208},{-274,-216,-240,-208,-282,-262},{-279,-220,-255,-223,-260,-247},{-198,-287,-208,-201,-235,-196},{-262,-247,-198,-216,-208,-223},{-240,-208,-255,-272,-218,-238},{-272,-220,-267,-216,-196,-243}},{{-198,-201,-262,-265,-220,-238},{-279,-292,-243,-247,-245,-206},{-255,-270,-201,-250,-289,-292},{-257,-208,-213,-282,-245,-250},{-216,-206,-206,-289,-245,-252},{-294,-274,-260,-235,-252,-284},{-198,-287,-208,-220,-238,-220},{-233,-267,-220,-260,-289,-265},{-250,-294,-252,-284,-238,-277},{-203,-250,-289,-255,-279,-245},{-206,-265,-289,-228,-216,-203},{-292,-196,-230,-240,-240,-240},{-198,-208,-282,-287,-228,-277},{-267,-243,-211,-255,-279,-243},{-265,-223,-294,-255,-255,-235},{-198,-265,-233,-216,-284,-279},{-218,-243,-272,-289,-292,-243},{-216,-208,-238,-247,-198,-272},{-260,-220,-277,-240,-196,-252},{-252,-203,-240,-287,-252,-203},{-282,-223,-284,-238,-213,-250},{-203,-262,-198,-255,-228,-238},{-225,-196,-230,-230,-287,-225},{-235,-218,-265,-282,-250,-267},{-257,-220,-267,-245,-267,-198},{-272,-240,-250,-216,-262,-250},{-223,-255,-287,-262,-287,-203},{-225,-225,-270,-208,-238,-198},{-292,-220,-213,-260,-282,-265},{-282,-287,-213,-279,-289,-272},{-245,-218,-225,-211,-277,-233},{-265,-243,-292,-247,-223,-196},{-201,-216,-289,-235,-196,-270},{-216,-255,-211,-208,-294,-223},{-220,-277,-198,-294,-274,-265},{-218,-294,-208,-287,-272,-257},{-220,-260,-225,-218,-208,-279},{-272,-235,-220,-216,-262,-284},{-235,-198,-274,-265,-255,-218},{-240,-243,-289,-262,-235,-287},{-220,-201,-240,-270,-267,-250},{-287,-287,-225,-223,-233,-228},{-252,-265,-243,-223,-240,-274},{-243,-292,-287,-257,-203,-289},{-203,-206,-284,-282,-196,-201},{-247,-250,-277,-274,-228,-272},{-267,-196,-228,-279,-218,-277},{-216,-250,-292,-206,-208,-206},{-292,-257,-208,-284,-213,-235},{-240,-211,-282,-216,-230,-247}},{{-274,-216,-201,-294,-247,-228},{-260,-238,-250,-238,-198,-243},{-240,-223,-243,-240,-267,-262},{-218,-289,-289,-284,-287,-287},{-260,-211,-274,-247,-208,-294},{-206,-213,-245,-272,-208,-245},{-257,-274,-257,-228,-287,-262},{-257,-213,-282,-238,-255,-223},{-294,-225,-213,-196,-218,-201},{-265,-294,-272,-203,-220,-292},{-223,-274,-203,-211,-220,-260},{-203,-216,-279,-230,-250,-208},{-235,-260,-252,-208,-218,-274},{-279,-238,-211,-267,-294,-287},{-292,-218,-211,-277,-292,-216},{-272,-274,-277,-255,-247,-247},{-230,-211,-279,-225,-267,-292},{-233,-233,-257,-198,-292,-220},{-265,-235,-262,-257,-211,-198},{-213,-208,-213,-262,-274,-223},{-211,-260,-228,-289,-287,-196},{-289,-201,-211,-203,-223,-208},{-277,-272,-270,-257,-223,-216},{-198,-247,-235,-287,-243,-252},{-206,-287,-255,-250,-206,-277},{-260,-274,-240,-262,-292,-277},{-252,-211,-270,-292,-262,-201},{-233,-257,-265,-223,-216,-265},{-218,-274,-228,-270,-247,-216},{-218,-289,-228,-247,-247,-230},{-287,-206,-218,-220,-255,-287},{-250,-228,-213,-225,-213,-284},{-201,-250,-220,-245,-292,-289},{-208,-216,-223,-260,-262,-284},{-289,-233,-211,-255,-255,-277},{-284,-257,-211,-218,-267,-245},{-240,-228,-233,-233,-235,-220},{-228,-292,-294,-235,-274,-287},{-250,-196,-196,-289,-257,-265},{-274,-289,-243,-260,-211,-262},{-203,-220,-247,-257,-250,-203},{-203,-216,-198,-279,-228,-272},{-238,-230,-230,-216,-265,-220},{-257,-289,-289,-255,-279,-225},{-250,-238,-196,-270,-250,-235},{-245,-218,-211,-223,-284,-201},{-233,-213,-235,-196,-198,-247},{-247,-287,-274,-228,-255,-279},{-196,-274,-252,-277,-252,-277},{-272,-277,-289,-201,-201,-228}}},{{{-194,-213,-259,-185,-268,-266},{-215,-252,-236,-208,-249,-189},{-210,-210,-194,-185,-252,-219},{-231,-201,-189,-210,-215,-277},{-222,-199,-192,-240,-254,-224},{-219,-249,-266,-240,-201,-222},{-206,-201,-203,-233,-222,-185},{-243,-277,-245,-252,-213,-226},{-275,-210,-261,-217,-233,-273},{-189,-266,-203,-238,-217,-196},{-233,-268,-219,-263,-261,-194},{-196,-252,-203,-206,-236,-224},{-208,-194,-256,-273,-275,-203},{-273,-189,-240,-206,-273,-261},{-192,-208,-240,-194,-189,-245},{-231,-240,-203,-256,-277,-224},{-192,-236,-259,-245,-273,-219},{-208,-194,-247,-217,-226,-229},{-270,-201,-240,-263,-219,-196},{-215,-194,-189,-263,-189,-275},{-252,-222,-203,-268,-231,-270},{-273,-217,-213,-261,-213,-270},{-219,-256,-213,-217,-252,-249},{-231,-201,-270,-273,-249,-275},{-192,-199,-210,-270,-266,-247},{-210,-243,-233,-203,-252,-224},{-203,-187,-206,-229,-226,-224},{-277,-254,-263,-245,-215,-275},{-266,-270,-217,-259,-249,-254},{-210,-192,-226,-243,-203,-254},{-275,-226,-249,-238,-263,-273},{-252,-247,-206,-273,-256,-229},{-254,-261,-266,-249,-275,-270},{-208,-254,-217,-196,-231,-224},{-229,-203,-219,-261,-217,-243},{-208,-201,-203,-229,-189,-213},{-215,-273,-208,-252,-231,-192},{-187,-208,-261,-252,-229,-240},{-254,-196,-245,-275,-245,-252},{-217,-275,-240,-199,-199,-219},{-194,-194,-277,-277,-238,-249},{-229,-189,-256,-245,-275,-217},{-261,-266,-196,-270,-208,-199},{-263,-259,-196,-185,-196,-222},{-199,-238,-247,-270,-263,-206},{-215,-192,-252,-256,-187,-201},{-247,-273,-249,-256,-252,-224},{-240,-243,-222,-231,-259,-252},{-256,-249,-203,-245,-259,-199},{-249,-249,-201,-194,-275,-189}},{{-245,-208,-238,-226,-222,-259},{-259,-240,-247,-240,-185,-252},{-208,-247,-187,-243,-222,-215},{-208,-189,-254,-236,-243,-268},{-187,-238,-208,-277,-201,-224},{-256,-194,-187,-261,-199,-268},{-247,-222,-247,-213,-252,-231},{-210,-185,-231,-192,-194,-243},{-229,-259,-247,-263,-266,-217},{-219,-252,-222,-275,-238,-187},{-273,-247,-254,-226,-270,-199},{-245,-196,-238,-213,-261,-249},{-266,-203,-192,-261,-261,-259},{-187,-185,-185,-270,-224,-199},{-240,-273,-247,-215,-206,-226},{-219,-259,-249,-219,-256,-192},{-245,-189,-236,-215,-231,-199},{-185,-243,-275,-213,-273,-238},{-236,-240,-259,-259,-266,-224},{-199,-266,-236,-215,-213,-240},{-192,-266,-277,-185,-224,-215},{-213,-189,-277,-213,-196,-210},{-275,-199,-259,-236,-247,-194},{-249,-261,-213,-215,-222,-261},{-254,-240,-268,-277,-245,-222},{-247,-199,-187,-270,-185,-236},{-206,-192,-187,-263,-196,-219},{-194,-206,-219,-273,-268,-275},{-268,-224,-229,-192,-187,-256},{-270,-215,-196,-256,-222,-231},{-219,-259,-256,-275,-254,-203},{-196,-266,-201,-256,-268,-252},{-270,-238,-247,-254,-192,-215},{-231,-268,-263,-185,-206,-249},{-219,-222,-192,-273,-213,-219},{-196,-238,-196,-277,-194,-254},{-213,-203,-252,-201,-247,-222},{-245,-259,-229,-261,-215,-236},{-268,-256,-252,-226,-254,-206},{-275,-226,-277,-219,-238,-261},{-201,-245,-208,-192,-268,-229},{-229,-219,-187,-217,-222,-219},{-231,-194,-224,-259,-215,-270},{-199,-256,-231,-224,-245,-243},{-245,-224,-215,-243,-261,-238},{-247,-263,-222,-201,-219,-215},{-222,-219,-240,-270,-187,-192},{-196,-185,-270,-245,-273,-240},{-206,-187,-224,-194,-263,-226},{-263,-196,-208,-236,-259,-275}},{{-266,-252,-240,-206,-196,-203},{-238,-203,-194,-222,-206,-213},{-259,-206,-236,-231,-240,-194},{-273,-194,-266,-273,-231,-187},{-226,-236,-254,-213,-194,-249},{-187,-203,-268,-254,-236,-256},{-245,-249,-229,-222,-222,-226},{-240,-261,-203,-185,-243,-196},{-196,-243,-243,-236,-201,-206},{-266,-263,-185,-196,-238,-233},{-199,-187,-256,-259,-236,-277},{-249,-245,-217,-206,-222,-210},{-268,-215,-210,-243,-254,-236},{-189,-199,-208,-236,-210,-196},{-210,-189,-240,-185,-247,-236},{-238,-243,-270,-189,-240,-270},{-187,-196,-243,-203,-277,-222},{-217,-277,-231,-213,-247,-263},{-189,-243,-222,-185,-206,-259},{-254,-208,-222,-273,-254,-208},{-263,-266,-270,-238,-249,-247},{-236,-210,-203,-192,-189,-236},{-240,-201,-196,-254,-222,-201},{-273,-231,-233,-243,-277,-199},{-252,-219,-192,-226,-266,-231},{-268,-192,-256,-231,-236,-226},{-261,-192,-226,-240,-273,-233},{-252,-215,-219,-224,-268,-196},{-219,-208,-215,-194,-226,-268},{-185,-245,-229,-256,-231,-233},{-275,-254,-273,-277,-245,-252},{-275,-256,-275,-236,-217,-277},{-208,-215,-196,-194,-222,-210},{-252,-259,-229,-219,-206,-238},{-206,-194,-275,-187,-226,-238},{-233,-243,-213,-263,-254,-273},{-201,-249,-231,-240,-192,-213},{-231,-275,-199,-252,-233,-240},{-254,-240,-252,-273,-192,-268},{-219,-224,-268,-210,-252,-203},{-231,-243,-203,-254,-277,-222},{-256,-187,-194,-240,-229,-259},{-259,-252,-233,-238,-203,-261},{-236,-203,-275,-247,-231,-240},{-206,-268,-277,-185,-189,-249},{-199,-231,-226,-259,-203,-277},{-201,-252,-219,-266,-185,-268},{-199,-270,-201,-256,-263,-229},{-259,-203,-245,-268,-233,-273},{-263,-240,-215,-217,-194,-196}}},{{{-276,-326,-350,-320,-288,-262},{-312,-265,-344,-347,-303,-282},{-276,-279,-347,-303,-235,-300},{-282,-315,-291,-335,-288,-350},{-279,-268,-329,-332,-315,-332},{-244,-329,-285,-256,-291,-253},{-291,-353,-282,-347,-259,-323},{-235,-273,-353,-259,-347,-335},{-282,-338,-306,-291,-238,-297},{-262,-265,-306,-282,-294,-344},{-285,-270,-303,-235,-309,-288},{-318,-303,-285,-297,-291,-282},{-347,-273,-279,-303,-268,-350},{-265,-309,-294,-250,-259,-241},{-259,-300,-332,-282,-238,-294},{-326,-282,-329,-332,-270,-312},{-347,-262,-270,-332,-341,-297},{-285,-253,-247,-259,-244,-329},{-318,-303,-350,-315,-262,-291},{-268,-294,-329,-273,-350,-268},{-300,-247,-285,-300,-294,-276},{-256,-329,-253,-262,-253,-323},{-241,-259,-262,-309,-335,-250},{-279,-268,-341,-244,-306,-303},{-318,-262,-247,-312,-315,-350},{-235,-297,-270,-332,-282,-241},{-241,-326,-297,-268,-338,-262},{-247,-338,-341,-309,-347,-326},{-288,-300,-312,-347,-320,-276},{-326,-294,-247,-259,-306,-265},{-238,-282,-306,-247,-273,-288},{-282,-285,-238,-268,-279,-335},{-244,-318,-270,-291,-332,-235},{-320,-291,-332,-256,-247,-326},{-247,-347,-326,-241,-297,-288},{-309,-353,-315,-332,-309,-282},{-320,-238,-344,-291,-262,-294},{-268,-241,-291,-297,-332,-323},{-338,-282,-312,-344,-288,-247},{-315,-323,-270,-244,-309,-329},{-250,-309,-332,-323,-259,-332},{-265,-350,-262,-291,-320,-315},{-265,-273,-312,-241,-265,-235},{-315,-294,-294,-344,-250,-265},{-247,-288,-273,-300,-297,-303},{-315,-288,-273,-250,-347,-270},{-253,-350,-335,-262,-259,-323},{-341,-332,-318,-309,-323,-306},{-323,-318,-244,-300,-291,-285},{-262,-306,-344,-309,-270,-282}},{{-268,-341,-350,-344,-353,-326},{-238,-350,-241,-350,-273,-297},{-244,-326,-241,-291,-270,-353},{-253,-235,-335,-326,-300,-238},{-326,-306,-329,-235,-282,-323},{-253,-285,-241,-303,-320,-285},{-244,-309,-268,-335,-315,-347},{-270,-312,-291,-244,-250,-244},{-326,-353,-276,-285,-256,-312},{-253,-282,-238,-329,-297,-238},{-285,-282,-268,-238,-300,-294},{-300,-238,-320,-315,-285,-323},{-341,-235,-273,-265,-273,-247},{-250,-350,-294,-318,-276,-341},{-285,-250,-326,-294,-276,-344},{-253,-253,-235,-341,-285,-326},{-285,-309,-288,-270,-279,-276},{-306,-262,-291,-329,-250,-320},{-300,-238,-244,-329,-335,-323},{-332,-320,-332,-285,-253,-279},{-265,-250,-253,-265,-347,-303},{-294,-323,-250,-291,-241,-350},{-309,-306,-253,-235,-241,-300},{-335,-253,-256,-291,-268,-353},{-347,-344,-276,-297,-341,-270},{-282,-285,-341,-312,-265,-347},{-282,-309,-350,-329,-306,-329},{-291,-270,-332,-332,-320,-335},{-332,-282,-270,-247,-273,-350},{-247,-306,-285,-350,-338,-241},{-318,-297,-312,-294,-256,-335},{-329,-306,-338,-347,-235,-318},{-291,-270,-320,-262,-279,-306},{-247,-332,-259,-312,-256,-235},{-326,-338,-309,-288,-300,-297},{-265,-323,-309,-279,-259,-270},{-294,-238,-318,-256,-262,-285},{-259,-247,-300,-323,-294,-256},{-329,-247,-279,-335,-344,-244},{-265,-315,-350,-276,-270,-238},{-250,-279,-338,-285,-273,-259},{-315,-315,-253,-306,-241,-303},{-279,-270,-244,-329,-276,-344},{-297,-297,-323,-347,-256,-350},{-320,-250,-285,-256,-350,-329},{-285,-341,-297,-238,-332,-253},{-353,-291,-241,-247,-320,-341},{-276,-303,-288,-309,-312,-262},{-297,-335,-247,-297,-268,-309},{-341,-341,-235,-250,-332,-353}},{{-250,-300,-294,-253,-262,-297},{-241,-250,-341,-291,-244,-244},{-312,-268,-288,-347,-276,-244},{-344,-329,-244,-276,-238,-291},{-315,-282,-282,-297,-259,-273},{-306,-318,-262,-329,-332,-335},{-341,-268,-297,-309,-312,-262},{-241,-270,-247,-315,-338,-332},{-294,-268,-323,-276,-247,-250},{-270,-241,-353,-247,-309,-235},{-338,-309,-253,-250,-241,-288},{-320,-285,-270,-312,-338,-276},{-312,-335,-350,-294,-320,-320},{-323,-235,-288,-279,-338,-312},{-241,-318,-268,-268,-235,-244},{-347,-265,-259,-332,-303,-323},{-335,-259,-279,-276,-297,-306},{-241,-241,-247,-318,-241,-323},{-294,-306,-320,-306,-294,-309},{-247,-332,-244,-288,-350,-329},{-291,-297,-291,-247,-273,-350},{-253,-326,-291,-338,-329,-268},{-347,-326,-338,-320,-341,-332},{-244,-350,-312,-288,-335,-320},{-285,-323,-335,-270,-279,-332},{-288,-323,-285,-326,-282,-332},{-347,-332,-288,-335,-276,-268},{-303,-238,-291,-341,-312,-341},{-312,-332,-279,-244,-276,-353},{-282,-350,-288,-297,-353,-270},{-341,-300,-262,-270,-288,-279},{-320,-235,-344,-288,-320,-235},{-291,-276,-285,-300,-350,-265},{-338,-315,-253,-238,-297,-312},{-247,-335,-279,-247,-326,-335},{-303,-294,-279,-297,-235,-262},{-315,-347,-326,-344,-262,-238},{-332,-341,-235,-332,-344,-353},{-294,-315,-262,-268,-247,-303},{-312,-341,-335,-268,-332,-323},{-253,-341,-247,-294,-347,-279},{-350,-291,-265,-241,-291,-306},{-320,-347,-315,-332,-288,-270},{-265,-247,-247,-241,-262,-344},{-268,-259,-265,-256,-323,-329},{-294,-265,-318,-309,-318,-238},{-315,-332,-332,-312,-268,-350},{-253,-250,-291,-326,-253,-297},{-288,-344,-273,-338,-350,-297},{-294,-294,-315,-320,-262,-326}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1841,192,221,150,198,208,315,198,294}; // initial inventory 
int ubiv[I]={2104,384,442,300,396,416,630,396,588}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.32,8.46,5.6,4.24,2.89,1.51,4.53,7.74}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.11,7.69,5.09,3.85,2.63,1.37,4.12,7.04}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,6.15,6.15,6.15,5.38,5.38,5.38,4.61,4.61,4.61,4.07,4.07,4.07,3.56,3.56,3.56,3.05,3.05,3.05,3.08,3.08,3.08,2.7,2.7,2.7,2.31,2.31,2.31,2.1,2.1,2.1,1.84,1.84,1.84,1.58,1.58,1.58,1.1,1.1,1.1,0.96,0.96,0.96,0.82,0.82,0.82,3.3,3.3,3.3,2.88,2.88,2.88,2.47,2.47,2.47,5.63,5.63,5.63,4.93,4.93,4.93,4.22,4.22,4.22}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={7,3,3,7,4,2,7,3,2,8,4,3,7,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,5,3,8,4,3,9,4,3,8,5,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,7,4,3}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6},{7,8,9},{10,11,12},{13,14,15,16,17,18,19},{20,21,22,23},{24,25},{26,27,28,29,30,31,32},{33,34,35},{36,37},{38,39,40,41,42,43,44,45},{46,47,48,49},{50,51,52},{53,54,55,56,57,58,59},{60,61,62,63},{64,65,66},{67,68,69,70,71,72,73},{74,75,76,77},{78,79,80},{81,82,83,84,85,86,87},{88,89,90,91},{92,93,94},{95,96,97,98,99,100,101,102},{103,104,105,106},{107,108,109},{110,111,112,113,114,115,116,117},{118,119,120,121},{122,123,124},{125,126,127,128,129,130,131},{132,133,134,135},{136,137,138},{139,140,141,142,143,144,145,146},{147,148,149,150},{151,152,153},{154,155,156,157,158,159,160,161},{162,163,164,165},{166,167,168},{169,170,171,172,173,174,175,176},{177,178,179,180},{181,182,183},{184,185,186,187,188,189,190,191,192},{193,194,195,196,197},{198,199,200},{201,202,203,204,205,206,207,208},{209,210,211,212},{213,214,215},{216,217,218,219,220,221,222,223,224},{225,226,227,228},{229,230,231},{232,233,234,235,236,237,238,239},{240,241,242,243,244},{245,246,247},{248,249,250,251,252,253,254,255},{256,257,258,259},{260,261,262},{263,264,265,266,267,268,269,270},{271,272,273,274},{275,276,277},{278,279,280,281,282,283,284,285},{286,287,288,289},{290,291,292},{293,294,295,296,297,298,299,300},{301,302,303,304},{305,306,307},{308,309,310,311,312,313,314,315},{316,317,318,319},{320,321,322},{323,324,325,326,327,328,329,330},{331,332,333,334},{335,336,337},{338,339,340,341,342,343,344},{345,346,347,348},{349,350,351}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,2,6,10,0,6,12,0,2,4,6,8,10,12,0,4,8,12,1,7,0,2,4,6,8,10,12,1,5,9,2,8,0,2,4,6,8,10,12,14,2,6,10,14,1,7,13,1,3,5,7,9,11,13,1,5,9,13,0,6,12,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,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,0,4,8,12,1,7,13,0,2,4,6,8,10,12,14,0,4,8,12,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,16,0,4,8,12,16,1,7,13,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,0,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,1,7,13,1,3,5,7,9,11,13,15,1,5,9,13,2,8,14,0,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,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,0,2,4,6,8,10,12,14,1,5,9,13,1,7,13,1,3,5,7,9,11,13,0,4,8,12,0,6,12}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,7,11,15,5,11,17,5,7,9,11,13,15,17,5,9,13,17,6,12,5,7,9,11,13,15,17,6,10,14,7,13,3,5,7,9,11,13,15,17,5,9,13,17,4,10,16,4,6,8,10,12,14,16,4,8,12,16,3,9,15,5,7,9,11,13,15,17,5,9,13,17,3,9,15,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,2,4,6,8,10,12,14,16,4,8,12,16,3,9,15,4,6,8,10,12,14,16,2,6,10,14,3,9,15,2,4,6,8,10,12,14,16,2,6,10,14,4,10,16,3,5,7,9,11,13,15,17,2,6,10,14,4,10,16,2,4,6,8,10,12,14,16,3,7,11,15,1,7,13,1,3,5,7,9,11,13,15,17,1,5,9,13,17,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,1,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,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,2,4,6,8,10,12,14,16,3,7,11,15,2,8,14,2,4,6,8,10,12,14,16,4,8,12,16,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,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,4,8,12,16,4,10,16,4,6,8,10,12,14,16,3,7,11,15,3,9,15}; // set of end times of each shipment 
