int Dev = 10;// 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 = 349;//Number of shipments
extern const int SN = 50;//Number of scenarios at each stage
extern const int MBSN = 9;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{10994,0,0,0,0,0},{11155,0,0,0,0,0},{11095,0,0,0,0,0},{10971,0,0,0,0,0},{11140,0,0,0,0,0},{10998,0,0,0,0,0},{11119,0,0,0,0,0},{11226,0,0,0,0,0},{10945,0,0,0,0,0},{10957,0,0,0,0,0},{11096,0,0,0,0,0},{11109,0,0,0,0,0},{11067,0,0,0,0,0},{11121,0,0,0,0,0},{11043,0,0,0,0,0},{11011,0,0,0,0,0},{11036,0,0,0,0,0},{11022,0,0,0,0,0},{11077,0,0,0,0,0},{11208,0,0,0,0,0},{11077,0,0,0,0,0},{10927,0,0,0,0,0},{10909,0,0,0,0,0},{11050,0,0,0,0,0},{10982,0,0,0,0,0},{11156,0,0,0,0,0},{10950,0,0,0,0,0},{10933,0,0,0,0,0},{11143,0,0,0,0,0},{10851,0,0,0,0,0},{10939,0,0,0,0,0},{11267,0,0,0,0,0},{10979,0,0,0,0,0},{11033,0,0,0,0,0},{10978,0,0,0,0,0},{11070,0,0,0,0,0},{11105,0,0,0,0,0},{10973,0,0,0,0,0},{11183,0,0,0,0,0},{10966,0,0,0,0,0},{11153,0,0,0,0,0},{10922,0,0,0,0,0},{10885,0,0,0,0,0},{11096,0,0,0,0,0},{10955,0,0,0,0,0},{11100,0,0,0,0,0},{11006,0,0,0,0,0},{11018,0,0,0,0,0},{11001,0,0,0,0,0},{10956,0,0,0,0,0}},{{10886,0,0,0,0,0},{11100,0,0,0,0,0},{11167,0,0,0,0,0},{11234,0,0,0,0,0},{11032,0,0,0,0,0},{11138,0,0,0,0,0},{11018,0,0,0,0,0},{11153,0,0,0,0,0},{11199,0,0,0,0,0},{11010,0,0,0,0,0},{11064,0,0,0,0,0},{11024,0,0,0,0,0},{10877,0,0,0,0,0},{11063,0,0,0,0,0},{10971,0,0,0,0,0},{11105,0,0,0,0,0},{11020,0,0,0,0,0},{11184,0,0,0,0,0},{11209,0,0,0,0,0},{11054,0,0,0,0,0},{10987,0,0,0,0,0},{10955,0,0,0,0,0},{10858,0,0,0,0,0},{11059,0,0,0,0,0},{11009,0,0,0,0,0},{10940,0,0,0,0,0},{11069,0,0,0,0,0},{11062,0,0,0,0,0},{10879,0,0,0,0,0},{10887,0,0,0,0,0},{11097,0,0,0,0,0},{10886,0,0,0,0,0},{11012,0,0,0,0,0},{11117,0,0,0,0,0},{11181,0,0,0,0,0},{10927,0,0,0,0,0},{11127,0,0,0,0,0},{11102,0,0,0,0,0},{10933,0,0,0,0,0},{11192,0,0,0,0,0},{11160,0,0,0,0,0},{11062,0,0,0,0,0},{10920,0,0,0,0,0},{11107,0,0,0,0,0},{11114,0,0,0,0,0},{10995,0,0,0,0,0},{11090,0,0,0,0,0},{11069,0,0,0,0,0},{10866,0,0,0,0,0},{10978,0,0,0,0,0}},{{10892,0,0,0,0,0},{10959,0,0,0,0,0},{10998,0,0,0,0,0},{10805,0,0,0,0,0},{10825,0,0,0,0,0},{10990,0,0,0,0,0},{11009,0,0,0,0,0},{11129,0,0,0,0,0},{11128,0,0,0,0,0},{10989,0,0,0,0,0},{11088,0,0,0,0,0},{11281,0,0,0,0,0},{11033,0,0,0,0,0},{11044,0,0,0,0,0},{10926,0,0,0,0,0},{10915,0,0,0,0,0},{11023,0,0,0,0,0},{10939,0,0,0,0,0},{11142,0,0,0,0,0},{11211,0,0,0,0,0},{11078,0,0,0,0,0},{11122,0,0,0,0,0},{11023,0,0,0,0,0},{10957,0,0,0,0,0},{10949,0,0,0,0,0},{11026,0,0,0,0,0},{10901,0,0,0,0,0},{11047,0,0,0,0,0},{10899,0,0,0,0,0},{11120,0,0,0,0,0},{11126,0,0,0,0,0},{10977,0,0,0,0,0},{11201,0,0,0,0,0},{10931,0,0,0,0,0},{11109,0,0,0,0,0},{11139,0,0,0,0,0},{11075,0,0,0,0,0},{11094,0,0,0,0,0},{10920,0,0,0,0,0},{10899,0,0,0,0,0},{11057,0,0,0,0,0},{11204,0,0,0,0,0},{11112,0,0,0,0,0},{11001,0,0,0,0,0},{11141,0,0,0,0,0},{10913,0,0,0,0,0},{11038,0,0,0,0,0},{11016,0,0,0,0,0},{11076,0,0,0,0,0},{11084,0,0,0,0,0}}},{{{-231,-246,-242,-224,-246,-204},{-204,-224,-228,-226,-228,-237},{-224,-228,-246,-242,-208,-240},{-217,-222,-206,-204,-240,-217},{-202,-211,-211,-222,-231,-237},{-208,-240,-224,-208,-224,-220},{-217,-217,-206,-213,-235,-244},{-204,-246,-222,-213,-237,-237},{-204,-215,-211,-235,-237,-204},{-222,-208,-224,-226,-224,-226},{-244,-206,-242,-222,-242,-244},{-226,-235,-226,-213,-222,-215},{-240,-222,-240,-242,-204,-244},{-211,-242,-235,-233,-237,-240},{-215,-242,-217,-242,-204,-244},{-206,-242,-244,-222,-220,-217},{-244,-242,-206,-228,-233,-222},{-208,-233,-224,-237,-235,-242},{-226,-237,-222,-237,-208,-206},{-228,-222,-235,-204,-228,-246},{-237,-224,-228,-240,-233,-233},{-233,-224,-215,-204,-246,-213},{-211,-217,-215,-231,-215,-226},{-231,-208,-246,-206,-224,-235},{-231,-208,-213,-235,-204,-211},{-244,-215,-246,-237,-224,-246},{-211,-228,-233,-220,-202,-228},{-226,-211,-202,-211,-202,-204},{-222,-244,-233,-204,-211,-226},{-244,-211,-217,-213,-220,-220},{-224,-222,-213,-228,-213,-235},{-224,-237,-217,-220,-220,-242},{-228,-206,-244,-217,-242,-213},{-208,-231,-246,-246,-242,-208},{-215,-213,-237,-202,-206,-211},{-240,-233,-237,-217,-226,-208},{-235,-233,-217,-235,-231,-220},{-211,-213,-213,-220,-226,-233},{-217,-217,-222,-228,-231,-217},{-244,-240,-220,-228,-206,-204},{-242,-211,-228,-233,-213,-228},{-224,-222,-208,-242,-206,-220},{-217,-202,-246,-224,-202,-202},{-228,-224,-228,-208,-215,-240},{-226,-208,-233,-208,-204,-217},{-235,-233,-246,-220,-215,-228},{-228,-231,-213,-208,-226,-204},{-242,-211,-224,-242,-231,-233},{-215,-213,-233,-231,-233,-226},{-222,-233,-244,-215,-220,-244}},{{-224,-206,-213,-202,-213,-213},{-206,-244,-233,-208,-235,-226},{-237,-220,-211,-215,-226,-213},{-228,-244,-228,-244,-226,-215},{-222,-220,-233,-204,-202,-215},{-217,-206,-215,-213,-213,-240},{-244,-213,-222,-215,-242,-235},{-228,-233,-231,-228,-237,-222},{-233,-231,-220,-224,-233,-240},{-242,-235,-226,-244,-228,-231},{-202,-242,-228,-240,-213,-217},{-226,-202,-242,-231,-235,-206},{-208,-208,-224,-215,-206,-235},{-228,-235,-246,-231,-206,-235},{-244,-213,-202,-222,-217,-242},{-228,-204,-226,-208,-235,-217},{-224,-220,-217,-202,-233,-206},{-220,-215,-231,-211,-217,-244},{-244,-233,-204,-220,-242,-235},{-244,-228,-213,-240,-217,-206},{-228,-224,-240,-208,-222,-215},{-242,-202,-244,-213,-226,-213},{-231,-204,-240,-211,-242,-208},{-235,-231,-202,-240,-222,-220},{-224,-244,-220,-211,-202,-237},{-235,-217,-242,-224,-211,-242},{-211,-231,-240,-237,-204,-244},{-246,-208,-226,-224,-237,-220},{-240,-240,-240,-224,-222,-208},{-240,-231,-228,-208,-213,-228},{-211,-213,-233,-220,-211,-233},{-217,-206,-246,-213,-213,-208},{-226,-224,-237,-202,-215,-237},{-237,-217,-222,-226,-228,-244},{-220,-244,-233,-244,-228,-224},{-240,-204,-224,-244,-246,-246},{-237,-206,-211,-242,-220,-224},{-231,-244,-244,-237,-246,-217},{-206,-208,-246,-228,-220,-220},{-202,-237,-206,-208,-235,-240},{-244,-242,-222,-228,-244,-235},{-228,-244,-244,-246,-204,-211},{-226,-215,-217,-220,-206,-222},{-211,-215,-246,-233,-226,-237},{-226,-240,-220,-222,-242,-226},{-217,-213,-231,-204,-220,-228},{-246,-240,-233,-213,-240,-215},{-242,-228,-220,-244,-208,-204},{-211,-202,-246,-204,-240,-213},{-226,-228,-213,-231,-244,-222}},{{-235,-202,-244,-202,-217,-206},{-206,-233,-226,-208,-246,-211},{-242,-233,-220,-211,-213,-211},{-222,-204,-213,-244,-222,-215},{-220,-202,-213,-206,-233,-213},{-220,-222,-213,-206,-208,-206},{-215,-233,-224,-237,-215,-246},{-206,-206,-208,-235,-246,-208},{-244,-246,-224,-213,-206,-235},{-204,-237,-215,-213,-237,-235},{-215,-235,-228,-215,-222,-204},{-220,-237,-208,-226,-220,-244},{-202,-226,-206,-202,-215,-220},{-217,-206,-237,-206,-228,-211},{-215,-226,-208,-226,-240,-202},{-231,-237,-204,-240,-242,-240},{-228,-202,-242,-202,-211,-244},{-240,-228,-211,-233,-244,-237},{-208,-222,-228,-206,-213,-215},{-246,-233,-231,-246,-224,-211},{-215,-240,-206,-224,-226,-233},{-213,-215,-224,-202,-246,-244},{-242,-244,-231,-217,-231,-233},{-206,-202,-217,-202,-228,-204},{-242,-213,-217,-231,-208,-206},{-215,-228,-211,-237,-242,-246},{-208,-208,-246,-235,-224,-231},{-208,-233,-233,-235,-206,-213},{-233,-206,-202,-240,-204,-233},{-235,-235,-220,-244,-237,-235},{-222,-244,-244,-246,-235,-224},{-204,-226,-202,-233,-202,-233},{-215,-220,-240,-242,-215,-235},{-246,-246,-220,-204,-213,-237},{-215,-217,-215,-224,-246,-206},{-237,-242,-211,-242,-242,-215},{-202,-228,-220,-220,-226,-240},{-233,-204,-224,-222,-224,-226},{-215,-215,-215,-235,-220,-202},{-222,-215,-220,-220,-246,-224},{-246,-228,-220,-244,-224,-242},{-204,-220,-215,-204,-240,-211},{-246,-213,-246,-217,-237,-204},{-240,-231,-231,-235,-231,-222},{-208,-211,-208,-202,-246,-211},{-244,-224,-220,-233,-237,-215},{-235,-240,-204,-211,-231,-228},{-206,-213,-242,-224,-217,-235},{-220,-222,-240,-202,-217,-231},{-222,-226,-233,-213,-220,-202}}},{{{-224,-233,-214,-250,-240,-221},{-259,-252,-255,-231,-252,-221},{-259,-259,-250,-214,-236,-226},{-224,-259,-226,-228,-250,-214},{-231,-245,-228,-250,-248,-228},{-214,-236,-224,-248,-219,-259},{-245,-259,-219,-226,-226,-240},{-250,-257,-248,-240,-233,-245},{-228,-259,-240,-219,-217,-248},{-228,-226,-238,-238,-259,-257},{-250,-236,-252,-221,-259,-250},{-214,-217,-245,-262,-231,-259},{-231,-238,-214,-255,-217,-217},{-236,-243,-228,-240,-214,-226},{-226,-217,-243,-243,-257,-240},{-250,-214,-243,-243,-231,-219},{-245,-262,-259,-240,-226,-255},{-240,-243,-214,-243,-236,-255},{-221,-257,-236,-248,-238,-238},{-262,-262,-262,-252,-248,-214},{-238,-221,-214,-224,-262,-255},{-243,-228,-233,-238,-214,-245},{-250,-214,-214,-224,-236,-228},{-228,-250,-219,-226,-238,-214},{-255,-236,-233,-245,-262,-219},{-252,-228,-248,-226,-250,-221},{-221,-231,-236,-243,-217,-252},{-255,-226,-238,-233,-214,-214},{-224,-245,-250,-252,-257,-243},{-231,-240,-214,-238,-238,-221},{-217,-219,-214,-221,-245,-217},{-243,-238,-255,-224,-228,-255},{-221,-257,-226,-226,-236,-219},{-236,-219,-224,-259,-226,-224},{-238,-257,-217,-219,-243,-214},{-262,-248,-240,-248,-228,-255},{-219,-236,-259,-233,-228,-219},{-262,-250,-219,-250,-226,-221},{-238,-217,-259,-214,-257,-252},{-221,-214,-228,-236,-243,-238},{-221,-236,-250,-255,-259,-255},{-252,-262,-219,-221,-245,-236},{-214,-214,-257,-255,-243,-228},{-255,-252,-259,-231,-250,-262},{-231,-233,-243,-250,-219,-224},{-226,-221,-243,-238,-255,-226},{-240,-252,-257,-228,-245,-262},{-214,-252,-259,-224,-245,-217},{-221,-259,-224,-214,-221,-252},{-236,-221,-221,-238,-221,-214}},{{-217,-240,-219,-217,-224,-240},{-262,-262,-231,-214,-217,-262},{-228,-245,-217,-238,-240,-250},{-238,-255,-221,-252,-233,-245},{-228,-240,-214,-221,-259,-238},{-221,-250,-245,-245,-228,-248},{-248,-219,-231,-224,-238,-250},{-233,-245,-248,-259,-226,-257},{-219,-248,-243,-245,-252,-250},{-245,-224,-221,-236,-221,-240},{-250,-257,-238,-214,-217,-252},{-228,-226,-257,-219,-257,-226},{-219,-240,-250,-245,-231,-238},{-221,-245,-245,-245,-214,-255},{-252,-233,-221,-243,-245,-224},{-221,-255,-224,-219,-245,-248},{-233,-233,-259,-219,-240,-245},{-238,-248,-219,-248,-224,-259},{-255,-252,-250,-238,-214,-245},{-252,-262,-259,-214,-243,-240},{-259,-240,-259,-224,-255,-231},{-231,-231,-221,-226,-217,-259},{-259,-217,-224,-231,-226,-262},{-240,-236,-245,-214,-233,-262},{-252,-248,-221,-238,-240,-217},{-243,-231,-252,-228,-236,-226},{-219,-262,-248,-255,-243,-262},{-243,-236,-238,-236,-226,-248},{-219,-217,-224,-214,-259,-217},{-236,-240,-228,-255,-250,-243},{-214,-257,-245,-238,-262,-217},{-245,-214,-238,-226,-245,-245},{-252,-228,-257,-255,-240,-233},{-245,-221,-214,-219,-248,-226},{-228,-214,-217,-248,-243,-257},{-243,-236,-252,-245,-217,-228},{-226,-219,-255,-252,-255,-224},{-248,-257,-262,-221,-243,-252},{-238,-228,-252,-226,-233,-219},{-259,-233,-262,-252,-233,-214},{-262,-236,-250,-224,-236,-219},{-233,-217,-214,-219,-214,-236},{-255,-226,-217,-252,-243,-240},{-238,-243,-255,-255,-252,-231},{-248,-226,-236,-248,-248,-240},{-252,-226,-228,-219,-228,-217},{-257,-224,-243,-250,-217,-238},{-221,-228,-219,-262,-259,-236},{-243,-219,-245,-238,-255,-243},{-233,-219,-224,-231,-262,-259}},{{-217,-238,-224,-255,-255,-250},{-217,-243,-236,-219,-262,-214},{-252,-245,-259,-257,-228,-214},{-217,-243,-231,-224,-233,-231},{-238,-252,-217,-228,-226,-240},{-262,-259,-245,-221,-233,-240},{-262,-231,-221,-219,-236,-224},{-243,-245,-240,-259,-221,-236},{-252,-257,-245,-257,-252,-224},{-217,-252,-252,-240,-259,-221},{-250,-221,-250,-228,-252,-243},{-248,-252,-259,-243,-252,-250},{-248,-226,-226,-238,-248,-217},{-252,-224,-248,-240,-226,-259},{-248,-231,-238,-243,-238,-226},{-252,-219,-233,-243,-226,-214},{-259,-252,-262,-262,-252,-262},{-236,-248,-231,-214,-214,-221},{-245,-219,-214,-257,-262,-259},{-243,-233,-214,-224,-259,-228},{-238,-226,-245,-245,-226,-228},{-259,-257,-236,-236,-252,-214},{-252,-259,-221,-221,-214,-224},{-243,-226,-221,-240,-240,-224},{-221,-243,-255,-252,-226,-245},{-221,-240,-226,-226,-245,-257},{-219,-224,-248,-236,-243,-255},{-248,-255,-240,-250,-233,-221},{-217,-255,-221,-245,-214,-259},{-236,-217,-262,-248,-243,-240},{-257,-250,-231,-262,-231,-245},{-250,-233,-228,-233,-248,-243},{-245,-240,-255,-257,-259,-245},{-228,-231,-233,-219,-221,-243},{-252,-243,-243,-231,-262,-221},{-224,-219,-255,-221,-228,-255},{-226,-259,-238,-250,-219,-221},{-250,-252,-226,-262,-243,-262},{-245,-226,-255,-217,-233,-224},{-250,-262,-231,-226,-255,-233},{-248,-250,-250,-245,-233,-219},{-240,-231,-221,-240,-252,-226},{-226,-245,-238,-255,-259,-224},{-255,-252,-238,-217,-228,-224},{-255,-236,-255,-243,-233,-262},{-255,-233,-233,-219,-259,-231},{-224,-259,-217,-217,-252,-252},{-250,-221,-228,-238,-219,-250},{-255,-226,-233,-224,-240,-262},{-257,-219,-250,-226,-236,-236}}},{{{-273,-276,-289,-295,-257,-292},{-292,-292,-287,-259,-281,-270},{-284,-265,-251,-300,-270,-248},{-273,-248,-251,-273,-284,-287},{-254,-268,-284,-289,-289,-300},{-289,-284,-254,-248,-298,-300},{-273,-273,-265,-284,-278,-295},{-254,-295,-276,-281,-251,-262},{-265,-265,-276,-257,-254,-292},{-281,-298,-295,-276,-254,-246},{-259,-246,-284,-248,-259,-254},{-281,-259,-262,-298,-257,-251},{-300,-265,-298,-292,-278,-298},{-259,-284,-292,-287,-276,-287},{-289,-287,-262,-246,-284,-259},{-278,-273,-278,-259,-292,-284},{-278,-265,-248,-287,-251,-298},{-270,-273,-292,-289,-287,-273},{-262,-268,-298,-289,-292,-281},{-262,-265,-262,-300,-295,-276},{-276,-265,-254,-300,-273,-248},{-273,-259,-278,-257,-278,-251},{-292,-246,-268,-287,-278,-248},{-292,-259,-276,-248,-268,-257},{-289,-273,-262,-298,-259,-254},{-295,-287,-278,-276,-251,-284},{-278,-265,-259,-284,-268,-273},{-289,-273,-268,-281,-287,-276},{-268,-281,-259,-298,-298,-265},{-257,-248,-287,-257,-248,-287},{-276,-262,-287,-284,-270,-257},{-292,-289,-265,-284,-265,-246},{-276,-292,-289,-248,-295,-262},{-262,-284,-284,-287,-251,-278},{-292,-276,-300,-254,-284,-273},{-257,-289,-273,-281,-300,-284},{-262,-298,-265,-246,-281,-268},{-298,-248,-254,-284,-268,-259},{-248,-278,-262,-300,-300,-298},{-298,-257,-251,-295,-251,-284},{-265,-268,-287,-278,-287,-246},{-251,-276,-259,-262,-300,-265},{-262,-298,-287,-273,-287,-262},{-292,-246,-276,-276,-254,-298},{-278,-273,-287,-251,-273,-278},{-246,-300,-292,-254,-298,-284},{-287,-278,-262,-254,-298,-300},{-257,-284,-259,-251,-262,-276},{-257,-292,-289,-276,-246,-248},{-281,-276,-295,-265,-292,-270}},{{-265,-298,-270,-268,-254,-265},{-265,-259,-248,-300,-287,-251},{-287,-270,-287,-287,-248,-259},{-300,-287,-270,-289,-292,-276},{-292,-292,-295,-251,-259,-298},{-284,-284,-292,-284,-289,-251},{-268,-246,-246,-248,-300,-284},{-246,-251,-284,-262,-284,-300},{-251,-284,-265,-292,-298,-262},{-251,-298,-262,-298,-292,-298},{-268,-248,-259,-268,-287,-268},{-273,-262,-289,-278,-289,-270},{-251,-257,-295,-298,-259,-257},{-278,-278,-295,-248,-265,-292},{-262,-298,-259,-246,-265,-276},{-292,-251,-284,-265,-284,-262},{-273,-300,-281,-246,-262,-289},{-270,-259,-298,-298,-259,-265},{-300,-300,-284,-248,-284,-254},{-298,-254,-289,-278,-284,-259},{-262,-287,-259,-300,-251,-281},{-284,-251,-295,-276,-287,-295},{-259,-278,-248,-276,-284,-251},{-273,-281,-262,-248,-265,-298},{-287,-246,-259,-270,-265,-273},{-295,-248,-257,-276,-300,-257},{-251,-278,-254,-262,-246,-246},{-268,-289,-273,-276,-270,-270},{-254,-281,-284,-273,-248,-273},{-265,-246,-273,-276,-265,-259},{-246,-287,-254,-276,-292,-259},{-270,-281,-262,-251,-248,-289},{-268,-268,-270,-278,-254,-273},{-284,-289,-257,-278,-248,-268},{-257,-268,-281,-284,-287,-259},{-281,-254,-281,-270,-246,-295},{-251,-259,-248,-268,-276,-300},{-268,-270,-262,-262,-268,-259},{-248,-246,-257,-259,-257,-257},{-292,-287,-289,-295,-278,-298},{-257,-276,-292,-289,-284,-248},{-289,-273,-246,-278,-268,-273},{-268,-281,-268,-251,-257,-295},{-246,-254,-281,-265,-265,-268},{-262,-259,-287,-300,-268,-281},{-270,-248,-268,-284,-268,-300},{-295,-298,-295,-248,-270,-270},{-284,-276,-259,-284,-262,-273},{-254,-257,-265,-270,-246,-257},{-254,-276,-262,-270,-248,-289}},{{-248,-287,-292,-251,-281,-295},{-278,-246,-254,-278,-284,-259},{-254,-270,-265,-246,-298,-281},{-270,-259,-281,-287,-257,-254},{-248,-257,-298,-257,-259,-251},{-300,-262,-259,-298,-278,-292},{-257,-300,-284,-259,-262,-259},{-273,-270,-276,-246,-289,-281},{-292,-298,-251,-276,-251,-248},{-265,-278,-257,-262,-254,-276},{-259,-251,-273,-257,-278,-248},{-287,-270,-246,-295,-265,-292},{-273,-278,-300,-254,-289,-254},{-284,-262,-268,-254,-262,-246},{-248,-289,-259,-248,-262,-273},{-248,-295,-276,-265,-251,-262},{-257,-289,-251,-254,-254,-246},{-257,-257,-300,-251,-278,-284},{-278,-295,-298,-270,-298,-262},{-265,-284,-284,-276,-298,-257},{-257,-276,-248,-270,-292,-257},{-257,-295,-295,-289,-287,-273},{-278,-281,-265,-254,-270,-248},{-287,-257,-262,-248,-262,-270},{-276,-251,-284,-284,-268,-259},{-289,-251,-248,-248,-276,-289},{-251,-300,-270,-284,-246,-284},{-246,-276,-289,-276,-295,-265},{-251,-254,-284,-257,-259,-268},{-268,-278,-287,-278,-300,-251},{-300,-257,-246,-265,-251,-298},{-265,-300,-278,-281,-259,-262},{-248,-251,-289,-270,-287,-262},{-278,-265,-248,-248,-262,-246},{-287,-289,-273,-259,-287,-259},{-295,-248,-276,-292,-251,-284},{-270,-278,-262,-289,-300,-295},{-273,-270,-262,-273,-287,-268},{-281,-254,-265,-284,-284,-276},{-284,-246,-270,-281,-276,-265},{-246,-298,-246,-298,-246,-276},{-295,-254,-268,-289,-265,-273},{-248,-262,-289,-265,-300,-281},{-298,-251,-262,-278,-262,-259},{-273,-298,-292,-292,-295,-278},{-259,-295,-246,-248,-257,-268},{-262,-276,-276,-287,-262,-281},{-287,-254,-273,-300,-270,-289},{-284,-289,-262,-268,-287,-298},{-292,-284,-298,-281,-300,-284}}},{{{-156,-146,-139,-139,-159,-149},{-162,-162,-140,-140,-166,-162},{-163,-143,-160,-156,-148,-146},{-160,-169,-166,-139,-154,-157},{-140,-157,-148,-156,-151,-143},{-157,-139,-146,-139,-162,-159},{-156,-154,-162,-145,-148,-143},{-149,-169,-142,-154,-143,-154},{-157,-166,-166,-160,-151,-140},{-165,-146,-143,-162,-139,-157},{-143,-151,-169,-165,-142,-157},{-156,-165,-149,-148,-162,-162},{-151,-162,-143,-159,-159,-169},{-151,-152,-143,-152,-163,-148},{-162,-160,-145,-162,-157,-159},{-142,-162,-166,-139,-140,-149},{-140,-142,-139,-140,-145,-168},{-140,-151,-139,-143,-142,-159},{-140,-143,-154,-163,-168,-143},{-145,-146,-143,-148,-169,-151},{-151,-151,-148,-143,-146,-163},{-152,-157,-157,-157,-166,-154},{-165,-168,-168,-168,-156,-140},{-159,-169,-166,-151,-162,-140},{-163,-157,-162,-169,-168,-149},{-165,-140,-160,-162,-159,-154},{-154,-146,-166,-159,-162,-166},{-154,-143,-169,-160,-140,-169},{-166,-140,-145,-163,-151,-165},{-165,-149,-156,-159,-140,-148},{-139,-166,-159,-143,-168,-151},{-160,-163,-157,-159,-165,-151},{-156,-168,-140,-143,-165,-156},{-149,-159,-169,-157,-140,-169},{-166,-139,-139,-151,-140,-157},{-160,-156,-148,-165,-159,-145},{-168,-156,-140,-165,-166,-146},{-151,-165,-152,-145,-151,-145},{-140,-157,-163,-159,-166,-169},{-148,-156,-166,-145,-146,-152},{-166,-140,-157,-146,-166,-148},{-149,-165,-162,-146,-140,-140},{-148,-145,-152,-159,-149,-146},{-156,-156,-143,-163,-157,-157},{-157,-156,-142,-156,-151,-159},{-142,-146,-149,-156,-160,-152},{-166,-154,-152,-160,-142,-168},{-146,-148,-162,-165,-143,-145},{-151,-154,-156,-142,-149,-154},{-169,-139,-154,-169,-140,-157}},{{-160,-166,-142,-168,-156,-165},{-145,-142,-169,-149,-156,-163},{-143,-142,-166,-151,-169,-152},{-163,-143,-140,-159,-143,-143},{-145,-152,-145,-165,-154,-146},{-169,-163,-142,-140,-168,-156},{-139,-151,-146,-159,-146,-165},{-152,-156,-145,-159,-146,-143},{-168,-156,-154,-165,-154,-146},{-139,-143,-148,-139,-154,-162},{-146,-145,-151,-151,-139,-162},{-154,-149,-154,-142,-162,-169},{-139,-165,-143,-154,-142,-160},{-151,-160,-152,-169,-163,-146},{-148,-148,-139,-157,-140,-168},{-165,-157,-149,-143,-159,-151},{-145,-159,-145,-151,-162,-162},{-148,-157,-145,-169,-162,-157},{-143,-142,-163,-148,-139,-151},{-157,-165,-146,-163,-142,-142},{-148,-169,-156,-160,-152,-163},{-168,-145,-156,-152,-169,-154},{-142,-166,-148,-160,-166,-157},{-165,-151,-143,-154,-145,-152},{-145,-163,-162,-151,-142,-149},{-156,-148,-151,-139,-165,-148},{-169,-143,-142,-165,-143,-160},{-160,-151,-146,-154,-166,-152},{-142,-160,-149,-154,-139,-151},{-169,-148,-159,-169,-139,-142},{-165,-159,-142,-160,-156,-169},{-165,-145,-169,-149,-146,-156},{-148,-168,-162,-156,-159,-149},{-163,-152,-157,-148,-168,-157},{-149,-165,-169,-160,-157,-154},{-145,-146,-145,-143,-145,-145},{-145,-148,-163,-140,-140,-165},{-162,-163,-154,-152,-169,-145},{-152,-169,-166,-154,-149,-139},{-165,-166,-166,-142,-149,-162},{-151,-142,-169,-159,-169,-162},{-142,-142,-169,-169,-154,-139},{-145,-139,-139,-145,-154,-169},{-140,-140,-156,-166,-152,-165},{-146,-163,-159,-145,-142,-168},{-142,-159,-154,-160,-160,-159},{-160,-166,-139,-165,-146,-156},{-160,-169,-149,-156,-149,-152},{-169,-160,-152,-157,-148,-152},{-146,-140,-157,-148,-168,-163}},{{-151,-156,-162,-157,-148,-143},{-160,-143,-160,-157,-139,-139},{-160,-146,-145,-163,-152,-168},{-156,-152,-154,-160,-156,-142},{-142,-140,-156,-151,-145,-142},{-156,-156,-157,-163,-166,-143},{-152,-151,-163,-157,-168,-149},{-142,-146,-140,-152,-156,-152},{-140,-145,-160,-162,-169,-154},{-152,-145,-160,-168,-142,-160},{-162,-139,-157,-152,-149,-154},{-168,-166,-142,-151,-145,-145},{-156,-159,-139,-163,-159,-169},{-149,-166,-152,-162,-162,-145},{-168,-140,-162,-166,-156,-169},{-146,-151,-163,-146,-160,-142},{-145,-149,-162,-145,-142,-145},{-139,-160,-140,-159,-148,-145},{-148,-151,-139,-149,-149,-149},{-166,-152,-166,-139,-159,-140},{-169,-143,-157,-148,-165,-145},{-165,-169,-156,-157,-149,-143},{-149,-162,-166,-159,-143,-157},{-163,-165,-146,-157,-169,-163},{-140,-165,-145,-151,-162,-157},{-152,-166,-143,-140,-142,-143},{-163,-145,-154,-157,-149,-142},{-140,-143,-149,-165,-154,-169},{-156,-151,-157,-157,-154,-151},{-139,-149,-162,-168,-148,-160},{-169,-140,-149,-145,-165,-162},{-139,-169,-140,-140,-151,-165},{-168,-169,-162,-148,-160,-140},{-165,-143,-154,-140,-145,-152},{-159,-157,-159,-165,-169,-140},{-152,-143,-169,-166,-163,-140},{-139,-168,-168,-149,-159,-169},{-169,-168,-169,-157,-143,-157},{-145,-146,-162,-162,-152,-165},{-146,-146,-159,-165,-160,-165},{-162,-165,-145,-157,-140,-157},{-156,-159,-139,-169,-142,-169},{-146,-163,-145,-169,-160,-152},{-157,-166,-163,-166,-168,-168},{-140,-154,-151,-160,-146,-154},{-139,-168,-163,-156,-142,-157},{-168,-166,-160,-143,-169,-168},{-145,-149,-146,-154,-140,-152},{-145,-165,-149,-165,-140,-156},{-151,-160,-148,-149,-152,-165}}},{{{-198,-164,-187,-177,-187,-195},{-169,-191,-164,-197,-193,-180},{-164,-167,-191,-169,-167,-200},{-166,-164,-200,-184,-177,-184},{-178,-164,-191,-189,-169,-169},{-193,-173,-187,-198,-171,-173},{-198,-175,-167,-184,-195,-187},{-175,-166,-186,-173,-175,-189},{-200,-166,-166,-177,-184,-198},{-180,-191,-198,-195,-169,-178},{-198,-198,-169,-178,-173,-193},{-189,-195,-173,-180,-171,-198},{-191,-198,-200,-189,-195,-171},{-184,-189,-178,-197,-173,-171},{-171,-173,-167,-166,-186,-187},{-167,-200,-198,-177,-166,-171},{-177,-186,-167,-177,-195,-197},{-171,-182,-180,-169,-180,-175},{-186,-177,-169,-169,-198,-177},{-193,-180,-187,-180,-166,-198},{-180,-178,-197,-178,-198,-184},{-186,-171,-186,-186,-167,-200},{-177,-187,-186,-177,-184,-189},{-198,-184,-166,-175,-198,-184},{-178,-182,-182,-177,-191,-171},{-186,-177,-193,-166,-187,-184},{-193,-169,-164,-166,-177,-193},{-164,-164,-169,-186,-180,-200},{-171,-193,-189,-198,-198,-187},{-184,-184,-169,-198,-173,-182},{-193,-200,-195,-184,-169,-175},{-189,-200,-197,-187,-189,-169},{-184,-184,-177,-182,-184,-173},{-191,-200,-173,-164,-195,-178},{-169,-178,-177,-173,-173,-186},{-191,-164,-178,-186,-200,-164},{-184,-195,-198,-182,-166,-173},{-167,-182,-175,-193,-175,-191},{-184,-171,-200,-169,-191,-173},{-180,-173,-193,-187,-177,-175},{-191,-184,-171,-177,-193,-200},{-197,-173,-171,-191,-193,-169},{-191,-184,-186,-171,-167,-164},{-184,-173,-175,-173,-175,-191},{-164,-187,-175,-197,-175,-178},{-173,-187,-167,-164,-197,-189},{-180,-182,-175,-166,-187,-189},{-164,-186,-173,-171,-198,-169},{-178,-175,-197,-171,-200,-177},{-195,-189,-184,-187,-186,-200}},{{-175,-197,-182,-173,-198,-198},{-187,-191,-164,-187,-189,-177},{-193,-182,-197,-189,-175,-187},{-182,-191,-182,-200,-198,-198},{-198,-184,-169,-186,-166,-191},{-187,-178,-200,-182,-173,-187},{-175,-182,-175,-200,-200,-164},{-177,-187,-198,-178,-171,-189},{-175,-177,-177,-175,-200,-198},{-187,-186,-167,-167,-173,-193},{-189,-198,-184,-184,-198,-198},{-198,-182,-191,-171,-197,-166},{-164,-167,-189,-177,-187,-191},{-189,-195,-166,-197,-197,-180},{-169,-193,-191,-187,-169,-169},{-195,-171,-198,-167,-177,-200},{-186,-189,-193,-180,-175,-177},{-182,-193,-191,-189,-184,-178},{-171,-180,-186,-186,-178,-182},{-173,-167,-182,-200,-187,-186},{-169,-180,-177,-189,-173,-166},{-177,-173,-182,-197,-175,-191},{-175,-177,-189,-178,-175,-191},{-198,-166,-191,-171,-189,-186},{-184,-169,-193,-195,-198,-173},{-200,-197,-191,-195,-166,-171},{-187,-186,-175,-195,-189,-193},{-191,-187,-184,-197,-180,-200},{-167,-177,-187,-193,-177,-200},{-164,-186,-198,-166,-193,-175},{-187,-189,-187,-187,-175,-175},{-195,-195,-167,-164,-173,-164},{-173,-191,-166,-171,-193,-191},{-200,-167,-198,-186,-187,-169},{-195,-180,-167,-173,-195,-182},{-175,-169,-180,-167,-175,-177},{-189,-175,-178,-189,-187,-191},{-197,-191,-173,-178,-195,-164},{-167,-195,-178,-187,-182,-195},{-186,-171,-167,-167,-187,-198},{-173,-193,-166,-182,-167,-177},{-189,-195,-167,-193,-193,-175},{-164,-187,-164,-189,-164,-187},{-193,-173,-175,-169,-175,-180},{-189,-171,-187,-173,-191,-198},{-180,-189,-189,-169,-182,-200},{-175,-169,-175,-173,-166,-200},{-167,-198,-173,-171,-197,-198},{-171,-173,-171,-166,-166,-173},{-175,-166,-166,-180,-197,-178}},{{-184,-166,-173,-166,-166,-169},{-189,-167,-166,-197,-167,-187},{-193,-178,-180,-189,-173,-173},{-198,-173,-167,-164,-175,-164},{-169,-198,-178,-167,-167,-200},{-197,-171,-166,-169,-195,-171},{-198,-173,-167,-175,-175,-180},{-198,-191,-182,-189,-197,-197},{-197,-164,-166,-184,-193,-191},{-164,-173,-173,-189,-184,-166},{-189,-175,-189,-200,-184,-182},{-173,-186,-193,-182,-182,-197},{-187,-186,-187,-177,-171,-197},{-197,-186,-169,-178,-197,-187},{-182,-178,-167,-180,-167,-182},{-178,-184,-198,-171,-173,-187},{-191,-187,-187,-186,-187,-167},{-189,-193,-200,-195,-169,-167},{-175,-191,-200,-187,-189,-189},{-197,-173,-193,-200,-164,-189},{-177,-195,-189,-193,-191,-187},{-197,-184,-167,-164,-175,-169},{-191,-166,-177,-189,-186,-171},{-186,-197,-198,-169,-189,-189},{-191,-195,-191,-200,-182,-178},{-175,-200,-184,-193,-178,-184},{-191,-166,-182,-187,-167,-193},{-178,-184,-200,-182,-200,-200},{-178,-180,-167,-169,-167,-167},{-193,-197,-164,-171,-197,-197},{-171,-182,-198,-173,-184,-175},{-187,-166,-197,-191,-191,-175},{-197,-197,-198,-195,-184,-166},{-180,-187,-191,-182,-171,-191},{-195,-197,-182,-166,-182,-187},{-175,-166,-198,-164,-195,-169},{-182,-184,-193,-187,-200,-169},{-200,-173,-187,-177,-195,-189},{-164,-175,-169,-182,-180,-178},{-171,-167,-164,-178,-182,-180},{-182,-169,-167,-186,-167,-171},{-184,-167,-193,-197,-200,-193},{-184,-180,-195,-198,-186,-189},{-177,-191,-189,-164,-169,-169},{-175,-187,-171,-171,-164,-182},{-187,-167,-177,-166,-197,-175},{-182,-200,-175,-178,-173,-177},{-180,-182,-191,-169,-173,-191},{-171,-191,-184,-166,-178,-182},{-182,-198,-167,-173,-200,-164}}},{{{-255,-223,-243,-240,-225,-225},{-267,-252,-230,-245,-265,-238},{-240,-260,-252,-240,-265,-233},{-255,-235,-247,-250,-257,-267},{-228,-243,-233,-257,-267,-260},{-223,-260,-247,-252,-230,-270},{-228,-220,-247,-255,-235,-257},{-257,-233,-255,-260,-240,-228},{-223,-228,-255,-250,-250,-235},{-240,-230,-230,-233,-228,-250},{-235,-250,-257,-260,-255,-257},{-262,-240,-255,-240,-270,-270},{-230,-270,-238,-228,-247,-228},{-243,-245,-262,-233,-247,-262},{-265,-233,-238,-223,-228,-238},{-245,-270,-220,-235,-255,-250},{-235,-252,-225,-257,-252,-235},{-240,-262,-233,-265,-265,-223},{-255,-233,-228,-225,-267,-228},{-265,-250,-270,-230,-270,-230},{-235,-225,-257,-262,-233,-260},{-235,-267,-238,-247,-240,-235},{-228,-240,-257,-225,-233,-235},{-270,-257,-255,-240,-228,-252},{-255,-240,-233,-270,-225,-247},{-250,-220,-228,-245,-243,-255},{-252,-265,-243,-252,-252,-247},{-260,-265,-247,-265,-247,-240},{-225,-230,-267,-238,-243,-238},{-262,-230,-262,-233,-235,-235},{-247,-267,-220,-220,-228,-245},{-267,-245,-243,-233,-260,-267},{-265,-228,-235,-247,-233,-252},{-247,-245,-243,-267,-247,-228},{-255,-265,-260,-220,-233,-270},{-257,-257,-230,-262,-240,-243},{-235,-252,-247,-243,-265,-233},{-228,-243,-235,-225,-260,-262},{-267,-260,-220,-262,-243,-252},{-220,-238,-243,-243,-225,-230},{-252,-230,-257,-220,-270,-240},{-262,-225,-233,-267,-247,-262},{-220,-225,-260,-267,-257,-238},{-252,-243,-262,-233,-245,-243},{-243,-262,-225,-252,-223,-247},{-223,-247,-257,-252,-265,-240},{-252,-252,-223,-240,-260,-245},{-255,-267,-245,-250,-270,-225},{-235,-255,-252,-252,-270,-250},{-223,-223,-220,-257,-230,-233}},{{-238,-245,-233,-270,-223,-225},{-228,-243,-250,-240,-255,-247},{-262,-260,-267,-260,-265,-240},{-257,-228,-245,-250,-257,-267},{-240,-265,-257,-228,-260,-247},{-245,-220,-235,-267,-228,-247},{-265,-267,-247,-255,-260,-220},{-250,-267,-247,-255,-238,-247},{-238,-240,-240,-220,-262,-265},{-230,-230,-228,-247,-223,-233},{-257,-223,-255,-240,-252,-270},{-265,-235,-233,-240,-233,-238},{-233,-245,-225,-252,-247,-240},{-233,-220,-230,-233,-225,-235},{-255,-255,-260,-243,-238,-250},{-243,-257,-223,-238,-235,-252},{-247,-247,-225,-225,-250,-247},{-262,-255,-233,-267,-252,-260},{-270,-270,-265,-267,-225,-267},{-247,-230,-235,-250,-265,-238},{-233,-260,-252,-243,-235,-250},{-252,-250,-228,-270,-223,-245},{-225,-223,-238,-252,-238,-220},{-228,-225,-240,-260,-270,-270},{-243,-220,-235,-228,-252,-262},{-223,-262,-240,-233,-225,-260},{-252,-270,-240,-233,-220,-245},{-228,-247,-250,-265,-220,-262},{-267,-267,-225,-257,-223,-238},{-235,-220,-235,-243,-225,-230},{-260,-238,-265,-243,-260,-247},{-257,-252,-240,-230,-228,-247},{-220,-262,-240,-260,-223,-238},{-240,-233,-267,-252,-250,-265},{-250,-233,-235,-265,-225,-243},{-228,-255,-223,-265,-270,-238},{-252,-270,-247,-267,-243,-257},{-230,-240,-260,-233,-260,-252},{-262,-265,-220,-252,-243,-255},{-265,-260,-262,-243,-220,-247},{-267,-265,-243,-238,-270,-265},{-238,-257,-267,-233,-240,-223},{-238,-238,-267,-228,-262,-245},{-220,-243,-260,-245,-235,-233},{-235,-238,-238,-223,-252,-225},{-240,-252,-235,-252,-247,-262},{-225,-260,-235,-265,-230,-265},{-243,-220,-260,-240,-220,-247},{-240,-243,-260,-255,-228,-240},{-235,-223,-223,-250,-233,-230}},{{-243,-257,-220,-243,-260,-243},{-230,-270,-267,-270,-220,-230},{-230,-250,-235,-247,-252,-228},{-252,-265,-247,-223,-243,-228},{-247,-265,-247,-223,-270,-247},{-255,-230,-243,-238,-243,-223},{-225,-262,-257,-230,-243,-225},{-247,-255,-250,-255,-245,-225},{-233,-230,-255,-255,-223,-257},{-265,-257,-252,-267,-233,-230},{-233,-245,-228,-228,-270,-257},{-230,-270,-257,-255,-270,-262},{-267,-247,-257,-255,-252,-265},{-265,-220,-247,-238,-265,-265},{-228,-247,-250,-233,-270,-235},{-243,-228,-240,-257,-225,-230},{-233,-230,-257,-260,-250,-233},{-247,-260,-235,-233,-238,-220},{-260,-230,-233,-243,-255,-270},{-267,-260,-245,-247,-228,-267},{-270,-260,-250,-238,-265,-228},{-228,-257,-267,-250,-257,-223},{-267,-247,-220,-228,-270,-250},{-223,-240,-235,-252,-238,-255},{-225,-265,-252,-223,-223,-230},{-225,-267,-260,-238,-270,-247},{-230,-233,-235,-240,-250,-238},{-260,-262,-225,-267,-233,-223},{-243,-255,-223,-243,-267,-252},{-243,-238,-243,-250,-252,-220},{-225,-238,-230,-220,-228,-228},{-238,-243,-250,-262,-235,-265},{-255,-252,-252,-223,-262,-238},{-238,-265,-245,-255,-267,-270},{-260,-223,-257,-243,-233,-260},{-270,-257,-228,-265,-243,-225},{-267,-238,-252,-223,-225,-235},{-225,-252,-255,-225,-247,-223},{-267,-243,-228,-235,-255,-228},{-252,-220,-257,-247,-267,-230},{-225,-250,-235,-225,-245,-252},{-257,-270,-265,-252,-270,-267},{-225,-257,-260,-252,-228,-228},{-235,-247,-238,-250,-228,-238},{-262,-267,-225,-220,-265,-262},{-247,-223,-247,-243,-265,-240},{-255,-243,-228,-225,-250,-257},{-233,-240,-230,-233,-235,-267},{-230,-265,-267,-225,-230,-255},{-235,-245,-243,-252,-260,-238}}},{{{-243,-243,-238,-213,-240,-226},{-222,-213,-233,-249,-213,-249},{-252,-233,-217,-222,-229,-210},{-213,-249,-252,-238,-219,-208},{-243,-249,-229,-238,-243,-247},{-249,-219,-238,-249,-238,-252},{-233,-224,-252,-249,-210,-222},{-247,-240,-254,-236,-226,-254},{-231,-208,-243,-219,-231,-245},{-229,-217,-213,-245,-249,-236},{-229,-243,-233,-213,-226,-217},{-252,-236,-236,-240,-231,-219},{-217,-229,-222,-217,-240,-219},{-226,-238,-208,-219,-252,-245},{-247,-243,-238,-226,-236,-254},{-215,-226,-210,-236,-245,-245},{-240,-217,-245,-238,-215,-252},{-208,-231,-245,-224,-208,-210},{-222,-240,-252,-247,-210,-233},{-254,-208,-245,-238,-222,-224},{-217,-219,-215,-217,-252,-217},{-222,-243,-213,-236,-219,-236},{-236,-208,-236,-213,-249,-238},{-254,-247,-210,-224,-238,-236},{-247,-243,-215,-217,-210,-210},{-247,-233,-226,-229,-226,-219},{-238,-222,-222,-217,-215,-238},{-217,-222,-236,-243,-238,-247},{-231,-215,-252,-249,-219,-210},{-210,-240,-249,-213,-213,-208},{-226,-231,-243,-249,-245,-208},{-243,-247,-240,-224,-219,-231},{-238,-215,-245,-208,-226,-252},{-210,-254,-208,-231,-226,-231},{-233,-217,-224,-238,-245,-226},{-215,-231,-222,-224,-238,-224},{-215,-231,-254,-254,-226,-208},{-217,-240,-231,-252,-245,-222},{-217,-213,-236,-217,-252,-236},{-245,-240,-226,-245,-252,-226},{-219,-229,-222,-247,-210,-245},{-226,-226,-238,-224,-231,-210},{-215,-245,-217,-215,-252,-222},{-217,-219,-208,-243,-247,-222},{-213,-226,-252,-210,-222,-254},{-245,-219,-247,-249,-243,-213},{-247,-213,-213,-208,-240,-208},{-210,-229,-254,-210,-240,-249},{-252,-213,-226,-208,-252,-210},{-229,-249,-229,-213,-238,-236}},{{-249,-254,-233,-224,-208,-233},{-226,-238,-245,-245,-236,-245},{-254,-236,-245,-222,-213,-249},{-254,-247,-236,-219,-249,-229},{-252,-226,-238,-208,-222,-213},{-215,-240,-245,-249,-245,-226},{-240,-238,-249,-213,-238,-229},{-213,-243,-254,-208,-254,-238},{-247,-243,-231,-210,-226,-245},{-254,-224,-224,-236,-233,-231},{-210,-217,-240,-217,-238,-254},{-238,-243,-219,-208,-210,-247},{-213,-226,-240,-231,-233,-231},{-215,-222,-240,-233,-222,-254},{-213,-210,-210,-245,-243,-208},{-224,-219,-252,-238,-226,-236},{-213,-233,-224,-233,-224,-247},{-249,-245,-236,-222,-243,-226},{-240,-219,-226,-217,-229,-233},{-215,-222,-249,-208,-243,-233},{-213,-208,-254,-243,-247,-224},{-217,-247,-238,-215,-215,-208},{-224,-243,-217,-254,-240,-215},{-243,-247,-231,-215,-215,-226},{-213,-238,-252,-252,-213,-217},{-219,-217,-210,-254,-226,-243},{-243,-210,-229,-213,-231,-224},{-243,-208,-240,-238,-217,-240},{-226,-229,-210,-245,-213,-215},{-217,-213,-215,-249,-226,-243},{-243,-252,-247,-217,-254,-247},{-213,-252,-229,-215,-210,-208},{-217,-226,-252,-222,-219,-226},{-222,-252,-254,-236,-254,-224},{-254,-243,-215,-229,-210,-254},{-240,-222,-217,-240,-231,-252},{-215,-243,-236,-217,-231,-243},{-224,-222,-233,-245,-233,-231},{-245,-210,-254,-254,-224,-240},{-208,-208,-249,-233,-217,-238},{-238,-231,-215,-231,-210,-217},{-240,-252,-254,-210,-222,-236},{-222,-219,-208,-252,-217,-224},{-249,-238,-238,-252,-219,-217},{-249,-210,-233,-222,-254,-233},{-236,-208,-213,-219,-245,-245},{-236,-210,-208,-231,-254,-219},{-245,-233,-238,-219,-219,-229},{-245,-245,-222,-236,-229,-233},{-247,-245,-215,-249,-229,-245}},{{-226,-222,-215,-252,-236,-219},{-245,-229,-238,-210,-254,-243},{-238,-208,-213,-224,-217,-252},{-240,-229,-245,-229,-222,-245},{-208,-231,-213,-219,-238,-247},{-217,-240,-208,-233,-226,-236},{-219,-252,-245,-249,-233,-252},{-245,-240,-254,-219,-243,-240},{-213,-222,-240,-245,-245,-213},{-215,-249,-254,-236,-233,-215},{-245,-249,-233,-240,-229,-231},{-208,-222,-215,-243,-252,-247},{-249,-231,-249,-245,-213,-208},{-222,-238,-247,-247,-254,-233},{-208,-215,-247,-222,-236,-245},{-236,-254,-210,-210,-249,-208},{-217,-213,-231,-222,-217,-247},{-229,-217,-217,-254,-240,-254},{-233,-226,-231,-229,-254,-222},{-240,-240,-210,-240,-252,-240},{-236,-226,-231,-254,-243,-208},{-243,-208,-224,-238,-210,-245},{-233,-245,-229,-240,-238,-217},{-224,-217,-233,-213,-240,-231},{-217,-226,-238,-219,-229,-226},{-229,-217,-226,-247,-243,-213},{-249,-208,-213,-213,-243,-226},{-219,-226,-226,-226,-217,-240},{-222,-247,-245,-210,-252,-243},{-219,-249,-252,-215,-233,-222},{-247,-217,-238,-254,-219,-238},{-215,-243,-217,-208,-226,-240},{-217,-213,-226,-245,-243,-222},{-222,-208,-240,-243,-245,-233},{-252,-233,-247,-229,-213,-229},{-219,-252,-233,-245,-245,-254},{-213,-252,-210,-222,-243,-219},{-215,-215,-217,-238,-215,-208},{-208,-210,-224,-215,-245,-210},{-233,-222,-213,-226,-210,-208},{-245,-224,-243,-229,-233,-252},{-236,-243,-238,-245,-254,-210},{-247,-238,-254,-210,-210,-240},{-222,-215,-238,-247,-229,-240},{-252,-231,-247,-215,-247,-247},{-226,-238,-224,-226,-222,-208},{-238,-233,-252,-229,-210,-215},{-240,-240,-238,-222,-243,-243},{-231,-240,-252,-233,-222,-231},{-236,-249,-236,-254,-219,-210}}},{{{-320,-273,-270,-265,-276,-323},{-291,-297,-306,-285,-285,-291},{-300,-315,-303,-315,-288,-297},{-294,-318,-294,-276,-291,-265},{-306,-320,-318,-291,-288,-297},{-273,-273,-276,-285,-270,-300},{-320,-300,-323,-306,-318,-291},{-323,-306,-315,-294,-323,-309},{-312,-309,-282,-294,-294,-279},{-268,-303,-285,-291,-273,-288},{-273,-297,-312,-291,-306,-288},{-288,-306,-297,-276,-294,-276},{-294,-285,-268,-309,-265,-279},{-320,-268,-312,-282,-265,-323},{-309,-282,-279,-318,-306,-268},{-309,-306,-268,-294,-270,-320},{-270,-285,-318,-291,-282,-265},{-306,-265,-306,-306,-303,-297},{-303,-294,-297,-268,-306,-318},{-309,-279,-306,-291,-276,-312},{-297,-306,-273,-309,-318,-323},{-288,-276,-273,-300,-268,-320},{-315,-315,-273,-273,-294,-276},{-288,-294,-268,-303,-297,-312},{-291,-279,-309,-273,-303,-279},{-297,-309,-282,-315,-315,-276},{-300,-279,-268,-318,-279,-279},{-303,-294,-273,-282,-273,-273},{-323,-268,-309,-315,-268,-297},{-315,-297,-273,-288,-270,-320},{-294,-323,-288,-306,-268,-285},{-306,-300,-318,-288,-288,-318},{-300,-282,-268,-300,-285,-291},{-285,-270,-294,-318,-279,-291},{-323,-285,-306,-318,-270,-291},{-291,-268,-303,-268,-276,-279},{-276,-294,-323,-285,-320,-320},{-315,-309,-300,-306,-268,-268},{-268,-315,-323,-273,-320,-312},{-265,-309,-297,-312,-285,-309},{-291,-306,-303,-276,-312,-323},{-282,-297,-306,-273,-279,-268},{-297,-270,-265,-318,-276,-291},{-297,-265,-300,-312,-297,-294},{-276,-288,-294,-306,-320,-309},{-300,-309,-273,-291,-300,-285},{-270,-270,-285,-268,-303,-315},{-309,-279,-306,-282,-320,-265},{-303,-268,-318,-300,-318,-265},{-282,-265,-273,-306,-270,-303}},{{-276,-265,-270,-297,-312,-303},{-300,-276,-273,-300,-306,-318},{-282,-285,-303,-282,-300,-318},{-276,-268,-291,-291,-320,-265},{-294,-288,-320,-282,-323,-285},{-297,-306,-285,-306,-309,-303},{-279,-285,-288,-285,-288,-297},{-279,-279,-306,-306,-312,-282},{-309,-303,-285,-303,-297,-300},{-312,-270,-294,-303,-303,-285},{-315,-312,-279,-276,-273,-323},{-279,-279,-318,-306,-297,-285},{-291,-309,-309,-265,-297,-276},{-282,-318,-300,-300,-268,-306},{-265,-315,-276,-303,-320,-320},{-297,-323,-303,-312,-309,-318},{-288,-323,-318,-282,-309,-279},{-268,-303,-312,-268,-282,-323},{-323,-320,-270,-318,-279,-300},{-285,-265,-288,-291,-300,-300},{-270,-300,-270,-282,-265,-291},{-265,-276,-312,-265,-312,-265},{-285,-268,-268,-285,-306,-282},{-276,-323,-279,-320,-285,-288},{-300,-288,-297,-318,-288,-315},{-273,-285,-268,-285,-300,-270},{-323,-323,-320,-294,-291,-268},{-268,-288,-309,-282,-285,-270},{-285,-309,-270,-285,-309,-273},{-285,-303,-318,-265,-288,-285},{-291,-300,-303,-273,-268,-270},{-297,-268,-318,-320,-291,-306},{-288,-282,-291,-282,-300,-320},{-320,-282,-282,-276,-291,-294},{-320,-279,-315,-320,-297,-312},{-268,-303,-288,-279,-268,-276},{-306,-312,-303,-285,-294,-323},{-268,-282,-294,-297,-273,-291},{-279,-297,-312,-270,-288,-282},{-320,-309,-285,-270,-300,-312},{-303,-288,-273,-276,-309,-323},{-306,-265,-323,-294,-318,-320},{-303,-276,-323,-320,-282,-291},{-312,-303,-294,-318,-303,-323},{-294,-318,-312,-297,-282,-288},{-318,-300,-279,-315,-265,-300},{-323,-300,-320,-265,-268,-294},{-303,-288,-320,-315,-291,-291},{-312,-268,-297,-300,-265,-282},{-315,-279,-323,-312,-285,-265}},{{-270,-291,-273,-309,-285,-288},{-297,-318,-297,-265,-288,-297},{-306,-294,-303,-306,-300,-276},{-291,-279,-270,-294,-270,-265},{-288,-303,-285,-279,-323,-279},{-270,-268,-320,-294,-294,-318},{-270,-279,-276,-291,-297,-312},{-276,-318,-288,-320,-285,-294},{-265,-303,-303,-318,-312,-300},{-282,-306,-276,-320,-276,-273},{-297,-300,-318,-312,-297,-315},{-268,-279,-309,-315,-315,-320},{-265,-300,-285,-288,-279,-306},{-285,-268,-282,-300,-276,-312},{-279,-303,-303,-268,-309,-291},{-273,-323,-285,-297,-285,-285},{-294,-300,-309,-282,-297,-309},{-315,-265,-282,-268,-309,-268},{-318,-279,-300,-294,-294,-306},{-273,-270,-306,-323,-312,-297},{-265,-273,-312,-320,-268,-320},{-323,-303,-270,-285,-320,-282},{-297,-279,-297,-265,-291,-309},{-323,-294,-309,-309,-291,-300},{-276,-309,-268,-288,-288,-309},{-279,-288,-288,-282,-318,-294},{-268,-268,-291,-315,-270,-303},{-273,-288,-279,-300,-312,-285},{-276,-265,-306,-291,-318,-285},{-279,-276,-288,-306,-270,-306},{-323,-276,-318,-309,-318,-279},{-318,-268,-268,-297,-323,-270},{-288,-303,-315,-276,-315,-297},{-268,-288,-306,-282,-282,-285},{-291,-300,-291,-306,-279,-276},{-323,-270,-312,-273,-300,-288},{-300,-323,-303,-276,-276,-288},{-318,-285,-291,-318,-279,-323},{-318,-294,-288,-320,-315,-291},{-294,-270,-294,-300,-265,-282},{-276,-279,-318,-323,-273,-303},{-323,-303,-297,-297,-288,-273},{-265,-276,-303,-312,-279,-306},{-282,-273,-291,-276,-318,-273},{-276,-285,-297,-300,-270,-320},{-303,-291,-300,-288,-273,-279},{-312,-265,-288,-291,-306,-268},{-265,-312,-270,-323,-279,-315},{-312,-270,-273,-294,-309,-285},{-288,-320,-270,-306,-265,-270}}}}; // 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,6,3,2,7,3,2,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,9,4,3,9,5,3,8,5,3,8,5,3,7,4,3,8,4,3,8,4,3,7,4,3,8,4,3,8,4,3}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5},{6,7,8},{9,10},{11,12,13,14,15,16},{17,18,19},{20,21},{22,23,24,25,26,27,28},{29,30,31},{32,33},{34,35,36,37,38,39,40},{41,42,43,44},{45,46,47},{48,49,50,51,52,53,54},{55,56,57,58},{59,60,61},{62,63,64,65,66,67,68},{69,70,71,72},{73,74,75},{76,77,78,79,80,81,82,83},{84,85,86,87},{88,89,90},{91,92,93,94,95,96,97,98},{99,100,101,102},{103,104,105},{106,107,108,109,110,111,112,113},{114,115,116,117},{118,119,120},{121,122,123,124,125,126,127,128},{129,130,131,132},{133,134,135},{136,137,138,139,140,141,142,143},{144,145,146,147},{148,149,150},{151,152,153,154,155,156,157,158},{159,160,161,162},{163,164,165},{166,167,168,169,170,171,172,173},{174,175,176,177},{178,179,180},{181,182,183,184,185,186,187,188},{189,190,191,192},{193,194,195},{196,197,198,199,200,201,202,203,204},{205,206,207,208},{209,210,211},{212,213,214,215,216,217,218,219,220},{221,222,223,224,225},{226,227,228},{229,230,231,232,233,234,235,236},{237,238,239,240,241},{242,243,244},{245,246,247,248,249,250,251,252},{253,254,255,256,257},{258,259,260},{261,262,263,264,265,266,267},{268,269,270,271},{272,273,274},{275,276,277,278,279,280,281,282},{283,284,285,286},{287,288,289},{290,291,292,293,294,295,296,297},{298,299,300,301},{302,303,304},{305,306,307,308,309,310,311},{312,313,314,315},{316,317,318},{319,320,321,322,323,324,325,326},{327,328,329,330},{331,332,333},{334,335,336,337,338,339,340,341},{342,343,344,345},{346,347,348}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,2,6,10,1,7,1,3,5,7,9,11,2,6,10,1,7,0,2,4,6,8,10,12,2,6,10,2,8,1,3,5,7,9,11,13,0,4,8,12,2,8,14,2,4,6,8,10,12,14,1,5,9,13,1,7,13,2,4,6,8,10,12,14,0,4,8,12,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,1,5,9,13,0,6,12,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,1,5,9,13,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,2,4,6,8,10,12,14,16,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,16,1,5,9,13,0,6,12,0,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14,2,4,6,8,10,12,14,16,0,4,8,12,16,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,16,2,8,14,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,1,3,5,7,9,11,13,15,0,4,8,12,2,8,14,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,2,8,14,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,7,11,15,6,12,6,8,10,12,14,16,7,11,15,6,12,5,7,9,11,13,15,17,7,11,15,7,13,4,6,8,10,12,14,16,3,7,11,15,5,11,17,5,7,9,11,13,15,17,4,8,12,16,4,10,16,5,7,9,11,13,15,17,3,7,11,15,5,11,17,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,2,4,6,8,10,12,14,16,4,8,12,16,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,1,7,13,1,3,5,7,9,11,13,15,17,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15,3,5,7,9,11,13,15,17,1,5,9,13,17,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,17,3,9,15,4,6,8,10,12,14,16,3,7,11,15,4,10,16,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,4,10,16,5,7,9,11,13,15,17,4,8,12,16,5,11,17,3,5,7,9,11,13,15,17,3,7,11,15,5,11,17,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16}; // set of end times of each shipment 
