int Dev = 10;// Deviation
extern const int CNN = 1;// 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 = 342;//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]={{{{11412,0,0,0,0,0},{11381,0,0,0,0,0},{11648,0,0,0,0,0},{11379,0,0,0,0,0},{11592,0,0,0,0,0},{11608,0,0,0,0,0},{11529,0,0,0,0,0},{11517,0,0,0,0,0},{11534,0,0,0,0,0},{11429,0,0,0,0,0},{11686,0,0,0,0,0},{11630,0,0,0,0,0},{11527,0,0,0,0,0},{11552,0,0,0,0,0},{11445,0,0,0,0,0},{11411,0,0,0,0,0},{11492,0,0,0,0,0},{11527,0,0,0,0,0},{11405,0,0,0,0,0},{11448,0,0,0,0,0},{11501,0,0,0,0,0},{11411,0,0,0,0,0},{11614,0,0,0,0,0},{11533,0,0,0,0,0},{11528,0,0,0,0,0},{11378,0,0,0,0,0},{11735,0,0,0,0,0},{11437,0,0,0,0,0},{11651,0,0,0,0,0},{11346,0,0,0,0,0},{11609,0,0,0,0,0},{11392,0,0,0,0,0},{11564,0,0,0,0,0},{11571,0,0,0,0,0},{11506,0,0,0,0,0},{11543,0,0,0,0,0},{11341,0,0,0,0,0},{11559,0,0,0,0,0},{11492,0,0,0,0,0},{11595,0,0,0,0,0},{11371,0,0,0,0,0},{11431,0,0,0,0,0},{11572,0,0,0,0,0},{11701,0,0,0,0,0},{11444,0,0,0,0,0},{11448,0,0,0,0,0},{11532,0,0,0,0,0},{11513,0,0,0,0,0},{11332,0,0,0,0,0},{11586,0,0,0,0,0}},{{11499,0,0,0,0,0},{11497,0,0,0,0,0},{11598,0,0,0,0,0},{11660,0,0,0,0,0},{11484,0,0,0,0,0},{11603,0,0,0,0,0},{11577,0,0,0,0,0},{11426,0,0,0,0,0},{11607,0,0,0,0,0},{11477,0,0,0,0,0},{11423,0,0,0,0,0},{11454,0,0,0,0,0},{11591,0,0,0,0,0},{11507,0,0,0,0,0},{11468,0,0,0,0,0},{11479,0,0,0,0,0},{11461,0,0,0,0,0},{11403,0,0,0,0,0},{11677,0,0,0,0,0},{11447,0,0,0,0,0},{11610,0,0,0,0,0},{11681,0,0,0,0,0},{11502,0,0,0,0,0},{11477,0,0,0,0,0},{11626,0,0,0,0,0},{11419,0,0,0,0,0},{11463,0,0,0,0,0},{11348,0,0,0,0,0},{11484,0,0,0,0,0},{11409,0,0,0,0,0},{11623,0,0,0,0,0},{11509,0,0,0,0,0},{11491,0,0,0,0,0},{11486,0,0,0,0,0},{11632,0,0,0,0,0},{11569,0,0,0,0,0},{11391,0,0,0,0,0},{11428,0,0,0,0,0},{11498,0,0,0,0,0},{11508,0,0,0,0,0},{11627,0,0,0,0,0},{11386,0,0,0,0,0},{11427,0,0,0,0,0},{11653,0,0,0,0,0},{11518,0,0,0,0,0},{11364,0,0,0,0,0},{11552,0,0,0,0,0},{11574,0,0,0,0,0},{11608,0,0,0,0,0},{11385,0,0,0,0,0}},{{11527,0,0,0,0,0},{11694,0,0,0,0,0},{11475,0,0,0,0,0},{11597,0,0,0,0,0},{11394,0,0,0,0,0},{11536,0,0,0,0,0},{11502,0,0,0,0,0},{11489,0,0,0,0,0},{11402,0,0,0,0,0},{11626,0,0,0,0,0},{11396,0,0,0,0,0},{11601,0,0,0,0,0},{11405,0,0,0,0,0},{11607,0,0,0,0,0},{11640,0,0,0,0,0},{11512,0,0,0,0,0},{11610,0,0,0,0,0},{11366,0,0,0,0,0},{11400,0,0,0,0,0},{11515,0,0,0,0,0},{11570,0,0,0,0,0},{11500,0,0,0,0,0},{11594,0,0,0,0,0},{11409,0,0,0,0,0},{11590,0,0,0,0,0},{11563,0,0,0,0,0},{11562,0,0,0,0,0},{11586,0,0,0,0,0},{11468,0,0,0,0,0},{11572,0,0,0,0,0},{11679,0,0,0,0,0},{11580,0,0,0,0,0},{11357,0,0,0,0,0},{11447,0,0,0,0,0},{11530,0,0,0,0,0},{11279,0,0,0,0,0},{11507,0,0,0,0,0},{11458,0,0,0,0,0},{11584,0,0,0,0,0},{11533,0,0,0,0,0},{11527,0,0,0,0,0},{11437,0,0,0,0,0},{11363,0,0,0,0,0},{11543,0,0,0,0,0},{11712,0,0,0,0,0},{11516,0,0,0,0,0},{11426,0,0,0,0,0},{11649,0,0,0,0,0},{11551,0,0,0,0,0},{11402,0,0,0,0,0}}},{{{-223,-185,-221,-191,-185,-191},{-183,-207,-209,-195,-199,-189},{-205,-199,-191,-185,-223,-187},{-211,-183,-213,-203,-207,-183},{-215,-197,-223,-183,-213,-199},{-209,-195,-213,-193,-213,-183},{-207,-203,-195,-201,-191,-199},{-211,-201,-211,-193,-183,-215},{-189,-215,-195,-199,-205,-211},{-189,-201,-191,-197,-211,-213},{-207,-219,-207,-197,-191,-187},{-207,-221,-197,-211,-197,-211},{-217,-187,-191,-183,-209,-213},{-191,-217,-189,-221,-219,-187},{-203,-213,-199,-183,-221,-197},{-221,-203,-191,-223,-207,-185},{-195,-193,-207,-205,-183,-223},{-197,-219,-211,-203,-219,-193},{-183,-193,-221,-185,-207,-183},{-207,-195,-185,-197,-219,-195},{-189,-199,-197,-201,-197,-221},{-219,-187,-215,-193,-223,-189},{-207,-213,-221,-221,-197,-205},{-189,-205,-197,-209,-219,-187},{-213,-195,-221,-195,-207,-215},{-213,-221,-201,-189,-209,-217},{-205,-191,-203,-213,-223,-207},{-217,-219,-201,-215,-209,-195},{-213,-203,-215,-211,-219,-191},{-189,-183,-201,-211,-207,-193},{-219,-219,-213,-213,-189,-197},{-217,-197,-221,-201,-223,-193},{-217,-199,-201,-213,-221,-221},{-197,-223,-219,-183,-193,-223},{-183,-217,-201,-183,-201,-209},{-215,-221,-209,-195,-213,-197},{-187,-219,-217,-191,-203,-209},{-185,-191,-199,-213,-205,-187},{-219,-215,-195,-183,-215,-207},{-207,-183,-209,-199,-183,-223},{-201,-205,-199,-223,-213,-205},{-203,-205,-203,-189,-183,-215},{-211,-201,-213,-187,-191,-197},{-213,-207,-207,-219,-213,-195},{-193,-185,-185,-195,-211,-183},{-203,-187,-213,-185,-199,-209},{-187,-187,-219,-195,-201,-183},{-187,-193,-185,-211,-191,-199},{-197,-201,-193,-205,-215,-185},{-199,-185,-187,-195,-205,-197}},{{-197,-195,-219,-211,-221,-193},{-195,-215,-197,-205,-219,-191},{-213,-209,-217,-211,-197,-199},{-217,-207,-199,-189,-207,-191},{-191,-211,-201,-185,-207,-195},{-207,-199,-207,-189,-201,-183},{-201,-209,-191,-205,-199,-195},{-221,-217,-189,-205,-193,-215},{-217,-201,-209,-193,-185,-213},{-223,-211,-211,-209,-183,-223},{-189,-213,-223,-187,-203,-209},{-205,-197,-223,-221,-209,-203},{-213,-203,-189,-217,-191,-197},{-185,-195,-219,-205,-183,-219},{-187,-185,-195,-209,-221,-205},{-201,-185,-211,-189,-213,-213},{-201,-201,-207,-185,-221,-213},{-215,-191,-183,-191,-187,-185},{-199,-211,-185,-215,-195,-195},{-215,-223,-187,-219,-197,-201},{-205,-213,-185,-189,-193,-203},{-185,-205,-189,-189,-201,-189},{-215,-199,-197,-199,-209,-187},{-215,-183,-185,-211,-205,-189},{-217,-213,-205,-197,-219,-191},{-221,-195,-189,-199,-189,-193},{-201,-199,-213,-183,-201,-211},{-209,-223,-215,-193,-205,-207},{-191,-185,-189,-215,-205,-211},{-193,-213,-215,-217,-223,-207},{-197,-213,-201,-209,-201,-213},{-185,-223,-199,-219,-195,-215},{-215,-199,-207,-195,-207,-185},{-189,-201,-213,-185,-187,-183},{-221,-183,-213,-185,-217,-199},{-203,-205,-219,-211,-189,-193},{-195,-211,-205,-185,-195,-205},{-183,-183,-209,-183,-203,-217},{-205,-195,-189,-223,-185,-191},{-191,-185,-195,-197,-209,-195},{-203,-203,-191,-201,-197,-211},{-187,-203,-213,-209,-193,-209},{-215,-215,-223,-185,-213,-201},{-189,-221,-217,-221,-207,-203},{-221,-195,-207,-193,-207,-191},{-187,-221,-183,-187,-209,-223},{-193,-207,-215,-191,-189,-199},{-197,-201,-199,-221,-199,-203},{-183,-215,-199,-219,-203,-199},{-183,-183,-217,-213,-213,-213}},{{-217,-221,-207,-185,-189,-223},{-213,-191,-197,-185,-187,-199},{-211,-217,-217,-207,-183,-183},{-195,-215,-215,-207,-197,-199},{-203,-191,-189,-221,-197,-201},{-197,-223,-197,-209,-221,-209},{-191,-193,-195,-195,-185,-203},{-187,-219,-189,-207,-185,-195},{-195,-207,-207,-219,-221,-205},{-195,-219,-201,-187,-207,-219},{-207,-203,-217,-195,-185,-195},{-191,-215,-205,-205,-201,-189},{-195,-187,-209,-213,-193,-191},{-201,-207,-207,-215,-207,-197},{-217,-201,-213,-209,-217,-197},{-215,-217,-203,-199,-187,-209},{-183,-193,-215,-217,-209,-213},{-189,-213,-185,-211,-189,-197},{-223,-209,-189,-187,-223,-189},{-195,-207,-193,-203,-183,-219},{-191,-213,-215,-195,-197,-193},{-185,-185,-213,-199,-193,-217},{-221,-199,-199,-203,-199,-219},{-217,-215,-189,-221,-193,-195},{-185,-195,-211,-217,-213,-189},{-195,-215,-189,-211,-213,-193},{-221,-221,-215,-197,-189,-217},{-199,-201,-219,-195,-191,-191},{-185,-201,-215,-197,-193,-215},{-219,-207,-207,-187,-185,-205},{-213,-189,-205,-219,-207,-187},{-189,-215,-197,-205,-213,-183},{-219,-215,-203,-199,-209,-199},{-199,-213,-207,-199,-193,-209},{-185,-211,-185,-215,-209,-205},{-203,-213,-197,-209,-197,-205},{-209,-191,-197,-219,-215,-185},{-197,-197,-207,-187,-197,-193},{-189,-213,-209,-217,-185,-203},{-213,-187,-215,-223,-195,-217},{-215,-201,-195,-219,-201,-185},{-207,-191,-197,-201,-209,-195},{-187,-205,-201,-217,-197,-211},{-213,-189,-203,-195,-213,-209},{-217,-193,-215,-205,-205,-205},{-211,-195,-205,-209,-221,-189},{-197,-217,-191,-195,-209,-223},{-193,-183,-201,-195,-193,-211},{-209,-193,-223,-213,-221,-203},{-189,-195,-213,-199,-219,-219}}},{{{-164,-164,-177,-169,-151,-171},{-148,-166,-147,-159,-151,-153},{-158,-175,-158,-172,-151,-161},{-163,-150,-155,-148,-153,-175},{-163,-166,-177,-148,-145,-156},{-171,-172,-175,-148,-150,-153},{-161,-147,-147,-166,-153,-158},{-145,-164,-158,-175,-161,-174},{-177,-177,-150,-163,-155,-166},{-172,-161,-164,-150,-150,-161},{-159,-151,-174,-151,-167,-172},{-175,-175,-158,-161,-174,-167},{-174,-169,-155,-153,-148,-161},{-172,-166,-145,-177,-167,-163},{-150,-148,-169,-163,-163,-161},{-163,-151,-161,-155,-155,-159},{-174,-172,-167,-151,-147,-163},{-153,-153,-167,-169,-166,-150},{-150,-177,-174,-171,-164,-159},{-169,-177,-161,-156,-174,-145},{-150,-174,-163,-166,-164,-177},{-148,-166,-174,-161,-151,-172},{-156,-155,-159,-169,-177,-153},{-164,-159,-145,-148,-171,-145},{-158,-153,-177,-172,-171,-145},{-153,-161,-150,-151,-171,-150},{-167,-167,-169,-174,-156,-169},{-172,-147,-148,-169,-177,-175},{-172,-177,-167,-164,-172,-153},{-169,-159,-155,-148,-161,-169},{-153,-172,-156,-145,-175,-177},{-155,-174,-175,-159,-172,-147},{-177,-172,-150,-166,-164,-174},{-147,-161,-151,-174,-164,-159},{-171,-153,-145,-159,-164,-147},{-156,-172,-153,-151,-164,-153},{-177,-169,-166,-147,-159,-155},{-147,-169,-166,-167,-148,-145},{-164,-163,-174,-172,-150,-153},{-150,-177,-169,-164,-174,-169},{-171,-150,-147,-171,-151,-163},{-150,-166,-164,-164,-169,-164},{-166,-147,-158,-159,-151,-156},{-159,-153,-166,-164,-156,-171},{-156,-169,-174,-167,-148,-150},{-172,-147,-164,-174,-167,-161},{-172,-172,-159,-159,-172,-169},{-151,-156,-175,-163,-172,-167},{-156,-175,-175,-164,-148,-167},{-171,-172,-175,-167,-156,-171}},{{-148,-174,-172,-167,-172,-169},{-167,-166,-150,-151,-166,-151},{-171,-174,-167,-174,-151,-148},{-148,-169,-161,-148,-169,-164},{-147,-167,-172,-167,-161,-155},{-164,-171,-172,-145,-159,-177},{-150,-158,-153,-153,-158,-177},{-175,-169,-148,-177,-163,-151},{-166,-163,-155,-148,-174,-175},{-145,-177,-159,-161,-158,-153},{-155,-175,-145,-159,-174,-153},{-155,-158,-153,-145,-164,-174},{-169,-158,-164,-174,-177,-159},{-175,-145,-177,-155,-167,-158},{-151,-159,-148,-172,-177,-148},{-150,-164,-161,-161,-164,-163},{-153,-147,-167,-175,-163,-166},{-148,-148,-158,-158,-164,-169},{-174,-155,-161,-158,-175,-167},{-164,-151,-169,-161,-150,-167},{-175,-148,-150,-153,-156,-177},{-150,-175,-153,-164,-166,-166},{-167,-151,-153,-159,-153,-145},{-167,-156,-169,-171,-171,-153},{-161,-158,-172,-177,-147,-156},{-151,-177,-166,-153,-172,-163},{-177,-167,-153,-158,-161,-164},{-158,-147,-163,-156,-166,-167},{-169,-151,-148,-169,-171,-169},{-147,-161,-175,-166,-147,-155},{-159,-145,-151,-169,-153,-177},{-148,-147,-167,-153,-155,-148},{-171,-147,-153,-153,-155,-161},{-151,-161,-147,-150,-161,-166},{-174,-171,-158,-169,-145,-145},{-172,-151,-166,-169,-167,-172},{-174,-161,-164,-148,-163,-151},{-151,-164,-166,-163,-150,-164},{-164,-169,-159,-153,-147,-169},{-172,-167,-175,-150,-145,-156},{-151,-175,-156,-161,-151,-172},{-155,-150,-159,-174,-169,-150},{-163,-167,-148,-166,-158,-177},{-172,-147,-175,-167,-177,-163},{-169,-158,-174,-175,-166,-150},{-167,-156,-171,-161,-156,-161},{-151,-169,-175,-172,-158,-147},{-148,-166,-174,-150,-171,-150},{-148,-150,-156,-177,-172,-172},{-153,-163,-174,-169,-148,-167}},{{-148,-169,-158,-153,-177,-155},{-156,-156,-169,-166,-147,-145},{-167,-174,-163,-156,-175,-171},{-148,-151,-175,-147,-177,-167},{-156,-151,-156,-171,-172,-158},{-161,-164,-164,-148,-174,-150},{-150,-158,-171,-156,-145,-153},{-159,-155,-156,-172,-148,-155},{-171,-151,-171,-172,-171,-156},{-148,-167,-150,-159,-145,-166},{-174,-159,-151,-172,-175,-153},{-163,-145,-174,-167,-158,-151},{-175,-167,-155,-158,-174,-164},{-155,-150,-174,-166,-161,-148},{-151,-164,-161,-153,-171,-166},{-145,-155,-155,-167,-163,-177},{-156,-153,-172,-169,-171,-148},{-148,-148,-155,-158,-177,-167},{-164,-175,-150,-150,-156,-155},{-148,-174,-159,-163,-169,-156},{-175,-150,-174,-150,-171,-172},{-153,-167,-161,-167,-151,-169},{-175,-169,-155,-169,-148,-158},{-150,-147,-163,-148,-166,-161},{-167,-172,-163,-150,-177,-145},{-153,-147,-151,-169,-153,-171},{-148,-166,-174,-158,-163,-159},{-151,-169,-167,-171,-166,-153},{-171,-153,-177,-166,-155,-171},{-161,-163,-175,-159,-153,-159},{-174,-163,-156,-148,-158,-161},{-147,-171,-166,-158,-153,-159},{-156,-156,-161,-150,-175,-177},{-159,-159,-153,-174,-147,-172},{-171,-159,-150,-166,-169,-174},{-177,-145,-164,-161,-150,-155},{-171,-148,-167,-148,-164,-155},{-169,-169,-158,-171,-151,-151},{-174,-169,-147,-164,-174,-153},{-174,-150,-169,-155,-175,-145},{-175,-174,-163,-155,-164,-150},{-147,-169,-153,-174,-150,-166},{-166,-155,-159,-145,-175,-174},{-155,-163,-169,-158,-150,-167},{-151,-174,-161,-169,-174,-156},{-175,-155,-175,-172,-174,-172},{-161,-167,-156,-174,-159,-158},{-167,-166,-156,-145,-145,-155},{-145,-156,-158,-150,-174,-161},{-166,-159,-156,-147,-174,-169}}},{{{-233,-229,-219,-240,-245,-222},{-245,-208,-210,-222,-208,-231},{-222,-231,-222,-252,-213,-249},{-222,-229,-254,-210,-222,-215},{-238,-254,-226,-243,-210,-213},{-236,-226,-254,-226,-254,-249},{-247,-222,-247,-224,-213,-243},{-245,-240,-219,-238,-231,-240},{-226,-240,-208,-233,-217,-236},{-243,-213,-254,-252,-213,-222},{-240,-219,-252,-213,-254,-249},{-254,-217,-243,-247,-236,-226},{-249,-217,-247,-249,-240,-208},{-231,-245,-231,-245,-252,-238},{-210,-210,-236,-224,-236,-240},{-217,-222,-208,-243,-233,-254},{-210,-233,-210,-222,-229,-213},{-240,-208,-224,-208,-236,-226},{-219,-219,-240,-222,-245,-238},{-213,-224,-252,-210,-249,-224},{-240,-233,-208,-226,-224,-245},{-226,-219,-219,-226,-222,-224},{-249,-215,-236,-213,-236,-245},{-245,-226,-222,-222,-249,-254},{-217,-245,-238,-229,-208,-233},{-243,-249,-254,-217,-233,-254},{-247,-222,-247,-254,-252,-215},{-213,-238,-252,-247,-247,-233},{-222,-222,-254,-238,-233,-215},{-249,-210,-222,-224,-243,-219},{-215,-252,-238,-240,-226,-247},{-231,-252,-240,-210,-236,-247},{-217,-208,-249,-245,-231,-222},{-240,-226,-222,-210,-217,-249},{-217,-252,-215,-245,-245,-208},{-231,-224,-254,-247,-249,-249},{-252,-229,-231,-245,-236,-240},{-208,-215,-240,-245,-219,-240},{-219,-222,-213,-240,-245,-224},{-222,-252,-217,-231,-224,-215},{-240,-233,-254,-249,-215,-210},{-254,-215,-222,-233,-219,-252},{-240,-210,-231,-252,-231,-231},{-247,-249,-238,-249,-231,-233},{-222,-233,-215,-238,-233,-231},{-208,-254,-222,-213,-222,-213},{-231,-210,-229,-222,-249,-222},{-208,-247,-222,-213,-215,-222},{-238,-245,-226,-245,-226,-213},{-215,-254,-243,-229,-219,-245}},{{-208,-238,-243,-229,-219,-249},{-247,-229,-222,-226,-208,-217},{-208,-247,-254,-208,-208,-219},{-233,-247,-213,-213,-254,-210},{-210,-238,-208,-238,-210,-213},{-236,-219,-240,-226,-236,-238},{-249,-245,-238,-229,-208,-210},{-238,-229,-210,-231,-238,-236},{-226,-238,-229,-243,-238,-231},{-245,-217,-219,-229,-210,-217},{-208,-213,-238,-226,-217,-219},{-222,-247,-222,-210,-252,-213},{-208,-236,-231,-238,-249,-217},{-249,-208,-245,-213,-233,-215},{-224,-222,-247,-208,-254,-226},{-222,-219,-233,-215,-247,-236},{-238,-254,-208,-240,-247,-231},{-249,-229,-219,-236,-226,-210},{-243,-249,-236,-245,-243,-229},{-238,-208,-219,-222,-245,-229},{-243,-247,-245,-222,-215,-249},{-226,-236,-215,-249,-254,-208},{-245,-233,-213,-252,-254,-249},{-252,-254,-222,-226,-215,-254},{-245,-247,-217,-208,-233,-243},{-213,-238,-254,-243,-224,-249},{-254,-229,-249,-238,-229,-215},{-217,-215,-252,-208,-238,-213},{-210,-243,-208,-224,-217,-233},{-222,-238,-215,-236,-222,-226},{-245,-222,-224,-243,-254,-219},{-254,-229,-236,-243,-208,-215},{-210,-243,-245,-252,-252,-247},{-236,-254,-243,-219,-219,-233},{-240,-233,-210,-247,-240,-229},{-240,-243,-219,-215,-243,-247},{-222,-231,-245,-231,-233,-213},{-210,-233,-247,-233,-210,-215},{-240,-226,-233,-224,-222,-243},{-222,-236,-219,-226,-233,-224},{-249,-247,-238,-245,-222,-233},{-217,-249,-219,-240,-213,-252},{-240,-213,-210,-210,-217,-238},{-215,-252,-254,-247,-231,-236},{-233,-229,-208,-215,-217,-229},{-208,-215,-252,-217,-217,-226},{-226,-249,-226,-233,-210,-217},{-226,-240,-247,-240,-231,-217},{-226,-243,-247,-243,-245,-245},{-210,-208,-252,-252,-222,-210}},{{-254,-233,-224,-224,-224,-247},{-247,-226,-252,-222,-243,-238},{-210,-224,-215,-219,-219,-229},{-219,-236,-252,-254,-236,-217},{-254,-222,-240,-213,-219,-210},{-240,-231,-247,-229,-238,-238},{-231,-238,-208,-247,-252,-238},{-233,-217,-231,-210,-233,-222},{-208,-249,-219,-226,-229,-213},{-222,-249,-243,-213,-254,-247},{-208,-249,-226,-208,-210,-215},{-245,-249,-245,-229,-213,-210},{-236,-231,-215,-210,-213,-226},{-210,-226,-226,-247,-252,-240},{-224,-238,-247,-213,-245,-247},{-243,-213,-243,-233,-217,-243},{-219,-210,-210,-224,-249,-245},{-229,-243,-213,-249,-231,-229},{-247,-243,-208,-236,-236,-215},{-236,-249,-252,-222,-254,-213},{-222,-249,-249,-236,-233,-245},{-236,-233,-219,-222,-233,-226},{-252,-219,-208,-252,-247,-233},{-238,-236,-208,-229,-208,-240},{-247,-238,-231,-254,-208,-252},{-224,-247,-229,-238,-231,-249},{-224,-247,-243,-233,-240,-236},{-208,-229,-226,-249,-247,-236},{-254,-224,-238,-215,-240,-224},{-236,-252,-219,-210,-247,-243},{-245,-245,-240,-245,-236,-247},{-252,-210,-219,-231,-231,-252},{-208,-217,-231,-231,-208,-226},{-226,-222,-217,-233,-226,-231},{-233,-249,-247,-243,-213,-226},{-219,-224,-219,-215,-245,-247},{-229,-252,-208,-215,-254,-238},{-231,-213,-215,-215,-210,-210},{-219,-243,-240,-247,-224,-215},{-208,-247,-245,-231,-236,-254},{-254,-229,-245,-229,-231,-219},{-208,-222,-219,-229,-219,-217},{-224,-210,-217,-222,-240,-254},{-217,-233,-240,-229,-229,-238},{-252,-222,-208,-245,-236,-243},{-231,-243,-252,-226,-233,-238},{-243,-210,-231,-226,-217,-208},{-245,-224,-236,-224,-249,-243},{-238,-219,-210,-238,-208,-236},{-247,-254,-245,-217,-243,-219}}},{{{-204,-232,-224,-239,-195,-206},{-234,-228,-217,-204,-221,-224},{-210,-195,-228,-234,-210,-226},{-208,-224,-202,-213,-224,-197},{-204,-221,-219,-224,-234,-230},{-197,-219,-226,-215,-213,-206},{-217,-210,-226,-200,-221,-197},{-228,-215,-215,-232,-195,-202},{-204,-232,-202,-237,-200,-210},{-239,-230,-239,-221,-224,-221},{-239,-232,-208,-208,-237,-224},{-230,-204,-206,-213,-232,-221},{-219,-204,-228,-213,-230,-197},{-202,-234,-210,-208,-215,-226},{-200,-210,-232,-200,-215,-195},{-232,-210,-208,-217,-239,-232},{-210,-228,-210,-213,-232,-221},{-204,-208,-239,-230,-210,-234},{-230,-239,-224,-221,-195,-217},{-228,-230,-239,-208,-224,-204},{-221,-234,-208,-226,-217,-230},{-210,-239,-210,-195,-228,-210},{-221,-230,-200,-224,-215,-215},{-202,-206,-232,-226,-197,-232},{-210,-239,-202,-204,-200,-237},{-208,-202,-202,-200,-204,-206},{-217,-208,-219,-232,-206,-213},{-221,-219,-221,-239,-234,-230},{-221,-232,-221,-210,-210,-237},{-228,-215,-195,-210,-237,-219},{-195,-206,-230,-200,-226,-239},{-197,-226,-232,-210,-202,-202},{-224,-221,-210,-221,-204,-208},{-206,-237,-226,-219,-230,-224},{-217,-208,-200,-210,-239,-234},{-210,-215,-228,-197,-204,-204},{-206,-210,-210,-206,-195,-197},{-213,-234,-208,-219,-230,-221},{-224,-226,-232,-221,-217,-200},{-224,-237,-239,-210,-230,-226},{-234,-210,-195,-200,-204,-213},{-232,-204,-226,-208,-232,-219},{-228,-213,-213,-224,-206,-213},{-200,-213,-219,-232,-224,-228},{-195,-221,-228,-234,-195,-239},{-230,-224,-230,-208,-221,-195},{-215,-215,-219,-239,-224,-228},{-210,-237,-232,-206,-197,-224},{-210,-230,-234,-206,-197,-234},{-230,-234,-206,-204,-217,-210}},{{-215,-202,-197,-215,-237,-200},{-213,-219,-234,-232,-200,-228},{-234,-202,-224,-204,-234,-206},{-215,-213,-239,-228,-237,-228},{-230,-213,-210,-232,-213,-228},{-224,-221,-206,-237,-206,-202},{-208,-202,-239,-232,-204,-204},{-219,-219,-210,-208,-206,-230},{-221,-215,-232,-239,-208,-217},{-208,-232,-217,-208,-217,-237},{-200,-210,-210,-219,-210,-228},{-221,-228,-197,-197,-197,-215},{-226,-226,-204,-232,-195,-210},{-217,-206,-234,-204,-200,-230},{-213,-217,-230,-237,-213,-239},{-228,-221,-232,-226,-230,-228},{-224,-219,-213,-204,-195,-230},{-200,-234,-202,-215,-230,-234},{-217,-226,-197,-226,-204,-228},{-221,-204,-232,-197,-224,-239},{-226,-213,-221,-234,-221,-230},{-230,-237,-230,-221,-221,-206},{-239,-226,-230,-230,-228,-213},{-224,-230,-226,-215,-230,-200},{-206,-221,-226,-239,-200,-219},{-226,-210,-195,-204,-228,-226},{-202,-200,-237,-197,-215,-202},{-210,-219,-234,-204,-239,-202},{-237,-237,-230,-195,-237,-208},{-200,-213,-239,-206,-195,-195},{-208,-213,-237,-221,-200,-215},{-228,-208,-228,-215,-197,-237},{-230,-202,-217,-202,-210,-208},{-226,-202,-232,-230,-224,-234},{-239,-239,-232,-204,-210,-232},{-230,-210,-228,-206,-202,-224},{-228,-200,-213,-200,-224,-215},{-204,-221,-232,-208,-202,-208},{-215,-237,-239,-202,-224,-204},{-224,-215,-204,-197,-206,-230},{-217,-195,-210,-239,-232,-234},{-195,-217,-226,-200,-234,-219},{-195,-215,-228,-200,-219,-234},{-224,-217,-213,-206,-226,-197},{-197,-234,-221,-213,-230,-237},{-221,-237,-232,-217,-206,-230},{-208,-210,-230,-237,-206,-202},{-204,-204,-197,-230,-226,-202},{-200,-221,-230,-206,-230,-232},{-213,-237,-221,-221,-195,-197}},{{-206,-197,-232,-224,-206,-226},{-230,-234,-226,-200,-202,-239},{-221,-202,-224,-219,-237,-206},{-219,-224,-217,-210,-221,-219},{-219,-217,-215,-210,-195,-224},{-208,-221,-215,-195,-206,-221},{-224,-206,-219,-232,-219,-210},{-219,-204,-232,-217,-197,-228},{-234,-217,-215,-239,-219,-230},{-224,-217,-224,-215,-215,-239},{-230,-219,-202,-202,-237,-224},{-206,-206,-234,-226,-230,-210},{-228,-232,-197,-206,-215,-219},{-215,-234,-208,-195,-215,-200},{-237,-234,-208,-224,-239,-197},{-239,-195,-217,-206,-217,-217},{-206,-237,-195,-202,-215,-208},{-200,-221,-232,-204,-217,-206},{-208,-228,-217,-206,-237,-206},{-195,-197,-219,-230,-197,-224},{-210,-195,-228,-197,-200,-224},{-239,-228,-195,-204,-204,-232},{-228,-219,-202,-224,-215,-230},{-232,-206,-215,-200,-204,-228},{-234,-228,-200,-224,-195,-237},{-217,-219,-197,-208,-200,-221},{-224,-208,-195,-221,-197,-219},{-202,-221,-221,-210,-210,-213},{-195,-219,-206,-200,-217,-232},{-215,-219,-239,-219,-232,-197},{-230,-234,-200,-224,-210,-221},{-234,-213,-228,-210,-213,-215},{-226,-219,-219,-219,-195,-224},{-195,-197,-219,-195,-226,-208},{-200,-208,-234,-204,-239,-204},{-204,-204,-195,-195,-230,-195},{-215,-210,-239,-237,-217,-197},{-202,-210,-226,-239,-204,-213},{-215,-195,-237,-195,-213,-234},{-232,-204,-219,-239,-215,-197},{-202,-217,-206,-195,-215,-230},{-234,-208,-219,-239,-213,-221},{-226,-237,-206,-221,-200,-197},{-232,-213,-221,-197,-226,-234},{-208,-230,-234,-239,-237,-215},{-206,-197,-202,-232,-237,-239},{-213,-210,-204,-226,-217,-208},{-213,-232,-234,-234,-219,-237},{-234,-228,-228,-234,-213,-195},{-200,-226,-197,-197,-202,-210}}},{{{-290,-287,-247,-266,-285,-255},{-274,-293,-293,-274,-247,-282},{-255,-282,-242,-261,-287,-282},{-247,-287,-258,-255,-293,-279},{-274,-282,-279,-253,-271,-263},{-290,-279,-263,-255,-253,-279},{-290,-285,-245,-269,-263,-271},{-277,-250,-266,-282,-245,-263},{-290,-245,-279,-282,-271,-271},{-287,-261,-245,-269,-247,-266},{-287,-290,-282,-258,-293,-285},{-242,-261,-277,-285,-242,-269},{-285,-245,-266,-290,-290,-277},{-250,-245,-279,-271,-250,-282},{-282,-247,-266,-253,-263,-287},{-239,-261,-250,-245,-247,-285},{-274,-258,-261,-242,-290,-271},{-271,-293,-290,-250,-269,-247},{-245,-258,-269,-271,-255,-250},{-266,-255,-285,-239,-263,-253},{-250,-250,-239,-239,-277,-282},{-282,-261,-269,-239,-239,-293},{-271,-293,-250,-253,-293,-287},{-287,-245,-293,-258,-279,-245},{-247,-293,-242,-245,-269,-293},{-242,-282,-293,-274,-245,-247},{-266,-285,-285,-279,-282,-271},{-242,-282,-247,-255,-253,-263},{-266,-277,-271,-277,-285,-266},{-277,-263,-266,-287,-239,-239},{-253,-253,-261,-245,-255,-282},{-269,-266,-255,-269,-242,-245},{-253,-261,-274,-247,-250,-266},{-279,-274,-253,-239,-247,-261},{-266,-274,-245,-245,-290,-287},{-266,-271,-250,-274,-290,-290},{-258,-274,-239,-247,-290,-245},{-261,-261,-250,-255,-245,-250},{-290,-266,-274,-263,-269,-285},{-271,-290,-290,-242,-266,-245},{-266,-245,-255,-250,-239,-245},{-266,-269,-242,-261,-282,-247},{-282,-282,-242,-282,-255,-250},{-266,-261,-266,-287,-287,-255},{-253,-293,-253,-255,-293,-263},{-277,-239,-282,-258,-287,-261},{-242,-253,-277,-250,-261,-255},{-285,-279,-245,-285,-287,-271},{-253,-255,-255,-242,-250,-255},{-271,-277,-271,-293,-269,-271}},{{-274,-263,-293,-253,-242,-239},{-245,-258,-253,-287,-263,-287},{-274,-285,-279,-258,-285,-239},{-293,-290,-277,-239,-253,-258},{-290,-258,-287,-263,-239,-242},{-261,-269,-261,-290,-287,-287},{-263,-282,-269,-239,-277,-293},{-263,-239,-263,-274,-242,-255},{-263,-266,-279,-266,-269,-279},{-269,-247,-245,-287,-247,-269},{-287,-250,-258,-242,-290,-293},{-263,-247,-274,-247,-287,-282},{-258,-279,-250,-261,-277,-287},{-258,-293,-269,-285,-269,-282},{-279,-255,-250,-274,-290,-269},{-279,-239,-245,-250,-271,-245},{-269,-266,-253,-245,-253,-239},{-290,-269,-239,-274,-245,-261},{-266,-277,-277,-266,-266,-290},{-258,-250,-253,-250,-274,-271},{-285,-263,-274,-263,-242,-239},{-250,-261,-285,-282,-287,-279},{-239,-269,-287,-274,-266,-271},{-269,-285,-274,-258,-245,-290},{-285,-279,-287,-247,-271,-290},{-242,-245,-285,-258,-282,-247},{-261,-255,-285,-287,-266,-239},{-293,-245,-269,-239,-255,-245},{-279,-290,-258,-271,-285,-250},{-247,-279,-282,-266,-261,-290},{-242,-269,-287,-271,-261,-258},{-279,-239,-287,-274,-285,-263},{-245,-287,-266,-266,-261,-282},{-287,-277,-263,-269,-258,-250},{-293,-255,-242,-271,-242,-258},{-293,-247,-277,-261,-266,-250},{-245,-239,-293,-242,-258,-242},{-287,-239,-271,-266,-271,-263},{-255,-279,-287,-277,-279,-239},{-274,-247,-253,-293,-274,-287},{-263,-258,-269,-266,-239,-274},{-287,-279,-250,-271,-255,-277},{-255,-258,-290,-253,-293,-250},{-266,-261,-293,-271,-250,-285},{-274,-269,-271,-287,-285,-287},{-239,-258,-255,-282,-279,-293},{-293,-279,-261,-277,-258,-277},{-263,-261,-242,-250,-290,-253},{-269,-261,-245,-290,-279,-277},{-245,-290,-253,-271,-247,-242}},{{-269,-287,-242,-263,-253,-279},{-271,-277,-282,-271,-266,-277},{-239,-266,-250,-255,-271,-239},{-245,-287,-269,-253,-282,-285},{-290,-266,-277,-245,-279,-271},{-266,-261,-287,-263,-293,-287},{-285,-274,-274,-255,-258,-263},{-279,-290,-285,-253,-290,-274},{-287,-253,-239,-285,-261,-239},{-261,-242,-266,-290,-285,-271},{-277,-263,-239,-245,-247,-279},{-255,-282,-290,-255,-279,-290},{-287,-253,-255,-255,-239,-282},{-263,-282,-277,-253,-261,-269},{-285,-253,-253,-253,-285,-279},{-279,-239,-271,-239,-258,-242},{-282,-258,-266,-277,-290,-290},{-255,-242,-245,-247,-266,-287},{-271,-245,-266,-253,-287,-258},{-250,-269,-253,-279,-269,-255},{-277,-271,-266,-247,-285,-277},{-277,-290,-263,-282,-266,-282},{-245,-242,-279,-242,-287,-250},{-266,-269,-277,-274,-253,-242},{-258,-285,-285,-287,-269,-263},{-266,-287,-250,-245,-266,-250},{-290,-245,-239,-242,-277,-247},{-271,-285,-261,-258,-277,-274},{-269,-282,-266,-250,-279,-247},{-285,-271,-269,-239,-263,-239},{-287,-245,-293,-282,-277,-269},{-279,-255,-263,-261,-263,-285},{-287,-263,-245,-242,-253,-293},{-255,-239,-290,-250,-290,-277},{-274,-242,-250,-253,-290,-263},{-247,-279,-287,-247,-279,-245},{-253,-287,-287,-285,-258,-250},{-250,-247,-242,-287,-290,-290},{-279,-245,-287,-253,-274,-253},{-279,-258,-261,-282,-247,-263},{-261,-282,-274,-255,-274,-239},{-245,-247,-279,-266,-290,-253},{-271,-277,-282,-253,-250,-242},{-258,-247,-263,-247,-277,-282},{-285,-242,-271,-287,-293,-287},{-261,-242,-266,-242,-263,-245},{-269,-263,-293,-261,-263,-261},{-247,-239,-287,-290,-266,-247},{-279,-274,-261,-269,-269,-287},{-239,-266,-263,-269,-239,-279}}},{{{-302,-269,-263,-252,-274,-280},{-280,-277,-305,-269,-258,-272},{-291,-277,-305,-266,-274,-300},{-272,-302,-252,-280,-266,-274},{-277,-255,-288,-291,-263,-252},{-294,-305,-283,-263,-308,-294},{-288,-300,-294,-283,-286,-283},{-283,-305,-260,-274,-272,-269},{-288,-302,-260,-272,-300,-288},{-288,-260,-283,-260,-258,-294},{-297,-258,-255,-263,-274,-274},{-291,-252,-269,-297,-288,-283},{-291,-266,-255,-269,-283,-272},{-252,-308,-283,-255,-300,-269},{-252,-258,-266,-302,-308,-291},{-291,-277,-255,-302,-269,-260},{-305,-258,-291,-277,-274,-277},{-300,-277,-288,-260,-294,-255},{-266,-302,-266,-252,-258,-291},{-280,-266,-260,-280,-260,-263},{-272,-269,-305,-263,-308,-308},{-272,-266,-308,-274,-288,-288},{-294,-283,-308,-258,-277,-255},{-280,-283,-305,-277,-274,-288},{-255,-283,-283,-300,-300,-286},{-252,-260,-260,-263,-277,-308},{-305,-274,-308,-266,-252,-294},{-266,-274,-277,-280,-288,-263},{-263,-274,-294,-269,-263,-274},{-255,-297,-252,-291,-288,-286},{-286,-286,-291,-283,-286,-288},{-308,-308,-288,-277,-266,-263},{-283,-252,-252,-274,-286,-258},{-288,-294,-277,-305,-286,-305},{-286,-277,-260,-255,-277,-308},{-277,-260,-280,-280,-272,-272},{-260,-305,-291,-302,-260,-260},{-280,-274,-308,-297,-308,-269},{-288,-252,-255,-258,-300,-286},{-283,-263,-302,-308,-297,-255},{-291,-263,-274,-277,-266,-263},{-297,-266,-258,-266,-305,-260},{-277,-302,-263,-266,-269,-300},{-266,-274,-308,-277,-291,-305},{-288,-308,-258,-305,-255,-280},{-283,-274,-288,-283,-300,-272},{-274,-300,-283,-272,-260,-266},{-286,-308,-288,-272,-258,-258},{-277,-266,-288,-266,-305,-266},{-252,-294,-266,-272,-272,-286}},{{-300,-255,-294,-291,-272,-297},{-277,-283,-263,-283,-280,-252},{-291,-283,-308,-274,-288,-260},{-302,-269,-252,-300,-297,-277},{-280,-300,-300,-263,-302,-291},{-297,-255,-283,-288,-272,-274},{-297,-302,-283,-277,-274,-297},{-288,-286,-272,-305,-258,-277},{-258,-302,-280,-294,-266,-288},{-286,-266,-274,-302,-305,-260},{-263,-300,-274,-266,-305,-297},{-263,-266,-272,-291,-260,-305},{-305,-263,-286,-286,-294,-274},{-252,-260,-280,-280,-266,-291},{-302,-305,-297,-266,-263,-294},{-294,-258,-288,-263,-291,-272},{-291,-294,-286,-300,-255,-255},{-260,-302,-274,-272,-263,-300},{-272,-308,-297,-252,-252,-294},{-269,-294,-274,-291,-260,-288},{-300,-294,-308,-297,-291,-300},{-266,-305,-308,-302,-291,-280},{-252,-260,-286,-302,-260,-283},{-274,-277,-277,-252,-258,-252},{-305,-260,-274,-305,-280,-266},{-291,-266,-283,-252,-291,-305},{-255,-305,-252,-286,-308,-258},{-269,-283,-269,-280,-263,-260},{-297,-294,-266,-294,-277,-272},{-294,-260,-277,-269,-308,-272},{-280,-280,-308,-277,-288,-286},{-291,-269,-302,-280,-277,-305},{-286,-297,-277,-297,-288,-283},{-280,-263,-308,-294,-305,-255},{-274,-305,-272,-272,-291,-305},{-288,-283,-260,-263,-280,-300},{-302,-283,-277,-283,-266,-266},{-252,-280,-294,-269,-272,-308},{-280,-294,-260,-280,-272,-291},{-297,-300,-305,-300,-297,-302},{-297,-274,-308,-294,-283,-266},{-263,-274,-288,-252,-288,-305},{-277,-280,-255,-302,-269,-269},{-305,-252,-308,-277,-286,-252},{-252,-258,-291,-269,-266,-288},{-274,-258,-305,-260,-280,-255},{-291,-291,-286,-305,-260,-302},{-272,-269,-302,-308,-308,-286},{-286,-286,-305,-280,-269,-258},{-274,-260,-252,-277,-294,-305}},{{-269,-288,-277,-260,-283,-302},{-308,-305,-294,-258,-277,-294},{-277,-288,-277,-283,-300,-272},{-302,-300,-291,-266,-260,-260},{-277,-263,-283,-252,-291,-294},{-283,-263,-300,-255,-291,-280},{-288,-308,-258,-280,-300,-280},{-266,-263,-255,-288,-255,-286},{-260,-272,-252,-274,-255,-258},{-294,-297,-308,-283,-272,-283},{-280,-288,-283,-260,-255,-283},{-255,-258,-308,-291,-288,-286},{-266,-252,-291,-280,-266,-288},{-294,-294,-308,-308,-263,-255},{-255,-263,-258,-283,-305,-266},{-302,-258,-288,-252,-305,-286},{-258,-266,-300,-302,-294,-258},{-291,-280,-263,-255,-283,-300},{-274,-272,-263,-255,-274,-291},{-266,-280,-286,-291,-297,-294},{-305,-258,-297,-291,-263,-291},{-297,-302,-280,-255,-272,-291},{-305,-288,-258,-283,-283,-255},{-302,-252,-283,-291,-288,-297},{-297,-302,-288,-266,-277,-291},{-305,-308,-291,-294,-266,-274},{-288,-274,-291,-286,-305,-263},{-294,-302,-280,-260,-291,-288},{-302,-277,-255,-283,-266,-274},{-297,-263,-283,-263,-258,-302},{-300,-258,-283,-266,-308,-252},{-286,-294,-291,-272,-305,-283},{-255,-260,-266,-291,-258,-288},{-274,-266,-252,-263,-283,-300},{-260,-252,-308,-280,-277,-258},{-294,-266,-263,-300,-263,-277},{-280,-272,-294,-308,-258,-288},{-305,-252,-269,-288,-308,-294},{-297,-277,-266,-280,-300,-258},{-291,-263,-294,-252,-297,-277},{-260,-258,-300,-305,-252,-260},{-308,-260,-255,-308,-277,-286},{-277,-288,-269,-294,-255,-258},{-274,-286,-272,-302,-283,-300},{-263,-252,-252,-297,-294,-291},{-274,-305,-269,-291,-269,-274},{-252,-288,-300,-255,-300,-288},{-297,-266,-274,-294,-269,-263},{-274,-255,-294,-277,-260,-288},{-286,-283,-266,-286,-283,-272}}},{{{-258,-260,-252,-283,-302,-266},{-263,-300,-260,-258,-266,-258},{-297,-280,-266,-297,-283,-269},{-300,-266,-308,-291,-308,-266},{-283,-294,-286,-288,-300,-308},{-274,-274,-302,-263,-280,-283},{-280,-288,-291,-255,-286,-308},{-258,-260,-300,-283,-302,-288},{-286,-297,-258,-255,-283,-302},{-266,-258,-258,-294,-286,-297},{-286,-294,-260,-300,-277,-277},{-277,-280,-252,-308,-280,-302},{-297,-266,-291,-252,-252,-255},{-291,-252,-263,-297,-272,-266},{-291,-252,-280,-252,-300,-272},{-274,-294,-258,-255,-305,-283},{-283,-302,-294,-297,-272,-266},{-277,-302,-258,-280,-277,-291},{-291,-297,-260,-274,-291,-286},{-280,-283,-274,-252,-294,-297},{-260,-255,-252,-308,-308,-305},{-252,-305,-266,-252,-283,-308},{-272,-274,-294,-302,-286,-252},{-266,-291,-294,-294,-283,-252},{-258,-269,-258,-263,-252,-302},{-255,-291,-294,-269,-308,-260},{-280,-300,-294,-305,-297,-258},{-263,-252,-266,-291,-255,-258},{-308,-294,-286,-286,-305,-274},{-272,-288,-274,-305,-288,-283},{-286,-263,-302,-302,-274,-252},{-252,-274,-266,-269,-297,-260},{-305,-288,-308,-288,-277,-274},{-294,-288,-266,-294,-308,-266},{-300,-277,-308,-302,-260,-272},{-308,-286,-291,-294,-255,-266},{-266,-300,-269,-294,-255,-286},{-302,-297,-291,-300,-300,-286},{-300,-291,-258,-300,-252,-294},{-288,-277,-269,-286,-277,-308},{-269,-286,-277,-283,-300,-297},{-263,-283,-300,-252,-252,-297},{-291,-305,-266,-300,-300,-277},{-277,-258,-280,-302,-263,-283},{-269,-283,-258,-288,-269,-291},{-255,-308,-255,-288,-255,-258},{-305,-308,-255,-294,-294,-288},{-263,-266,-269,-308,-308,-280},{-272,-280,-258,-255,-258,-297},{-280,-300,-252,-277,-300,-291}},{{-252,-294,-294,-258,-255,-266},{-252,-302,-280,-274,-308,-286},{-274,-280,-269,-288,-277,-277},{-280,-294,-288,-305,-272,-308},{-297,-252,-308,-283,-302,-258},{-294,-300,-297,-260,-305,-297},{-302,-255,-269,-294,-274,-297},{-269,-274,-297,-283,-269,-286},{-300,-288,-300,-252,-263,-297},{-291,-302,-263,-255,-283,-269},{-274,-274,-255,-269,-294,-305},{-288,-305,-291,-277,-263,-255},{-263,-286,-280,-291,-269,-288},{-300,-255,-255,-288,-266,-274},{-260,-280,-288,-272,-300,-258},{-274,-294,-308,-288,-288,-266},{-252,-260,-294,-277,-266,-260},{-252,-269,-305,-280,-305,-302},{-255,-263,-272,-308,-300,-272},{-280,-266,-283,-272,-269,-302},{-269,-288,-260,-266,-274,-302},{-283,-297,-258,-288,-272,-302},{-308,-286,-263,-255,-255,-308},{-308,-269,-297,-305,-283,-272},{-308,-297,-305,-294,-269,-263},{-258,-260,-272,-291,-308,-263},{-280,-280,-305,-308,-263,-266},{-260,-255,-302,-255,-269,-255},{-291,-272,-305,-258,-255,-269},{-302,-280,-280,-263,-302,-252},{-302,-274,-297,-263,-291,-300},{-255,-266,-294,-252,-258,-283},{-308,-280,-252,-280,-288,-288},{-263,-277,-280,-263,-294,-260},{-258,-302,-272,-277,-308,-294},{-297,-255,-286,-294,-297,-266},{-277,-297,-263,-308,-269,-302},{-263,-305,-274,-286,-305,-286},{-260,-297,-305,-286,-291,-255},{-258,-266,-260,-252,-302,-252},{-302,-269,-266,-263,-302,-286},{-252,-294,-263,-294,-263,-297},{-266,-288,-272,-266,-252,-288},{-274,-258,-277,-286,-305,-277},{-291,-308,-263,-258,-305,-266},{-294,-305,-255,-255,-269,-269},{-258,-258,-308,-286,-305,-300},{-308,-266,-283,-305,-272,-305},{-263,-260,-263,-294,-291,-286},{-272,-277,-277,-280,-252,-305}},{{-263,-294,-277,-291,-291,-274},{-283,-274,-263,-283,-269,-308},{-266,-288,-272,-302,-288,-305},{-258,-297,-272,-302,-283,-255},{-302,-258,-272,-286,-263,-266},{-274,-291,-291,-269,-258,-255},{-258,-305,-300,-277,-269,-266},{-294,-260,-269,-288,-297,-302},{-274,-286,-269,-291,-263,-260},{-294,-258,-286,-288,-280,-255},{-308,-286,-308,-272,-286,-302},{-291,-300,-286,-272,-277,-288},{-302,-272,-252,-308,-300,-280},{-266,-297,-269,-286,-283,-283},{-305,-283,-258,-286,-300,-286},{-266,-308,-288,-300,-263,-266},{-252,-269,-280,-308,-308,-291},{-308,-272,-291,-266,-300,-255},{-288,-260,-269,-252,-277,-255},{-266,-260,-255,-305,-272,-291},{-291,-260,-277,-255,-291,-297},{-260,-258,-280,-305,-302,-272},{-272,-280,-300,-288,-294,-286},{-308,-302,-283,-269,-255,-258},{-266,-252,-272,-291,-263,-266},{-260,-297,-255,-291,-308,-266},{-269,-252,-288,-274,-277,-308},{-308,-302,-286,-258,-286,-269},{-300,-305,-300,-260,-280,-266},{-302,-288,-258,-283,-283,-297},{-305,-280,-263,-294,-305,-269},{-294,-300,-255,-300,-300,-305},{-266,-280,-277,-294,-255,-260},{-252,-269,-288,-302,-305,-269},{-283,-288,-288,-294,-291,-269},{-258,-272,-274,-252,-255,-277},{-269,-280,-300,-277,-280,-288},{-274,-283,-277,-297,-272,-297},{-305,-255,-294,-274,-269,-305},{-269,-283,-305,-277,-255,-283},{-308,-288,-286,-291,-280,-266},{-260,-266,-305,-266,-277,-283},{-272,-308,-277,-280,-252,-274},{-305,-294,-260,-305,-308,-288},{-266,-294,-272,-297,-291,-305},{-297,-291,-252,-288,-258,-297},{-283,-263,-255,-294,-288,-280},{-305,-263,-300,-286,-300,-305},{-294,-286,-274,-263,-263,-294},{-280,-302,-274,-260,-280,-260}}},{{{-258,-277,-277,-291,-272,-266},{-272,-263,-283,-305,-305,-266},{-277,-308,-302,-305,-297,-288},{-252,-297,-255,-286,-263,-258},{-272,-255,-283,-302,-300,-272},{-255,-294,-280,-297,-286,-258},{-274,-255,-272,-269,-305,-294},{-297,-263,-258,-291,-308,-272},{-283,-260,-266,-280,-283,-286},{-280,-263,-280,-283,-255,-260},{-288,-294,-300,-280,-283,-274},{-286,-302,-266,-300,-258,-280},{-300,-277,-308,-277,-305,-297},{-302,-305,-286,-258,-288,-277},{-308,-280,-294,-272,-283,-308},{-266,-291,-283,-283,-263,-286},{-297,-255,-252,-277,-300,-308},{-283,-255,-288,-300,-286,-269},{-294,-280,-269,-269,-258,-277},{-280,-294,-302,-269,-280,-288},{-252,-252,-297,-280,-288,-272},{-274,-288,-280,-260,-280,-258},{-288,-252,-302,-258,-294,-286},{-305,-308,-260,-255,-291,-269},{-302,-288,-277,-308,-297,-274},{-255,-260,-288,-269,-260,-308},{-291,-277,-258,-260,-300,-272},{-297,-260,-305,-252,-252,-258},{-277,-252,-263,-300,-297,-258},{-269,-263,-274,-258,-258,-258},{-302,-283,-305,-266,-308,-255},{-286,-252,-266,-252,-291,-252},{-263,-288,-286,-300,-288,-308},{-255,-300,-252,-294,-277,-269},{-269,-308,-269,-269,-305,-274},{-263,-283,-266,-300,-272,-266},{-260,-258,-288,-255,-260,-263},{-283,-274,-258,-305,-308,-283},{-255,-260,-274,-288,-258,-283},{-280,-255,-269,-255,-283,-302},{-263,-297,-272,-280,-294,-263},{-291,-260,-269,-277,-272,-305},{-294,-266,-300,-300,-300,-274},{-255,-300,-291,-300,-272,-291},{-302,-283,-274,-269,-277,-277},{-305,-305,-274,-291,-274,-255},{-300,-286,-291,-274,-286,-280},{-283,-297,-266,-280,-302,-286},{-272,-274,-277,-288,-269,-269},{-272,-286,-305,-294,-269,-280}},{{-300,-308,-274,-308,-255,-272},{-302,-288,-274,-283,-300,-269},{-280,-269,-308,-294,-291,-288},{-288,-305,-269,-277,-263,-305},{-269,-308,-255,-258,-297,-280},{-294,-260,-272,-255,-280,-300},{-305,-305,-272,-283,-291,-260},{-277,-260,-302,-269,-266,-255},{-277,-300,-266,-258,-308,-252},{-272,-302,-302,-266,-252,-294},{-266,-252,-263,-283,-283,-297},{-274,-308,-280,-260,-274,-294},{-291,-283,-305,-252,-286,-294},{-308,-305,-280,-277,-294,-283},{-252,-252,-294,-263,-260,-258},{-263,-277,-288,-266,-308,-252},{-297,-291,-294,-302,-260,-300},{-302,-266,-286,-260,-260,-286},{-308,-286,-297,-286,-286,-294},{-288,-258,-297,-272,-283,-263},{-274,-297,-283,-260,-260,-308},{-291,-300,-300,-272,-283,-274},{-280,-260,-263,-300,-277,-252},{-302,-255,-258,-260,-260,-274},{-274,-286,-274,-280,-255,-255},{-286,-283,-258,-263,-258,-294},{-263,-263,-305,-252,-300,-266},{-288,-283,-305,-263,-300,-283},{-269,-305,-288,-272,-260,-255},{-260,-266,-280,-269,-252,-272},{-269,-302,-252,-305,-272,-300},{-291,-302,-260,-274,-294,-277},{-272,-258,-286,-255,-260,-263},{-280,-291,-300,-260,-283,-280},{-283,-269,-308,-258,-291,-297},{-266,-305,-305,-277,-252,-277},{-269,-300,-272,-260,-269,-297},{-274,-294,-288,-260,-274,-288},{-255,-266,-300,-300,-280,-252},{-260,-302,-260,-297,-300,-297},{-269,-277,-302,-288,-274,-305},{-277,-260,-255,-277,-258,-255},{-258,-255,-302,-300,-291,-288},{-302,-266,-305,-283,-277,-260},{-263,-255,-258,-305,-283,-297},{-266,-280,-272,-294,-252,-255},{-280,-288,-260,-302,-255,-252},{-305,-269,-277,-274,-283,-280},{-297,-252,-277,-266,-302,-291},{-300,-308,-260,-258,-255,-297}},{{-266,-294,-280,-269,-294,-263},{-302,-305,-297,-294,-286,-280},{-272,-274,-274,-272,-308,-288},{-274,-308,-288,-272,-280,-291},{-260,-286,-263,-297,-263,-286},{-263,-258,-269,-291,-280,-302},{-274,-302,-286,-260,-297,-266},{-280,-283,-283,-283,-294,-302},{-302,-302,-272,-258,-283,-263},{-272,-288,-288,-269,-280,-291},{-260,-286,-258,-263,-294,-258},{-297,-302,-283,-269,-252,-280},{-291,-288,-260,-272,-266,-291},{-308,-277,-272,-300,-286,-297},{-300,-280,-252,-302,-280,-297},{-305,-272,-308,-274,-263,-305},{-302,-258,-300,-302,-272,-308},{-274,-305,-252,-258,-288,-272},{-283,-308,-252,-308,-280,-302},{-300,-263,-286,-302,-272,-297},{-277,-288,-288,-260,-286,-288},{-263,-302,-294,-269,-252,-255},{-272,-302,-269,-297,-294,-280},{-266,-277,-260,-252,-302,-274},{-286,-280,-294,-280,-277,-263},{-277,-305,-255,-305,-294,-308},{-297,-283,-300,-308,-286,-258},{-288,-269,-305,-291,-269,-269},{-252,-260,-286,-255,-286,-305},{-288,-294,-302,-260,-305,-272},{-300,-277,-302,-258,-272,-277},{-288,-252,-272,-272,-283,-258},{-274,-274,-277,-258,-308,-291},{-294,-283,-294,-274,-294,-305},{-300,-269,-302,-305,-258,-277},{-266,-291,-291,-288,-260,-280},{-252,-277,-272,-258,-252,-302},{-260,-302,-302,-286,-263,-288},{-272,-291,-308,-305,-291,-272},{-283,-286,-263,-263,-288,-269},{-305,-302,-258,-305,-266,-283},{-305,-263,-294,-272,-305,-260},{-283,-260,-269,-288,-272,-266},{-274,-252,-266,-255,-294,-258},{-258,-291,-274,-291,-260,-305},{-266,-260,-294,-260,-277,-286},{-258,-302,-272,-252,-266,-300},{-288,-286,-277,-300,-300,-300},{-308,-283,-272,-305,-277,-258},{-300,-252,-297,-258,-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]={7,4,3,8,4,3,8,4,3,6,3,2,5,3,2,6,3,2,7,4,3,7,4,3,8,4,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3,8,4,3,7,4,3,8,4,3,7,4,3,8,4,3,8,4,3,8,4,3,9,4,3,8,5,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}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,13,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,2,8,14,0,2,4,6,8,10,2,6,10,1,7,2,4,6,8,10,0,4,8,1,7,1,3,5,7,9,11,2,6,10,1,7,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,0,6,12,1,3,5,7,9,11,13,15,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,0,6,12,1,3,5,7,9,11,13,1,5,9,13,0,6,12,1,3,5,7,9,11,13,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,1,7,13,1,3,5,7,9,11,13,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,1,3,5,7,9,11,13,0,4,8,12,1,7,13,1,3,5,7,9,11,13,15,1,5,9,13,2,8,14,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,0,4,8,12,16,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,2,8,14}; // set of start times of each shipment 
int SHets[SPN]={4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,5,11,17,6,8,10,12,14,16,8,12,16,7,13,8,10,12,14,16,6,10,14,7,13,7,9,11,13,15,17,8,12,16,7,13,4,6,8,10,12,14,16,4,8,12,16,3,9,15,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,2,8,14,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,2,8,14,4,6,8,10,12,14,16,4,8,12,16,3,9,15,4,6,8,10,12,14,16,4,8,12,16,5,11,17,3,5,7,9,11,13,15,17,5,9,13,17,4,10,16,4,6,8,10,12,14,16,4,8,12,16,5,11,17,3,5,7,9,11,13,15,17,5,9,13,17,3,9,15,4,6,8,10,12,14,16,3,7,11,15,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,4,8,12,16,2,8,14,1,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,2,4,6,8,10,12,14,16,1,5,9,13,17,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15}; // set of end times of each shipment 
