int Dev = 10;// 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 = 347;//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]={{{{11066,0,0,0,0,0},{11030,0,0,0,0,0},{11110,0,0,0,0,0},{10998,0,0,0,0,0},{11115,0,0,0,0,0},{11031,0,0,0,0,0},{11098,0,0,0,0,0},{10973,0,0,0,0,0},{11094,0,0,0,0,0},{11028,0,0,0,0,0},{11078,0,0,0,0,0},{11137,0,0,0,0,0},{11011,0,0,0,0,0},{10957,0,0,0,0,0},{11058,0,0,0,0,0},{11039,0,0,0,0,0},{11085,0,0,0,0,0},{10939,0,0,0,0,0},{11187,0,0,0,0,0},{11098,0,0,0,0,0},{11127,0,0,0,0,0},{11018,0,0,0,0,0},{11025,0,0,0,0,0},{11112,0,0,0,0,0},{11190,0,0,0,0,0},{10891,0,0,0,0,0},{11261,0,0,0,0,0},{11070,0,0,0,0,0},{11101,0,0,0,0,0},{11028,0,0,0,0,0},{10963,0,0,0,0,0},{11179,0,0,0,0,0},{10952,0,0,0,0,0},{11200,0,0,0,0,0},{11108,0,0,0,0,0},{11115,0,0,0,0,0},{10985,0,0,0,0,0},{10939,0,0,0,0,0},{11026,0,0,0,0,0},{11004,0,0,0,0,0},{11031,0,0,0,0,0},{11036,0,0,0,0,0},{11072,0,0,0,0,0},{11039,0,0,0,0,0},{11125,0,0,0,0,0},{10952,0,0,0,0,0},{10987,0,0,0,0,0},{11118,0,0,0,0,0},{11237,0,0,0,0,0},{10843,0,0,0,0,0}},{{10922,0,0,0,0,0},{11076,0,0,0,0,0},{11121,0,0,0,0,0},{11252,0,0,0,0,0},{11079,0,0,0,0,0},{10972,0,0,0,0,0},{11066,0,0,0,0,0},{11010,0,0,0,0,0},{10910,0,0,0,0,0},{11178,0,0,0,0,0},{11070,0,0,0,0,0},{11071,0,0,0,0,0},{11138,0,0,0,0,0},{11016,0,0,0,0,0},{10855,0,0,0,0,0},{11105,0,0,0,0,0},{11284,0,0,0,0,0},{11094,0,0,0,0,0},{11169,0,0,0,0,0},{11002,0,0,0,0,0},{11046,0,0,0,0,0},{11076,0,0,0,0,0},{11038,0,0,0,0,0},{11208,0,0,0,0,0},{11059,0,0,0,0,0},{10940,0,0,0,0,0},{11107,0,0,0,0,0},{11134,0,0,0,0,0},{11102,0,0,0,0,0},{10930,0,0,0,0,0},{11273,0,0,0,0,0},{11051,0,0,0,0,0},{11182,0,0,0,0,0},{10938,0,0,0,0,0},{11105,0,0,0,0,0},{11169,0,0,0,0,0},{10984,0,0,0,0,0},{11165,0,0,0,0,0},{10963,0,0,0,0,0},{11201,0,0,0,0,0},{11056,0,0,0,0,0},{11069,0,0,0,0,0},{10945,0,0,0,0,0},{11004,0,0,0,0,0},{11041,0,0,0,0,0},{11025,0,0,0,0,0},{10933,0,0,0,0,0},{10962,0,0,0,0,0},{10838,0,0,0,0,0},{10891,0,0,0,0,0}},{{11007,0,0,0,0,0},{11173,0,0,0,0,0},{10987,0,0,0,0,0},{11046,0,0,0,0,0},{10995,0,0,0,0,0},{11082,0,0,0,0,0},{11349,0,0,0,0,0},{10995,0,0,0,0,0},{11220,0,0,0,0,0},{10900,0,0,0,0,0},{11139,0,0,0,0,0},{10994,0,0,0,0,0},{11142,0,0,0,0,0},{11136,0,0,0,0,0},{10976,0,0,0,0,0},{10946,0,0,0,0,0},{10977,0,0,0,0,0},{10992,0,0,0,0,0},{11144,0,0,0,0,0},{11042,0,0,0,0,0},{11078,0,0,0,0,0},{10967,0,0,0,0,0},{11042,0,0,0,0,0},{11111,0,0,0,0,0},{11010,0,0,0,0,0},{11054,0,0,0,0,0},{11154,0,0,0,0,0},{10833,0,0,0,0,0},{10926,0,0,0,0,0},{11077,0,0,0,0,0},{10983,0,0,0,0,0},{11002,0,0,0,0,0},{11084,0,0,0,0,0},{10956,0,0,0,0,0},{10970,0,0,0,0,0},{10986,0,0,0,0,0},{10987,0,0,0,0,0},{11180,0,0,0,0,0},{11067,0,0,0,0,0},{11073,0,0,0,0,0},{11034,0,0,0,0,0},{11037,0,0,0,0,0},{11053,0,0,0,0,0},{10962,0,0,0,0,0},{11110,0,0,0,0,0},{10906,0,0,0,0,0},{11057,0,0,0,0,0},{11170,0,0,0,0,0},{11167,0,0,0,0,0},{10948,0,0,0,0,0}}},{{{-220,-224,-244,-246,-215,-242},{-235,-235,-224,-228,-226,-222},{-233,-220,-211,-208,-224,-217},{-222,-206,-237,-228,-240,-237},{-217,-237,-202,-224,-217,-217},{-224,-228,-231,-235,-202,-213},{-220,-246,-224,-217,-237,-204},{-228,-213,-211,-204,-235,-206},{-244,-235,-231,-213,-202,-204},{-208,-242,-233,-242,-228,-242},{-222,-220,-202,-202,-226,-231},{-220,-237,-244,-215,-222,-217},{-240,-237,-204,-242,-204,-244},{-208,-244,-208,-242,-235,-208},{-240,-202,-231,-242,-244,-240},{-204,-237,-244,-204,-208,-224},{-220,-204,-217,-213,-244,-211},{-244,-233,-204,-228,-226,-224},{-211,-235,-202,-228,-244,-206},{-208,-206,-224,-217,-206,-233},{-213,-217,-204,-224,-213,-217},{-242,-215,-228,-220,-213,-224},{-206,-215,-224,-244,-246,-222},{-208,-206,-217,-204,-226,-226},{-220,-217,-226,-246,-240,-246},{-208,-215,-213,-235,-224,-211},{-208,-220,-237,-237,-215,-224},{-220,-224,-233,-244,-235,-206},{-235,-226,-222,-208,-233,-235},{-224,-220,-233,-244,-211,-202},{-237,-206,-211,-224,-244,-222},{-242,-228,-228,-233,-217,-217},{-208,-231,-211,-215,-228,-222},{-208,-206,-217,-217,-235,-217},{-222,-224,-235,-228,-211,-242},{-224,-204,-217,-222,-213,-240},{-240,-228,-204,-222,-220,-215},{-215,-244,-224,-228,-213,-231},{-246,-206,-235,-215,-202,-208},{-235,-237,-242,-208,-222,-226},{-224,-237,-242,-235,-222,-211},{-224,-222,-237,-202,-211,-228},{-215,-240,-244,-237,-240,-226},{-237,-204,-246,-233,-206,-206},{-246,-228,-208,-240,-215,-226},{-226,-235,-226,-211,-240,-220},{-233,-226,-228,-215,-246,-231},{-215,-204,-206,-224,-237,-235},{-215,-226,-233,-235,-246,-206},{-220,-202,-211,-217,-242,-206}},{{-204,-213,-208,-246,-220,-215},{-235,-208,-231,-217,-213,-237},{-224,-246,-228,-226,-240,-226},{-211,-224,-213,-228,-204,-246},{-215,-226,-206,-231,-211,-228},{-231,-213,-202,-228,-202,-220},{-213,-237,-224,-233,-242,-244},{-211,-231,-228,-222,-215,-242},{-226,-217,-233,-211,-235,-208},{-224,-208,-208,-231,-235,-228},{-220,-206,-213,-244,-226,-215},{-222,-228,-222,-235,-246,-235},{-222,-246,-242,-240,-220,-217},{-206,-217,-242,-231,-206,-217},{-222,-231,-228,-206,-235,-222},{-233,-224,-246,-237,-213,-204},{-220,-233,-237,-228,-204,-233},{-235,-240,-240,-240,-246,-202},{-235,-244,-235,-204,-233,-220},{-246,-206,-240,-208,-213,-211},{-211,-224,-226,-213,-202,-202},{-206,-215,-208,-202,-231,-217},{-222,-242,-206,-217,-233,-224},{-233,-208,-237,-244,-237,-220},{-206,-215,-235,-220,-220,-228},{-206,-226,-204,-202,-226,-240},{-206,-226,-222,-220,-244,-220},{-226,-208,-204,-244,-208,-215},{-202,-208,-233,-206,-226,-224},{-202,-222,-233,-220,-244,-215},{-213,-233,-215,-231,-244,-235},{-208,-240,-222,-242,-244,-217},{-202,-222,-226,-206,-235,-240},{-211,-240,-211,-206,-202,-242},{-240,-246,-206,-240,-222,-244},{-220,-220,-237,-226,-211,-235},{-220,-231,-211,-211,-204,-215},{-246,-220,-217,-220,-242,-208},{-211,-211,-233,-231,-235,-231},{-242,-244,-242,-208,-231,-211},{-202,-242,-231,-208,-235,-224},{-213,-226,-215,-228,-242,-226},{-233,-213,-211,-242,-233,-211},{-204,-235,-204,-228,-206,-231},{-208,-204,-208,-211,-242,-231},{-231,-213,-202,-231,-226,-224},{-242,-226,-202,-208,-242,-233},{-222,-242,-228,-211,-215,-233},{-224,-211,-204,-208,-206,-208},{-235,-226,-235,-226,-213,-204}},{{-206,-215,-208,-217,-204,-240},{-228,-204,-222,-215,-242,-211},{-213,-206,-217,-224,-224,-215},{-224,-211,-242,-217,-204,-208},{-204,-208,-208,-240,-202,-213},{-213,-204,-246,-202,-235,-242},{-240,-224,-228,-244,-224,-224},{-202,-213,-224,-211,-244,-217},{-226,-222,-235,-246,-208,-246},{-244,-242,-211,-208,-213,-240},{-240,-242,-220,-220,-244,-211},{-235,-244,-231,-204,-242,-237},{-242,-233,-231,-231,-213,-244},{-231,-231,-208,-246,-235,-204},{-231,-217,-240,-202,-204,-204},{-226,-211,-226,-240,-220,-220},{-213,-228,-231,-206,-206,-208},{-208,-228,-240,-244,-242,-242},{-222,-237,-242,-228,-237,-240},{-240,-237,-240,-240,-240,-226},{-228,-217,-240,-240,-220,-240},{-202,-215,-213,-226,-233,-222},{-242,-211,-233,-228,-206,-206},{-231,-246,-242,-208,-220,-217},{-208,-224,-242,-242,-213,-220},{-226,-224,-206,-206,-244,-233},{-208,-246,-237,-237,-231,-204},{-237,-204,-208,-233,-213,-204},{-235,-215,-213,-204,-217,-224},{-208,-208,-226,-233,-228,-222},{-226,-231,-226,-244,-208,-224},{-233,-206,-213,-224,-215,-224},{-204,-215,-242,-228,-217,-222},{-202,-213,-220,-233,-240,-211},{-204,-222,-217,-206,-233,-224},{-215,-242,-213,-213,-217,-244},{-231,-228,-235,-206,-222,-220},{-233,-233,-240,-244,-235,-235},{-202,-220,-217,-231,-237,-237},{-228,-244,-220,-246,-208,-222},{-235,-220,-231,-231,-226,-202},{-220,-246,-242,-231,-237,-206},{-220,-242,-217,-233,-244,-231},{-217,-246,-246,-242,-246,-215},{-211,-231,-242,-215,-244,-208},{-213,-204,-211,-206,-233,-246},{-202,-224,-246,-220,-233,-220},{-202,-222,-224,-220,-246,-208},{-244,-224,-211,-222,-240,-242},{-224,-222,-237,-228,-208,-206}}},{{{-228,-236,-259,-231,-250,-219},{-233,-214,-252,-248,-238,-224},{-245,-214,-262,-228,-250,-257},{-248,-255,-228,-226,-236,-226},{-243,-259,-238,-245,-228,-252},{-219,-240,-228,-226,-226,-238},{-252,-226,-248,-238,-228,-233},{-243,-226,-262,-238,-217,-240},{-224,-252,-250,-259,-262,-243},{-245,-255,-259,-248,-236,-231},{-240,-240,-250,-231,-257,-219},{-240,-245,-257,-231,-255,-243},{-231,-245,-243,-255,-259,-245},{-257,-233,-245,-233,-233,-245},{-236,-233,-252,-255,-243,-240},{-233,-221,-248,-259,-236,-214},{-257,-259,-257,-245,-262,-219},{-214,-226,-255,-259,-228,-228},{-231,-228,-238,-240,-214,-252},{-240,-243,-240,-221,-226,-252},{-214,-228,-236,-221,-245,-236},{-219,-248,-245,-257,-255,-248},{-252,-224,-221,-252,-248,-255},{-250,-245,-255,-255,-236,-231},{-245,-257,-252,-257,-219,-262},{-240,-228,-236,-221,-231,-226},{-224,-236,-243,-217,-214,-255},{-231,-248,-219,-219,-259,-259},{-240,-231,-257,-226,-245,-221},{-248,-228,-252,-245,-224,-233},{-233,-219,-250,-240,-259,-233},{-236,-231,-255,-245,-245,-257},{-240,-250,-257,-221,-238,-214},{-236,-236,-262,-262,-228,-248},{-214,-233,-214,-224,-255,-228},{-248,-231,-240,-252,-231,-219},{-236,-262,-248,-262,-245,-221},{-219,-250,-224,-236,-240,-236},{-262,-221,-245,-226,-217,-214},{-219,-257,-221,-226,-255,-214},{-252,-245,-245,-257,-240,-214},{-224,-248,-228,-257,-228,-231},{-214,-219,-217,-214,-259,-226},{-243,-231,-250,-252,-243,-248},{-228,-214,-257,-257,-243,-236},{-228,-250,-224,-257,-233,-236},{-219,-245,-255,-217,-243,-217},{-238,-248,-243,-243,-252,-240},{-224,-250,-250,-228,-248,-262},{-221,-262,-214,-250,-240,-262}},{{-238,-217,-248,-245,-243,-221},{-228,-257,-224,-259,-224,-255},{-217,-217,-245,-255,-228,-217},{-262,-228,-257,-217,-259,-262},{-248,-233,-233,-217,-238,-231},{-236,-259,-226,-240,-243,-231},{-217,-221,-233,-262,-231,-262},{-259,-224,-236,-217,-217,-252},{-238,-240,-231,-231,-233,-217},{-252,-236,-259,-228,-243,-224},{-257,-240,-231,-257,-224,-255},{-231,-224,-259,-262,-221,-238},{-219,-228,-252,-245,-238,-238},{-219,-221,-226,-245,-248,-252},{-255,-217,-228,-259,-238,-243},{-226,-238,-214,-224,-221,-252},{-255,-259,-252,-219,-262,-250},{-233,-252,-231,-248,-248,-231},{-219,-240,-243,-240,-257,-248},{-226,-231,-262,-240,-257,-217},{-257,-259,-255,-259,-217,-252},{-240,-236,-226,-259,-236,-226},{-226,-217,-231,-245,-259,-252},{-231,-243,-257,-248,-252,-217},{-236,-259,-217,-262,-243,-228},{-221,-262,-233,-231,-233,-228},{-252,-257,-259,-262,-255,-250},{-248,-257,-245,-238,-221,-233},{-259,-228,-233,-255,-255,-252},{-250,-224,-240,-214,-238,-214},{-257,-226,-228,-259,-238,-250},{-259,-252,-228,-259,-217,-248},{-262,-245,-255,-248,-240,-245},{-217,-240,-240,-243,-233,-221},{-226,-219,-228,-245,-221,-231},{-238,-255,-259,-214,-248,-252},{-224,-245,-257,-257,-259,-221},{-255,-226,-248,-231,-250,-262},{-231,-226,-257,-214,-257,-228},{-224,-243,-226,-236,-262,-250},{-219,-233,-240,-250,-221,-245},{-219,-259,-245,-226,-226,-233},{-243,-214,-259,-224,-228,-221},{-219,-228,-214,-221,-262,-231},{-233,-214,-240,-238,-259,-219},{-240,-219,-250,-250,-243,-219},{-217,-262,-255,-221,-243,-245},{-226,-252,-262,-259,-233,-252},{-255,-219,-219,-214,-243,-250},{-248,-252,-217,-252,-226,-219}},{{-262,-228,-252,-250,-255,-250},{-255,-228,-262,-226,-250,-221},{-250,-228,-255,-224,-250,-236},{-262,-217,-257,-257,-219,-252},{-224,-250,-217,-248,-219,-226},{-217,-262,-228,-245,-248,-224},{-255,-262,-228,-262,-245,-255},{-243,-252,-221,-240,-233,-255},{-259,-248,-224,-248,-217,-217},{-236,-217,-217,-257,-224,-238},{-233,-236,-233,-248,-245,-257},{-226,-245,-252,-250,-238,-257},{-245,-255,-214,-252,-245,-233},{-214,-252,-224,-238,-233,-217},{-214,-245,-243,-238,-255,-214},{-245,-255,-231,-219,-219,-221},{-245,-245,-240,-238,-224,-217},{-240,-221,-243,-233,-262,-217},{-262,-238,-252,-240,-226,-219},{-250,-221,-257,-221,-228,-219},{-250,-233,-238,-250,-219,-233},{-228,-248,-224,-255,-238,-219},{-259,-240,-214,-231,-219,-250},{-240,-248,-245,-259,-219,-257},{-245,-233,-243,-248,-238,-245},{-259,-224,-224,-219,-252,-226},{-228,-219,-255,-248,-231,-231},{-224,-226,-233,-252,-226,-214},{-245,-221,-245,-243,-219,-228},{-257,-219,-250,-259,-214,-262},{-236,-228,-224,-228,-252,-257},{-250,-257,-259,-231,-243,-233},{-221,-238,-226,-243,-252,-238},{-238,-257,-259,-228,-255,-226},{-221,-259,-248,-231,-238,-226},{-248,-226,-236,-217,-214,-257},{-214,-224,-257,-262,-243,-226},{-262,-259,-231,-259,-238,-243},{-255,-257,-262,-233,-240,-238},{-248,-262,-259,-238,-219,-262},{-233,-243,-217,-233,-255,-219},{-240,-248,-257,-228,-219,-214},{-219,-245,-255,-245,-224,-236},{-238,-236,-217,-224,-226,-259},{-219,-262,-221,-245,-226,-250},{-224,-240,-262,-221,-243,-219},{-224,-221,-240,-236,-226,-248},{-214,-245,-252,-262,-257,-262},{-240,-219,-228,-259,-259,-236},{-238,-255,-245,-240,-224,-252}}},{{{-248,-268,-289,-268,-289,-257},{-254,-298,-248,-276,-251,-295},{-287,-268,-251,-289,-248,-281},{-284,-251,-295,-268,-273,-278},{-284,-265,-292,-298,-246,-273},{-278,-298,-284,-295,-287,-259},{-246,-262,-270,-265,-251,-268},{-287,-265,-259,-265,-251,-273},{-262,-254,-289,-300,-270,-254},{-292,-257,-276,-265,-259,-248},{-246,-262,-298,-246,-292,-265},{-262,-284,-257,-273,-287,-254},{-265,-295,-284,-246,-265,-298},{-292,-287,-265,-248,-251,-278},{-276,-248,-298,-262,-281,-273},{-281,-298,-268,-257,-270,-254},{-284,-251,-295,-287,-259,-281},{-278,-268,-257,-300,-295,-268},{-265,-276,-268,-300,-265,-300},{-276,-295,-295,-295,-292,-284},{-248,-246,-273,-268,-276,-268},{-300,-251,-251,-276,-246,-265},{-281,-251,-292,-278,-254,-273},{-287,-287,-281,-300,-248,-287},{-300,-259,-251,-298,-251,-284},{-287,-292,-292,-289,-262,-248},{-295,-300,-298,-292,-273,-281},{-262,-254,-276,-262,-248,-265},{-248,-289,-262,-287,-289,-298},{-289,-262,-257,-273,-246,-276},{-287,-246,-292,-278,-281,-270},{-287,-246,-273,-298,-246,-259},{-281,-246,-284,-300,-248,-254},{-295,-298,-251,-292,-281,-289},{-278,-248,-295,-270,-281,-276},{-273,-262,-287,-284,-270,-284},{-265,-276,-248,-276,-300,-257},{-289,-273,-248,-281,-281,-278},{-281,-246,-248,-251,-254,-281},{-295,-248,-262,-257,-246,-254},{-289,-292,-262,-298,-298,-248},{-300,-273,-295,-259,-276,-281},{-295,-292,-292,-254,-259,-251},{-268,-265,-251,-270,-265,-268},{-298,-254,-246,-287,-284,-298},{-254,-268,-254,-281,-257,-270},{-262,-292,-289,-251,-254,-298},{-278,-276,-268,-248,-268,-300},{-254,-289,-295,-276,-273,-287},{-270,-273,-268,-276,-251,-262}},{{-251,-248,-276,-246,-289,-284},{-251,-300,-254,-298,-254,-273},{-270,-295,-289,-248,-284,-254},{-273,-265,-289,-292,-246,-259},{-248,-278,-298,-268,-248,-298},{-270,-259,-273,-248,-289,-251},{-295,-276,-246,-254,-257,-295},{-270,-259,-259,-262,-259,-248},{-278,-287,-281,-262,-287,-259},{-265,-254,-278,-289,-262,-292},{-298,-298,-248,-289,-273,-259},{-257,-270,-270,-259,-251,-262},{-254,-287,-262,-298,-268,-300},{-281,-292,-268,-278,-273,-292},{-268,-265,-246,-289,-289,-251},{-257,-298,-300,-257,-268,-276},{-251,-278,-276,-289,-298,-298},{-284,-251,-295,-278,-262,-262},{-295,-276,-248,-298,-281,-287},{-257,-268,-300,-251,-273,-281},{-289,-295,-295,-248,-268,-298},{-246,-278,-270,-292,-292,-273},{-259,-268,-298,-298,-259,-254},{-270,-298,-273,-295,-270,-295},{-298,-262,-257,-262,-298,-251},{-287,-292,-259,-265,-284,-254},{-289,-257,-273,-246,-262,-268},{-248,-278,-284,-273,-295,-298},{-262,-251,-254,-289,-289,-298},{-292,-281,-295,-257,-273,-248},{-300,-289,-289,-281,-281,-287},{-273,-281,-257,-292,-246,-257},{-295,-268,-276,-251,-289,-300},{-281,-254,-257,-289,-248,-300},{-262,-284,-284,-289,-300,-287},{-265,-257,-295,-292,-289,-287},{-265,-270,-273,-257,-276,-259},{-287,-270,-298,-273,-259,-289},{-248,-278,-257,-281,-284,-287},{-287,-265,-257,-270,-295,-276},{-300,-281,-298,-268,-259,-248},{-251,-289,-251,-248,-284,-248},{-298,-295,-254,-248,-289,-278},{-276,-276,-251,-281,-295,-262},{-284,-281,-281,-257,-289,-295},{-276,-289,-268,-268,-251,-268},{-287,-254,-259,-292,-273,-259},{-292,-300,-268,-292,-246,-278},{-278,-270,-262,-289,-276,-265},{-265,-270,-254,-281,-278,-265}},{{-298,-281,-259,-289,-268,-254},{-278,-284,-273,-300,-281,-278},{-300,-292,-268,-262,-281,-300},{-254,-259,-287,-276,-246,-251},{-284,-281,-248,-273,-281,-281},{-284,-273,-259,-273,-259,-287},{-278,-298,-295,-251,-298,-281},{-276,-273,-248,-270,-268,-281},{-254,-276,-298,-284,-295,-246},{-295,-270,-270,-254,-295,-292},{-278,-300,-292,-270,-251,-254},{-251,-265,-287,-257,-270,-278},{-248,-295,-284,-276,-281,-259},{-300,-287,-300,-298,-273,-284},{-262,-278,-262,-270,-273,-262},{-278,-270,-262,-298,-246,-248},{-265,-292,-257,-268,-289,-254},{-273,-284,-265,-259,-248,-254},{-298,-254,-289,-262,-295,-284},{-262,-254,-246,-254,-295,-262},{-298,-281,-295,-268,-276,-284},{-259,-254,-248,-276,-289,-292},{-259,-295,-281,-270,-265,-284},{-257,-284,-287,-270,-281,-268},{-281,-246,-251,-268,-262,-298},{-270,-295,-287,-268,-276,-300},{-254,-284,-257,-281,-278,-292},{-265,-281,-289,-270,-246,-254},{-257,-300,-295,-248,-251,-270},{-251,-289,-268,-276,-300,-246},{-278,-248,-298,-254,-259,-284},{-246,-278,-289,-284,-248,-276},{-295,-295,-257,-273,-281,-287},{-270,-257,-300,-262,-287,-273},{-251,-300,-265,-281,-257,-251},{-259,-292,-295,-276,-257,-246},{-268,-284,-257,-281,-268,-257},{-246,-248,-281,-270,-254,-270},{-262,-246,-281,-287,-270,-289},{-259,-246,-292,-284,-284,-254},{-270,-254,-298,-295,-295,-289},{-278,-254,-265,-300,-284,-278},{-281,-278,-259,-289,-273,-292},{-273,-270,-289,-287,-262,-248},{-276,-284,-276,-276,-298,-268},{-265,-262,-268,-300,-262,-262},{-265,-259,-289,-287,-259,-300},{-262,-254,-300,-292,-246,-284},{-265,-284,-257,-257,-254,-248},{-265,-295,-251,-246,-259,-268}}},{{{-146,-143,-151,-166,-163,-157},{-142,-169,-140,-163,-157,-162},{-148,-151,-145,-140,-168,-159},{-146,-160,-163,-146,-139,-166},{-162,-166,-148,-148,-140,-149},{-160,-156,-140,-156,-146,-168},{-165,-163,-166,-142,-163,-169},{-166,-165,-157,-140,-152,-156},{-145,-168,-159,-163,-160,-140},{-139,-145,-142,-139,-148,-142},{-168,-152,-159,-160,-168,-148},{-139,-160,-154,-151,-143,-168},{-145,-160,-157,-151,-140,-139},{-152,-169,-140,-146,-148,-142},{-146,-160,-143,-149,-163,-156},{-139,-143,-168,-168,-160,-163},{-145,-148,-169,-168,-156,-140},{-152,-145,-154,-168,-148,-159},{-163,-148,-139,-165,-152,-154},{-139,-157,-166,-139,-166,-151},{-168,-157,-159,-148,-160,-166},{-151,-149,-168,-148,-140,-149},{-156,-145,-166,-145,-142,-148},{-143,-139,-151,-151,-157,-143},{-157,-157,-140,-162,-148,-165},{-145,-143,-146,-143,-146,-165},{-165,-140,-168,-166,-168,-159},{-151,-160,-166,-146,-169,-166},{-142,-151,-168,-143,-162,-151},{-160,-148,-154,-159,-146,-159},{-139,-149,-163,-156,-145,-149},{-143,-151,-156,-166,-165,-154},{-151,-168,-169,-139,-154,-148},{-166,-168,-169,-143,-156,-162},{-165,-148,-169,-156,-152,-139},{-154,-157,-140,-162,-146,-140},{-166,-151,-149,-151,-152,-160},{-139,-166,-159,-139,-166,-148},{-157,-152,-169,-168,-152,-159},{-143,-152,-163,-140,-151,-160},{-160,-142,-154,-140,-165,-165},{-142,-160,-156,-149,-151,-148},{-152,-166,-160,-159,-149,-154},{-162,-140,-163,-142,-160,-169},{-140,-143,-149,-169,-163,-169},{-159,-148,-160,-157,-154,-154},{-139,-149,-160,-151,-143,-159},{-166,-165,-146,-165,-143,-162},{-140,-165,-168,-156,-166,-157},{-146,-146,-152,-139,-154,-145}},{{-169,-162,-142,-143,-142,-142},{-163,-160,-157,-157,-146,-154},{-154,-159,-166,-162,-165,-159},{-169,-168,-162,-159,-151,-156},{-140,-162,-146,-156,-160,-162},{-146,-163,-152,-148,-152,-169},{-145,-148,-140,-157,-140,-168},{-140,-156,-145,-145,-154,-166},{-140,-159,-151,-166,-149,-159},{-166,-163,-152,-151,-154,-142},{-166,-160,-169,-166,-148,-165},{-162,-143,-159,-151,-149,-156},{-169,-152,-159,-157,-149,-159},{-139,-165,-142,-162,-149,-139},{-152,-146,-168,-169,-145,-156},{-160,-157,-146,-157,-163,-139},{-159,-151,-151,-149,-148,-146},{-157,-154,-168,-166,-139,-168},{-140,-169,-154,-168,-146,-149},{-142,-160,-152,-154,-160,-162},{-140,-152,-148,-142,-149,-157},{-152,-154,-152,-165,-149,-143},{-148,-162,-160,-159,-148,-169},{-156,-169,-163,-169,-152,-169},{-169,-162,-162,-152,-156,-166},{-148,-143,-165,-154,-163,-148},{-139,-168,-163,-140,-148,-139},{-143,-151,-169,-163,-168,-146},{-145,-151,-157,-169,-140,-154},{-154,-163,-152,-154,-152,-143},{-154,-152,-169,-166,-168,-159},{-146,-139,-152,-159,-162,-160},{-146,-151,-151,-159,-162,-166},{-163,-145,-154,-149,-166,-157},{-139,-163,-159,-163,-166,-156},{-148,-140,-139,-145,-140,-152},{-157,-139,-151,-156,-145,-143},{-160,-152,-160,-166,-149,-140},{-139,-162,-160,-151,-166,-148},{-163,-145,-146,-166,-162,-145},{-146,-168,-168,-142,-165,-143},{-145,-145,-160,-162,-160,-162},{-142,-139,-143,-162,-151,-149},{-140,-160,-145,-154,-162,-146},{-157,-168,-169,-166,-166,-143},{-163,-165,-157,-152,-142,-152},{-143,-139,-165,-166,-169,-162},{-139,-165,-143,-146,-143,-162},{-140,-149,-143,-149,-157,-148},{-139,-142,-152,-143,-162,-162}},{{-145,-142,-168,-159,-159,-156},{-142,-143,-157,-163,-145,-159},{-151,-162,-157,-156,-140,-148},{-165,-151,-162,-169,-162,-168},{-140,-149,-160,-162,-165,-145},{-142,-169,-140,-148,-165,-166},{-154,-168,-165,-159,-157,-165},{-157,-166,-140,-154,-145,-139},{-145,-166,-157,-168,-140,-159},{-159,-142,-152,-145,-159,-139},{-159,-165,-168,-162,-139,-142},{-151,-154,-165,-160,-142,-142},{-146,-159,-152,-169,-157,-157},{-140,-140,-163,-159,-156,-151},{-160,-151,-162,-139,-166,-165},{-162,-166,-166,-151,-160,-154},{-142,-151,-162,-151,-157,-166},{-168,-156,-148,-156,-149,-142},{-166,-143,-152,-157,-152,-145},{-148,-159,-140,-139,-148,-139},{-139,-143,-152,-156,-166,-159},{-148,-160,-139,-154,-151,-148},{-148,-163,-163,-165,-157,-146},{-159,-142,-152,-160,-145,-157},{-139,-157,-151,-169,-160,-159},{-163,-145,-163,-169,-160,-166},{-159,-142,-140,-163,-148,-162},{-157,-163,-148,-143,-142,-140},{-156,-149,-156,-168,-140,-163},{-169,-154,-162,-168,-169,-166},{-152,-157,-159,-168,-148,-152},{-149,-157,-169,-152,-140,-156},{-148,-152,-160,-159,-160,-160},{-143,-165,-151,-166,-142,-152},{-157,-145,-157,-145,-168,-159},{-142,-165,-152,-139,-154,-168},{-166,-146,-169,-151,-152,-165},{-143,-165,-149,-156,-148,-160},{-151,-163,-143,-151,-145,-149},{-162,-146,-152,-169,-142,-154},{-157,-162,-156,-140,-154,-140},{-160,-159,-143,-166,-154,-151},{-160,-148,-160,-142,-146,-143},{-148,-157,-168,-152,-166,-159},{-156,-157,-163,-165,-145,-160},{-168,-160,-165,-146,-157,-151},{-159,-160,-159,-166,-142,-148},{-165,-154,-140,-156,-168,-169},{-162,-143,-140,-157,-162,-139},{-151,-168,-168,-166,-146,-166}}},{{{-173,-182,-184,-189,-193,-177},{-186,-182,-195,-171,-187,-193},{-189,-197,-166,-186,-173,-178},{-169,-171,-166,-195,-193,-175},{-184,-171,-171,-182,-173,-200},{-197,-195,-173,-195,-191,-197},{-175,-197,-177,-171,-182,-200},{-198,-167,-171,-189,-180,-166},{-173,-195,-195,-182,-184,-169},{-178,-177,-182,-189,-173,-167},{-187,-182,-177,-198,-200,-195},{-187,-186,-197,-164,-175,-186},{-177,-173,-166,-175,-189,-184},{-187,-166,-164,-180,-171,-187},{-187,-166,-180,-191,-169,-193},{-180,-178,-193,-184,-191,-177},{-167,-182,-169,-193,-182,-173},{-164,-197,-193,-178,-200,-166},{-193,-191,-169,-195,-193,-187},{-187,-198,-178,-177,-200,-167},{-175,-195,-193,-173,-191,-175},{-186,-171,-186,-173,-184,-195},{-167,-193,-166,-169,-189,-184},{-184,-186,-198,-171,-197,-182},{-177,-182,-187,-182,-177,-189},{-197,-187,-164,-200,-166,-178},{-180,-195,-171,-200,-184,-198},{-193,-177,-180,-198,-171,-195},{-184,-189,-177,-186,-195,-175},{-173,-193,-169,-191,-187,-189},{-166,-169,-173,-175,-164,-186},{-191,-198,-193,-187,-197,-197},{-177,-167,-182,-184,-200,-197},{-197,-186,-182,-169,-164,-182},{-186,-193,-180,-167,-177,-186},{-178,-175,-187,-200,-191,-195},{-182,-189,-175,-197,-184,-164},{-175,-195,-189,-171,-169,-178},{-200,-173,-191,-200,-191,-166},{-180,-171,-200,-166,-200,-197},{-197,-177,-182,-171,-187,-175},{-186,-189,-191,-193,-191,-184},{-193,-167,-178,-195,-180,-169},{-189,-171,-177,-178,-166,-193},{-164,-191,-178,-175,-178,-177},{-178,-198,-175,-191,-173,-164},{-166,-198,-200,-178,-177,-164},{-189,-177,-197,-195,-182,-167},{-180,-189,-184,-187,-178,-182},{-178,-187,-184,-189,-166,-177}},{{-195,-173,-173,-175,-177,-186},{-195,-182,-191,-187,-189,-171},{-175,-191,-200,-187,-187,-164},{-173,-197,-200,-171,-178,-175},{-187,-198,-200,-178,-182,-175},{-180,-197,-182,-167,-200,-191},{-166,-167,-200,-187,-186,-200},{-200,-193,-182,-182,-169,-164},{-180,-198,-195,-182,-191,-178},{-167,-189,-200,-169,-198,-189},{-182,-189,-178,-164,-184,-187},{-191,-164,-189,-198,-177,-197},{-189,-191,-164,-173,-184,-173},{-177,-167,-171,-169,-171,-182},{-164,-164,-173,-164,-173,-167},{-166,-193,-177,-187,-200,-198},{-195,-189,-198,-171,-171,-180},{-189,-164,-171,-184,-191,-195},{-184,-187,-189,-182,-197,-189},{-193,-200,-164,-195,-180,-173},{-180,-191,-177,-184,-184,-200},{-198,-182,-169,-184,-200,-171},{-195,-169,-187,-164,-197,-184},{-164,-171,-180,-187,-197,-164},{-166,-184,-187,-169,-173,-200},{-189,-186,-166,-169,-164,-187},{-178,-167,-182,-198,-195,-200},{-195,-186,-171,-184,-195,-180},{-164,-195,-175,-189,-166,-180},{-186,-167,-178,-171,-178,-175},{-167,-164,-184,-191,-177,-184},{-171,-186,-173,-193,-198,-177},{-177,-195,-187,-173,-166,-175},{-195,-191,-175,-175,-169,-166},{-167,-187,-195,-184,-164,-177},{-171,-193,-200,-200,-173,-180},{-171,-166,-189,-178,-195,-177},{-182,-167,-197,-177,-169,-186},{-177,-167,-184,-193,-195,-200},{-173,-173,-164,-191,-198,-178},{-177,-171,-197,-180,-173,-197},{-193,-177,-200,-189,-189,-198},{-166,-180,-186,-175,-186,-182},{-177,-200,-164,-167,-200,-193},{-191,-178,-177,-186,-191,-171},{-197,-189,-193,-175,-166,-175},{-197,-169,-164,-193,-164,-186},{-169,-166,-166,-166,-175,-197},{-175,-189,-198,-186,-166,-169},{-167,-184,-175,-171,-198,-187}},{{-197,-186,-197,-186,-175,-175},{-197,-164,-178,-189,-184,-184},{-198,-177,-169,-164,-184,-187},{-193,-169,-198,-182,-195,-198},{-197,-189,-187,-187,-173,-167},{-187,-186,-180,-198,-195,-169},{-187,-166,-198,-197,-166,-197},{-200,-191,-200,-178,-169,-175},{-184,-197,-189,-186,-184,-187},{-184,-189,-193,-182,-175,-182},{-186,-169,-180,-195,-198,-171},{-169,-173,-180,-197,-186,-178},{-187,-189,-198,-167,-200,-193},{-195,-167,-200,-178,-184,-167},{-180,-171,-187,-169,-191,-187},{-167,-180,-198,-169,-197,-189},{-189,-180,-164,-191,-167,-189},{-169,-166,-189,-171,-177,-171},{-200,-171,-186,-180,-169,-200},{-184,-198,-166,-175,-189,-178},{-167,-178,-167,-175,-197,-175},{-193,-184,-195,-169,-182,-166},{-197,-197,-180,-166,-197,-175},{-178,-175,-167,-198,-198,-171},{-164,-182,-180,-173,-169,-193},{-180,-182,-177,-166,-182,-175},{-200,-191,-186,-180,-177,-171},{-187,-195,-187,-182,-197,-178},{-164,-178,-177,-169,-186,-191},{-200,-184,-182,-178,-200,-195},{-177,-198,-191,-187,-167,-164},{-180,-173,-189,-180,-175,-177},{-177,-184,-200,-182,-164,-189},{-164,-164,-171,-178,-169,-175},{-173,-182,-191,-186,-169,-184},{-200,-197,-169,-180,-178,-184},{-166,-200,-186,-191,-178,-197},{-197,-198,-166,-189,-186,-198},{-164,-166,-182,-186,-198,-178},{-178,-189,-178,-197,-166,-189},{-169,-164,-187,-175,-195,-178},{-167,-182,-180,-184,-195,-173},{-189,-182,-173,-195,-184,-193},{-182,-180,-180,-177,-171,-173},{-171,-186,-178,-169,-166,-195},{-166,-178,-198,-166,-182,-180},{-200,-164,-184,-191,-197,-182},{-198,-173,-191,-197,-178,-197},{-197,-191,-189,-169,-200,-178},{-184,-171,-171,-167,-200,-193}}},{{{-255,-228,-255,-257,-243,-270},{-252,-252,-220,-220,-238,-223},{-252,-233,-225,-235,-267,-247},{-250,-245,-270,-223,-238,-225},{-255,-257,-260,-240,-270,-270},{-235,-225,-260,-243,-243,-238},{-230,-250,-240,-247,-233,-262},{-247,-235,-247,-230,-260,-245},{-220,-262,-245,-270,-247,-233},{-245,-267,-240,-247,-228,-228},{-230,-238,-228,-247,-240,-262},{-257,-252,-245,-250,-247,-247},{-238,-230,-238,-225,-225,-240},{-228,-267,-245,-245,-243,-235},{-220,-262,-225,-220,-255,-270},{-247,-223,-243,-270,-233,-252},{-257,-225,-228,-267,-267,-238},{-223,-240,-225,-240,-233,-243},{-267,-262,-220,-270,-247,-225},{-255,-223,-267,-265,-262,-270},{-250,-228,-240,-245,-270,-255},{-260,-270,-223,-247,-228,-270},{-220,-233,-260,-233,-257,-255},{-260,-257,-262,-250,-230,-230},{-238,-255,-225,-235,-255,-270},{-255,-243,-267,-230,-235,-220},{-235,-228,-250,-247,-223,-270},{-238,-228,-238,-255,-260,-243},{-220,-225,-252,-245,-247,-228},{-270,-265,-233,-260,-260,-238},{-267,-255,-243,-233,-260,-225},{-220,-265,-270,-230,-267,-223},{-220,-267,-243,-252,-235,-223},{-233,-262,-230,-270,-255,-223},{-233,-255,-267,-255,-220,-262},{-257,-230,-270,-260,-252,-267},{-265,-228,-262,-230,-233,-270},{-252,-225,-255,-245,-230,-243},{-255,-247,-225,-220,-252,-238},{-255,-255,-270,-243,-240,-255},{-238,-255,-233,-223,-257,-235},{-225,-220,-240,-267,-238,-220},{-257,-247,-252,-228,-238,-260},{-223,-240,-233,-252,-252,-257},{-270,-243,-260,-267,-262,-225},{-240,-243,-262,-238,-223,-223},{-233,-252,-230,-238,-240,-262},{-228,-265,-230,-262,-267,-247},{-255,-238,-233,-267,-260,-247},{-245,-235,-240,-247,-260,-240}},{{-243,-255,-267,-252,-250,-230},{-270,-243,-262,-262,-260,-223},{-255,-262,-265,-260,-265,-220},{-228,-238,-267,-270,-238,-265},{-240,-255,-260,-255,-257,-270},{-247,-238,-223,-240,-238,-238},{-235,-228,-267,-220,-260,-267},{-228,-257,-262,-260,-225,-260},{-238,-262,-220,-235,-220,-260},{-238,-270,-243,-250,-262,-265},{-240,-220,-238,-245,-233,-243},{-220,-228,-257,-270,-225,-260},{-220,-265,-267,-235,-262,-225},{-265,-243,-247,-265,-235,-225},{-245,-238,-247,-223,-257,-223},{-270,-240,-233,-250,-270,-250},{-238,-240,-260,-245,-240,-262},{-257,-262,-265,-233,-247,-225},{-252,-238,-235,-265,-235,-228},{-265,-240,-250,-255,-247,-262},{-233,-260,-220,-235,-250,-270},{-245,-240,-255,-250,-257,-262},{-265,-250,-270,-257,-220,-228},{-238,-220,-240,-225,-235,-260},{-255,-225,-260,-230,-240,-252},{-250,-260,-223,-255,-230,-265},{-230,-255,-240,-257,-223,-228},{-230,-220,-238,-245,-252,-265},{-267,-255,-250,-238,-247,-270},{-223,-233,-267,-270,-252,-250},{-243,-233,-265,-247,-238,-255},{-267,-260,-230,-267,-223,-245},{-270,-228,-265,-228,-240,-235},{-257,-223,-255,-223,-257,-228},{-235,-270,-220,-255,-245,-250},{-270,-238,-262,-265,-250,-225},{-267,-252,-257,-238,-267,-252},{-255,-267,-230,-245,-230,-267},{-228,-240,-252,-223,-262,-265},{-267,-228,-252,-270,-223,-257},{-262,-252,-240,-230,-220,-265},{-257,-262,-252,-260,-267,-220},{-270,-257,-240,-255,-230,-223},{-265,-250,-240,-265,-245,-247},{-223,-260,-252,-235,-220,-233},{-238,-250,-267,-270,-230,-220},{-223,-223,-243,-260,-230,-240},{-247,-230,-220,-235,-235,-233},{-267,-220,-270,-252,-233,-250},{-240,-228,-243,-260,-228,-225}},{{-255,-250,-262,-220,-230,-243},{-233,-252,-267,-265,-250,-233},{-240,-235,-238,-223,-255,-270},{-262,-262,-223,-247,-252,-252},{-260,-252,-240,-250,-245,-267},{-247,-223,-245,-245,-262,-245},{-238,-233,-262,-245,-235,-252},{-238,-233,-247,-270,-247,-262},{-238,-252,-255,-225,-257,-245},{-223,-233,-262,-250,-238,-243},{-240,-267,-250,-267,-240,-233},{-238,-233,-240,-230,-223,-247},{-262,-223,-223,-235,-260,-240},{-265,-238,-235,-267,-247,-240},{-260,-238,-240,-262,-250,-243},{-223,-257,-243,-270,-220,-225},{-223,-252,-267,-270,-245,-262},{-228,-262,-225,-270,-230,-257},{-225,-235,-260,-255,-243,-220},{-250,-238,-257,-270,-238,-267},{-223,-255,-230,-243,-243,-262},{-255,-243,-240,-267,-230,-270},{-240,-262,-257,-228,-243,-220},{-265,-270,-230,-245,-233,-265},{-265,-265,-233,-238,-233,-238},{-247,-247,-228,-240,-255,-247},{-238,-233,-238,-267,-270,-245},{-252,-230,-223,-235,-228,-247},{-252,-260,-235,-265,-245,-230},{-235,-265,-270,-270,-228,-260},{-228,-257,-260,-220,-265,-230},{-270,-250,-265,-250,-262,-255},{-235,-252,-265,-255,-243,-247},{-223,-260,-230,-223,-262,-245},{-255,-262,-238,-262,-220,-220},{-270,-252,-235,-250,-230,-220},{-230,-238,-230,-240,-243,-238},{-245,-245,-255,-267,-223,-230},{-255,-223,-270,-262,-228,-228},{-270,-228,-220,-235,-233,-238},{-260,-240,-243,-225,-252,-252},{-220,-243,-228,-230,-230,-245},{-223,-243,-260,-235,-270,-220},{-257,-230,-225,-228,-270,-238},{-235,-245,-228,-245,-255,-223},{-267,-240,-257,-235,-240,-240},{-238,-235,-233,-262,-257,-238},{-265,-243,-230,-223,-270,-238},{-255,-252,-262,-235,-223,-228},{-243,-238,-235,-225,-247,-220}}},{{{-208,-210,-224,-243,-210,-219},{-236,-236,-243,-245,-247,-231},{-247,-238,-247,-222,-249,-226},{-217,-233,-213,-213,-222,-252},{-210,-252,-215,-240,-238,-210},{-249,-219,-243,-224,-236,-219},{-252,-247,-243,-249,-247,-210},{-231,-254,-245,-247,-210,-252},{-208,-217,-236,-243,-215,-233},{-247,-219,-249,-238,-254,-229},{-222,-252,-215,-249,-233,-252},{-254,-226,-210,-229,-222,-222},{-243,-231,-243,-217,-224,-217},{-222,-224,-231,-238,-210,-243},{-226,-245,-233,-236,-208,-231},{-249,-245,-222,-224,-254,-215},{-217,-208,-233,-231,-222,-213},{-217,-219,-224,-217,-226,-208},{-238,-243,-243,-247,-217,-231},{-217,-208,-243,-208,-229,-208},{-229,-249,-254,-249,-245,-252},{-236,-245,-243,-219,-240,-229},{-249,-245,-236,-245,-224,-249},{-229,-231,-245,-229,-240,-222},{-208,-226,-226,-208,-252,-245},{-222,-252,-238,-208,-219,-217},{-224,-249,-238,-240,-231,-208},{-249,-240,-236,-236,-215,-238},{-238,-252,-219,-243,-238,-247},{-226,-217,-224,-222,-217,-240},{-249,-226,-224,-233,-215,-238},{-254,-210,-243,-240,-213,-210},{-252,-247,-210,-252,-224,-224},{-238,-236,-252,-249,-245,-238},{-224,-229,-219,-249,-236,-238},{-224,-236,-231,-222,-224,-240},{-233,-219,-213,-219,-222,-240},{-245,-217,-219,-243,-222,-229},{-210,-240,-238,-240,-254,-247},{-208,-240,-243,-217,-247,-245},{-229,-208,-215,-226,-219,-213},{-219,-219,-249,-247,-224,-213},{-226,-236,-219,-238,-215,-243},{-208,-233,-238,-247,-217,-231},{-238,-233,-219,-208,-247,-249},{-236,-222,-243,-245,-229,-233},{-252,-231,-210,-226,-243,-215},{-208,-243,-249,-233,-238,-224},{-252,-213,-215,-238,-233,-247},{-217,-249,-240,-226,-236,-215}},{{-247,-224,-238,-231,-222,-252},{-213,-229,-215,-210,-217,-210},{-217,-222,-217,-243,-240,-226},{-222,-217,-236,-247,-236,-254},{-240,-226,-219,-224,-247,-224},{-217,-249,-233,-219,-245,-229},{-252,-233,-215,-226,-213,-226},{-208,-240,-249,-247,-247,-249},{-217,-236,-222,-217,-208,-215},{-222,-229,-215,-222,-245,-249},{-252,-219,-215,-226,-222,-215},{-213,-222,-243,-233,-243,-238},{-229,-252,-240,-247,-233,-224},{-252,-226,-252,-247,-231,-238},{-233,-238,-233,-222,-208,-238},{-247,-254,-219,-245,-252,-210},{-233,-236,-229,-229,-233,-236},{-245,-224,-247,-215,-226,-236},{-226,-219,-245,-226,-222,-219},{-229,-240,-236,-231,-231,-240},{-222,-224,-224,-245,-233,-219},{-249,-229,-217,-245,-236,-243},{-210,-249,-254,-219,-231,-219},{-229,-219,-219,-252,-222,-254},{-254,-217,-213,-217,-245,-254},{-217,-240,-224,-238,-217,-252},{-247,-215,-226,-240,-245,-213},{-254,-229,-236,-231,-226,-249},{-254,-247,-247,-224,-233,-208},{-226,-240,-213,-210,-254,-215},{-222,-226,-243,-226,-245,-231},{-213,-243,-245,-208,-233,-254},{-249,-233,-210,-243,-231,-252},{-236,-245,-217,-233,-254,-233},{-252,-249,-219,-245,-231,-247},{-249,-231,-245,-247,-240,-245},{-213,-226,-249,-208,-254,-229},{-229,-247,-217,-252,-217,-233},{-219,-231,-229,-226,-240,-208},{-208,-254,-245,-245,-240,-233},{-247,-208,-208,-245,-245,-236},{-210,-217,-226,-252,-224,-252},{-208,-224,-252,-219,-215,-238},{-213,-252,-238,-219,-226,-213},{-217,-224,-247,-236,-254,-245},{-240,-208,-215,-224,-245,-236},{-243,-236,-252,-229,-213,-213},{-229,-233,-222,-252,-208,-215},{-243,-215,-210,-226,-231,-233},{-213,-208,-240,-208,-243,-217}},{{-222,-208,-226,-238,-213,-233},{-229,-247,-233,-233,-254,-229},{-243,-243,-217,-219,-210,-219},{-240,-217,-240,-247,-217,-210},{-229,-217,-240,-222,-224,-233},{-238,-224,-245,-224,-231,-231},{-245,-233,-215,-208,-249,-219},{-249,-236,-217,-219,-210,-231},{-240,-254,-254,-252,-252,-213},{-213,-208,-217,-229,-219,-226},{-217,-219,-247,-217,-217,-229},{-222,-249,-224,-219,-231,-226},{-226,-215,-245,-210,-210,-249},{-249,-219,-254,-219,-254,-219},{-210,-217,-208,-252,-238,-243},{-224,-249,-229,-236,-238,-249},{-231,-238,-229,-217,-215,-213},{-208,-247,-252,-226,-243,-249},{-219,-240,-231,-229,-226,-213},{-219,-210,-249,-245,-224,-219},{-219,-217,-229,-222,-254,-245},{-226,-226,-226,-236,-222,-217},{-233,-229,-226,-252,-229,-249},{-208,-210,-229,-219,-252,-243},{-210,-249,-224,-247,-231,-252},{-222,-219,-222,-233,-224,-226},{-236,-238,-213,-238,-240,-226},{-208,-213,-240,-213,-254,-226},{-213,-231,-247,-210,-213,-208},{-215,-219,-208,-210,-252,-210},{-233,-226,-233,-229,-243,-215},{-219,-217,-213,-215,-208,-254},{-226,-217,-226,-240,-208,-254},{-249,-226,-247,-210,-210,-233},{-249,-219,-210,-208,-247,-233},{-247,-236,-210,-222,-233,-210},{-224,-213,-240,-217,-210,-213},{-226,-247,-226,-210,-238,-215},{-215,-247,-249,-226,-245,-217},{-243,-254,-219,-236,-243,-245},{-245,-233,-226,-238,-229,-210},{-231,-224,-249,-226,-224,-226},{-219,-217,-229,-229,-208,-236},{-215,-217,-240,-210,-210,-213},{-247,-236,-236,-213,-233,-222},{-222,-233,-215,-236,-210,-233},{-238,-254,-240,-240,-219,-213},{-236,-224,-215,-231,-229,-213},{-252,-231,-245,-249,-240,-238},{-245,-213,-208,-236,-208,-249}}},{{{-300,-303,-320,-285,-273,-306},{-276,-268,-276,-276,-323,-320},{-279,-300,-315,-297,-315,-323},{-323,-288,-265,-306,-312,-276},{-323,-265,-315,-285,-288,-291},{-265,-309,-303,-270,-268,-297},{-309,-315,-285,-265,-312,-297},{-294,-309,-270,-279,-270,-318},{-318,-323,-282,-282,-270,-309},{-265,-288,-285,-306,-306,-300},{-268,-297,-297,-323,-288,-294},{-323,-306,-315,-288,-312,-279},{-300,-268,-303,-300,-323,-288},{-297,-315,-294,-268,-282,-306},{-303,-279,-273,-306,-291,-276},{-265,-315,-323,-285,-279,-291},{-265,-303,-323,-320,-291,-320},{-268,-297,-268,-315,-297,-320},{-273,-303,-300,-303,-323,-323},{-303,-309,-268,-279,-288,-318},{-323,-270,-309,-323,-306,-323},{-265,-270,-315,-270,-297,-288},{-268,-276,-309,-279,-309,-270},{-320,-318,-297,-265,-288,-288},{-318,-303,-297,-285,-279,-312},{-279,-306,-315,-309,-268,-270},{-315,-291,-320,-294,-312,-323},{-320,-312,-276,-303,-265,-282},{-315,-323,-276,-300,-285,-273},{-270,-323,-300,-288,-268,-312},{-270,-268,-285,-312,-315,-279},{-282,-294,-309,-318,-320,-270},{-282,-315,-279,-285,-276,-282},{-285,-268,-300,-318,-276,-300},{-273,-320,-323,-303,-318,-288},{-294,-279,-285,-303,-306,-309},{-268,-270,-265,-312,-273,-318},{-282,-273,-318,-291,-276,-270},{-318,-318,-285,-320,-318,-265},{-297,-276,-320,-279,-288,-279},{-288,-291,-273,-282,-323,-297},{-323,-294,-279,-318,-312,-265},{-270,-306,-318,-318,-306,-279},{-303,-312,-323,-306,-265,-303},{-282,-276,-318,-297,-276,-294},{-268,-270,-268,-285,-323,-320},{-276,-300,-318,-315,-268,-273},{-297,-265,-282,-323,-268,-312},{-323,-306,-309,-297,-285,-270},{-273,-265,-300,-265,-315,-265}},{{-273,-300,-306,-276,-268,-297},{-288,-285,-285,-320,-323,-291},{-270,-303,-320,-294,-285,-279},{-320,-315,-323,-303,-294,-285},{-297,-320,-279,-268,-282,-315},{-282,-306,-309,-300,-306,-285},{-282,-297,-323,-312,-270,-294},{-273,-323,-323,-282,-273,-297},{-294,-300,-318,-279,-265,-282},{-300,-306,-300,-318,-315,-273},{-288,-270,-312,-315,-297,-309},{-306,-306,-303,-276,-309,-291},{-279,-288,-312,-265,-297,-303},{-300,-282,-288,-282,-318,-273},{-309,-270,-294,-297,-268,-279},{-320,-265,-288,-312,-279,-270},{-300,-309,-306,-320,-318,-300},{-268,-291,-276,-265,-288,-300},{-306,-323,-288,-288,-279,-318},{-279,-276,-265,-270,-288,-276},{-276,-265,-297,-297,-282,-320},{-282,-276,-303,-312,-315,-288},{-291,-273,-282,-306,-268,-294},{-323,-318,-294,-300,-306,-285},{-273,-282,-320,-300,-276,-303},{-279,-276,-315,-276,-282,-306},{-285,-306,-297,-309,-315,-291},{-279,-303,-300,-297,-303,-303},{-303,-306,-268,-279,-291,-306},{-285,-270,-303,-288,-276,-320},{-323,-306,-285,-288,-306,-300},{-285,-265,-309,-285,-279,-282},{-303,-279,-320,-265,-309,-309},{-309,-282,-282,-297,-294,-273},{-294,-268,-288,-273,-294,-276},{-320,-285,-285,-276,-273,-282},{-285,-318,-312,-285,-282,-268},{-270,-300,-315,-297,-291,-297},{-279,-273,-276,-276,-300,-294},{-268,-323,-282,-309,-318,-306},{-270,-279,-282,-303,-318,-315},{-288,-265,-282,-300,-320,-306},{-294,-312,-309,-276,-265,-303},{-276,-297,-294,-306,-303,-323},{-294,-268,-279,-268,-309,-320},{-315,-300,-285,-288,-306,-294},{-273,-306,-294,-285,-265,-268},{-270,-320,-312,-265,-276,-312},{-306,-268,-273,-268,-285,-318},{-270,-306,-285,-323,-291,-315}},{{-285,-270,-309,-265,-294,-303},{-312,-318,-282,-303,-294,-276},{-282,-273,-291,-273,-312,-306},{-268,-268,-297,-309,-315,-265},{-279,-312,-300,-294,-309,-294},{-306,-265,-300,-312,-273,-320},{-312,-291,-306,-323,-315,-297},{-270,-279,-320,-273,-300,-309},{-303,-279,-288,-288,-291,-323},{-285,-309,-265,-309,-279,-268},{-294,-315,-320,-303,-265,-291},{-285,-288,-273,-312,-323,-265},{-265,-309,-294,-309,-294,-318},{-273,-315,-291,-270,-309,-297},{-309,-288,-297,-306,-300,-273},{-300,-276,-282,-276,-270,-285},{-320,-273,-291,-323,-282,-291},{-276,-323,-297,-273,-282,-279},{-300,-303,-320,-291,-279,-309},{-276,-320,-282,-323,-288,-312},{-306,-323,-282,-294,-265,-282},{-300,-282,-312,-270,-306,-309},{-279,-268,-265,-288,-318,-309},{-276,-309,-279,-294,-288,-315},{-273,-282,-291,-318,-288,-270},{-309,-303,-288,-268,-303,-306},{-300,-323,-306,-265,-315,-323},{-282,-300,-300,-320,-291,-273},{-323,-273,-291,-294,-306,-303},{-306,-276,-268,-268,-309,-265},{-276,-282,-309,-288,-282,-282},{-320,-279,-279,-276,-282,-282},{-303,-265,-315,-282,-279,-303},{-282,-288,-268,-312,-320,-297},{-303,-303,-279,-312,-303,-297},{-285,-303,-300,-273,-306,-309},{-323,-291,-279,-323,-300,-285},{-294,-318,-323,-297,-320,-265},{-300,-303,-318,-273,-303,-265},{-273,-300,-268,-268,-318,-285},{-270,-273,-303,-315,-318,-279},{-306,-288,-318,-300,-285,-303},{-318,-318,-294,-300,-268,-268},{-282,-297,-318,-291,-297,-270},{-318,-285,-285,-303,-315,-323},{-312,-285,-285,-265,-294,-279},{-282,-285,-276,-282,-320,-294},{-315,-285,-303,-315,-294,-303},{-309,-285,-291,-315,-318,-323},{-294,-309,-291,-320,-285,-268}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1841,192,221,150,198,208,315,198,294}; // initial inventory 
int ubiv[I]={2104,384,442,300,396,416,630,396,588}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.32,8.46,5.6,4.24,2.89,1.51,4.53,7.74}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.11,7.69,5.09,3.85,2.63,1.37,4.12,7.04}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,6.15,6.15,6.15,5.38,5.38,5.38,4.61,4.61,4.61,4.07,4.07,4.07,3.56,3.56,3.56,3.05,3.05,3.05,3.08,3.08,3.08,2.7,2.7,2.7,2.31,2.31,2.31,2.1,2.1,2.1,1.84,1.84,1.84,1.58,1.58,1.58,1.1,1.1,1.1,0.96,0.96,0.96,0.82,0.82,0.82,3.3,3.3,3.3,2.88,2.88,2.88,2.47,2.47,2.47,5.63,5.63,5.63,4.93,4.93,4.93,4.22,4.22,4.22}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={6,3,2,7,3,3,7,4,2,7,4,3,7,4,3,7,4,3,8,4,3,7,4,3,8,4,3,8,4,3,8,4,3,7,4,3,8,5,3,8,4,3,9,4,3,8,4,3,8,4,3,9,4,3,8,4,3,7,4,3,8,4,3,8,4,3,7,4,3,7,4,3}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5},{6,7,8},{9,10},{11,12,13,14,15,16,17},{18,19,20},{21,22,23},{24,25,26,27,28,29,30},{31,32,33,34},{35,36},{37,38,39,40,41,42,43},{44,45,46,47},{48,49,50},{51,52,53,54,55,56,57},{58,59,60,61},{62,63,64},{65,66,67,68,69,70,71},{72,73,74,75},{76,77,78},{79,80,81,82,83,84,85,86},{87,88,89,90},{91,92,93},{94,95,96,97,98,99,100},{101,102,103,104},{105,106,107},{108,109,110,111,112,113,114,115},{116,117,118,119},{120,121,122},{123,124,125,126,127,128,129,130},{131,132,133,134},{135,136,137},{138,139,140,141,142,143,144,145},{146,147,148,149},{150,151,152},{153,154,155,156,157,158,159},{160,161,162,163},{164,165,166},{167,168,169,170,171,172,173,174},{175,176,177,178,179},{180,181,182},{183,184,185,186,187,188,189,190},{191,192,193,194},{195,196,197},{198,199,200,201,202,203,204,205,206},{207,208,209,210},{211,212,213},{214,215,216,217,218,219,220,221},{222,223,224,225},{226,227,228},{229,230,231,232,233,234,235,236},{237,238,239,240},{241,242,243},{244,245,246,247,248,249,250,251,252},{253,254,255,256},{257,258,259},{260,261,262,263,264,265,266,267},{268,269,270,271},{272,273,274},{275,276,277,278,279,280,281},{282,283,284,285},{286,287,288},{289,290,291,292,293,294,295,296},{297,298,299,300},{301,302,303},{304,305,306,307,308,309,310,311},{312,313,314,315},{316,317,318},{319,320,321,322,323,324,325},{326,327,328,329},{330,331,332},{333,334,335,336,337,338,339},{340,341,342,343},{344,345,346}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,1,5,9,1,7,0,2,4,6,8,10,12,2,6,10,0,6,12,0,2,4,6,8,10,12,0,4,8,12,2,8,2,4,6,8,10,12,14,2,6,10,14,0,6,12,1,3,5,7,9,11,13,1,5,9,13,1,7,13,2,4,6,8,10,12,14,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,1,7,13,0,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,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,16,1,5,9,13,0,6,12,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,16,2,6,10,14,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,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,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,2,8,14}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,6,10,14,6,12,5,7,9,11,13,15,17,7,11,15,5,11,17,5,7,9,11,13,15,17,5,9,13,17,7,13,5,7,9,11,13,15,17,5,9,13,17,3,9,15,4,6,8,10,12,14,16,4,8,12,16,4,10,16,5,7,9,11,13,15,17,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,4,8,12,16,3,9,15,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,2,4,6,8,10,12,14,16,4,8,12,16,4,10,16,4,6,8,10,12,14,16,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,1,3,5,7,9,11,13,15,17,2,6,10,14,1,7,13,2,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,1,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,4,6,8,10,12,14,16,3,7,11,15,4,10,16,2,4,6,8,10,12,14,16,3,7,11,15,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,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,5,11,17}; // set of end times of each shipment 
