int Dev = 10;// Deviation
extern const int CNN = 2;// Case Index
extern const int P = 6;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 36;// 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 = 742;//Number of shipments
extern const int SN = 20;//Number of scenarios at each stage
extern const int MBSN = 18;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6,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},{18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{11107,0,0,0,0,0},{11082,0,0,0,0,0},{10972,0,0,0,0,0},{11115,0,0,0,0,0},{11169,0,0,0,0,0},{10931,0,0,0,0,0},{11008,0,0,0,0,0},{11197,0,0,0,0,0},{11130,0,0,0,0,0},{11058,0,0,0,0,0},{11154,0,0,0,0,0},{10902,0,0,0,0,0},{11122,0,0,0,0,0},{11037,0,0,0,0,0},{11170,0,0,0,0,0},{11266,0,0,0,0,0},{11129,0,0,0,0,0},{11021,0,0,0,0,0},{11069,0,0,0,0,0},{11232,0,0,0,0,0}},{{11138,0,0,0,0,0},{10824,0,0,0,0,0},{11071,0,0,0,0,0},{10976,0,0,0,0,0},{11101,0,0,0,0,0},{10933,0,0,0,0,0},{10891,0,0,0,0,0},{10923,0,0,0,0,0},{10989,0,0,0,0,0},{11255,0,0,0,0,0},{10893,0,0,0,0,0},{10904,0,0,0,0,0},{10914,0,0,0,0,0},{11160,0,0,0,0,0},{10979,0,0,0,0,0},{11067,0,0,0,0,0},{11099,0,0,0,0,0},{10877,0,0,0,0,0},{11262,0,0,0,0,0},{11139,0,0,0,0,0}},{{11034,0,0,0,0,0},{11044,0,0,0,0,0},{11058,0,0,0,0,0},{11133,0,0,0,0,0},{11172,0,0,0,0,0},{10984,0,0,0,0,0},{10984,0,0,0,0,0},{10885,0,0,0,0,0},{11134,0,0,0,0,0},{11008,0,0,0,0,0},{10877,0,0,0,0,0},{11073,0,0,0,0,0},{11141,0,0,0,0,0},{11199,0,0,0,0,0},{11090,0,0,0,0,0},{11063,0,0,0,0,0},{11036,0,0,0,0,0},{11075,0,0,0,0,0},{11096,0,0,0,0,0},{11010,0,0,0,0,0}},{{11268,0,0,0,0,0},{11039,0,0,0,0,0},{11050,0,0,0,0,0},{10934,0,0,0,0,0},{10914,0,0,0,0,0},{11025,0,0,0,0,0},{11078,0,0,0,0,0},{11072,0,0,0,0,0},{11037,0,0,0,0,0},{11021,0,0,0,0,0},{11189,0,0,0,0,0},{11041,0,0,0,0,0},{11085,0,0,0,0,0},{11039,0,0,0,0,0},{11196,0,0,0,0,0},{11167,0,0,0,0,0},{10998,0,0,0,0,0},{11135,0,0,0,0,0},{11029,0,0,0,0,0},{11038,0,0,0,0,0}},{{10880,0,0,0,0,0},{11015,0,0,0,0,0},{11096,0,0,0,0,0},{10967,0,0,0,0,0},{10900,0,0,0,0,0},{10964,0,0,0,0,0},{10860,0,0,0,0,0},{11107,0,0,0,0,0},{11175,0,0,0,0,0},{11006,0,0,0,0,0},{10990,0,0,0,0,0},{11115,0,0,0,0,0},{11004,0,0,0,0,0},{10975,0,0,0,0,0},{10985,0,0,0,0,0},{11189,0,0,0,0,0},{11046,0,0,0,0,0},{11123,0,0,0,0,0},{11209,0,0,0,0,0},{11238,0,0,0,0,0}},{{10882,0,0,0,0,0},{11115,0,0,0,0,0},{11131,0,0,0,0,0},{11045,0,0,0,0,0},{11143,0,0,0,0,0},{11052,0,0,0,0,0},{11059,0,0,0,0,0},{11043,0,0,0,0,0},{11120,0,0,0,0,0},{11081,0,0,0,0,0},{11133,0,0,0,0,0},{11107,0,0,0,0,0},{11138,0,0,0,0,0},{10973,0,0,0,0,0},{11002,0,0,0,0,0},{11046,0,0,0,0,0},{10932,0,0,0,0,0},{11040,0,0,0,0,0},{10958,0,0,0,0,0},{10981,0,0,0,0,0}}},{{{-231,-217,-231,-215,-217,-235},{-237,-228,-235,-246,-220,-228},{-233,-220,-215,-215,-233,-224},{-224,-226,-215,-215,-233,-242},{-222,-235,-240,-224,-213,-244},{-228,-246,-226,-246,-220,-213},{-204,-213,-224,-233,-237,-217},{-237,-211,-213,-242,-211,-220},{-204,-231,-211,-213,-215,-242},{-213,-231,-244,-231,-211,-211},{-211,-237,-222,-206,-224,-217},{-237,-231,-233,-235,-202,-204},{-222,-226,-208,-235,-240,-231},{-233,-240,-226,-222,-215,-246},{-244,-204,-202,-240,-226,-235},{-237,-217,-226,-224,-226,-233},{-235,-206,-231,-206,-206,-220},{-206,-224,-246,-242,-226,-204},{-220,-204,-228,-204,-222,-222},{-208,-237,-246,-220,-237,-211}},{{-244,-231,-242,-202,-202,-220},{-213,-235,-233,-246,-235,-217},{-222,-220,-246,-220,-208,-228},{-204,-217,-242,-226,-215,-217},{-233,-246,-231,-217,-237,-237},{-215,-202,-222,-208,-246,-213},{-217,-206,-222,-240,-246,-208},{-208,-228,-202,-235,-242,-217},{-246,-226,-222,-208,-233,-208},{-208,-211,-213,-237,-244,-224},{-208,-204,-226,-220,-208,-206},{-208,-224,-246,-217,-222,-240},{-204,-213,-226,-235,-206,-206},{-211,-220,-228,-237,-208,-226},{-202,-246,-211,-220,-222,-231},{-224,-244,-242,-208,-235,-224},{-228,-242,-211,-233,-244,-228},{-226,-237,-213,-215,-231,-208},{-224,-240,-217,-206,-242,-226},{-244,-231,-233,-242,-204,-228}},{{-233,-220,-215,-206,-217,-228},{-246,-233,-220,-242,-208,-233},{-208,-217,-224,-217,-235,-242},{-222,-220,-242,-217,-204,-237},{-231,-226,-233,-242,-222,-226},{-206,-240,-211,-222,-235,-206},{-237,-208,-246,-228,-233,-211},{-208,-202,-231,-222,-224,-215},{-244,-228,-222,-202,-242,-231},{-204,-204,-235,-240,-231,-228},{-211,-211,-235,-213,-224,-246},{-231,-208,-242,-213,-228,-208},{-220,-246,-206,-242,-240,-226},{-231,-231,-242,-224,-233,-235},{-206,-217,-211,-246,-215,-220},{-246,-237,-235,-244,-233,-202},{-204,-246,-231,-208,-222,-206},{-226,-222,-235,-235,-220,-222},{-237,-215,-246,-206,-240,-246},{-213,-231,-204,-246,-228,-215}},{{-217,-202,-208,-222,-242,-235},{-226,-237,-217,-228,-240,-206},{-202,-217,-204,-206,-231,-235},{-208,-222,-237,-224,-215,-215},{-235,-213,-233,-246,-222,-228},{-204,-215,-237,-217,-226,-220},{-215,-222,-242,-231,-208,-235},{-224,-235,-242,-244,-237,-204},{-211,-240,-235,-208,-244,-206},{-215,-246,-206,-237,-231,-237},{-208,-246,-224,-237,-237,-240},{-228,-228,-237,-233,-240,-240},{-235,-202,-213,-242,-220,-217},{-202,-204,-233,-226,-213,-246},{-246,-220,-231,-211,-211,-242},{-237,-222,-237,-215,-204,-242},{-211,-211,-211,-217,-220,-206},{-222,-244,-231,-237,-213,-211},{-211,-204,-211,-220,-237,-215},{-224,-242,-217,-208,-211,-242}},{{-220,-220,-208,-228,-224,-217},{-215,-217,-213,-242,-217,-208},{-213,-237,-242,-208,-240,-233},{-226,-224,-240,-240,-208,-215},{-215,-211,-220,-220,-215,-246},{-242,-228,-204,-220,-204,-233},{-233,-222,-202,-220,-226,-206},{-226,-246,-211,-213,-208,-242},{-242,-242,-231,-206,-235,-233},{-208,-226,-213,-202,-211,-204},{-206,-215,-235,-233,-220,-208},{-217,-233,-231,-222,-233,-206},{-215,-231,-211,-206,-206,-242},{-202,-231,-226,-246,-242,-220},{-242,-231,-237,-217,-215,-206},{-215,-222,-202,-220,-233,-206},{-246,-204,-231,-240,-231,-222},{-208,-237,-226,-211,-206,-224},{-215,-233,-222,-231,-242,-213},{-217,-204,-242,-242,-208,-206}},{{-202,-244,-228,-202,-215,-240},{-208,-246,-237,-206,-213,-204},{-211,-246,-242,-226,-226,-217},{-240,-202,-222,-233,-235,-206},{-222,-217,-211,-220,-233,-202},{-235,-226,-240,-215,-217,-217},{-235,-213,-215,-231,-242,-237},{-231,-217,-215,-226,-235,-213},{-233,-220,-228,-204,-224,-220},{-211,-222,-242,-231,-240,-206},{-220,-228,-224,-222,-211,-215},{-217,-237,-246,-242,-202,-202},{-208,-204,-246,-233,-215,-211},{-211,-224,-220,-246,-204,-206},{-233,-224,-224,-208,-233,-224},{-220,-211,-211,-224,-202,-220},{-213,-240,-237,-215,-244,-215},{-206,-235,-235,-222,-237,-224},{-222,-244,-206,-222,-240,-204},{-222,-220,-204,-235,-208,-240}}},{{{-231,-252,-231,-257,-219,-233},{-236,-214,-224,-243,-243,-231},{-228,-233,-233,-233,-217,-224},{-236,-231,-236,-231,-262,-252},{-259,-255,-257,-226,-259,-233},{-221,-238,-243,-228,-221,-236},{-243,-231,-248,-245,-221,-255},{-250,-226,-243,-238,-231,-262},{-245,-240,-257,-217,-262,-217},{-238,-245,-243,-219,-245,-217},{-262,-259,-252,-252,-214,-231},{-219,-226,-217,-236,-248,-224},{-262,-214,-238,-262,-238,-238},{-231,-238,-221,-243,-224,-233},{-257,-224,-219,-226,-233,-250},{-214,-248,-228,-226,-231,-236},{-236,-255,-245,-252,-226,-214},{-250,-219,-245,-226,-255,-217},{-252,-217,-236,-219,-221,-255},{-255,-224,-243,-238,-255,-255}},{{-243,-221,-228,-248,-236,-252},{-255,-228,-240,-221,-228,-224},{-240,-233,-224,-252,-231,-224},{-243,-219,-219,-226,-248,-250},{-245,-231,-217,-228,-214,-243},{-228,-262,-252,-219,-248,-214},{-257,-245,-231,-217,-233,-233},{-259,-259,-252,-259,-259,-221},{-248,-262,-252,-248,-250,-226},{-245,-259,-245,-238,-255,-252},{-228,-262,-245,-245,-248,-257},{-250,-228,-217,-214,-257,-248},{-245,-217,-217,-226,-228,-236},{-248,-243,-259,-255,-226,-231},{-219,-226,-236,-243,-231,-259},{-240,-240,-262,-226,-238,-245},{-245,-217,-252,-248,-238,-236},{-238,-231,-236,-240,-236,-262},{-259,-224,-245,-248,-240,-259},{-252,-259,-228,-214,-219,-224}},{{-259,-236,-226,-255,-259,-250},{-240,-224,-238,-231,-243,-233},{-231,-259,-238,-255,-236,-214},{-224,-224,-214,-243,-226,-214},{-226,-262,-236,-252,-243,-224},{-262,-217,-233,-262,-226,-217},{-238,-224,-224,-214,-250,-219},{-217,-214,-257,-245,-255,-219},{-224,-252,-240,-259,-231,-231},{-217,-236,-219,-226,-240,-248},{-243,-228,-262,-226,-221,-250},{-252,-243,-245,-238,-226,-233},{-252,-214,-262,-259,-248,-214},{-236,-259,-231,-259,-219,-259},{-228,-248,-231,-252,-255,-245},{-252,-231,-248,-217,-233,-221},{-214,-245,-214,-228,-245,-248},{-262,-217,-240,-228,-233,-240},{-245,-233,-236,-245,-250,-248},{-248,-224,-240,-243,-221,-217}},{{-228,-255,-214,-262,-262,-250},{-259,-231,-214,-255,-226,-219},{-224,-219,-236,-257,-217,-248},{-236,-224,-221,-245,-259,-219},{-219,-262,-233,-238,-221,-238},{-231,-221,-252,-259,-243,-224},{-240,-245,-250,-224,-250,-243},{-243,-219,-233,-252,-231,-233},{-231,-226,-240,-231,-214,-255},{-221,-243,-228,-252,-231,-240},{-252,-238,-231,-257,-236,-238},{-248,-238,-214,-243,-236,-224},{-252,-250,-221,-224,-257,-219},{-217,-233,-226,-257,-255,-245},{-259,-248,-233,-214,-255,-255},{-240,-243,-224,-252,-259,-257},{-228,-262,-255,-250,-238,-219},{-217,-259,-255,-262,-245,-224},{-245,-233,-245,-221,-252,-240},{-248,-238,-255,-255,-226,-221}},{{-243,-243,-231,-248,-262,-238},{-257,-233,-238,-219,-250,-259},{-219,-262,-217,-228,-248,-262},{-240,-243,-248,-233,-250,-231},{-245,-248,-262,-231,-217,-226},{-252,-214,-214,-262,-238,-257},{-231,-214,-243,-214,-243,-226},{-245,-214,-262,-221,-226,-262},{-226,-214,-257,-221,-248,-257},{-233,-233,-221,-233,-233,-214},{-233,-221,-221,-245,-238,-231},{-259,-255,-248,-233,-257,-245},{-243,-226,-250,-233,-226,-224},{-257,-217,-262,-226,-228,-233},{-214,-224,-238,-238,-255,-250},{-233,-257,-224,-245,-233,-240},{-226,-262,-252,-224,-224,-236},{-228,-262,-262,-236,-224,-219},{-236,-255,-259,-259,-250,-259},{-231,-219,-250,-214,-262,-252}},{{-238,-221,-233,-226,-243,-262},{-250,-224,-250,-221,-226,-238},{-224,-257,-221,-228,-257,-219},{-259,-243,-233,-262,-231,-245},{-240,-231,-231,-250,-252,-226},{-259,-226,-214,-217,-236,-238},{-259,-233,-238,-236,-233,-224},{-238,-252,-214,-257,-228,-224},{-219,-245,-259,-217,-250,-262},{-255,-228,-214,-228,-262,-252},{-233,-233,-248,-250,-248,-248},{-245,-250,-233,-259,-238,-238},{-240,-228,-259,-233,-250,-226},{-233,-233,-226,-228,-257,-226},{-259,-233,-250,-250,-257,-224},{-231,-243,-221,-219,-228,-228},{-221,-255,-259,-217,-224,-224},{-221,-221,-248,-255,-238,-224},{-250,-221,-250,-226,-248,-228},{-248,-243,-243,-231,-233,-248}}},{{{-281,-257,-254,-281,-265,-289},{-259,-262,-287,-281,-298,-246},{-270,-276,-268,-276,-284,-257},{-265,-265,-246,-276,-281,-298},{-259,-273,-251,-257,-278,-257},{-254,-259,-254,-284,-248,-273},{-270,-292,-257,-298,-246,-248},{-246,-287,-300,-298,-273,-292},{-287,-248,-246,-284,-254,-298},{-268,-268,-300,-259,-287,-254},{-254,-273,-257,-289,-257,-295},{-262,-265,-257,-248,-251,-259},{-248,-300,-284,-268,-278,-251},{-254,-284,-273,-248,-281,-287},{-284,-246,-292,-281,-254,-273},{-295,-262,-295,-270,-278,-284},{-259,-300,-287,-248,-292,-300},{-281,-276,-281,-281,-251,-254},{-254,-284,-287,-295,-284,-257},{-289,-254,-300,-295,-254,-246}},{{-284,-273,-292,-262,-300,-287},{-254,-270,-289,-248,-262,-268},{-281,-268,-284,-300,-268,-287},{-254,-248,-268,-254,-265,-265},{-295,-273,-292,-292,-287,-278},{-246,-284,-281,-284,-265,-287},{-246,-273,-246,-289,-248,-278},{-292,-257,-262,-278,-246,-273},{-298,-248,-270,-254,-284,-248},{-298,-262,-273,-281,-281,-287},{-257,-278,-265,-281,-262,-298},{-251,-292,-254,-251,-273,-248},{-259,-298,-289,-276,-281,-257},{-298,-295,-259,-278,-289,-295},{-276,-259,-265,-270,-259,-246},{-281,-278,-298,-300,-251,-262},{-262,-262,-284,-298,-278,-298},{-270,-259,-276,-284,-254,-295},{-284,-295,-270,-248,-287,-270},{-268,-298,-300,-284,-289,-278}},{{-276,-270,-273,-257,-298,-268},{-278,-287,-262,-259,-248,-278},{-287,-246,-281,-295,-265,-246},{-246,-268,-281,-284,-276,-278},{-254,-300,-292,-289,-287,-292},{-300,-251,-251,-268,-276,-289},{-262,-259,-292,-257,-254,-265},{-270,-276,-300,-254,-292,-254},{-292,-276,-287,-300,-265,-262},{-251,-251,-289,-259,-251,-289},{-259,-246,-246,-300,-278,-287},{-289,-278,-289,-273,-284,-251},{-273,-276,-268,-278,-265,-251},{-257,-292,-295,-265,-254,-259},{-284,-257,-270,-281,-300,-270},{-246,-251,-295,-254,-268,-300},{-289,-295,-246,-248,-254,-287},{-295,-248,-265,-295,-292,-273},{-295,-251,-292,-287,-268,-248},{-259,-251,-257,-289,-257,-298}},{{-300,-292,-278,-298,-298,-300},{-262,-262,-298,-295,-281,-278},{-295,-262,-295,-268,-287,-281},{-248,-276,-268,-292,-257,-254},{-251,-284,-259,-246,-289,-273},{-259,-289,-262,-257,-298,-257},{-287,-273,-295,-262,-265,-278},{-259,-273,-298,-262,-265,-276},{-289,-265,-281,-265,-268,-248},{-265,-278,-246,-251,-273,-300},{-262,-262,-287,-284,-265,-292},{-259,-287,-298,-246,-248,-276},{-270,-300,-298,-259,-273,-259},{-246,-300,-262,-254,-300,-246},{-273,-284,-268,-254,-270,-295},{-295,-251,-281,-262,-300,-259},{-276,-265,-251,-251,-273,-248},{-281,-298,-292,-270,-287,-281},{-259,-287,-254,-284,-281,-251},{-278,-278,-259,-273,-300,-278}},{{-254,-251,-276,-246,-262,-292},{-251,-265,-287,-281,-284,-278},{-300,-246,-292,-287,-300,-248},{-273,-281,-287,-268,-246,-298},{-292,-281,-262,-265,-251,-262},{-281,-287,-300,-262,-265,-254},{-276,-251,-281,-300,-246,-254},{-262,-295,-268,-278,-300,-284},{-287,-284,-265,-276,-281,-246},{-254,-278,-265,-278,-265,-262},{-289,-265,-295,-276,-273,-273},{-248,-268,-289,-257,-262,-276},{-262,-278,-295,-246,-300,-251},{-254,-268,-298,-257,-300,-284},{-273,-270,-278,-281,-246,-292},{-292,-259,-295,-251,-281,-284},{-251,-268,-254,-265,-246,-278},{-268,-300,-278,-273,-284,-300},{-289,-259,-289,-298,-273,-278},{-273,-295,-270,-300,-276,-289}},{{-276,-276,-259,-268,-251,-300},{-273,-276,-298,-273,-254,-246},{-270,-251,-298,-289,-292,-259},{-287,-248,-270,-246,-287,-265},{-295,-300,-300,-265,-292,-300},{-268,-287,-262,-257,-246,-254},{-265,-295,-265,-292,-292,-262},{-287,-265,-292,-276,-248,-289},{-287,-259,-289,-268,-268,-268},{-278,-265,-295,-268,-262,-278},{-281,-273,-268,-284,-254,-273},{-259,-284,-262,-268,-278,-248},{-289,-300,-273,-270,-287,-259},{-270,-284,-259,-270,-259,-262},{-254,-262,-268,-289,-281,-287},{-298,-278,-295,-273,-273,-257},{-276,-284,-246,-287,-289,-251},{-246,-246,-268,-248,-262,-273},{-300,-268,-265,-284,-259,-251},{-270,-270,-257,-262,-254,-265}}},{{{-152,-165,-162,-168,-168,-146},{-142,-152,-148,-149,-157,-160},{-151,-163,-146,-160,-166,-168},{-159,-166,-163,-163,-165,-151},{-163,-165,-146,-149,-154,-160},{-163,-162,-156,-143,-143,-143},{-151,-157,-165,-142,-165,-160},{-152,-156,-151,-154,-156,-152},{-149,-168,-169,-152,-143,-168},{-168,-163,-169,-160,-145,-143},{-156,-154,-165,-169,-157,-160},{-140,-156,-143,-142,-143,-162},{-160,-157,-146,-160,-163,-165},{-146,-148,-146,-146,-140,-139},{-149,-142,-149,-140,-166,-169},{-160,-159,-169,-145,-168,-152},{-149,-165,-157,-162,-160,-154},{-151,-152,-168,-157,-154,-143},{-169,-146,-160,-162,-139,-151},{-163,-151,-157,-156,-157,-166}},{{-162,-145,-152,-151,-142,-142},{-140,-149,-149,-165,-146,-163},{-169,-146,-139,-143,-162,-169},{-163,-162,-148,-163,-145,-143},{-146,-145,-145,-156,-162,-160},{-154,-151,-145,-139,-169,-157},{-160,-142,-168,-154,-152,-149},{-146,-159,-156,-146,-139,-159},{-146,-139,-160,-156,-139,-166},{-159,-151,-157,-148,-166,-165},{-140,-160,-142,-166,-159,-140},{-149,-168,-163,-142,-163,-160},{-148,-163,-162,-169,-166,-139},{-148,-145,-139,-160,-160,-159},{-154,-148,-162,-157,-145,-146},{-145,-142,-146,-142,-142,-142},{-149,-139,-148,-163,-148,-142},{-146,-152,-140,-159,-151,-139},{-157,-143,-143,-163,-165,-146},{-162,-156,-145,-168,-160,-154}},{{-159,-162,-165,-143,-140,-139},{-157,-168,-151,-160,-148,-169},{-148,-162,-149,-139,-146,-162},{-162,-160,-160,-168,-146,-159},{-146,-148,-149,-168,-169,-154},{-160,-166,-156,-146,-151,-145},{-168,-162,-139,-156,-148,-159},{-163,-146,-139,-162,-146,-152},{-154,-151,-139,-168,-140,-146},{-143,-149,-146,-151,-145,-152},{-152,-152,-149,-140,-139,-140},{-149,-156,-140,-152,-143,-166},{-146,-143,-143,-166,-163,-142},{-149,-148,-165,-169,-157,-160},{-163,-166,-151,-142,-149,-165},{-166,-143,-159,-149,-143,-157},{-145,-146,-169,-152,-166,-162},{-163,-169,-142,-151,-160,-152},{-146,-159,-148,-166,-145,-162},{-159,-166,-151,-149,-143,-156}},{{-139,-148,-162,-166,-157,-165},{-168,-154,-143,-149,-139,-154},{-165,-140,-151,-140,-166,-162},{-163,-146,-149,-169,-140,-162},{-148,-163,-149,-156,-156,-146},{-148,-160,-160,-159,-152,-166},{-146,-169,-142,-166,-139,-149},{-154,-146,-168,-152,-143,-168},{-154,-139,-152,-157,-148,-157},{-152,-154,-157,-160,-149,-152},{-168,-169,-143,-146,-149,-142},{-149,-169,-140,-156,-166,-165},{-159,-166,-162,-159,-166,-146},{-166,-143,-140,-149,-156,-156},{-163,-142,-169,-160,-148,-163},{-148,-151,-157,-169,-157,-160},{-166,-152,-142,-146,-165,-143},{-152,-152,-146,-157,-156,-152},{-149,-146,-149,-142,-151,-156},{-145,-157,-156,-163,-162,-142}},{{-139,-149,-165,-139,-145,-151},{-160,-149,-154,-143,-165,-140},{-169,-143,-156,-159,-139,-149},{-159,-140,-142,-162,-168,-142},{-142,-156,-160,-140,-148,-142},{-168,-152,-159,-157,-139,-145},{-163,-159,-152,-165,-139,-149},{-165,-151,-159,-151,-165,-152},{-165,-148,-163,-169,-165,-168},{-146,-168,-168,-162,-157,-165},{-146,-140,-140,-157,-160,-160},{-160,-157,-168,-156,-168,-139},{-143,-159,-159,-148,-166,-162},{-165,-163,-139,-140,-163,-145},{-154,-168,-165,-152,-139,-162},{-146,-143,-140,-169,-162,-146},{-143,-156,-163,-157,-166,-163},{-157,-146,-162,-156,-142,-146},{-140,-145,-162,-152,-163,-166},{-159,-145,-157,-145,-166,-162}},{{-163,-163,-140,-140,-149,-139},{-169,-149,-169,-162,-140,-140},{-165,-159,-163,-149,-169,-159},{-154,-149,-152,-162,-145,-159},{-139,-165,-149,-162,-151,-139},{-163,-149,-154,-145,-156,-160},{-169,-169,-162,-145,-139,-166},{-168,-152,-165,-169,-148,-166},{-146,-160,-142,-148,-157,-162},{-154,-165,-157,-165,-151,-165},{-149,-166,-139,-168,-148,-149},{-163,-159,-148,-157,-152,-159},{-163,-159,-163,-159,-162,-159},{-165,-154,-168,-156,-140,-149},{-151,-148,-169,-159,-157,-156},{-165,-146,-145,-166,-139,-159},{-152,-169,-152,-152,-152,-168},{-168,-163,-159,-143,-168,-148},{-140,-165,-149,-140,-149,-143},{-162,-148,-168,-159,-140,-148}}},{{{-173,-198,-184,-167,-184,-189},{-178,-184,-166,-195,-195,-169},{-198,-178,-189,-197,-189,-198},{-193,-200,-166,-180,-171,-191},{-189,-184,-164,-200,-191,-180},{-189,-189,-184,-197,-197,-180},{-186,-169,-166,-200,-189,-171},{-178,-191,-195,-184,-195,-186},{-175,-191,-200,-177,-195,-198},{-193,-191,-182,-177,-193,-178},{-191,-198,-193,-178,-164,-166},{-186,-164,-198,-189,-178,-180},{-178,-184,-187,-173,-186,-186},{-175,-169,-177,-195,-187,-187},{-180,-187,-198,-195,-187,-198},{-191,-191,-197,-189,-166,-198},{-171,-180,-191,-184,-187,-191},{-169,-191,-175,-186,-191,-173},{-175,-182,-195,-167,-164,-200},{-197,-175,-180,-195,-177,-200}},{{-182,-177,-191,-175,-184,-169},{-169,-198,-186,-166,-182,-195},{-191,-184,-200,-169,-164,-193},{-178,-184,-167,-171,-200,-187},{-171,-184,-189,-184,-178,-175},{-177,-177,-197,-182,-171,-171},{-200,-191,-167,-198,-167,-175},{-173,-182,-177,-166,-178,-189},{-184,-166,-173,-171,-171,-178},{-193,-167,-186,-195,-169,-191},{-180,-177,-173,-187,-186,-171},{-171,-173,-197,-195,-191,-166},{-197,-180,-175,-167,-198,-178},{-187,-173,-175,-191,-178,-193},{-198,-193,-187,-171,-189,-187},{-191,-197,-184,-186,-173,-175},{-166,-175,-178,-182,-171,-184},{-180,-195,-164,-189,-167,-195},{-197,-182,-169,-197,-184,-186},{-171,-189,-175,-184,-169,-200}},{{-191,-175,-195,-189,-184,-187},{-193,-193,-200,-197,-178,-166},{-193,-177,-195,-178,-171,-178},{-193,-178,-187,-173,-186,-198},{-167,-187,-187,-198,-166,-186},{-186,-178,-164,-182,-191,-184},{-191,-189,-177,-186,-175,-178},{-178,-178,-198,-166,-169,-191},{-169,-186,-200,-200,-193,-167},{-175,-182,-200,-191,-169,-164},{-184,-175,-169,-177,-177,-191},{-198,-193,-187,-180,-195,-195},{-200,-186,-175,-169,-189,-182},{-193,-195,-175,-177,-177,-167},{-200,-178,-189,-164,-197,-200},{-189,-184,-182,-167,-182,-182},{-198,-166,-175,-193,-182,-198},{-164,-182,-186,-186,-198,-195},{-171,-186,-173,-175,-182,-177},{-184,-195,-193,-164,-184,-191}},{{-198,-175,-191,-180,-191,-180},{-191,-166,-195,-186,-195,-198},{-178,-184,-177,-198,-177,-191},{-184,-186,-182,-198,-178,-166},{-173,-177,-180,-167,-193,-178},{-164,-177,-175,-184,-187,-186},{-177,-175,-178,-200,-169,-166},{-193,-178,-198,-178,-167,-191},{-167,-169,-200,-200,-195,-198},{-195,-189,-180,-189,-195,-166},{-191,-169,-195,-198,-186,-164},{-166,-166,-167,-189,-180,-191},{-173,-167,-184,-175,-198,-187},{-187,-187,-166,-195,-200,-175},{-184,-191,-167,-191,-197,-198},{-164,-180,-175,-175,-195,-182},{-193,-180,-195,-197,-178,-182},{-171,-189,-167,-184,-195,-167},{-195,-200,-166,-193,-200,-182},{-187,-193,-186,-167,-166,-180}},{{-171,-169,-166,-186,-178,-191},{-197,-193,-187,-164,-166,-184},{-166,-166,-191,-167,-164,-195},{-171,-198,-197,-175,-197,-164},{-171,-164,-195,-186,-173,-193},{-184,-169,-175,-195,-178,-169},{-175,-193,-166,-167,-175,-187},{-184,-186,-198,-191,-189,-173},{-200,-186,-193,-178,-187,-197},{-169,-189,-175,-169,-191,-198},{-164,-166,-180,-193,-166,-169},{-191,-187,-200,-191,-166,-191},{-187,-187,-184,-200,-187,-167},{-180,-193,-195,-198,-171,-173},{-197,-189,-187,-184,-191,-182},{-173,-195,-182,-169,-193,-195},{-178,-175,-189,-182,-191,-200},{-186,-169,-177,-180,-167,-200},{-186,-173,-200,-175,-186,-193},{-200,-173,-166,-200,-195,-169}},{{-177,-198,-177,-178,-182,-184},{-184,-195,-193,-175,-187,-173},{-187,-195,-189,-187,-191,-195},{-184,-198,-171,-175,-193,-169},{-184,-197,-198,-173,-193,-197},{-171,-175,-164,-178,-197,-164},{-166,-200,-164,-193,-200,-180},{-169,-166,-173,-177,-169,-169},{-198,-167,-186,-169,-184,-171},{-178,-197,-164,-184,-166,-198},{-177,-189,-189,-166,-167,-171},{-178,-166,-184,-200,-166,-177},{-175,-171,-191,-169,-198,-200},{-197,-177,-189,-173,-184,-191},{-171,-186,-167,-171,-166,-178},{-197,-167,-198,-173,-186,-191},{-167,-180,-164,-175,-191,-180},{-189,-187,-178,-180,-193,-175},{-175,-182,-166,-187,-167,-178},{-180,-169,-200,-189,-173,-197}}},{{{-233,-238,-255,-235,-257,-243},{-262,-225,-230,-228,-262,-250},{-230,-243,-230,-220,-225,-228},{-267,-257,-247,-238,-233,-223},{-262,-267,-255,-270,-235,-230},{-228,-230,-260,-247,-223,-238},{-228,-262,-255,-257,-238,-235},{-262,-255,-247,-250,-220,-265},{-225,-267,-245,-257,-252,-267},{-243,-245,-262,-250,-228,-265},{-243,-223,-255,-260,-270,-243},{-225,-235,-223,-270,-267,-245},{-243,-245,-260,-228,-257,-265},{-247,-250,-245,-270,-250,-267},{-247,-257,-228,-255,-240,-230},{-230,-262,-230,-270,-257,-267},{-250,-260,-267,-243,-240,-265},{-250,-228,-260,-220,-233,-262},{-233,-220,-240,-247,-240,-247},{-257,-265,-262,-267,-267,-240}},{{-270,-252,-252,-262,-233,-270},{-233,-235,-238,-235,-245,-240},{-245,-235,-257,-225,-228,-245},{-252,-255,-220,-250,-262,-265},{-267,-260,-240,-247,-255,-240},{-243,-233,-228,-257,-220,-225},{-265,-267,-265,-245,-230,-238},{-240,-225,-270,-240,-250,-257},{-240,-250,-238,-235,-230,-238},{-228,-262,-240,-250,-265,-247},{-257,-225,-265,-238,-255,-220},{-225,-250,-270,-265,-238,-235},{-235,-270,-245,-262,-252,-243},{-252,-257,-228,-260,-257,-223},{-223,-255,-223,-255,-230,-257},{-250,-267,-255,-233,-245,-230},{-245,-238,-233,-262,-243,-255},{-257,-252,-257,-233,-220,-230},{-260,-250,-220,-260,-245,-270},{-223,-245,-267,-245,-223,-252}},{{-223,-220,-240,-260,-260,-240},{-235,-233,-223,-260,-247,-228},{-230,-265,-255,-260,-257,-257},{-250,-262,-257,-247,-220,-233},{-257,-223,-225,-255,-220,-228},{-257,-250,-257,-270,-257,-240},{-223,-250,-255,-228,-265,-235},{-252,-230,-228,-225,-225,-247},{-270,-240,-257,-255,-245,-233},{-235,-270,-270,-260,-233,-240},{-247,-250,-250,-228,-262,-220},{-233,-233,-260,-265,-255,-220},{-260,-255,-250,-245,-245,-223},{-225,-240,-265,-225,-233,-252},{-240,-270,-230,-230,-240,-223},{-255,-243,-240,-230,-262,-250},{-238,-270,-220,-270,-240,-240},{-260,-240,-235,-243,-270,-228},{-238,-225,-245,-252,-262,-235},{-262,-257,-270,-267,-243,-243}},{{-250,-240,-270,-243,-257,-247},{-238,-230,-223,-257,-243,-255},{-225,-267,-240,-270,-262,-245},{-228,-230,-243,-252,-240,-265},{-265,-252,-223,-230,-255,-257},{-220,-233,-243,-270,-230,-270},{-223,-247,-223,-255,-228,-265},{-228,-260,-265,-238,-240,-235},{-247,-252,-262,-260,-245,-228},{-223,-250,-267,-270,-243,-230},{-257,-247,-270,-243,-267,-260},{-230,-250,-247,-245,-250,-243},{-252,-265,-240,-220,-235,-245},{-252,-243,-243,-267,-223,-235},{-220,-255,-235,-250,-247,-223},{-252,-220,-267,-250,-245,-240},{-252,-245,-262,-223,-265,-247},{-225,-243,-257,-255,-240,-233},{-255,-247,-252,-225,-245,-247},{-255,-225,-225,-260,-238,-245}},{{-247,-223,-235,-260,-250,-243},{-265,-233,-267,-228,-235,-255},{-228,-267,-245,-267,-252,-260},{-262,-247,-247,-220,-243,-223},{-238,-250,-238,-243,-225,-255},{-238,-247,-243,-270,-238,-225},{-225,-225,-260,-260,-257,-235},{-267,-250,-228,-267,-225,-223},{-238,-262,-262,-228,-262,-243},{-260,-260,-233,-238,-233,-250},{-260,-235,-220,-235,-267,-265},{-220,-270,-245,-233,-267,-225},{-240,-270,-228,-255,-265,-247},{-240,-238,-252,-220,-245,-220},{-233,-252,-243,-233,-230,-245},{-250,-260,-262,-233,-260,-228},{-225,-238,-245,-245,-257,-233},{-270,-260,-220,-233,-220,-238},{-262,-247,-245,-230,-238,-267},{-245,-267,-240,-270,-243,-240}},{{-270,-252,-235,-223,-228,-247},{-260,-220,-267,-250,-240,-260},{-260,-262,-233,-267,-235,-257},{-225,-252,-228,-257,-270,-228},{-240,-230,-238,-223,-252,-225},{-243,-255,-240,-267,-270,-235},{-225,-228,-245,-245,-220,-247},{-245,-262,-235,-257,-233,-265},{-230,-255,-257,-250,-260,-233},{-245,-255,-233,-230,-223,-233},{-260,-262,-260,-262,-267,-265},{-228,-257,-260,-267,-260,-262},{-265,-262,-223,-238,-260,-233},{-267,-252,-238,-262,-225,-255},{-235,-230,-262,-233,-262,-223},{-230,-228,-250,-267,-270,-255},{-223,-240,-225,-225,-260,-230},{-262,-233,-255,-233,-250,-245},{-252,-270,-243,-257,-240,-257},{-257,-247,-255,-260,-240,-233}}},{{{-252,-252,-252,-245,-226,-254},{-215,-240,-238,-247,-245,-231},{-226,-217,-231,-217,-254,-245},{-226,-252,-229,-215,-208,-247},{-247,-219,-233,-217,-222,-217},{-210,-222,-243,-249,-213,-229},{-219,-243,-226,-215,-215,-217},{-245,-215,-247,-247,-210,-222},{-236,-243,-252,-240,-224,-245},{-217,-245,-226,-236,-236,-224},{-210,-247,-240,-247,-233,-243},{-236,-229,-243,-213,-252,-238},{-222,-224,-215,-238,-236,-243},{-224,-226,-213,-217,-243,-226},{-236,-249,-215,-249,-249,-224},{-238,-249,-226,-210,-254,-226},{-231,-226,-249,-243,-229,-208},{-233,-231,-224,-236,-222,-229},{-240,-233,-213,-245,-229,-233},{-210,-224,-238,-217,-224,-243}},{{-252,-249,-240,-231,-245,-233},{-213,-215,-213,-217,-210,-247},{-236,-238,-254,-233,-213,-252},{-243,-217,-208,-254,-226,-245},{-217,-219,-213,-229,-217,-215},{-247,-222,-210,-249,-238,-249},{-219,-233,-224,-219,-217,-224},{-236,-226,-219,-238,-219,-249},{-247,-229,-226,-254,-254,-226},{-252,-233,-219,-254,-245,-219},{-215,-245,-222,-236,-240,-213},{-213,-231,-219,-233,-215,-233},{-236,-210,-217,-226,-233,-249},{-229,-240,-236,-229,-254,-210},{-252,-215,-217,-217,-219,-252},{-236,-233,-240,-219,-219,-213},{-219,-236,-245,-240,-236,-236},{-224,-215,-208,-233,-249,-231},{-213,-224,-240,-249,-222,-238},{-231,-245,-240,-233,-217,-238}},{{-240,-240,-247,-217,-217,-247},{-233,-254,-208,-217,-210,-233},{-226,-215,-249,-245,-219,-224},{-243,-236,-254,-226,-247,-240},{-252,-233,-245,-208,-213,-222},{-231,-236,-208,-224,-240,-208},{-247,-231,-245,-219,-208,-213},{-245,-247,-222,-231,-213,-243},{-243,-238,-224,-231,-231,-208},{-252,-249,-245,-249,-233,-229},{-254,-245,-249,-222,-213,-215},{-224,-210,-229,-236,-233,-229},{-224,-243,-252,-254,-215,-240},{-240,-236,-224,-229,-243,-240},{-252,-243,-213,-233,-208,-229},{-219,-238,-249,-208,-208,-245},{-210,-249,-240,-240,-245,-213},{-208,-249,-231,-208,-222,-208},{-215,-213,-240,-231,-238,-233},{-222,-247,-213,-219,-213,-208}},{{-233,-243,-213,-245,-229,-217},{-217,-215,-210,-229,-233,-215},{-249,-238,-215,-229,-210,-208},{-252,-224,-236,-210,-252,-229},{-215,-233,-222,-215,-229,-210},{-229,-231,-240,-233,-252,-224},{-215,-243,-245,-213,-254,-233},{-243,-213,-210,-217,-233,-254},{-233,-233,-213,-236,-215,-236},{-213,-222,-233,-254,-229,-243},{-224,-238,-238,-254,-217,-219},{-243,-252,-210,-240,-224,-229},{-222,-252,-236,-243,-243,-224},{-254,-249,-215,-210,-213,-231},{-233,-254,-233,-252,-247,-219},{-254,-233,-252,-219,-217,-249},{-213,-243,-254,-238,-238,-217},{-238,-217,-243,-236,-226,-247},{-213,-210,-245,-231,-240,-231},{-213,-233,-238,-238,-254,-219}},{{-210,-219,-224,-229,-219,-243},{-252,-243,-231,-233,-217,-231},{-226,-231,-240,-210,-215,-208},{-208,-208,-240,-213,-240,-222},{-240,-233,-213,-215,-233,-226},{-231,-247,-208,-252,-233,-208},{-229,-238,-233,-210,-249,-229},{-231,-233,-229,-213,-247,-226},{-231,-249,-208,-213,-231,-217},{-215,-233,-254,-245,-217,-229},{-254,-208,-243,-226,-249,-219},{-240,-249,-226,-222,-219,-249},{-224,-231,-254,-219,-254,-210},{-226,-238,-226,-224,-210,-222},{-217,-213,-219,-233,-217,-236},{-254,-236,-238,-245,-219,-226},{-233,-226,-247,-231,-233,-243},{-247,-254,-233,-233,-215,-231},{-249,-226,-252,-222,-236,-245},{-229,-243,-240,-208,-252,-243}},{{-208,-229,-238,-238,-231,-243},{-240,-254,-226,-215,-233,-254},{-210,-217,-231,-208,-247,-219},{-236,-243,-224,-219,-245,-224},{-236,-245,-240,-217,-243,-213},{-222,-249,-222,-249,-247,-224},{-233,-231,-224,-254,-208,-219},{-245,-249,-249,-210,-243,-236},{-245,-213,-236,-233,-210,-243},{-229,-229,-219,-252,-222,-254},{-243,-243,-249,-210,-245,-231},{-217,-231,-219,-243,-226,-224},{-247,-213,-238,-247,-236,-226},{-219,-224,-208,-236,-238,-233},{-231,-240,-236,-252,-215,-229},{-238,-249,-229,-247,-243,-238},{-240,-252,-208,-226,-233,-213},{-217,-238,-238,-254,-208,-238},{-236,-208,-224,-240,-233,-236},{-215,-247,-254,-224,-252,-213}}},{{{-291,-276,-291,-306,-273,-276},{-323,-294,-276,-291,-306,-306},{-276,-303,-306,-294,-306,-279},{-268,-312,-285,-312,-306,-288},{-320,-282,-303,-303,-315,-285},{-294,-309,-276,-306,-294,-276},{-323,-282,-291,-297,-323,-279},{-291,-291,-323,-268,-300,-309},{-309,-268,-297,-265,-303,-279},{-268,-320,-268,-282,-297,-300},{-318,-265,-288,-318,-279,-309},{-276,-306,-297,-315,-309,-288},{-300,-270,-288,-288,-297,-315},{-300,-279,-320,-300,-303,-303},{-323,-315,-276,-318,-294,-315},{-297,-291,-297,-309,-323,-315},{-285,-288,-312,-285,-291,-288},{-312,-282,-309,-273,-300,-323},{-309,-320,-312,-320,-297,-320},{-279,-300,-303,-312,-318,-265}},{{-273,-318,-288,-276,-285,-270},{-265,-288,-268,-297,-279,-312},{-276,-282,-323,-320,-265,-279},{-297,-285,-300,-288,-306,-312},{-303,-300,-273,-312,-291,-312},{-312,-306,-270,-297,-276,-285},{-300,-282,-268,-279,-285,-273},{-282,-270,-265,-268,-268,-282},{-297,-291,-276,-276,-323,-279},{-273,-309,-285,-312,-320,-282},{-297,-265,-265,-300,-288,-268},{-265,-288,-276,-297,-279,-294},{-279,-265,-270,-276,-276,-309},{-297,-318,-268,-288,-294,-306},{-297,-315,-323,-300,-265,-306},{-288,-309,-279,-303,-306,-279},{-312,-297,-265,-315,-276,-297},{-320,-268,-273,-279,-270,-270},{-279,-323,-312,-323,-306,-312},{-294,-276,-273,-312,-318,-279}},{{-276,-265,-312,-291,-288,-276},{-312,-265,-318,-288,-282,-315},{-300,-268,-309,-315,-300,-270},{-279,-323,-320,-285,-306,-315},{-294,-320,-312,-318,-282,-303},{-306,-270,-270,-323,-288,-268},{-303,-291,-320,-276,-323,-303},{-318,-276,-315,-279,-273,-273},{-294,-309,-291,-273,-306,-285},{-303,-291,-282,-273,-303,-306},{-268,-268,-306,-279,-300,-270},{-303,-297,-285,-297,-270,-309},{-306,-279,-297,-309,-300,-300},{-285,-318,-285,-320,-323,-303},{-294,-306,-309,-279,-285,-306},{-312,-303,-300,-276,-306,-303},{-318,-309,-273,-320,-291,-268},{-303,-318,-265,-303,-294,-294},{-294,-279,-318,-265,-315,-320},{-300,-273,-320,-268,-300,-309}},{{-268,-312,-303,-309,-309,-265},{-285,-297,-300,-318,-320,-282},{-270,-323,-268,-300,-309,-309},{-291,-318,-265,-285,-306,-265},{-309,-288,-285,-291,-294,-265},{-285,-300,-297,-300,-270,-309},{-297,-273,-323,-279,-309,-312},{-297,-270,-294,-318,-318,-273},{-279,-309,-306,-323,-294,-273},{-265,-279,-303,-312,-265,-282},{-300,-273,-276,-282,-320,-288},{-285,-294,-323,-288,-279,-282},{-276,-320,-315,-291,-265,-288},{-276,-309,-294,-323,-323,-294},{-312,-291,-268,-318,-303,-294},{-303,-300,-291,-297,-276,-309},{-297,-279,-282,-315,-282,-315},{-294,-303,-291,-294,-279,-297},{-323,-315,-312,-273,-268,-318},{-285,-303,-273,-265,-300,-312}},{{-273,-294,-282,-315,-323,-279},{-268,-282,-291,-303,-300,-265},{-323,-323,-279,-309,-273,-294},{-297,-270,-288,-270,-312,-291},{-303,-300,-297,-285,-294,-273},{-276,-291,-268,-270,-297,-315},{-268,-273,-318,-291,-285,-297},{-309,-279,-265,-282,-312,-294},{-297,-320,-288,-265,-268,-323},{-294,-309,-315,-320,-288,-323},{-285,-270,-312,-315,-306,-303},{-285,-294,-282,-279,-300,-297},{-265,-315,-265,-300,-300,-268},{-309,-315,-279,-268,-279,-288},{-294,-270,-268,-323,-270,-312},{-318,-309,-323,-297,-306,-320},{-309,-268,-294,-300,-273,-323},{-282,-318,-323,-312,-309,-291},{-291,-273,-279,-279,-291,-276},{-318,-320,-323,-318,-279,-273}},{{-273,-268,-276,-285,-270,-294},{-276,-320,-288,-306,-315,-312},{-279,-291,-291,-300,-318,-265},{-318,-285,-270,-323,-273,-300},{-312,-294,-318,-265,-300,-318},{-300,-323,-268,-315,-318,-315},{-270,-276,-288,-323,-312,-291},{-270,-276,-318,-282,-300,-270},{-315,-312,-315,-318,-306,-279},{-270,-309,-288,-309,-291,-309},{-265,-276,-279,-285,-320,-320},{-323,-291,-279,-315,-312,-276},{-268,-279,-294,-297,-306,-306},{-270,-276,-294,-315,-288,-312},{-276,-273,-279,-320,-297,-270},{-300,-294,-276,-268,-309,-291},{-297,-294,-270,-273,-312,-312},{-297,-288,-309,-300,-303,-312},{-297,-270,-270,-306,-320,-270},{-268,-323,-273,-288,-270,-276}}}}; // 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]={15,8,5,15,8,5,15,8,6,16,8,6,16,9,6,16,8,6,16,8,6,17,9,6,16,9,6,17,8,6,16,8,6,17,8,6,17,9,6,18,9,6,18,9,6,17,9,6,17,9,6,17,9,6,17,8,6,17,9,6,16,8,6,16,9,6,17,9,6,17,8,6}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14},{15,16,17,18,19,20,21,22},{23,24,25,26,27},{28,29,30,31,32,33,34,35,36,37,38,39,40,41,42},{43,44,45,46,47,48,49,50},{51,52,53,54,55},{56,57,58,59,60,61,62,63,64,65,66,67,68,69,70},{71,72,73,74,75,76,77,78},{79,80,81,82,83,84},{85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100},{101,102,103,104,105,106,107,108},{109,110,111,112,113,114},{115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130},{131,132,133,134,135,136,137,138,139},{140,141,142,143,144,145},{146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161},{162,163,164,165,166,167,168,169},{170,171,172,173,174,175},{176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191},{192,193,194,195,196,197,198,199},{200,201,202,203,204,205},{206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222},{223,224,225,226,227,228,229,230,231},{232,233,234,235,236,237},{238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253},{254,255,256,257,258,259,260,261,262},{263,264,265,266,267,268},{269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285},{286,287,288,289,290,291,292,293},{294,295,296,297,298,299},{300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315},{316,317,318,319,320,321,322,323},{324,325,326,327,328,329},{330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346},{347,348,349,350,351,352,353,354},{355,356,357,358,359,360},{361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377},{378,379,380,381,382,383,384,385,386},{387,388,389,390,391,392},{393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410},{411,412,413,414,415,416,417,418,419},{420,421,422,423,424,425},{426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443},{444,445,446,447,448,449,450,451,452},{453,454,455,456,457,458},{459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475},{476,477,478,479,480,481,482,483,484},{485,486,487,488,489,490},{491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507},{508,509,510,511,512,513,514,515,516},{517,518,519,520,521,522},{523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539},{540,541,542,543,544,545,546,547,548},{549,550,551,552,553,554},{555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571},{572,573,574,575,576,577,578,579},{580,581,582,583,584,585},{586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602},{603,604,605,606,607,608,609,610,611},{612,613,614,615,616,617},{618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633},{634,635,636,637,638,639,640,641},{642,643,644,645,646,647},{648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663},{664,665,666,667,668,669,670,671,672},{673,674,675,676,677,678},{679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695},{696,697,698,699,700,701,702,703,704},{705,706,707,708,709,710},{711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727},{728,729,730,731,732,733,734,735},{736,737,738,739,740,741}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,0,4,8,12,16,20,24,28,2,8,14,20,26,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,1,5,9,13,17,21,25,29,1,7,13,19,25,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,0,4,8,12,16,20,24,28,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,2,6,10,14,18,22,26,30,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,2,6,10,14,18,22,26,30,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,34,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,1,5,9,13,17,21,25,29,1,7,13,19,25,31}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,7,13,19,25,31,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,6,10,14,18,22,26,30,34,6,12,18,24,30,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,5,11,17,23,29,35,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,5,11,17,23,29,35,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,5,11,17,23,29,35,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,2,8,14,20,26,32,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,3,9,15,21,27,33,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,2,8,14,20,26,32,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,1,7,13,19,25,31,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,4,10,16,22,28,34}; // set of end times of each shipment 
