int Dev = 10;// Deviation
extern const int CNN = 1;// 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 = 737;//Number of shipments
extern const int SN = 20;//Number of scenarios at each stage
extern const int MBSN = 17;//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]={{{{11405,0,0,0,0,0},{11517,0,0,0,0,0},{11674,0,0,0,0,0},{11606,0,0,0,0,0},{11367,0,0,0,0,0},{11503,0,0,0,0,0},{11488,0,0,0,0,0},{11396,0,0,0,0,0},{11645,0,0,0,0,0},{11487,0,0,0,0,0},{11577,0,0,0,0,0},{11499,0,0,0,0,0},{11603,0,0,0,0,0},{11452,0,0,0,0,0},{11525,0,0,0,0,0},{11464,0,0,0,0,0},{11625,0,0,0,0,0},{11553,0,0,0,0,0},{11621,0,0,0,0,0},{11477,0,0,0,0,0}},{{11637,0,0,0,0,0},{11491,0,0,0,0,0},{11375,0,0,0,0,0},{11478,0,0,0,0,0},{11419,0,0,0,0,0},{11494,0,0,0,0,0},{11459,0,0,0,0,0},{11394,0,0,0,0,0},{11546,0,0,0,0,0},{11810,0,0,0,0,0},{11482,0,0,0,0,0},{11463,0,0,0,0,0},{11539,0,0,0,0,0},{11399,0,0,0,0,0},{11512,0,0,0,0,0},{11346,0,0,0,0,0},{11496,0,0,0,0,0},{11440,0,0,0,0,0},{11467,0,0,0,0,0},{11633,0,0,0,0,0}},{{11459,0,0,0,0,0},{11296,0,0,0,0,0},{11529,0,0,0,0,0},{11373,0,0,0,0,0},{11653,0,0,0,0,0},{11609,0,0,0,0,0},{11516,0,0,0,0,0},{11491,0,0,0,0,0},{11455,0,0,0,0,0},{11528,0,0,0,0,0},{11525,0,0,0,0,0},{11683,0,0,0,0,0},{11529,0,0,0,0,0},{11511,0,0,0,0,0},{11594,0,0,0,0,0},{11390,0,0,0,0,0},{11559,0,0,0,0,0},{11495,0,0,0,0,0},{11646,0,0,0,0,0},{11461,0,0,0,0,0}},{{11450,0,0,0,0,0},{11420,0,0,0,0,0},{11708,0,0,0,0,0},{11565,0,0,0,0,0},{11554,0,0,0,0,0},{11568,0,0,0,0,0},{11516,0,0,0,0,0},{11589,0,0,0,0,0},{11344,0,0,0,0,0},{11451,0,0,0,0,0},{11588,0,0,0,0,0},{11586,0,0,0,0,0},{11489,0,0,0,0,0},{11542,0,0,0,0,0},{11587,0,0,0,0,0},{11367,0,0,0,0,0},{11477,0,0,0,0,0},{11621,0,0,0,0,0},{11408,0,0,0,0,0},{11547,0,0,0,0,0}},{{11634,0,0,0,0,0},{11310,0,0,0,0,0},{11281,0,0,0,0,0},{11497,0,0,0,0,0},{11574,0,0,0,0,0},{11407,0,0,0,0,0},{11523,0,0,0,0,0},{11474,0,0,0,0,0},{11552,0,0,0,0,0},{11707,0,0,0,0,0},{11497,0,0,0,0,0},{11646,0,0,0,0,0},{11351,0,0,0,0,0},{11432,0,0,0,0,0},{11593,0,0,0,0,0},{11522,0,0,0,0,0},{11470,0,0,0,0,0},{11544,0,0,0,0,0},{11460,0,0,0,0,0},{11440,0,0,0,0,0}},{{11518,0,0,0,0,0},{11364,0,0,0,0,0},{11379,0,0,0,0,0},{11515,0,0,0,0,0},{11673,0,0,0,0,0},{11642,0,0,0,0,0},{11517,0,0,0,0,0},{11358,0,0,0,0,0},{11459,0,0,0,0,0},{11567,0,0,0,0,0},{11614,0,0,0,0,0},{11687,0,0,0,0,0},{11498,0,0,0,0,0},{11412,0,0,0,0,0},{11601,0,0,0,0,0},{11541,0,0,0,0,0},{11508,0,0,0,0,0},{11674,0,0,0,0,0},{11650,0,0,0,0,0},{11438,0,0,0,0,0}}},{{{-221,-223,-201,-217,-203,-199},{-221,-213,-201,-211,-191,-203},{-187,-221,-207,-219,-193,-191},{-195,-207,-213,-215,-199,-213},{-215,-187,-209,-199,-221,-183},{-219,-209,-205,-221,-191,-201},{-207,-195,-217,-197,-197,-217},{-217,-211,-185,-207,-187,-199},{-187,-193,-193,-217,-213,-203},{-215,-223,-221,-205,-197,-205},{-199,-191,-185,-187,-193,-185},{-223,-205,-201,-183,-199,-193},{-187,-205,-211,-207,-203,-217},{-191,-213,-201,-213,-211,-201},{-201,-205,-197,-205,-195,-211},{-185,-209,-205,-221,-197,-191},{-193,-221,-217,-201,-187,-215},{-187,-213,-191,-201,-191,-213},{-195,-209,-185,-217,-223,-221},{-213,-193,-213,-197,-197,-195}},{{-201,-215,-187,-185,-185,-211},{-215,-219,-207,-201,-215,-199},{-183,-199,-219,-209,-193,-191},{-209,-193,-195,-201,-211,-223},{-191,-191,-213,-223,-191,-219},{-183,-219,-209,-207,-205,-183},{-207,-221,-183,-183,-209,-219},{-215,-219,-203,-207,-195,-219},{-213,-217,-221,-189,-213,-193},{-201,-211,-197,-217,-217,-223},{-187,-197,-213,-199,-211,-199},{-201,-215,-221,-195,-183,-203},{-213,-207,-215,-205,-185,-205},{-201,-207,-219,-217,-183,-217},{-215,-191,-207,-201,-213,-215},{-205,-195,-185,-183,-217,-217},{-219,-219,-195,-183,-183,-199},{-183,-189,-183,-193,-203,-205},{-185,-197,-189,-217,-215,-201},{-203,-219,-201,-219,-223,-213}},{{-195,-193,-223,-197,-195,-221},{-213,-223,-191,-205,-189,-201},{-213,-209,-215,-213,-201,-191},{-221,-187,-203,-183,-197,-217},{-195,-203,-205,-187,-201,-205},{-215,-207,-213,-219,-201,-219},{-213,-221,-187,-209,-185,-221},{-199,-209,-199,-223,-211,-205},{-223,-183,-197,-189,-201,-209},{-219,-201,-203,-223,-215,-195},{-201,-213,-207,-187,-217,-183},{-223,-221,-193,-221,-193,-199},{-211,-185,-221,-211,-221,-213},{-201,-207,-211,-193,-195,-197},{-205,-205,-187,-213,-193,-193},{-211,-183,-189,-183,-217,-191},{-201,-209,-193,-193,-189,-193},{-221,-201,-185,-205,-197,-219},{-195,-211,-203,-215,-215,-201},{-185,-205,-199,-195,-199,-201}},{{-217,-185,-195,-223,-187,-193},{-185,-195,-219,-221,-219,-201},{-189,-217,-215,-223,-185,-189},{-223,-209,-197,-211,-211,-207},{-213,-189,-191,-209,-199,-183},{-213,-199,-197,-217,-207,-183},{-193,-199,-195,-223,-197,-201},{-219,-223,-193,-215,-193,-199},{-193,-189,-209,-195,-209,-203},{-219,-211,-193,-189,-223,-193},{-185,-205,-191,-211,-221,-213},{-199,-193,-211,-221,-189,-211},{-191,-183,-219,-197,-185,-223},{-219,-215,-207,-209,-205,-185},{-187,-195,-207,-223,-209,-219},{-193,-183,-197,-197,-185,-185},{-207,-197,-211,-213,-203,-205},{-217,-207,-195,-221,-219,-219},{-187,-183,-189,-221,-183,-193},{-201,-213,-215,-207,-215,-215}},{{-207,-223,-185,-197,-189,-219},{-189,-215,-183,-201,-217,-215},{-189,-201,-199,-191,-221,-185},{-185,-201,-183,-193,-203,-207},{-189,-201,-201,-219,-187,-209},{-199,-209,-209,-199,-191,-183},{-195,-183,-203,-183,-203,-199},{-191,-219,-185,-187,-201,-213},{-209,-203,-207,-223,-213,-191},{-207,-211,-197,-199,-215,-199},{-193,-217,-201,-189,-217,-185},{-191,-207,-211,-203,-193,-183},{-189,-201,-199,-193,-215,-199},{-221,-197,-217,-213,-193,-191},{-201,-197,-199,-219,-211,-211},{-201,-205,-191,-207,-193,-187},{-221,-205,-195,-191,-197,-187},{-185,-189,-203,-199,-185,-217},{-189,-189,-223,-191,-209,-213},{-205,-209,-203,-223,-197,-217}},{{-223,-223,-213,-217,-203,-195},{-209,-203,-189,-207,-187,-217},{-185,-193,-207,-193,-183,-219},{-213,-199,-219,-185,-209,-205},{-219,-193,-215,-189,-215,-203},{-203,-205,-187,-193,-185,-207},{-187,-195,-201,-205,-213,-215},{-193,-185,-187,-189,-191,-199},{-187,-195,-215,-221,-221,-221},{-215,-209,-221,-183,-223,-193},{-223,-217,-219,-213,-213,-223},{-203,-223,-213,-221,-213,-223},{-209,-187,-193,-223,-203,-191},{-191,-197,-219,-211,-217,-189},{-207,-203,-203,-185,-201,-217},{-183,-213,-207,-191,-207,-207},{-207,-221,-195,-199,-195,-205},{-211,-199,-195,-205,-213,-223},{-189,-207,-195,-185,-199,-195},{-221,-197,-191,-205,-199,-199}}},{{{-151,-171,-172,-145,-174,-172},{-155,-155,-148,-161,-150,-159},{-153,-171,-147,-171,-155,-155},{-177,-175,-153,-145,-153,-167},{-158,-167,-171,-147,-145,-163},{-163,-148,-174,-169,-177,-174},{-175,-175,-166,-150,-171,-155},{-159,-175,-161,-163,-148,-153},{-159,-145,-174,-174,-145,-177},{-175,-150,-155,-159,-150,-177},{-148,-159,-148,-156,-145,-163},{-159,-159,-148,-177,-155,-174},{-155,-153,-159,-175,-172,-145},{-145,-167,-177,-156,-158,-159},{-155,-156,-164,-169,-164,-167},{-177,-158,-166,-150,-159,-177},{-166,-150,-158,-166,-171,-155},{-148,-166,-158,-172,-161,-156},{-147,-172,-167,-155,-174,-167},{-155,-158,-148,-158,-158,-169}},{{-155,-159,-150,-166,-145,-150},{-145,-150,-177,-169,-171,-163},{-159,-148,-167,-151,-175,-161},{-174,-150,-163,-147,-153,-153},{-169,-151,-158,-153,-150,-147},{-147,-171,-148,-167,-156,-155},{-151,-151,-161,-164,-145,-164},{-156,-161,-151,-148,-177,-153},{-153,-147,-163,-163,-166,-155},{-166,-171,-163,-167,-164,-171},{-153,-166,-172,-172,-159,-156},{-161,-163,-156,-161,-145,-174},{-161,-150,-166,-155,-155,-172},{-151,-161,-145,-175,-151,-150},{-164,-159,-153,-147,-164,-153},{-167,-156,-167,-147,-161,-163},{-151,-171,-145,-166,-171,-147},{-164,-148,-166,-158,-166,-155},{-166,-177,-161,-155,-155,-177},{-159,-169,-156,-161,-150,-166}},{{-159,-153,-156,-172,-169,-156},{-166,-169,-164,-151,-172,-148},{-167,-153,-175,-172,-161,-150},{-148,-172,-174,-163,-169,-161},{-159,-177,-163,-169,-150,-151},{-163,-155,-175,-147,-161,-155},{-155,-148,-148,-156,-150,-167},{-175,-155,-158,-153,-145,-151},{-164,-172,-155,-153,-166,-175},{-155,-150,-167,-148,-153,-161},{-151,-175,-153,-161,-172,-164},{-175,-166,-163,-164,-177,-151},{-151,-163,-166,-159,-167,-156},{-151,-155,-175,-148,-145,-167},{-155,-153,-175,-150,-177,-156},{-150,-169,-151,-159,-150,-159},{-158,-147,-151,-151,-171,-150},{-163,-166,-163,-172,-163,-166},{-171,-167,-174,-174,-163,-155},{-166,-164,-161,-147,-163,-145}},{{-174,-175,-167,-169,-155,-166},{-175,-156,-167,-150,-164,-150},{-150,-175,-163,-171,-174,-177},{-166,-174,-166,-172,-153,-145},{-167,-161,-172,-175,-167,-164},{-147,-175,-164,-158,-159,-177},{-171,-171,-167,-151,-172,-164},{-166,-171,-161,-169,-166,-150},{-151,-164,-151,-151,-155,-163},{-145,-158,-148,-148,-153,-174},{-167,-174,-147,-175,-156,-151},{-166,-163,-175,-163,-158,-148},{-156,-175,-153,-161,-177,-171},{-150,-163,-161,-172,-171,-148},{-148,-147,-167,-151,-171,-159},{-167,-166,-151,-155,-155,-163},{-153,-153,-172,-164,-151,-147},{-172,-155,-150,-167,-151,-159},{-174,-145,-177,-153,-150,-147},{-159,-169,-164,-167,-172,-174}},{{-167,-177,-174,-158,-156,-163},{-158,-148,-148,-166,-153,-166},{-163,-161,-148,-150,-155,-150},{-145,-171,-163,-155,-147,-145},{-156,-153,-151,-147,-150,-151},{-145,-175,-145,-147,-155,-166},{-174,-175,-158,-151,-174,-175},{-172,-166,-156,-172,-163,-150},{-177,-175,-150,-177,-169,-147},{-172,-148,-175,-163,-172,-174},{-147,-163,-156,-145,-159,-169},{-150,-153,-147,-169,-172,-163},{-174,-175,-163,-163,-166,-161},{-159,-148,-161,-167,-150,-159},{-174,-150,-163,-169,-177,-164},{-151,-159,-151,-153,-164,-158},{-153,-163,-175,-155,-150,-145},{-155,-147,-158,-175,-151,-147},{-172,-156,-159,-172,-172,-153},{-161,-163,-148,-153,-151,-169}},{{-159,-150,-150,-158,-172,-158},{-158,-167,-175,-147,-159,-166},{-150,-155,-150,-171,-151,-147},{-153,-153,-174,-171,-163,-175},{-164,-164,-175,-159,-169,-174},{-155,-175,-164,-167,-171,-150},{-172,-158,-161,-174,-164,-174},{-163,-151,-166,-159,-153,-147},{-151,-174,-159,-148,-163,-174},{-172,-166,-172,-169,-153,-151},{-166,-172,-155,-153,-156,-171},{-147,-167,-153,-169,-174,-147},{-172,-155,-145,-164,-151,-145},{-151,-150,-166,-147,-166,-161},{-148,-164,-156,-175,-174,-171},{-171,-155,-150,-167,-164,-171},{-169,-166,-150,-172,-174,-153},{-175,-175,-148,-153,-177,-171},{-158,-175,-175,-175,-150,-166},{-169,-153,-148,-145,-167,-148}}},{{{-210,-224,-210,-219,-231,-224},{-238,-236,-254,-208,-238,-213},{-215,-236,-238,-213,-213,-254},{-219,-245,-224,-222,-233,-229},{-217,-254,-236,-215,-245,-215},{-233,-231,-208,-254,-247,-224},{-231,-240,-252,-224,-252,-222},{-226,-254,-236,-249,-226,-226},{-249,-208,-219,-243,-254,-238},{-208,-208,-240,-233,-215,-254},{-238,-217,-254,-233,-247,-219},{-243,-213,-245,-226,-238,-231},{-210,-245,-233,-215,-217,-243},{-219,-236,-210,-213,-213,-243},{-222,-247,-233,-215,-215,-233},{-238,-247,-208,-222,-233,-219},{-245,-254,-226,-224,-233,-249},{-217,-224,-215,-226,-247,-238},{-229,-224,-240,-247,-236,-233},{-226,-217,-215,-249,-208,-252}},{{-219,-249,-243,-254,-226,-236},{-236,-249,-208,-254,-236,-219},{-208,-247,-224,-254,-233,-233},{-213,-249,-210,-229,-222,-249},{-245,-208,-247,-226,-210,-222},{-245,-231,-252,-210,-254,-219},{-252,-208,-217,-224,-213,-226},{-243,-208,-243,-222,-210,-236},{-254,-243,-229,-217,-245,-238},{-238,-215,-240,-240,-252,-236},{-247,-229,-233,-224,-252,-243},{-252,-208,-233,-243,-213,-226},{-217,-224,-210,-226,-233,-213},{-236,-208,-217,-245,-245,-252},{-213,-219,-243,-238,-247,-247},{-243,-219,-240,-215,-238,-243},{-208,-217,-252,-226,-224,-245},{-231,-236,-233,-240,-222,-247},{-233,-252,-249,-222,-226,-252},{-231,-254,-233,-236,-233,-224}},{{-240,-213,-245,-226,-210,-236},{-254,-222,-213,-247,-213,-226},{-219,-224,-238,-254,-224,-215},{-254,-213,-217,-249,-240,-219},{-222,-219,-243,-231,-210,-233},{-210,-245,-226,-210,-215,-224},{-213,-236,-229,-231,-236,-243},{-224,-254,-245,-254,-231,-254},{-217,-213,-252,-213,-229,-252},{-229,-215,-254,-226,-252,-219},{-217,-252,-226,-222,-226,-233},{-222,-233,-243,-240,-213,-222},{-243,-213,-222,-254,-231,-219},{-229,-215,-208,-222,-243,-208},{-226,-217,-229,-233,-213,-243},{-222,-231,-233,-222,-222,-208},{-249,-252,-238,-224,-219,-243},{-231,-252,-217,-226,-224,-240},{-233,-233,-226,-217,-240,-245},{-245,-249,-229,-222,-208,-213}},{{-243,-210,-240,-208,-222,-229},{-238,-238,-224,-245,-219,-231},{-215,-224,-249,-224,-249,-236},{-252,-236,-245,-210,-252,-249},{-238,-252,-231,-245,-222,-247},{-252,-224,-213,-229,-243,-208},{-254,-229,-247,-219,-224,-210},{-240,-217,-215,-208,-252,-249},{-236,-243,-226,-247,-229,-224},{-229,-217,-231,-208,-229,-247},{-229,-224,-229,-213,-236,-240},{-254,-254,-215,-229,-254,-215},{-240,-245,-219,-208,-217,-222},{-229,-252,-213,-224,-254,-210},{-236,-231,-238,-252,-231,-233},{-240,-217,-243,-240,-215,-254},{-210,-226,-215,-245,-213,-215},{-233,-233,-254,-254,-210,-245},{-229,-215,-249,-231,-229,-208},{-215,-249,-222,-217,-245,-247}},{{-252,-245,-254,-240,-208,-210},{-226,-240,-233,-208,-243,-217},{-222,-236,-215,-252,-236,-233},{-236,-215,-229,-224,-236,-243},{-249,-249,-224,-249,-245,-226},{-208,-229,-219,-238,-208,-231},{-226,-236,-236,-252,-217,-243},{-238,-231,-236,-249,-231,-219},{-233,-240,-213,-243,-215,-210},{-247,-217,-217,-245,-240,-247},{-210,-208,-245,-236,-238,-252},{-208,-249,-229,-226,-224,-252},{-213,-215,-252,-217,-231,-224},{-254,-236,-208,-231,-222,-215},{-243,-229,-238,-238,-215,-243},{-238,-222,-247,-236,-233,-247},{-217,-213,-238,-236,-252,-252},{-236,-226,-236,-249,-222,-229},{-254,-217,-210,-238,-236,-213},{-240,-243,-238,-213,-215,-240}},{{-249,-247,-231,-249,-219,-229},{-219,-215,-210,-254,-213,-249},{-249,-217,-247,-238,-226,-229},{-217,-249,-245,-210,-229,-222},{-222,-240,-233,-233,-226,-217},{-231,-233,-245,-233,-224,-226},{-240,-217,-238,-245,-249,-231},{-210,-224,-217,-254,-238,-226},{-245,-243,-238,-210,-254,-245},{-208,-231,-226,-231,-254,-226},{-231,-215,-245,-226,-254,-213},{-219,-247,-238,-219,-208,-231},{-240,-249,-238,-252,-238,-236},{-252,-245,-236,-210,-226,-233},{-238,-226,-249,-210,-213,-254},{-213,-243,-243,-229,-226,-222},{-222,-245,-229,-226,-243,-240},{-217,-240,-245,-215,-254,-243},{-249,-208,-231,-229,-224,-233},{-217,-231,-233,-222,-240,-240}}},{{{-219,-195,-208,-195,-232,-232},{-215,-234,-230,-210,-208,-204},{-217,-234,-237,-228,-206,-228},{-239,-232,-197,-210,-224,-217},{-217,-197,-213,-215,-208,-219},{-197,-210,-219,-200,-239,-226},{-232,-197,-224,-206,-239,-206},{-221,-200,-217,-232,-234,-202},{-195,-230,-239,-237,-206,-200},{-208,-234,-210,-202,-226,-195},{-206,-234,-221,-234,-219,-232},{-195,-210,-213,-234,-239,-215},{-230,-215,-204,-213,-228,-213},{-239,-213,-237,-213,-221,-221},{-197,-215,-208,-213,-237,-217},{-206,-224,-208,-204,-239,-237},{-202,-230,-208,-237,-226,-208},{-210,-206,-237,-230,-200,-202},{-217,-219,-206,-232,-202,-239},{-219,-206,-204,-237,-202,-232}},{{-239,-217,-224,-239,-226,-217},{-213,-210,-219,-204,-204,-200},{-237,-200,-208,-221,-206,-239},{-234,-234,-221,-204,-221,-226},{-215,-221,-197,-219,-213,-204},{-202,-228,-237,-200,-215,-221},{-200,-228,-206,-239,-208,-217},{-202,-234,-202,-208,-200,-195},{-195,-213,-219,-213,-230,-221},{-217,-226,-234,-228,-230,-234},{-230,-219,-213,-219,-215,-221},{-206,-197,-215,-204,-206,-232},{-217,-206,-210,-206,-226,-232},{-215,-217,-215,-239,-215,-210},{-202,-217,-237,-213,-228,-195},{-202,-237,-217,-217,-232,-195},{-230,-204,-208,-228,-213,-228},{-195,-221,-224,-217,-204,-215},{-197,-224,-204,-232,-200,-226},{-204,-219,-215,-217,-230,-206}},{{-219,-239,-208,-219,-234,-206},{-206,-210,-226,-200,-206,-195},{-219,-197,-232,-204,-239,-206},{-197,-197,-197,-206,-219,-208},{-239,-224,-226,-217,-228,-219},{-215,-226,-219,-217,-215,-208},{-197,-204,-226,-228,-200,-208},{-213,-208,-234,-215,-226,-202},{-197,-210,-217,-213,-197,-226},{-202,-202,-213,-219,-239,-230},{-204,-206,-208,-217,-200,-230},{-228,-239,-230,-237,-239,-232},{-208,-202,-204,-210,-219,-195},{-237,-234,-234,-204,-224,-228},{-230,-224,-200,-239,-232,-232},{-204,-228,-213,-202,-204,-224},{-204,-195,-224,-237,-206,-237},{-210,-234,-219,-208,-202,-230},{-215,-219,-237,-234,-204,-217},{-195,-200,-215,-234,-230,-221}},{{-217,-206,-226,-221,-213,-219},{-195,-202,-204,-210,-228,-213},{-226,-226,-202,-217,-237,-197},{-202,-197,-230,-237,-219,-217},{-197,-202,-217,-202,-200,-215},{-237,-206,-239,-210,-210,-206},{-228,-195,-213,-237,-224,-204},{-234,-197,-200,-239,-206,-217},{-221,-200,-237,-195,-197,-204},{-206,-221,-202,-215,-237,-197},{-197,-226,-202,-219,-204,-204},{-230,-210,-237,-228,-230,-217},{-234,-237,-232,-224,-217,-213},{-232,-204,-228,-221,-213,-219},{-204,-237,-217,-200,-219,-219},{-197,-202,-221,-221,-213,-239},{-221,-232,-210,-202,-206,-221},{-228,-206,-202,-202,-200,-237},{-200,-206,-219,-234,-195,-234},{-195,-226,-232,-206,-215,-202}},{{-200,-237,-224,-208,-221,-237},{-202,-213,-226,-213,-217,-213},{-206,-228,-195,-204,-228,-221},{-204,-234,-224,-228,-232,-206},{-213,-230,-200,-226,-224,-213},{-221,-202,-226,-232,-234,-230},{-226,-239,-215,-226,-239,-208},{-210,-232,-228,-234,-234,-219},{-202,-237,-195,-228,-195,-239},{-228,-230,-217,-230,-210,-208},{-228,-234,-221,-226,-217,-224},{-215,-228,-226,-230,-217,-197},{-239,-195,-204,-239,-195,-228},{-204,-239,-228,-204,-204,-224},{-215,-204,-221,-230,-213,-200},{-234,-232,-234,-237,-217,-239},{-202,-232,-226,-228,-204,-217},{-204,-195,-208,-219,-195,-219},{-210,-221,-219,-210,-200,-224},{-210,-204,-219,-208,-219,-213}},{{-197,-228,-197,-195,-226,-200},{-239,-200,-217,-202,-204,-217},{-210,-200,-197,-197,-208,-215},{-210,-219,-215,-217,-219,-237},{-221,-210,-232,-237,-215,-208},{-210,-230,-239,-237,-234,-217},{-224,-221,-221,-202,-213,-208},{-208,-195,-208,-221,-197,-232},{-219,-210,-197,-206,-217,-195},{-213,-224,-228,-239,-230,-206},{-237,-204,-230,-197,-217,-215},{-230,-208,-221,-239,-210,-204},{-215,-239,-228,-221,-200,-202},{-213,-197,-226,-204,-228,-197},{-204,-226,-210,-221,-206,-226},{-232,-210,-195,-213,-234,-204},{-210,-204,-228,-200,-200,-226},{-228,-208,-221,-221,-206,-206},{-228,-232,-210,-210,-232,-217},{-215,-228,-221,-202,-217,-224}}},{{{-263,-274,-279,-239,-255,-271},{-269,-247,-258,-258,-242,-274},{-263,-269,-242,-282,-279,-255},{-277,-255,-242,-250,-279,-285},{-287,-271,-261,-277,-255,-239},{-245,-245,-271,-274,-263,-271},{-266,-255,-258,-247,-277,-245},{-293,-277,-282,-258,-242,-274},{-287,-293,-285,-263,-258,-290},{-279,-253,-255,-271,-245,-293},{-266,-287,-250,-282,-277,-274},{-282,-287,-253,-271,-274,-247},{-287,-239,-266,-269,-250,-253},{-279,-261,-274,-239,-282,-277},{-245,-274,-239,-266,-287,-271},{-242,-261,-245,-266,-242,-255},{-293,-269,-245,-245,-282,-277},{-274,-277,-253,-290,-263,-293},{-293,-245,-287,-239,-258,-282},{-290,-293,-285,-277,-261,-282}},{{-261,-258,-258,-253,-279,-263},{-261,-239,-274,-261,-287,-279},{-250,-253,-255,-261,-245,-277},{-274,-258,-250,-287,-245,-274},{-253,-274,-282,-293,-239,-253},{-269,-239,-271,-250,-255,-287},{-285,-290,-277,-282,-269,-258},{-239,-277,-290,-266,-242,-266},{-250,-285,-261,-242,-239,-271},{-271,-287,-255,-263,-261,-271},{-287,-274,-255,-258,-261,-255},{-271,-245,-253,-274,-242,-271},{-274,-271,-261,-269,-253,-279},{-277,-266,-282,-266,-274,-255},{-253,-250,-250,-282,-274,-290},{-282,-258,-255,-263,-285,-247},{-271,-277,-279,-245,-293,-250},{-285,-263,-245,-239,-269,-277},{-279,-250,-263,-277,-253,-282},{-266,-258,-258,-258,-279,-247}},{{-274,-258,-274,-266,-279,-258},{-250,-287,-263,-269,-250,-266},{-282,-274,-242,-277,-245,-274},{-253,-282,-255,-239,-293,-285},{-253,-261,-263,-285,-279,-274},{-255,-247,-290,-250,-255,-247},{-269,-266,-242,-271,-279,-293},{-290,-247,-247,-274,-255,-279},{-247,-290,-282,-242,-266,-274},{-258,-247,-290,-293,-285,-247},{-258,-263,-247,-277,-293,-245},{-271,-263,-245,-271,-282,-271},{-258,-253,-239,-253,-290,-271},{-258,-269,-293,-271,-266,-242},{-266,-271,-269,-250,-255,-293},{-263,-274,-290,-274,-271,-245},{-258,-287,-247,-279,-287,-253},{-271,-279,-263,-277,-293,-239},{-274,-250,-274,-239,-290,-242},{-274,-266,-266,-290,-247,-263}},{{-285,-277,-253,-290,-242,-274},{-274,-239,-247,-253,-274,-266},{-293,-245,-258,-285,-293,-271},{-279,-239,-250,-287,-263,-282},{-239,-293,-282,-250,-293,-258},{-258,-250,-277,-274,-293,-255},{-242,-263,-266,-247,-279,-277},{-245,-255,-287,-255,-277,-255},{-253,-271,-253,-287,-250,-245},{-285,-255,-242,-279,-290,-279},{-287,-277,-239,-279,-274,-279},{-271,-253,-285,-263,-290,-279},{-263,-239,-290,-263,-277,-245},{-274,-277,-258,-282,-261,-263},{-245,-242,-261,-274,-266,-279},{-245,-277,-285,-242,-245,-282},{-261,-258,-245,-287,-247,-250},{-245,-255,-287,-285,-258,-290},{-247,-263,-255,-250,-258,-290},{-245,-250,-279,-274,-279,-269}},{{-293,-266,-271,-247,-247,-242},{-242,-261,-261,-255,-271,-269},{-239,-255,-271,-290,-245,-255},{-247,-282,-245,-287,-263,-274},{-269,-279,-245,-287,-274,-274},{-253,-250,-261,-253,-261,-239},{-285,-271,-242,-242,-258,-266},{-245,-261,-279,-247,-266,-263},{-277,-282,-253,-285,-282,-279},{-255,-258,-269,-285,-274,-261},{-253,-255,-285,-250,-261,-282},{-271,-287,-293,-253,-255,-293},{-266,-245,-266,-258,-263,-277},{-277,-239,-261,-290,-247,-271},{-250,-263,-261,-247,-255,-263},{-239,-250,-247,-253,-245,-269},{-258,-253,-255,-258,-242,-277},{-266,-255,-282,-255,-293,-277},{-247,-258,-293,-258,-239,-245},{-245,-239,-277,-255,-266,-258}},{{-279,-274,-261,-293,-271,-247},{-242,-293,-274,-258,-271,-269},{-255,-261,-293,-253,-263,-247},{-261,-274,-285,-282,-266,-261},{-266,-277,-258,-285,-258,-274},{-258,-261,-293,-277,-239,-279},{-261,-287,-245,-277,-277,-269},{-277,-239,-287,-287,-274,-282},{-242,-253,-242,-277,-282,-279},{-282,-245,-258,-279,-255,-255},{-261,-271,-261,-269,-282,-258},{-255,-287,-274,-245,-239,-263},{-255,-293,-258,-282,-247,-279},{-255,-271,-239,-293,-285,-271},{-287,-239,-263,-274,-293,-290},{-258,-293,-279,-239,-261,-293},{-242,-274,-279,-277,-261,-255},{-261,-239,-274,-277,-271,-271},{-261,-290,-293,-290,-285,-282},{-274,-271,-274,-242,-258,-287}}},{{{-302,-283,-300,-269,-255,-288},{-274,-297,-260,-258,-305,-252},{-280,-302,-288,-263,-288,-300},{-288,-252,-260,-302,-283,-266},{-260,-272,-308,-258,-269,-302},{-252,-252,-277,-297,-258,-263},{-252,-266,-269,-280,-300,-260},{-255,-294,-280,-252,-277,-252},{-294,-266,-266,-300,-280,-308},{-266,-286,-291,-260,-283,-288},{-300,-277,-302,-274,-305,-277},{-302,-274,-300,-266,-269,-280},{-302,-297,-255,-300,-272,-286},{-266,-280,-288,-255,-280,-294},{-294,-258,-280,-286,-286,-297},{-274,-266,-300,-280,-294,-291},{-308,-283,-286,-308,-266,-302},{-274,-294,-272,-300,-283,-255},{-302,-288,-252,-269,-302,-283},{-308,-294,-255,-255,-297,-272}},{{-294,-300,-263,-305,-297,-274},{-252,-277,-258,-305,-255,-288},{-297,-263,-308,-272,-300,-255},{-291,-300,-291,-286,-255,-274},{-300,-283,-308,-305,-288,-260},{-308,-266,-305,-300,-252,-266},{-255,-263,-288,-294,-272,-260},{-258,-300,-291,-252,-260,-297},{-274,-297,-302,-288,-260,-302},{-258,-272,-302,-297,-263,-280},{-260,-255,-280,-288,-269,-260},{-263,-280,-288,-300,-274,-305},{-272,-283,-302,-260,-305,-272},{-274,-300,-258,-272,-277,-272},{-300,-280,-266,-252,-263,-269},{-291,-263,-260,-263,-300,-291},{-258,-258,-291,-308,-297,-288},{-302,-260,-291,-277,-286,-260},{-272,-258,-291,-263,-269,-260},{-274,-297,-300,-286,-291,-294}},{{-283,-274,-255,-260,-302,-269},{-291,-260,-272,-277,-283,-300},{-263,-272,-305,-266,-255,-302},{-269,-255,-286,-291,-283,-286},{-266,-294,-286,-255,-294,-291},{-288,-294,-300,-302,-300,-286},{-300,-283,-297,-286,-288,-308},{-272,-302,-269,-283,-277,-263},{-258,-291,-294,-300,-286,-305},{-286,-255,-294,-269,-263,-308},{-297,-308,-305,-272,-258,-300},{-277,-283,-302,-277,-255,-266},{-297,-274,-302,-258,-308,-294},{-263,-294,-308,-308,-286,-286},{-294,-308,-288,-274,-308,-308},{-263,-280,-288,-308,-291,-302},{-272,-308,-294,-266,-272,-302},{-277,-255,-266,-272,-260,-277},{-288,-308,-305,-283,-255,-297},{-272,-266,-255,-305,-258,-297}},{{-274,-286,-302,-260,-302,-263},{-302,-283,-272,-258,-308,-305},{-258,-260,-266,-272,-274,-286},{-294,-297,-266,-255,-283,-291},{-300,-274,-302,-266,-308,-266},{-286,-272,-277,-269,-277,-258},{-266,-263,-288,-297,-266,-274},{-286,-255,-269,-305,-263,-302},{-272,-260,-302,-269,-294,-274},{-266,-308,-294,-302,-286,-263},{-255,-288,-288,-300,-280,-302},{-302,-263,-272,-255,-274,-255},{-288,-288,-308,-252,-286,-272},{-300,-274,-269,-266,-277,-274},{-297,-277,-274,-291,-255,-300},{-263,-252,-263,-258,-302,-277},{-305,-291,-252,-300,-291,-272},{-266,-252,-269,-272,-272,-308},{-274,-274,-297,-305,-269,-252},{-294,-305,-260,-272,-294,-305}},{{-274,-283,-291,-308,-272,-286},{-252,-266,-272,-291,-252,-272},{-277,-283,-291,-266,-300,-255},{-269,-269,-294,-283,-269,-291},{-263,-274,-272,-305,-297,-274},{-286,-291,-294,-274,-274,-288},{-308,-300,-258,-255,-283,-272},{-305,-302,-272,-283,-258,-258},{-266,-283,-260,-252,-258,-297},{-308,-291,-286,-300,-274,-258},{-297,-291,-308,-286,-263,-252},{-280,-294,-291,-260,-305,-258},{-258,-286,-297,-258,-255,-258},{-291,-255,-294,-286,-286,-302},{-280,-308,-274,-300,-280,-305},{-263,-286,-274,-286,-260,-308},{-300,-288,-269,-291,-300,-252},{-302,-297,-283,-272,-294,-308},{-297,-300,-252,-258,-305,-263},{-258,-263,-260,-308,-305,-269}},{{-291,-274,-286,-302,-277,-255},{-291,-280,-272,-266,-255,-280},{-302,-274,-294,-260,-260,-252},{-305,-269,-269,-274,-308,-272},{-255,-297,-288,-260,-300,-288},{-291,-280,-308,-291,-272,-260},{-255,-283,-291,-258,-291,-266},{-286,-302,-260,-288,-308,-255},{-269,-297,-255,-286,-288,-308},{-297,-300,-291,-277,-291,-283},{-277,-263,-280,-305,-269,-286},{-255,-297,-305,-308,-308,-286},{-305,-291,-280,-258,-294,-302},{-272,-288,-274,-266,-294,-280},{-280,-266,-269,-302,-269,-272},{-260,-269,-308,-288,-255,-283},{-274,-286,-263,-305,-263,-269},{-300,-283,-269,-305,-272,-277},{-258,-280,-308,-305,-280,-269},{-263,-266,-266,-277,-308,-277}}},{{{-258,-255,-283,-288,-272,-263},{-260,-286,-291,-269,-308,-286},{-302,-272,-297,-266,-274,-286},{-260,-308,-286,-297,-258,-294},{-263,-255,-252,-294,-302,-266},{-297,-286,-308,-260,-302,-255},{-286,-308,-252,-297,-255,-305},{-252,-263,-280,-258,-269,-297},{-302,-277,-258,-280,-286,-266},{-258,-266,-302,-286,-277,-305},{-302,-272,-305,-302,-283,-288},{-255,-283,-269,-300,-252,-283},{-308,-300,-294,-291,-263,-283},{-288,-280,-266,-260,-269,-255},{-266,-277,-283,-291,-280,-283},{-258,-274,-274,-291,-308,-288},{-286,-283,-258,-252,-277,-291},{-269,-286,-258,-260,-294,-288},{-260,-305,-274,-297,-300,-274},{-255,-288,-280,-291,-277,-272}},{{-266,-308,-266,-305,-294,-302},{-252,-294,-269,-291,-297,-280},{-272,-294,-252,-277,-283,-252},{-277,-300,-252,-274,-260,-286},{-260,-252,-269,-297,-286,-302},{-272,-274,-260,-286,-300,-277},{-274,-294,-260,-274,-302,-269},{-302,-280,-308,-288,-297,-272},{-305,-300,-272,-252,-288,-263},{-272,-305,-280,-308,-305,-263},{-294,-288,-255,-274,-291,-266},{-300,-269,-258,-277,-255,-286},{-302,-258,-260,-294,-308,-305},{-280,-255,-252,-300,-277,-255},{-297,-302,-294,-269,-294,-302},{-263,-252,-274,-263,-260,-288},{-272,-274,-277,-260,-302,-260},{-283,-272,-283,-288,-263,-263},{-258,-294,-286,-260,-252,-269},{-280,-308,-274,-274,-266,-263}},{{-300,-274,-258,-274,-288,-272},{-258,-255,-255,-252,-308,-283},{-297,-300,-300,-294,-266,-272},{-308,-272,-258,-252,-269,-300},{-286,-280,-300,-294,-305,-308},{-305,-297,-260,-294,-280,-302},{-297,-286,-269,-269,-269,-255},{-263,-263,-266,-291,-272,-263},{-283,-286,-286,-260,-269,-272},{-300,-255,-288,-266,-255,-274},{-283,-286,-272,-266,-308,-272},{-274,-305,-255,-308,-260,-274},{-252,-300,-277,-274,-255,-288},{-263,-269,-272,-297,-272,-274},{-272,-252,-260,-258,-291,-308},{-258,-286,-297,-269,-252,-258},{-286,-283,-280,-291,-305,-300},{-283,-263,-274,-305,-291,-286},{-258,-283,-280,-308,-294,-302},{-260,-308,-294,-286,-302,-269}},{{-263,-269,-258,-277,-305,-291},{-252,-269,-252,-288,-277,-291},{-308,-302,-272,-294,-308,-300},{-263,-286,-280,-263,-263,-263},{-260,-280,-305,-291,-263,-255},{-255,-308,-302,-263,-300,-277},{-252,-269,-300,-263,-291,-291},{-283,-263,-308,-288,-300,-283},{-272,-277,-286,-258,-300,-266},{-274,-280,-260,-255,-274,-288},{-274,-283,-260,-297,-308,-308},{-258,-288,-266,-305,-305,-258},{-258,-269,-283,-280,-291,-294},{-291,-302,-252,-283,-263,-263},{-297,-266,-280,-294,-288,-286},{-260,-305,-263,-302,-258,-272},{-302,-297,-291,-280,-291,-272},{-305,-297,-294,-283,-260,-263},{-305,-288,-302,-302,-266,-283},{-308,-286,-280,-288,-286,-266}},{{-308,-286,-263,-283,-263,-286},{-277,-258,-305,-300,-297,-286},{-286,-269,-291,-263,-283,-252},{-288,-274,-255,-297,-291,-288},{-308,-260,-266,-274,-300,-283},{-280,-266,-280,-274,-286,-266},{-294,-266,-269,-283,-300,-260},{-260,-286,-286,-269,-280,-272},{-286,-280,-280,-252,-305,-288},{-269,-283,-277,-286,-297,-288},{-294,-283,-297,-258,-300,-308},{-305,-294,-280,-305,-260,-294},{-252,-274,-274,-302,-288,-277},{-286,-277,-258,-280,-272,-308},{-263,-283,-297,-263,-272,-286},{-300,-300,-283,-255,-269,-305},{-288,-302,-260,-280,-305,-263},{-302,-269,-283,-286,-286,-291},{-258,-252,-300,-269,-277,-297},{-277,-286,-305,-258,-277,-283}},{{-263,-252,-283,-291,-280,-260},{-263,-255,-288,-255,-302,-266},{-288,-274,-308,-288,-280,-280},{-274,-305,-272,-274,-277,-255},{-300,-305,-260,-297,-266,-300},{-280,-294,-272,-300,-258,-305},{-291,-260,-288,-283,-294,-258},{-272,-258,-272,-255,-294,-294},{-260,-283,-266,-302,-258,-274},{-274,-302,-305,-252,-288,-255},{-291,-272,-280,-277,-291,-277},{-283,-252,-274,-305,-274,-308},{-258,-269,-288,-294,-297,-258},{-263,-255,-263,-255,-280,-269},{-305,-263,-283,-302,-277,-263},{-274,-308,-300,-266,-269,-302},{-283,-269,-302,-258,-300,-286},{-277,-283,-266,-288,-272,-294},{-269,-272,-269,-260,-291,-308},{-255,-291,-291,-288,-286,-300}}},{{{-302,-260,-258,-288,-266,-286},{-308,-283,-308,-294,-308,-266},{-305,-269,-305,-305,-291,-302},{-272,-286,-305,-288,-302,-308},{-266,-252,-288,-294,-302,-258},{-291,-266,-308,-263,-260,-300},{-269,-255,-297,-291,-277,-274},{-300,-258,-272,-280,-260,-283},{-288,-291,-255,-280,-269,-305},{-272,-286,-291,-266,-260,-283},{-291,-283,-266,-280,-252,-269},{-288,-288,-266,-272,-308,-252},{-297,-294,-272,-308,-288,-274},{-294,-297,-297,-252,-294,-255},{-288,-297,-305,-280,-260,-291},{-283,-294,-266,-294,-252,-286},{-300,-255,-291,-258,-302,-266},{-274,-288,-308,-308,-286,-297},{-308,-269,-269,-288,-266,-255},{-280,-274,-269,-294,-252,-255}},{{-305,-263,-305,-252,-291,-277},{-280,-297,-258,-294,-277,-283},{-255,-255,-272,-274,-297,-291},{-277,-277,-269,-308,-255,-274},{-260,-277,-291,-266,-283,-255},{-308,-266,-263,-291,-263,-302},{-286,-272,-266,-263,-308,-302},{-263,-263,-300,-252,-272,-252},{-252,-288,-283,-274,-280,-308},{-286,-283,-297,-280,-302,-291},{-280,-283,-291,-288,-283,-258},{-297,-308,-252,-286,-308,-288},{-286,-266,-260,-288,-305,-297},{-258,-258,-255,-269,-302,-274},{-266,-263,-272,-258,-308,-277},{-252,-266,-272,-274,-294,-269},{-291,-291,-286,-260,-302,-274},{-272,-294,-305,-308,-291,-266},{-274,-272,-302,-283,-291,-297},{-305,-255,-288,-297,-283,-291}},{{-286,-263,-263,-288,-266,-291},{-269,-269,-263,-277,-252,-277},{-252,-280,-283,-283,-294,-260},{-302,-280,-260,-263,-252,-269},{-308,-286,-266,-277,-283,-283},{-272,-302,-272,-288,-305,-258},{-272,-263,-263,-294,-300,-286},{-269,-274,-255,-300,-288,-286},{-272,-308,-252,-277,-263,-269},{-269,-283,-288,-283,-305,-277},{-274,-288,-305,-255,-260,-308},{-286,-280,-286,-297,-277,-294},{-283,-277,-308,-305,-286,-283},{-274,-272,-308,-294,-272,-269},{-286,-288,-286,-294,-266,-269},{-277,-277,-252,-277,-308,-305},{-255,-266,-280,-302,-297,-255},{-255,-308,-297,-272,-266,-252},{-266,-288,-260,-286,-294,-258},{-269,-283,-297,-274,-286,-283}},{{-305,-258,-291,-255,-252,-258},{-266,-269,-300,-294,-252,-280},{-294,-266,-302,-308,-297,-266},{-291,-272,-266,-280,-272,-300},{-302,-255,-300,-308,-286,-260},{-260,-305,-305,-300,-294,-280},{-272,-291,-272,-300,-294,-305},{-274,-294,-300,-263,-308,-272},{-280,-252,-300,-274,-305,-252},{-288,-255,-269,-286,-280,-300},{-280,-294,-272,-263,-277,-305},{-291,-274,-286,-252,-302,-269},{-288,-280,-263,-269,-286,-258},{-308,-258,-258,-297,-283,-305},{-288,-294,-288,-294,-277,-274},{-305,-302,-283,-255,-272,-300},{-302,-277,-302,-266,-255,-291},{-260,-302,-269,-280,-305,-308},{-274,-263,-288,-286,-297,-269},{-252,-252,-266,-252,-277,-266}},{{-291,-286,-272,-297,-294,-274},{-258,-269,-266,-274,-280,-266},{-263,-263,-291,-280,-269,-255},{-269,-305,-297,-308,-263,-280},{-280,-274,-283,-283,-300,-288},{-305,-302,-260,-308,-286,-269},{-283,-305,-266,-255,-258,-308},{-252,-294,-255,-269,-274,-302},{-308,-305,-274,-252,-263,-294},{-294,-286,-294,-300,-274,-272},{-283,-258,-269,-260,-266,-258},{-283,-277,-291,-283,-291,-300},{-277,-260,-286,-258,-300,-266},{-266,-269,-260,-277,-255,-280},{-266,-305,-263,-302,-300,-283},{-266,-291,-294,-263,-286,-294},{-286,-260,-269,-272,-288,-300},{-294,-280,-269,-260,-308,-283},{-294,-272,-308,-302,-308,-258},{-274,-302,-260,-274,-283,-297}},{{-291,-286,-260,-308,-291,-255},{-266,-297,-255,-308,-269,-266},{-297,-280,-305,-263,-263,-302},{-308,-255,-266,-274,-258,-263},{-255,-291,-300,-300,-255,-305},{-297,-263,-255,-297,-305,-286},{-272,-283,-252,-291,-277,-280},{-286,-274,-274,-263,-286,-272},{-263,-277,-272,-266,-294,-258},{-277,-288,-277,-280,-258,-255},{-286,-272,-300,-286,-263,-272},{-288,-272,-280,-300,-300,-302},{-263,-255,-263,-255,-300,-258},{-277,-277,-283,-302,-302,-266},{-297,-283,-274,-269,-297,-297},{-269,-308,-294,-266,-263,-286},{-300,-263,-280,-272,-274,-294},{-274,-305,-280,-291,-302,-294},{-252,-277,-308,-280,-305,-286},{-288,-255,-255,-288,-277,-269}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={2070,261,23,150,170,304,400,300,160}; // initial inventory 
int ubiv[I]={2740,522,414,300,341,608,800,600,320}; // the upper bounds of inventory 
int len[I1][I2]={{3,6,2,2,3,3,2,1}}; // 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,7.19,13.32,4.32,2.64,5.16,6.85,4.63,1.82}; // 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]={{6.54,12.11,3.93,2.4,4.69,6.23,4.21,1.65}}; // 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]={5.23,5.23,5.23,4.58,4.58,4.58,3.92,3.92,3.92,9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,3.14,3.14,3.14,2.75,2.75,2.75,2.36,2.36,2.36,1.92,1.92,1.92,1.68,1.68,1.68,1.44,1.44,1.44,3.75,3.75,3.75,3.28,3.28,3.28,2.81,2.81,2.81,4.98,4.98,4.98,4.36,4.36,4.36,3.74,3.74,3.74,3.37,3.37,3.37,2.95,2.95,2.95,2.53,2.53,2.53,1.32,1.32,1.32,1.16,1.16,1.16,0.99,0.99,0.99}; // 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]={16,8,6,16,8,6,16,9,6,15,7,5,15,8,5,15,7,5,17,9,6,17,8,6,17,9,6,16,9,6,16,9,6,17,9,6,17,8,6,16,8,6,16,9,6,16,9,6,16,9,6,16,8,6,17,9,6,17,8,6,17,9,6,17,9,6,17,9,6,17,9,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}}; // set of shipments in each bid 
int SHsts[SPN]={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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,5,9,13,17,21,25,29,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,2,6,10,14,18,22,26,1,7,13,19,25,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,0,4,8,12,16,20,24,28,1,7,13,19,25,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,2,6,10,14,18,22,26,0,6,12,18,24,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,2,8,14,20,26,32,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,0,6,12,18,24,30,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,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,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,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,2,8,14,20,26,32,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,2,8,14,20,26,32,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,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,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,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,5,9,13,17,21,25,29,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,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,2,8,14,20,26,32,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,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,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32}; // set of start times of each shipment 
int SHets[SPN]={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,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,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,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,8,12,16,20,24,28,32,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,7,13,19,25,31,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,8,12,16,20,24,28,32,6,12,18,24,30,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,4,10,16,22,28,34,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,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,4,10,16,22,28,34,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,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,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,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,5,11,17,23,29,35,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,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,5,11,17,23,29,35,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,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,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,5,11,17,23,29,35,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,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,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,3,9,15,21,27,33,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,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,1,5,9,13,17,21,25,29,33,3,9,15,21,27,33}; // set of end times of each shipment 
