int Dev = 20;// Deviation
extern const int CNN = 2;// Case Index
extern const int P = 3;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 18;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 344;//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]={{{{11007,0,0,0,0,0},{10930,0,0,0,0,0},{11113,0,0,0,0,0},{11221,0,0,0,0,0},{10976,0,0,0,0,0},{11097,0,0,0,0,0},{11149,0,0,0,0,0},{11286,0,0,0,0,0},{11235,0,0,0,0,0},{10840,0,0,0,0,0},{11205,0,0,0,0,0},{11116,0,0,0,0,0},{10974,0,0,0,0,0},{11338,0,0,0,0,0},{11148,0,0,0,0,0},{11112,0,0,0,0,0},{11145,0,0,0,0,0},{11442,0,0,0,0,0},{11253,0,0,0,0,0},{11089,0,0,0,0,0},{11067,0,0,0,0,0},{11230,0,0,0,0,0},{10948,0,0,0,0,0},{11075,0,0,0,0,0},{11021,0,0,0,0,0},{10916,0,0,0,0,0},{11119,0,0,0,0,0},{11043,0,0,0,0,0},{10973,0,0,0,0,0},{10982,0,0,0,0,0},{10706,0,0,0,0,0},{11130,0,0,0,0,0},{11400,0,0,0,0,0},{11165,0,0,0,0,0},{11056,0,0,0,0,0},{11081,0,0,0,0,0},{11255,0,0,0,0,0},{10853,0,0,0,0,0},{11055,0,0,0,0,0},{11004,0,0,0,0,0},{11001,0,0,0,0,0},{10858,0,0,0,0,0},{11095,0,0,0,0,0},{11135,0,0,0,0,0},{11194,0,0,0,0,0},{10894,0,0,0,0,0},{11013,0,0,0,0,0},{10974,0,0,0,0,0},{11088,0,0,0,0,0},{11174,0,0,0,0,0}},{{10862,0,0,0,0,0},{11140,0,0,0,0,0},{10987,0,0,0,0,0},{11221,0,0,0,0,0},{11055,0,0,0,0,0},{11065,0,0,0,0,0},{10858,0,0,0,0,0},{10911,0,0,0,0,0},{10841,0,0,0,0,0},{11154,0,0,0,0,0},{11184,0,0,0,0,0},{10895,0,0,0,0,0},{10867,0,0,0,0,0},{11251,0,0,0,0,0},{11062,0,0,0,0,0},{11145,0,0,0,0,0},{11019,0,0,0,0,0},{10609,0,0,0,0,0},{11087,0,0,0,0,0},{11112,0,0,0,0,0},{10995,0,0,0,0,0},{10968,0,0,0,0,0},{11358,0,0,0,0,0},{10996,0,0,0,0,0},{11263,0,0,0,0,0},{11067,0,0,0,0,0},{10791,0,0,0,0,0},{11323,0,0,0,0,0},{10796,0,0,0,0,0},{11065,0,0,0,0,0},{11150,0,0,0,0,0},{11378,0,0,0,0,0},{11174,0,0,0,0,0},{11288,0,0,0,0,0},{11147,0,0,0,0,0},{11431,0,0,0,0,0},{10924,0,0,0,0,0},{11241,0,0,0,0,0},{10903,0,0,0,0,0},{11452,0,0,0,0,0},{11277,0,0,0,0,0},{11096,0,0,0,0,0},{10891,0,0,0,0,0},{11182,0,0,0,0,0},{10950,0,0,0,0,0},{11379,0,0,0,0,0},{10907,0,0,0,0,0},{10924,0,0,0,0,0},{11039,0,0,0,0,0},{11067,0,0,0,0,0}},{{10876,0,0,0,0,0},{10909,0,0,0,0,0},{10866,0,0,0,0,0},{11215,0,0,0,0,0},{10877,0,0,0,0,0},{10698,0,0,0,0,0},{11222,0,0,0,0,0},{10982,0,0,0,0,0},{11071,0,0,0,0,0},{10701,0,0,0,0,0},{11286,0,0,0,0,0},{11329,0,0,0,0,0},{10974,0,0,0,0,0},{11199,0,0,0,0,0},{10992,0,0,0,0,0},{11274,0,0,0,0,0},{11047,0,0,0,0,0},{10844,0,0,0,0,0},{11026,0,0,0,0,0},{11095,0,0,0,0,0},{11157,0,0,0,0,0},{11139,0,0,0,0,0},{11038,0,0,0,0,0},{11026,0,0,0,0,0},{11117,0,0,0,0,0},{11120,0,0,0,0,0},{11007,0,0,0,0,0},{10741,0,0,0,0,0},{10787,0,0,0,0,0},{11021,0,0,0,0,0},{10957,0,0,0,0,0},{10826,0,0,0,0,0},{11105,0,0,0,0,0},{11008,0,0,0,0,0},{10937,0,0,0,0,0},{10960,0,0,0,0,0},{10924,0,0,0,0,0},{11213,0,0,0,0,0},{11191,0,0,0,0,0},{11382,0,0,0,0,0},{10927,0,0,0,0,0},{11016,0,0,0,0,0},{11100,0,0,0,0,0},{11240,0,0,0,0,0},{11227,0,0,0,0,0},{11103,0,0,0,0,0},{10950,0,0,0,0,0},{11252,0,0,0,0,0},{11002,0,0,0,0,0},{10975,0,0,0,0,0}}},{{{-220,-197,-235,-246,-220,-215},{-258,-202,-220,-242,-197,-186},{-199,-190,-231,-231,-190,-231},{-208,-190,-188,-199,-240,-262},{-184,-188,-188,-267,-269,-249},{-269,-237,-215,-233,-242,-181},{-267,-202,-240,-208,-208,-184},{-235,-193,-235,-235,-267,-199},{-235,-253,-215,-195,-226,-240},{-190,-184,-208,-231,-264,-258},{-228,-184,-199,-253,-202,-181},{-251,-222,-226,-255,-249,-260},{-262,-184,-208,-206,-202,-226},{-217,-240,-228,-237,-202,-179},{-231,-240,-260,-242,-262,-184},{-246,-246,-260,-204,-242,-253},{-184,-262,-179,-197,-260,-253},{-255,-242,-226,-235,-251,-235},{-215,-246,-213,-262,-249,-240},{-195,-235,-269,-267,-217,-202},{-217,-249,-211,-235,-246,-255},{-233,-224,-188,-269,-217,-228},{-242,-188,-213,-220,-206,-220},{-242,-190,-228,-264,-228,-206},{-195,-242,-195,-224,-195,-226},{-269,-269,-215,-226,-269,-188},{-228,-267,-244,-204,-255,-249},{-199,-184,-199,-262,-246,-258},{-240,-235,-264,-197,-251,-251},{-222,-202,-262,-208,-202,-208},{-267,-199,-242,-206,-204,-231},{-211,-235,-193,-267,-211,-253},{-206,-184,-267,-204,-195,-181},{-195,-253,-208,-240,-233,-244},{-215,-228,-235,-228,-251,-181},{-226,-215,-242,-202,-258,-249},{-204,-253,-215,-211,-253,-215},{-184,-190,-199,-199,-264,-222},{-242,-255,-264,-184,-242,-244},{-222,-267,-179,-195,-260,-237},{-269,-244,-222,-258,-188,-244},{-262,-246,-235,-226,-199,-237},{-204,-260,-213,-226,-251,-264},{-211,-244,-260,-249,-202,-202},{-231,-264,-246,-186,-206,-193},{-242,-258,-244,-224,-231,-190},{-206,-249,-206,-242,-197,-233},{-260,-226,-224,-233,-240,-213},{-255,-260,-237,-220,-195,-255},{-199,-253,-269,-237,-255,-193}},{{-246,-217,-267,-269,-179,-237},{-208,-181,-260,-251,-208,-264},{-264,-181,-208,-249,-253,-244},{-215,-220,-197,-228,-222,-240},{-244,-255,-269,-228,-215,-222},{-251,-204,-228,-217,-253,-204},{-197,-199,-244,-204,-267,-251},{-186,-220,-253,-186,-181,-224},{-188,-188,-233,-197,-213,-181},{-235,-193,-215,-242,-226,-215},{-251,-213,-264,-204,-190,-202},{-262,-228,-202,-197,-181,-190},{-202,-228,-233,-199,-255,-190},{-215,-231,-202,-179,-262,-249},{-199,-251,-208,-228,-184,-244},{-208,-240,-202,-204,-233,-255},{-255,-249,-269,-186,-255,-251},{-184,-184,-181,-242,-217,-242},{-242,-233,-199,-262,-251,-226},{-237,-213,-246,-224,-228,-240},{-226,-208,-208,-195,-215,-260},{-240,-206,-220,-237,-267,-211},{-267,-249,-242,-249,-213,-222},{-224,-206,-251,-249,-206,-233},{-235,-251,-193,-226,-222,-204},{-262,-186,-249,-186,-258,-269},{-228,-242,-208,-240,-206,-190},{-242,-260,-262,-255,-217,-181},{-244,-242,-184,-244,-208,-228},{-220,-215,-228,-240,-211,-262},{-242,-255,-188,-215,-235,-202},{-206,-255,-206,-195,-206,-188},{-231,-224,-260,-255,-262,-251},{-260,-242,-244,-208,-211,-233},{-233,-246,-237,-255,-204,-231},{-267,-188,-233,-240,-267,-267},{-264,-240,-204,-233,-188,-251},{-213,-186,-224,-181,-228,-231},{-251,-258,-253,-226,-217,-197},{-184,-206,-240,-231,-269,-181},{-195,-197,-206,-262,-226,-237},{-217,-242,-260,-264,-184,-199},{-242,-220,-206,-186,-188,-260},{-228,-204,-251,-267,-188,-262},{-231,-253,-258,-179,-237,-199},{-251,-258,-244,-249,-240,-262},{-195,-222,-202,-253,-206,-262},{-208,-217,-251,-188,-195,-213},{-231,-184,-231,-184,-202,-253},{-186,-217,-244,-260,-188,-251}},{{-222,-181,-258,-235,-267,-264},{-228,-199,-237,-213,-184,-242},{-237,-197,-258,-197,-208,-206},{-213,-228,-179,-237,-249,-197},{-197,-181,-181,-188,-235,-244},{-181,-179,-251,-246,-215,-242},{-233,-195,-262,-240,-251,-211},{-202,-211,-220,-181,-199,-186},{-215,-199,-253,-208,-237,-251},{-249,-190,-190,-226,-206,-184},{-267,-264,-255,-206,-202,-269},{-179,-184,-267,-197,-211,-251},{-246,-235,-222,-186,-233,-242},{-195,-242,-253,-226,-267,-258},{-269,-195,-242,-190,-222,-255},{-233,-188,-199,-258,-235,-233},{-228,-269,-251,-181,-215,-202},{-181,-251,-242,-197,-258,-190},{-222,-217,-249,-228,-246,-246},{-186,-206,-184,-217,-213,-235},{-206,-235,-258,-249,-251,-258},{-233,-215,-199,-258,-222,-242},{-220,-269,-222,-237,-233,-269},{-215,-260,-195,-242,-188,-204},{-199,-251,-211,-255,-193,-226},{-179,-231,-244,-269,-206,-208},{-181,-264,-211,-251,-224,-249},{-202,-253,-199,-188,-224,-237},{-211,-188,-204,-253,-202,-226},{-226,-208,-253,-231,-184,-208},{-251,-217,-258,-258,-224,-242},{-253,-258,-231,-240,-195,-186},{-217,-217,-199,-211,-251,-213},{-188,-240,-199,-206,-264,-179},{-208,-190,-237,-222,-260,-213},{-246,-204,-235,-186,-269,-267},{-226,-197,-215,-213,-224,-231},{-237,-220,-244,-220,-258,-240},{-220,-237,-242,-188,-231,-233},{-267,-224,-195,-193,-262,-220},{-195,-260,-213,-208,-197,-226},{-184,-251,-204,-240,-264,-264},{-222,-211,-262,-186,-197,-244},{-208,-260,-208,-188,-260,-224},{-199,-267,-226,-197,-215,-202},{-255,-215,-224,-220,-228,-206},{-213,-184,-226,-222,-260,-181},{-246,-233,-244,-184,-220,-204},{-222,-193,-199,-222,-220,-253},{-208,-181,-206,-246,-188,-188}}},{{{-198,-278,-252,-245,-190,-205},{-219,-240,-278,-252,-267,-202},{-274,-219,-278,-195,-240,-269},{-236,-217,-252,-257,-283,-245},{-214,-257,-224,-205,-281,-262},{-205,-205,-255,-250,-274,-283},{-209,-240,-217,-281,-259,-264},{-286,-255,-250,-219,-252,-278},{-214,-226,-224,-255,-228,-217},{-209,-243,-202,-255,-252,-224},{-264,-228,-286,-283,-255,-238},{-198,-226,-276,-276,-221,-205},{-267,-269,-264,-200,-219,-269},{-217,-252,-269,-252,-228,-207},{-219,-228,-202,-286,-250,-209},{-202,-212,-252,-209,-250,-245},{-217,-276,-281,-245,-224,-190},{-274,-228,-236,-281,-224,-226},{-198,-262,-231,-248,-205,-240},{-221,-240,-281,-281,-264,-271},{-221,-276,-238,-248,-200,-286},{-271,-238,-259,-286,-245,-224},{-238,-207,-212,-217,-224,-214},{-274,-209,-248,-228,-264,-226},{-212,-207,-271,-214,-224,-238},{-202,-286,-198,-255,-274,-240},{-224,-286,-219,-252,-224,-274},{-217,-224,-259,-259,-243,-228},{-195,-269,-271,-195,-283,-219},{-221,-276,-278,-271,-193,-233},{-212,-248,-274,-200,-259,-250},{-269,-205,-262,-228,-286,-283},{-257,-240,-255,-274,-198,-224},{-281,-190,-252,-262,-202,-278},{-243,-240,-259,-214,-262,-252},{-207,-267,-202,-250,-286,-240},{-221,-195,-276,-193,-269,-283},{-238,-217,-240,-224,-257,-250},{-226,-274,-286,-281,-278,-240},{-214,-238,-252,-231,-267,-198},{-195,-281,-228,-255,-212,-236},{-269,-214,-212,-212,-250,-200},{-255,-264,-195,-209,-228,-221},{-221,-278,-217,-271,-228,-200},{-248,-236,-274,-271,-224,-257},{-286,-207,-224,-226,-193,-238},{-240,-231,-255,-267,-212,-226},{-190,-226,-224,-271,-228,-252},{-202,-190,-252,-248,-231,-286},{-219,-226,-262,-224,-281,-195}},{{-231,-205,-252,-233,-250,-224},{-255,-278,-224,-212,-226,-214},{-207,-209,-267,-219,-231,-219},{-267,-209,-236,-269,-262,-262},{-267,-214,-281,-217,-248,-205},{-238,-226,-195,-243,-255,-231},{-193,-195,-267,-195,-231,-245},{-202,-269,-224,-205,-202,-238},{-236,-276,-236,-238,-243,-250},{-255,-207,-283,-257,-217,-245},{-219,-286,-248,-257,-219,-228},{-274,-209,-190,-243,-212,-231},{-271,-248,-207,-209,-190,-209},{-278,-209,-271,-200,-193,-195},{-257,-252,-238,-221,-219,-283},{-190,-238,-202,-207,-207,-286},{-278,-276,-212,-248,-200,-238},{-278,-278,-259,-212,-233,-281},{-207,-205,-250,-255,-233,-228},{-212,-219,-198,-274,-281,-200},{-245,-278,-212,-217,-248,-209},{-231,-209,-219,-271,-255,-236},{-224,-240,-281,-269,-221,-231},{-281,-202,-243,-195,-202,-228},{-212,-259,-245,-207,-264,-267},{-228,-195,-190,-240,-248,-212},{-198,-231,-224,-221,-236,-262},{-217,-190,-212,-200,-271,-281},{-240,-238,-238,-250,-219,-257},{-214,-214,-228,-200,-240,-267},{-264,-262,-217,-269,-250,-255},{-207,-264,-267,-217,-240,-259},{-245,-217,-202,-245,-221,-245},{-217,-228,-221,-271,-259,-240},{-202,-209,-200,-281,-255,-264},{-238,-262,-269,-278,-259,-264},{-245,-190,-236,-278,-205,-219},{-278,-262,-274,-259,-259,-245},{-214,-217,-226,-283,-248,-193},{-205,-276,-283,-269,-269,-281},{-264,-252,-240,-276,-250,-250},{-243,-252,-236,-217,-281,-259},{-212,-200,-231,-267,-238,-269},{-190,-264,-255,-233,-276,-245},{-214,-267,-269,-226,-205,-231},{-233,-219,-257,-224,-286,-250},{-202,-193,-221,-190,-202,-250},{-233,-212,-209,-207,-231,-198},{-257,-193,-221,-233,-264,-276},{-224,-236,-267,-283,-286,-255}},{{-202,-209,-209,-283,-205,-190},{-271,-219,-250,-205,-217,-209},{-269,-226,-228,-240,-269,-190},{-243,-224,-281,-236,-243,-200},{-226,-217,-278,-209,-276,-193},{-245,-214,-243,-209,-233,-262},{-217,-221,-283,-271,-271,-245},{-252,-226,-269,-236,-193,-271},{-240,-286,-240,-252,-207,-283},{-217,-276,-236,-248,-238,-195},{-193,-252,-274,-236,-233,-238},{-276,-262,-217,-276,-214,-274},{-236,-214,-214,-264,-209,-214},{-283,-250,-271,-252,-190,-212},{-238,-221,-238,-190,-243,-214},{-217,-228,-238,-250,-240,-205},{-212,-248,-243,-221,-255,-217},{-202,-283,-219,-209,-274,-205},{-236,-269,-264,-224,-281,-231},{-233,-252,-207,-238,-262,-219},{-224,-224,-283,-243,-198,-245},{-231,-207,-248,-193,-198,-267},{-257,-200,-200,-269,-202,-236},{-259,-276,-231,-231,-259,-205},{-259,-286,-195,-228,-252,-200},{-238,-278,-207,-248,-243,-190},{-207,-228,-262,-231,-267,-231},{-190,-200,-276,-245,-193,-259},{-212,-195,-221,-226,-274,-259},{-281,-250,-250,-193,-195,-274},{-205,-202,-224,-195,-214,-259},{-202,-259,-231,-231,-228,-195},{-267,-276,-240,-278,-228,-283},{-283,-269,-278,-245,-224,-190},{-236,-224,-217,-257,-221,-271},{-245,-214,-252,-190,-233,-278},{-243,-264,-212,-209,-228,-264},{-283,-214,-195,-245,-224,-243},{-262,-262,-226,-190,-195,-286},{-238,-267,-238,-226,-190,-250},{-262,-278,-221,-286,-243,-202},{-262,-267,-217,-252,-198,-205},{-224,-221,-233,-200,-209,-250},{-200,-276,-219,-214,-240,-248},{-231,-286,-207,-243,-240,-269},{-214,-193,-245,-236,-228,-271},{-271,-245,-212,-209,-224,-238},{-283,-248,-255,-267,-245,-259},{-276,-212,-236,-252,-269,-259},{-269,-259,-238,-212,-271,-264}}},{{{-218,-232,-232,-281,-319,-317},{-246,-276,-243,-317,-314,-278},{-317,-259,-300,-243,-227,-268},{-289,-284,-308,-268,-325,-328},{-325,-306,-273,-325,-227,-259},{-243,-232,-235,-254,-308,-270},{-284,-311,-248,-308,-240,-314},{-278,-224,-311,-257,-259,-270},{-289,-303,-325,-325,-240,-259},{-227,-311,-328,-235,-243,-227},{-232,-328,-284,-325,-306,-238},{-284,-251,-278,-232,-311,-306},{-311,-262,-325,-221,-221,-259},{-295,-295,-273,-298,-251,-300},{-238,-235,-322,-232,-308,-281},{-270,-262,-311,-317,-298,-306},{-243,-328,-273,-289,-325,-262},{-308,-314,-268,-268,-262,-259},{-287,-240,-268,-295,-317,-308},{-308,-311,-248,-292,-240,-284},{-227,-262,-306,-314,-240,-240},{-259,-270,-257,-278,-311,-319},{-232,-232,-322,-243,-311,-308},{-319,-292,-317,-268,-227,-308},{-314,-262,-281,-224,-311,-232},{-314,-235,-254,-322,-273,-235},{-311,-254,-218,-273,-229,-325},{-259,-251,-328,-328,-306,-262},{-295,-238,-287,-235,-248,-300},{-265,-259,-238,-235,-238,-300},{-227,-238,-240,-251,-319,-289},{-325,-240,-238,-257,-227,-276},{-317,-303,-232,-218,-308,-325},{-240,-221,-257,-314,-265,-254},{-328,-248,-308,-276,-311,-218},{-328,-287,-281,-229,-232,-311},{-289,-328,-328,-295,-235,-259},{-229,-262,-268,-268,-295,-251},{-218,-308,-243,-270,-235,-262},{-265,-303,-322,-276,-238,-238},{-251,-328,-295,-224,-308,-281},{-227,-232,-262,-265,-317,-259},{-221,-278,-281,-328,-224,-270},{-308,-281,-273,-303,-246,-278},{-289,-243,-276,-270,-268,-311},{-218,-289,-235,-257,-218,-227},{-287,-314,-328,-284,-287,-251},{-227,-251,-328,-325,-227,-224},{-246,-224,-265,-308,-270,-319},{-246,-292,-248,-238,-319,-295}},{{-238,-229,-235,-322,-235,-254},{-287,-314,-262,-232,-276,-284},{-303,-262,-262,-317,-276,-268},{-243,-298,-308,-306,-251,-325},{-232,-322,-224,-278,-303,-276},{-325,-240,-257,-295,-322,-229},{-295,-325,-289,-218,-295,-298},{-262,-289,-270,-254,-319,-268},{-218,-257,-314,-243,-289,-254},{-240,-328,-278,-284,-322,-235},{-306,-224,-257,-319,-259,-325},{-218,-319,-243,-240,-314,-311},{-284,-221,-289,-251,-218,-303},{-289,-240,-289,-298,-322,-224},{-273,-308,-248,-273,-292,-276},{-319,-325,-229,-292,-300,-328},{-229,-265,-238,-270,-268,-224},{-218,-229,-246,-314,-227,-229},{-306,-273,-259,-246,-276,-284},{-235,-248,-278,-300,-273,-308},{-319,-308,-262,-229,-298,-265},{-322,-262,-259,-218,-229,-218},{-311,-281,-243,-322,-273,-281},{-259,-273,-257,-298,-268,-238},{-246,-306,-243,-308,-319,-298},{-224,-325,-224,-295,-317,-240},{-218,-317,-289,-224,-278,-259},{-303,-292,-328,-306,-262,-319},{-232,-268,-262,-298,-238,-311},{-243,-295,-259,-268,-276,-306},{-325,-276,-218,-303,-218,-218},{-289,-306,-317,-224,-295,-278},{-227,-270,-235,-289,-292,-278},{-287,-251,-232,-232,-232,-248},{-289,-229,-273,-328,-311,-218},{-284,-265,-322,-240,-287,-232},{-281,-246,-314,-298,-221,-273},{-311,-289,-322,-243,-218,-295},{-218,-232,-300,-251,-284,-270},{-246,-229,-317,-254,-229,-251},{-284,-259,-218,-265,-306,-270},{-246,-268,-273,-221,-238,-278},{-218,-308,-265,-232,-246,-317},{-292,-328,-240,-319,-319,-243},{-325,-227,-311,-322,-322,-278},{-262,-229,-270,-281,-298,-224},{-238,-227,-240,-265,-295,-276},{-325,-319,-311,-251,-278,-224},{-257,-317,-325,-259,-295,-292},{-319,-281,-276,-251,-238,-295}},{{-232,-298,-281,-276,-311,-308},{-300,-227,-273,-281,-259,-322},{-300,-284,-295,-287,-306,-289},{-221,-300,-300,-276,-287,-322},{-268,-325,-218,-218,-314,-221},{-259,-262,-259,-268,-221,-270},{-292,-224,-317,-300,-292,-278},{-325,-306,-273,-292,-268,-232},{-325,-262,-243,-268,-232,-314},{-306,-287,-268,-257,-273,-259},{-325,-325,-278,-300,-322,-300},{-289,-246,-254,-325,-300,-251},{-311,-278,-308,-317,-243,-328},{-270,-298,-248,-300,-319,-268},{-308,-257,-251,-246,-246,-259},{-317,-281,-328,-270,-259,-322},{-289,-328,-248,-232,-308,-248},{-303,-319,-273,-240,-278,-308},{-281,-314,-259,-268,-270,-314},{-308,-273,-281,-311,-232,-322},{-218,-289,-292,-254,-303,-232},{-268,-276,-278,-240,-229,-270},{-295,-287,-218,-246,-259,-262},{-243,-257,-276,-227,-311,-292},{-238,-232,-221,-308,-246,-314},{-317,-292,-322,-278,-278,-218},{-235,-229,-278,-328,-257,-281},{-289,-218,-289,-289,-325,-298},{-270,-251,-328,-284,-243,-289},{-284,-295,-232,-278,-224,-308},{-311,-235,-317,-227,-325,-325},{-314,-257,-259,-224,-306,-254},{-221,-257,-319,-243,-243,-240},{-229,-289,-257,-259,-218,-308},{-248,-306,-259,-246,-265,-240},{-259,-227,-284,-289,-243,-270},{-218,-259,-240,-292,-221,-308},{-311,-235,-322,-289,-306,-257},{-295,-251,-281,-289,-284,-221},{-257,-295,-314,-325,-328,-238},{-224,-281,-265,-298,-248,-221},{-314,-240,-287,-284,-270,-317},{-276,-317,-319,-303,-281,-270},{-270,-262,-306,-287,-317,-292},{-229,-295,-268,-325,-229,-322},{-298,-243,-265,-284,-322,-235},{-311,-259,-328,-218,-248,-281},{-224,-246,-295,-317,-276,-265},{-306,-248,-322,-295,-221,-259},{-311,-257,-240,-300,-238,-328}}},{{{-154,-156,-154,-168,-129,-139},{-154,-136,-149,-163,-162,-140},{-168,-166,-174,-171,-156,-137},{-182,-143,-168,-183,-145,-183},{-177,-126,-159,-171,-177,-128},{-174,-126,-172,-172,-129,-165},{-145,-125,-174,-154,-142,-123},{-162,-136,-132,-157,-126,-156},{-131,-152,-183,-145,-139,-134},{-179,-140,-131,-152,-159,-166},{-160,-137,-172,-179,-125,-139},{-123,-132,-125,-182,-152,-165},{-142,-129,-156,-151,-172,-123},{-160,-146,-171,-148,-128,-176},{-137,-159,-140,-165,-172,-168},{-125,-132,-154,-125,-142,-145},{-146,-123,-165,-163,-143,-132},{-172,-165,-168,-131,-131,-143},{-128,-136,-140,-176,-179,-136},{-174,-185,-148,-139,-162,-168},{-137,-143,-174,-128,-172,-171},{-165,-162,-148,-128,-162,-146},{-149,-165,-176,-154,-156,-136},{-142,-134,-171,-140,-172,-177},{-162,-149,-148,-180,-134,-157},{-145,-123,-160,-136,-145,-177},{-137,-166,-149,-145,-179,-159},{-156,-129,-174,-126,-172,-146},{-145,-154,-143,-176,-137,-160},{-145,-126,-172,-162,-180,-169},{-162,-168,-179,-134,-176,-162},{-140,-157,-157,-182,-169,-137},{-182,-168,-163,-172,-168,-168},{-179,-169,-132,-179,-172,-129},{-151,-128,-140,-142,-171,-125},{-163,-165,-171,-132,-180,-125},{-148,-140,-154,-160,-177,-177},{-169,-160,-152,-183,-145,-156},{-151,-172,-123,-169,-140,-140},{-172,-142,-160,-163,-137,-169},{-180,-137,-145,-172,-159,-171},{-136,-160,-145,-176,-148,-151},{-134,-169,-148,-169,-152,-162},{-162,-134,-142,-132,-157,-168},{-126,-177,-137,-182,-185,-169},{-174,-183,-168,-168,-165,-183},{-142,-151,-163,-182,-157,-163},{-125,-123,-163,-180,-176,-134},{-151,-146,-159,-159,-152,-136},{-152,-169,-182,-160,-183,-182}},{{-168,-146,-125,-134,-154,-134},{-139,-129,-180,-180,-176,-152},{-160,-148,-126,-143,-182,-172},{-128,-148,-149,-151,-163,-146},{-174,-139,-159,-165,-185,-149},{-163,-149,-160,-143,-136,-134},{-151,-132,-168,-162,-180,-163},{-174,-165,-134,-152,-163,-125},{-143,-146,-126,-123,-157,-145},{-142,-172,-134,-179,-177,-137},{-162,-174,-131,-179,-169,-171},{-145,-156,-159,-182,-172,-156},{-139,-172,-123,-157,-163,-172},{-185,-151,-129,-168,-128,-157},{-148,-162,-151,-136,-139,-126},{-131,-180,-163,-139,-165,-151},{-154,-185,-136,-132,-157,-156},{-148,-139,-136,-142,-172,-156},{-169,-129,-134,-137,-174,-149},{-126,-180,-151,-160,-171,-128},{-159,-159,-157,-125,-160,-131},{-171,-166,-149,-183,-129,-157},{-183,-165,-185,-136,-183,-157},{-136,-169,-134,-168,-180,-156},{-157,-123,-172,-162,-132,-157},{-132,-134,-152,-125,-171,-166},{-143,-140,-140,-185,-142,-123},{-157,-140,-128,-137,-148,-156},{-183,-180,-131,-129,-146,-169},{-145,-160,-143,-165,-183,-163},{-125,-154,-182,-137,-143,-163},{-148,-163,-142,-174,-163,-168},{-180,-169,-132,-163,-154,-151},{-183,-177,-160,-142,-152,-139},{-132,-172,-139,-160,-132,-183},{-165,-160,-162,-176,-176,-183},{-179,-136,-123,-128,-160,-145},{-179,-165,-152,-172,-128,-159},{-163,-156,-137,-128,-128,-169},{-163,-142,-179,-185,-149,-156},{-177,-163,-129,-177,-160,-182},{-180,-149,-157,-151,-166,-172},{-177,-152,-139,-148,-169,-169},{-152,-169,-159,-131,-151,-151},{-128,-131,-123,-125,-134,-128},{-151,-156,-137,-182,-154,-146},{-134,-131,-174,-160,-146,-180},{-172,-169,-171,-151,-182,-149},{-172,-140,-134,-169,-180,-156},{-177,-151,-139,-183,-125,-134}},{{-183,-163,-148,-123,-163,-126},{-156,-166,-142,-166,-145,-125},{-171,-159,-137,-176,-165,-136},{-154,-149,-139,-174,-160,-179},{-171,-140,-160,-159,-125,-126},{-145,-128,-163,-162,-131,-174},{-169,-182,-177,-157,-165,-156},{-179,-125,-183,-136,-172,-166},{-134,-171,-185,-123,-160,-137},{-162,-163,-169,-142,-156,-156},{-179,-126,-139,-159,-136,-132},{-185,-134,-166,-139,-136,-156},{-129,-177,-140,-159,-151,-146},{-166,-171,-145,-142,-183,-180},{-128,-149,-159,-179,-151,-126},{-182,-148,-154,-136,-137,-162},{-148,-148,-145,-171,-171,-132},{-123,-149,-179,-159,-169,-148},{-172,-148,-137,-157,-126,-123},{-172,-168,-182,-145,-148,-151},{-165,-177,-142,-145,-139,-139},{-140,-183,-169,-169,-171,-136},{-148,-183,-132,-149,-162,-180},{-177,-143,-136,-154,-171,-163},{-171,-125,-156,-166,-185,-129},{-156,-131,-180,-169,-123,-177},{-134,-182,-137,-177,-136,-146},{-172,-134,-172,-142,-157,-125},{-139,-125,-177,-142,-137,-177},{-172,-129,-152,-172,-152,-142},{-126,-143,-148,-145,-145,-151},{-169,-137,-180,-129,-152,-154},{-140,-137,-149,-185,-146,-185},{-136,-160,-166,-154,-145,-137},{-137,-134,-137,-151,-183,-145},{-166,-137,-152,-146,-162,-157},{-143,-136,-165,-168,-177,-185},{-140,-180,-136,-169,-160,-145},{-145,-166,-132,-145,-129,-136},{-171,-185,-134,-176,-182,-126},{-169,-132,-126,-163,-179,-169},{-162,-128,-156,-182,-160,-139},{-185,-134,-169,-123,-160,-182},{-177,-123,-166,-146,-126,-154},{-182,-140,-171,-171,-123,-165},{-168,-156,-137,-152,-169,-149},{-183,-176,-136,-162,-152,-148},{-123,-131,-166,-136,-143,-160},{-125,-177,-176,-125,-180,-160},{-172,-139,-152,-154,-142,-128}}},{{{-146,-206,-184,-177,-209,-215},{-157,-195,-158,-146,-187,-187},{-164,-178,-213,-167,-164,-217},{-213,-157,-149,-153,-204,-195},{-207,-198,-157,-207,-162,-175},{-215,-160,-200,-211,-149,-171},{-209,-153,-160,-149,-147,-186},{-151,-195,-191,-153,-202,-164},{-175,-151,-175,-158,-166,-213},{-175,-177,-204,-184,-182,-215},{-186,-173,-213,-191,-155,-193},{-155,-202,-211,-184,-202,-153},{-157,-207,-160,-146,-195,-189},{-146,-191,-180,-158,-164,-209},{-164,-189,-218,-193,-160,-211},{-187,-147,-211,-193,-191,-193},{-202,-164,-164,-197,-184,-158},{-155,-151,-169,-189,-162,-189},{-167,-184,-213,-217,-164,-178},{-186,-149,-193,-193,-186,-155},{-169,-213,-149,-209,-209,-151},{-153,-186,-167,-217,-206,-180},{-184,-149,-146,-202,-217,-151},{-211,-167,-195,-162,-206,-147},{-180,-180,-184,-211,-207,-167},{-147,-158,-147,-169,-157,-162},{-160,-218,-146,-198,-173,-175},{-218,-166,-182,-164,-162,-155},{-191,-211,-153,-195,-166,-158},{-211,-182,-182,-166,-215,-184},{-191,-160,-180,-147,-169,-186},{-169,-175,-173,-178,-207,-182},{-193,-173,-211,-217,-149,-202},{-207,-147,-184,-177,-213,-171},{-197,-200,-158,-209,-160,-180},{-193,-162,-155,-173,-189,-215},{-202,-202,-218,-209,-158,-187},{-175,-180,-147,-146,-182,-178},{-146,-215,-166,-167,-169,-187},{-209,-215,-198,-207,-164,-211},{-195,-164,-171,-191,-184,-191},{-151,-171,-173,-218,-162,-202},{-207,-197,-155,-182,-191,-213},{-160,-191,-180,-213,-191,-167},{-166,-164,-217,-157,-193,-186},{-171,-204,-155,-151,-217,-215},{-149,-191,-182,-158,-149,-198},{-162,-175,-211,-153,-158,-184},{-169,-218,-198,-162,-184,-197},{-169,-151,-158,-213,-175,-178}},{{-180,-202,-180,-193,-195,-169},{-178,-177,-209,-215,-195,-204},{-211,-193,-186,-189,-195,-166},{-202,-178,-207,-173,-149,-184},{-191,-171,-200,-180,-182,-202},{-166,-217,-182,-193,-162,-146},{-167,-149,-215,-149,-157,-202},{-195,-160,-217,-193,-184,-218},{-217,-206,-151,-177,-191,-209},{-206,-198,-175,-166,-215,-215},{-186,-189,-153,-204,-147,-180},{-213,-177,-147,-157,-209,-204},{-149,-160,-202,-151,-209,-153},{-162,-195,-171,-187,-209,-197},{-197,-218,-184,-204,-193,-189},{-153,-202,-191,-155,-180,-158},{-189,-151,-204,-200,-215,-186},{-149,-209,-151,-198,-173,-191},{-211,-147,-151,-197,-180,-213},{-173,-206,-178,-160,-207,-180},{-184,-157,-153,-211,-160,-193},{-200,-200,-147,-184,-186,-215},{-193,-167,-166,-164,-175,-193},{-209,-198,-213,-167,-164,-153},{-184,-211,-195,-151,-182,-215},{-217,-166,-217,-162,-178,-189},{-166,-160,-187,-157,-164,-195},{-209,-155,-164,-198,-215,-195},{-213,-162,-182,-149,-164,-173},{-167,-175,-162,-200,-218,-189},{-218,-218,-171,-197,-195,-191},{-209,-200,-158,-173,-189,-213},{-204,-182,-217,-211,-169,-155},{-198,-202,-166,-213,-182,-198},{-182,-177,-158,-155,-186,-217},{-151,-158,-218,-197,-169,-160},{-198,-198,-204,-175,-151,-193},{-153,-197,-166,-213,-202,-189},{-191,-147,-166,-166,-198,-202},{-184,-217,-155,-213,-215,-207},{-157,-213,-157,-191,-193,-193},{-173,-191,-167,-157,-171,-204},{-195,-206,-198,-218,-175,-164},{-182,-195,-167,-218,-186,-147},{-177,-209,-182,-177,-218,-207},{-198,-198,-209,-218,-200,-167},{-164,-153,-160,-167,-158,-167},{-146,-211,-197,-162,-197,-218},{-160,-151,-184,-213,-149,-177},{-198,-215,-180,-195,-177,-167}},{{-153,-198,-149,-171,-184,-193},{-153,-169,-158,-218,-180,-217},{-187,-204,-171,-146,-171,-157},{-191,-160,-218,-209,-202,-209},{-182,-182,-215,-193,-209,-197},{-147,-147,-151,-182,-202,-153},{-178,-166,-200,-177,-151,-151},{-180,-218,-149,-173,-189,-186},{-215,-167,-180,-197,-180,-213},{-149,-184,-167,-191,-204,-147},{-187,-146,-202,-197,-169,-169},{-195,-173,-197,-193,-184,-171},{-155,-202,-217,-171,-164,-147},{-146,-166,-164,-193,-158,-193},{-153,-146,-211,-166,-149,-197},{-202,-217,-187,-218,-160,-177},{-187,-162,-160,-209,-180,-166},{-207,-164,-153,-213,-200,-146},{-146,-202,-171,-175,-182,-204},{-218,-211,-209,-146,-218,-147},{-160,-197,-217,-169,-158,-162},{-186,-200,-187,-173,-164,-149},{-173,-193,-167,-213,-164,-171},{-209,-158,-158,-189,-215,-215},{-157,-180,-173,-147,-213,-200},{-193,-149,-157,-217,-146,-158},{-180,-160,-187,-209,-202,-211},{-166,-193,-202,-187,-198,-177},{-164,-184,-153,-193,-180,-200},{-157,-173,-182,-198,-160,-211},{-146,-177,-189,-184,-209,-191},{-146,-202,-211,-213,-151,-186},{-211,-200,-171,-175,-202,-184},{-191,-209,-204,-184,-166,-146},{-182,-180,-178,-187,-189,-187},{-211,-153,-218,-200,-171,-151},{-218,-153,-198,-166,-197,-197},{-155,-182,-155,-171,-198,-147},{-195,-215,-218,-180,-160,-198},{-207,-215,-200,-153,-200,-151},{-206,-213,-146,-215,-146,-204},{-147,-177,-153,-153,-166,-182},{-169,-189,-160,-193,-200,-178},{-204,-209,-177,-209,-191,-147},{-146,-211,-166,-180,-202,-217},{-155,-204,-186,-209,-177,-213},{-215,-167,-191,-186,-171,-164},{-187,-213,-147,-213,-215,-191},{-180,-207,-146,-193,-149,-162},{-160,-197,-186,-202,-218,-164}}},{{{-267,-196,-255,-294,-211,-289},{-247,-252,-277,-211,-243,-213},{-198,-255,-270,-220,-206,-282},{-277,-213,-265,-292,-255,-292},{-225,-223,-270,-287,-201,-282},{-284,-238,-220,-257,-220,-289},{-223,-289,-220,-220,-279,-292},{-240,-277,-279,-238,-282,-220},{-262,-203,-294,-270,-233,-279},{-216,-201,-265,-274,-220,-250},{-198,-292,-208,-225,-265,-294},{-203,-206,-203,-272,-223,-265},{-289,-233,-208,-208,-277,-196},{-287,-274,-284,-267,-206,-292},{-220,-294,-208,-250,-218,-247},{-238,-223,-216,-292,-203,-206},{-203,-272,-270,-245,-196,-294},{-228,-284,-213,-245,-274,-292},{-220,-265,-270,-238,-252,-228},{-213,-220,-198,-213,-196,-267},{-294,-216,-250,-292,-230,-277},{-255,-203,-289,-225,-228,-287},{-265,-294,-238,-255,-262,-262},{-265,-279,-243,-213,-223,-267},{-220,-240,-211,-240,-216,-203},{-252,-274,-257,-289,-201,-223},{-252,-198,-270,-201,-272,-252},{-243,-238,-267,-198,-203,-211},{-267,-206,-208,-267,-220,-274},{-274,-211,-245,-255,-274,-201},{-201,-260,-243,-230,-211,-245},{-230,-252,-211,-233,-250,-287},{-243,-282,-282,-289,-216,-284},{-216,-223,-282,-211,-274,-206},{-218,-282,-250,-238,-287,-235},{-265,-238,-198,-282,-282,-196},{-247,-265,-198,-270,-282,-218},{-208,-274,-213,-255,-270,-198},{-240,-240,-235,-213,-216,-196},{-272,-270,-235,-233,-240,-220},{-255,-238,-243,-243,-201,-196},{-216,-284,-208,-277,-250,-233},{-211,-265,-238,-223,-294,-282},{-198,-294,-225,-274,-277,-235},{-213,-282,-289,-262,-213,-247},{-233,-218,-250,-282,-289,-216},{-260,-233,-196,-225,-257,-255},{-292,-220,-230,-233,-233,-282},{-238,-218,-277,-201,-272,-262},{-208,-284,-238,-233,-284,-235}},{{-292,-255,-203,-250,-247,-208},{-270,-279,-230,-225,-225,-277},{-257,-228,-250,-247,-223,-247},{-292,-201,-270,-257,-211,-240},{-257,-238,-211,-252,-245,-270},{-257,-235,-292,-247,-203,-238},{-218,-250,-198,-294,-277,-208},{-223,-208,-272,-225,-265,-206},{-260,-235,-223,-282,-250,-262},{-267,-289,-243,-238,-208,-267},{-196,-257,-211,-252,-250,-289},{-225,-235,-277,-235,-233,-284},{-279,-201,-201,-228,-289,-279},{-270,-216,-235,-203,-282,-294},{-220,-277,-279,-240,-240,-240},{-250,-250,-250,-213,-257,-267},{-262,-245,-250,-289,-284,-255},{-250,-252,-206,-270,-243,-198},{-228,-225,-211,-213,-292,-216},{-247,-255,-255,-220,-220,-206},{-287,-255,-250,-267,-196,-252},{-208,-272,-211,-279,-294,-260},{-225,-292,-267,-211,-240,-196},{-208,-274,-292,-257,-225,-265},{-289,-243,-274,-245,-208,-292},{-294,-235,-223,-247,-255,-252},{-206,-206,-250,-245,-225,-218},{-270,-252,-213,-201,-233,-257},{-218,-247,-245,-287,-292,-216},{-198,-292,-243,-245,-257,-230},{-252,-245,-223,-238,-196,-198},{-225,-279,-250,-292,-289,-260},{-292,-257,-211,-216,-208,-233},{-292,-284,-279,-277,-267,-235},{-213,-228,-235,-218,-284,-196},{-257,-265,-282,-289,-228,-255},{-240,-250,-230,-216,-198,-196},{-265,-213,-277,-292,-220,-206},{-277,-201,-218,-218,-223,-220},{-289,-225,-265,-279,-220,-206},{-255,-257,-201,-292,-223,-257},{-255,-250,-250,-255,-201,-247},{-284,-203,-223,-279,-247,-211},{-284,-238,-238,-225,-260,-233},{-245,-250,-284,-213,-220,-220},{-257,-272,-218,-243,-240,-206},{-284,-220,-282,-284,-287,-274},{-240,-196,-272,-287,-245,-220},{-287,-230,-240,-223,-245,-250},{-265,-257,-243,-220,-238,-203}},{{-213,-218,-270,-230,-255,-208},{-201,-257,-208,-277,-225,-220},{-228,-245,-208,-196,-196,-260},{-252,-257,-218,-292,-277,-247},{-284,-267,-220,-223,-270,-270},{-255,-262,-277,-262,-196,-225},{-198,-255,-230,-208,-238,-294},{-262,-198,-235,-270,-240,-245},{-230,-235,-243,-243,-245,-277},{-245,-213,-274,-272,-203,-218},{-277,-262,-282,-252,-228,-289},{-294,-267,-279,-250,-220,-255},{-216,-216,-270,-265,-243,-225},{-270,-208,-211,-228,-287,-208},{-284,-233,-252,-250,-196,-203},{-250,-245,-260,-279,-274,-284},{-277,-287,-274,-245,-250,-213},{-218,-216,-216,-250,-201,-213},{-274,-272,-233,-240,-255,-213},{-265,-250,-206,-218,-225,-243},{-225,-213,-206,-272,-265,-277},{-284,-289,-235,-292,-274,-213},{-235,-196,-270,-294,-294,-252},{-238,-196,-198,-272,-196,-272},{-225,-274,-257,-201,-252,-270},{-213,-255,-267,-274,-250,-277},{-250,-208,-267,-223,-213,-208},{-196,-252,-294,-255,-206,-225},{-213,-233,-240,-282,-260,-252},{-233,-255,-238,-250,-292,-279},{-196,-282,-208,-203,-218,-260},{-270,-289,-216,-243,-235,-235},{-294,-198,-294,-206,-289,-277},{-272,-292,-240,-216,-260,-274},{-240,-289,-289,-262,-243,-243},{-206,-287,-282,-203,-289,-216},{-228,-230,-287,-216,-274,-252},{-250,-267,-235,-265,-243,-262},{-265,-287,-282,-287,-198,-233},{-233,-240,-213,-292,-294,-252},{-272,-284,-223,-203,-206,-270},{-289,-240,-277,-240,-203,-208},{-247,-247,-216,-206,-238,-223},{-247,-243,-208,-277,-282,-277},{-203,-257,-265,-294,-284,-289},{-230,-279,-233,-218,-201,-279},{-238,-238,-279,-230,-216,-243},{-287,-265,-223,-240,-257,-223},{-289,-247,-245,-235,-198,-240},{-245,-238,-243,-267,-257,-277}}},{{{-243,-277,-206,-208,-256,-259},{-259,-233,-222,-194,-194,-196},{-210,-226,-243,-268,-259,-240},{-224,-270,-217,-189,-185,-215},{-203,-219,-254,-213,-185,-236},{-189,-215,-199,-268,-213,-236},{-275,-254,-268,-203,-240,-192},{-256,-213,-203,-206,-192,-270},{-277,-275,-224,-266,-236,-219},{-259,-201,-185,-192,-273,-208},{-245,-256,-194,-249,-254,-224},{-270,-275,-268,-185,-240,-252},{-270,-273,-256,-247,-266,-252},{-263,-226,-254,-206,-275,-247},{-270,-233,-252,-201,-238,-243},{-231,-252,-224,-240,-249,-277},{-270,-201,-275,-222,-277,-259},{-256,-185,-263,-222,-277,-243},{-247,-194,-201,-261,-266,-192},{-236,-249,-226,-217,-187,-215},{-263,-263,-247,-206,-187,-226},{-266,-254,-206,-185,-254,-219},{-240,-206,-217,-196,-268,-273},{-219,-194,-215,-213,-203,-254},{-185,-194,-256,-217,-256,-266},{-238,-273,-192,-194,-196,-215},{-245,-206,-226,-277,-240,-213},{-187,-275,-275,-201,-277,-261},{-208,-277,-210,-194,-189,-233},{-245,-263,-189,-275,-189,-201},{-252,-199,-185,-187,-238,-189},{-203,-249,-270,-254,-263,-219},{-233,-203,-245,-243,-270,-224},{-249,-249,-222,-224,-270,-245},{-247,-210,-194,-185,-273,-192},{-203,-213,-192,-189,-226,-243},{-203,-231,-185,-219,-233,-206},{-240,-213,-247,-224,-185,-273},{-231,-245,-268,-273,-226,-254},{-203,-199,-254,-247,-240,-222},{-201,-199,-192,-249,-240,-229},{-210,-245,-199,-219,-210,-270},{-268,-194,-192,-277,-226,-236},{-236,-187,-222,-210,-259,-226},{-277,-245,-247,-226,-222,-185},{-254,-208,-215,-187,-256,-208},{-189,-236,-231,-270,-261,-243},{-210,-273,-187,-231,-254,-231},{-245,-263,-208,-196,-210,-245},{-277,-243,-224,-219,-213,-215}},{{-236,-226,-192,-226,-219,-208},{-210,-189,-213,-240,-199,-240},{-270,-236,-238,-201,-206,-266},{-222,-194,-273,-217,-254,-192},{-261,-217,-270,-208,-196,-252},{-236,-263,-245,-224,-247,-275},{-206,-252,-185,-189,-229,-263},{-192,-261,-233,-199,-261,-233},{-224,-245,-236,-185,-238,-187},{-233,-247,-203,-245,-185,-263},{-277,-201,-199,-268,-210,-215},{-249,-196,-270,-247,-229,-210},{-226,-266,-240,-217,-270,-203},{-252,-256,-224,-273,-201,-259},{-185,-233,-233,-224,-208,-233},{-226,-187,-245,-259,-189,-245},{-215,-192,-243,-199,-206,-245},{-196,-236,-189,-277,-210,-208},{-213,-268,-240,-215,-226,-277},{-273,-243,-224,-185,-203,-210},{-192,-268,-201,-263,-266,-201},{-233,-273,-215,-203,-217,-201},{-273,-249,-206,-273,-240,-192},{-273,-254,-231,-217,-277,-185},{-277,-266,-213,-263,-224,-256},{-277,-208,-249,-273,-243,-252},{-238,-245,-210,-273,-259,-247},{-252,-273,-243,-219,-243,-224},{-187,-185,-206,-229,-219,-213},{-201,-238,-266,-238,-240,-261},{-192,-256,-229,-275,-243,-233},{-263,-192,-199,-259,-240,-226},{-238,-273,-229,-194,-196,-185},{-236,-261,-210,-249,-261,-187},{-243,-194,-277,-277,-254,-259},{-261,-217,-219,-185,-259,-219},{-229,-243,-243,-238,-243,-217},{-249,-236,-275,-233,-185,-208},{-229,-259,-273,-222,-247,-240},{-238,-277,-263,-201,-247,-233},{-213,-240,-189,-192,-249,-240},{-275,-196,-243,-240,-247,-208},{-194,-261,-213,-185,-249,-192},{-206,-254,-240,-203,-189,-238},{-210,-187,-208,-254,-247,-222},{-252,-275,-270,-185,-231,-275},{-259,-203,-254,-256,-259,-263},{-266,-185,-213,-273,-270,-236},{-215,-215,-217,-233,-231,-189},{-275,-201,-238,-215,-277,-240}},{{-222,-222,-263,-273,-196,-263},{-196,-243,-215,-224,-229,-263},{-231,-233,-199,-236,-196,-199},{-273,-231,-208,-217,-224,-210},{-245,-217,-243,-226,-259,-261},{-213,-203,-240,-263,-273,-229},{-199,-268,-245,-224,-270,-238},{-199,-261,-254,-187,-247,-229},{-196,-185,-215,-273,-187,-196},{-206,-196,-219,-215,-247,-213},{-217,-185,-266,-256,-194,-187},{-194,-245,-263,-208,-277,-226},{-252,-254,-213,-275,-259,-229},{-270,-196,-263,-263,-219,-238},{-261,-222,-268,-222,-277,-226},{-189,-210,-206,-270,-259,-256},{-233,-187,-206,-259,-275,-275},{-277,-203,-229,-194,-249,-238},{-256,-199,-243,-201,-185,-217},{-226,-187,-189,-217,-194,-252},{-236,-256,-236,-275,-263,-222},{-187,-240,-189,-261,-238,-275},{-194,-210,-233,-226,-189,-268},{-252,-231,-268,-201,-213,-192},{-261,-261,-268,-199,-247,-263},{-233,-213,-231,-194,-263,-187},{-206,-187,-208,-238,-254,-270},{-231,-233,-199,-203,-201,-185},{-229,-210,-203,-236,-229,-238},{-213,-187,-203,-196,-194,-245},{-252,-203,-240,-208,-259,-245},{-192,-189,-236,-194,-268,-231},{-192,-268,-240,-275,-259,-238},{-203,-238,-243,-224,-201,-199},{-217,-224,-210,-247,-219,-201},{-215,-259,-226,-210,-226,-199},{-238,-226,-233,-236,-226,-185},{-268,-263,-219,-268,-266,-229},{-226,-261,-224,-243,-240,-249},{-249,-215,-206,-201,-275,-231},{-213,-233,-189,-263,-240,-222},{-259,-206,-210,-215,-185,-270},{-261,-275,-229,-268,-215,-268},{-185,-203,-268,-263,-222,-252},{-263,-229,-236,-226,-259,-226},{-199,-256,-210,-201,-217,-219},{-192,-273,-187,-203,-273,-238},{-231,-245,-275,-206,-219,-261},{-210,-270,-245,-263,-217,-213},{-236,-208,-236,-194,-201,-231}}},{{{-347,-253,-265,-259,-279,-306},{-335,-297,-309,-262,-306,-309},{-265,-291,-294,-329,-315,-306},{-323,-238,-262,-268,-235,-347},{-247,-235,-291,-335,-273,-250},{-268,-291,-335,-335,-285,-320},{-353,-297,-247,-300,-326,-320},{-347,-323,-341,-318,-341,-312},{-268,-312,-285,-353,-320,-268},{-256,-250,-353,-288,-309,-285},{-238,-276,-315,-276,-312,-347},{-335,-300,-268,-291,-294,-253},{-259,-312,-238,-273,-315,-300},{-309,-335,-323,-238,-288,-347},{-291,-306,-276,-320,-253,-323},{-250,-273,-326,-282,-259,-341},{-294,-238,-256,-347,-244,-353},{-341,-329,-344,-282,-341,-306},{-350,-256,-312,-335,-318,-306},{-303,-259,-341,-288,-332,-265},{-253,-332,-238,-247,-259,-291},{-241,-341,-323,-303,-285,-270},{-318,-273,-300,-250,-309,-288},{-323,-341,-306,-247,-235,-273},{-344,-344,-338,-315,-344,-306},{-297,-326,-268,-265,-262,-344},{-318,-353,-235,-297,-270,-253},{-244,-309,-265,-291,-318,-318},{-332,-315,-318,-270,-238,-285},{-282,-235,-315,-279,-335,-309},{-238,-259,-256,-291,-332,-320},{-312,-291,-312,-259,-273,-270},{-294,-291,-350,-312,-238,-347},{-335,-312,-320,-282,-338,-259},{-341,-270,-341,-250,-241,-344},{-288,-291,-303,-323,-341,-273},{-318,-309,-344,-250,-335,-288},{-350,-303,-250,-335,-347,-238},{-318,-344,-268,-297,-238,-256},{-279,-247,-235,-253,-315,-291},{-300,-247,-306,-315,-312,-256},{-297,-309,-262,-238,-338,-276},{-306,-235,-256,-312,-341,-268},{-291,-329,-306,-303,-268,-326},{-297,-326,-270,-332,-256,-253},{-338,-259,-312,-244,-288,-276},{-270,-259,-335,-270,-276,-247},{-256,-353,-285,-338,-244,-309},{-332,-268,-285,-318,-318,-238},{-326,-347,-241,-291,-332,-241}},{{-338,-306,-353,-285,-265,-250},{-294,-338,-303,-247,-294,-297},{-265,-270,-238,-247,-282,-306},{-312,-344,-300,-297,-268,-341},{-253,-270,-291,-285,-247,-235},{-253,-259,-347,-312,-318,-250},{-323,-270,-238,-235,-323,-297},{-270,-320,-315,-285,-270,-341},{-288,-244,-291,-332,-341,-273},{-265,-241,-253,-309,-285,-320},{-285,-309,-291,-344,-323,-291},{-312,-244,-247,-262,-329,-270},{-291,-268,-323,-285,-291,-353},{-288,-323,-341,-353,-326,-270},{-282,-282,-303,-347,-238,-297},{-353,-350,-279,-268,-312,-312},{-309,-238,-323,-238,-294,-256},{-297,-262,-297,-265,-288,-247},{-335,-297,-318,-282,-323,-282},{-338,-341,-282,-315,-335,-326},{-315,-244,-326,-276,-297,-288},{-300,-247,-303,-335,-250,-270},{-341,-332,-259,-253,-329,-294},{-294,-273,-303,-291,-270,-247},{-241,-323,-253,-256,-285,-309},{-250,-238,-309,-326,-238,-341},{-244,-353,-306,-285,-332,-276},{-285,-347,-288,-291,-323,-309},{-259,-241,-291,-270,-353,-256},{-338,-250,-329,-268,-259,-256},{-235,-338,-347,-253,-350,-341},{-241,-353,-259,-353,-335,-344},{-265,-335,-335,-315,-338,-318},{-270,-323,-326,-318,-297,-288},{-282,-332,-247,-300,-335,-315},{-320,-235,-288,-315,-332,-268},{-329,-323,-268,-306,-326,-253},{-315,-247,-318,-318,-318,-273},{-326,-270,-288,-276,-309,-318},{-347,-353,-265,-259,-350,-350},{-353,-338,-341,-297,-344,-247},{-323,-315,-332,-273,-291,-279},{-265,-294,-282,-297,-250,-347},{-268,-300,-335,-268,-241,-350},{-297,-320,-262,-259,-303,-256},{-350,-300,-320,-291,-241,-300},{-335,-262,-291,-247,-344,-270},{-238,-244,-326,-318,-244,-256},{-329,-303,-323,-291,-315,-244},{-256,-256,-300,-235,-288,-262}},{{-253,-247,-244,-306,-323,-285},{-306,-294,-285,-300,-282,-353},{-250,-347,-335,-241,-318,-282},{-238,-315,-256,-303,-297,-320},{-259,-256,-235,-344,-268,-282},{-256,-285,-268,-282,-262,-303},{-273,-300,-268,-244,-288,-350},{-247,-338,-323,-235,-282,-332},{-320,-253,-285,-329,-329,-253},{-350,-241,-309,-250,-238,-297},{-279,-270,-300,-291,-259,-312},{-347,-279,-341,-300,-276,-306},{-244,-270,-279,-262,-297,-247},{-235,-297,-347,-297,-262,-291},{-303,-350,-268,-341,-335,-303},{-297,-244,-320,-265,-338,-247},{-329,-270,-323,-270,-235,-265},{-297,-256,-268,-265,-315,-297},{-303,-256,-279,-323,-262,-253},{-344,-309,-350,-300,-279,-347},{-244,-347,-285,-306,-303,-294},{-303,-338,-253,-294,-344,-329},{-253,-265,-332,-294,-270,-347},{-303,-294,-306,-276,-315,-344},{-309,-323,-315,-323,-288,-265},{-297,-335,-326,-309,-262,-332},{-312,-262,-273,-297,-353,-303},{-253,-276,-300,-253,-318,-262},{-288,-335,-247,-238,-250,-297},{-268,-353,-344,-285,-318,-294},{-276,-253,-303,-282,-288,-338},{-235,-235,-350,-332,-282,-241},{-253,-238,-235,-341,-270,-250},{-341,-303,-297,-273,-291,-318},{-353,-297,-244,-276,-235,-338},{-268,-270,-265,-353,-268,-303},{-285,-235,-309,-250,-347,-300},{-262,-303,-256,-309,-238,-329},{-353,-235,-241,-329,-344,-282},{-294,-338,-329,-329,-276,-288},{-235,-350,-320,-276,-294,-238},{-309,-309,-318,-270,-315,-268},{-338,-297,-270,-270,-262,-303},{-282,-353,-276,-291,-350,-253},{-315,-244,-288,-270,-320,-235},{-332,-332,-320,-282,-294,-344},{-297,-268,-318,-285,-300,-291},{-329,-235,-270,-353,-244,-353},{-282,-320,-323,-238,-241,-282},{-253,-347,-318,-268,-256,-282}}}}; // 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,2,6,3,2,7,3,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3,7,4,3,8,4,3,7,4,3,8,4,3,8,5,3,8,4,3,8,4,3,8,4,3,9,4,3,8,4,3,8,4,3,7,4,3,7,4,3,7,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}}; // set of shipments in each bid 
int SHsts[SPN]={0,2,4,6,8,10,12,2,6,10,2,8,1,3,5,7,9,11,1,5,9,1,7,0,2,4,6,8,10,12,1,5,9,0,6,12,0,2,4,6,8,10,12,14,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,0,4,8,12,0,6,12,1,3,5,7,9,11,13,2,6,10,14,2,8,14,2,4,6,8,10,12,14,0,4,8,12,0,6,12,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,1,5,9,13,1,7,13,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,0,6,12,2,4,6,8,10,12,14,16,0,4,8,12,16,1,7,13,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,2,4,6,8,10,12,14,16,1,5,9,13,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,1,7,13,2,4,6,8,10,12,14,2,6,10,14,2,8,14,2,4,6,8,10,12,14,0,4,8,12,0,6,12,1,3,5,7,9,11,13,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,1,3,5,7,9,11,13,1,5,9,13,0,6,12}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,7,11,15,7,13,6,8,10,12,14,16,6,10,14,6,12,5,7,9,11,13,15,17,6,10,14,5,11,17,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,4,6,8,10,12,14,16,5,9,13,17,5,11,17,4,6,8,10,12,14,16,2,6,10,14,2,8,14,4,6,8,10,12,14,16,2,6,10,14,4,10,16,4,6,8,10,12,14,16,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,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,2,8,14,3,5,7,9,11,13,15,17,1,5,9,13,17,2,8,14,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,2,4,6,8,10,12,14,16,3,7,11,15,3,9,15,1,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,1,7,13,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,4,6,8,10,12,14,16,4,8,12,16,4,10,16,4,6,8,10,12,14,16,2,6,10,14,2,8,14,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,4,6,8,10,12,14,16,4,8,12,16,3,9,15}; // set of end times of each shipment 
