int Dev = 20;// Deviation
extern const int CNN = 2;// Case Index
extern const int P = 6;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 36;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 745;//Number of shipments
extern const int SN = 20;//Number of scenarios at each stage
extern const int MBSN = 18;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05},{0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6,6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17},{18,19,20,21,22,23},{24,25,26,27,28,29},{30,31,32,33,34,35}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{11000,0,0,0,0,0},{11171,0,0,0,0,0},{11210,0,0,0,0,0},{10928,0,0,0,0,0},{11012,0,0,0,0,0},{11056,0,0,0,0,0},{11215,0,0,0,0,0},{10930,0,0,0,0,0},{11092,0,0,0,0,0},{10883,0,0,0,0,0},{10838,0,0,0,0,0},{10876,0,0,0,0,0},{11131,0,0,0,0,0},{11138,0,0,0,0,0},{10836,0,0,0,0,0},{10998,0,0,0,0,0},{11071,0,0,0,0,0},{11349,0,0,0,0,0},{10906,0,0,0,0,0},{11026,0,0,0,0,0}},{{11091,0,0,0,0,0},{11134,0,0,0,0,0},{11556,0,0,0,0,0},{11137,0,0,0,0,0},{11122,0,0,0,0,0},{11281,0,0,0,0,0},{11190,0,0,0,0,0},{11037,0,0,0,0,0},{11046,0,0,0,0,0},{11346,0,0,0,0,0},{10951,0,0,0,0,0},{11080,0,0,0,0,0},{11084,0,0,0,0,0},{10710,0,0,0,0,0},{11048,0,0,0,0,0},{11083,0,0,0,0,0},{10893,0,0,0,0,0},{11310,0,0,0,0,0},{11043,0,0,0,0,0},{10844,0,0,0,0,0}},{{11088,0,0,0,0,0},{10962,0,0,0,0,0},{11072,0,0,0,0,0},{11409,0,0,0,0,0},{11320,0,0,0,0,0},{11217,0,0,0,0,0},{11615,0,0,0,0,0},{11026,0,0,0,0,0},{10613,0,0,0,0,0},{10854,0,0,0,0,0},{10875,0,0,0,0,0},{11201,0,0,0,0,0},{11031,0,0,0,0,0},{10991,0,0,0,0,0},{11217,0,0,0,0,0},{11414,0,0,0,0,0},{11176,0,0,0,0,0},{11076,0,0,0,0,0},{11363,0,0,0,0,0},{10731,0,0,0,0,0}},{{11181,0,0,0,0,0},{11392,0,0,0,0,0},{10908,0,0,0,0,0},{10901,0,0,0,0,0},{10947,0,0,0,0,0},{11113,0,0,0,0,0},{11034,0,0,0,0,0},{10846,0,0,0,0,0},{10859,0,0,0,0,0},{10812,0,0,0,0,0},{11071,0,0,0,0,0},{11027,0,0,0,0,0},{10975,0,0,0,0,0},{10938,0,0,0,0,0},{10933,0,0,0,0,0},{10850,0,0,0,0,0},{11301,0,0,0,0,0},{11041,0,0,0,0,0},{10788,0,0,0,0,0},{11006,0,0,0,0,0}},{{11368,0,0,0,0,0},{10791,0,0,0,0,0},{10982,0,0,0,0,0},{10840,0,0,0,0,0},{10905,0,0,0,0,0},{11263,0,0,0,0,0},{11358,0,0,0,0,0},{11170,0,0,0,0,0},{11054,0,0,0,0,0},{10906,0,0,0,0,0},{10983,0,0,0,0,0},{11075,0,0,0,0,0},{10976,0,0,0,0,0},{11179,0,0,0,0,0},{10975,0,0,0,0,0},{10922,0,0,0,0,0},{11061,0,0,0,0,0},{11099,0,0,0,0,0},{11023,0,0,0,0,0},{11221,0,0,0,0,0}},{{10774,0,0,0,0,0},{10878,0,0,0,0,0},{11607,0,0,0,0,0},{11048,0,0,0,0,0},{10908,0,0,0,0,0},{11292,0,0,0,0,0},{10998,0,0,0,0,0},{10980,0,0,0,0,0},{11293,0,0,0,0,0},{11094,0,0,0,0,0},{11031,0,0,0,0,0},{10811,0,0,0,0,0},{11158,0,0,0,0,0},{10775,0,0,0,0,0},{11203,0,0,0,0,0},{11086,0,0,0,0,0},{11319,0,0,0,0,0},{11234,0,0,0,0,0},{11256,0,0,0,0,0},{10955,0,0,0,0,0}}},{{{-231,-181,-267,-224,-199,-228},{-251,-202,-195,-179,-262,-193},{-233,-251,-258,-204,-253,-228},{-242,-179,-213,-204,-220,-231},{-235,-246,-190,-199,-199,-190},{-222,-246,-269,-197,-228,-249},{-213,-226,-233,-262,-202,-231},{-199,-249,-188,-237,-208,-208},{-224,-215,-233,-202,-208,-269},{-190,-242,-269,-240,-193,-190},{-208,-184,-233,-208,-179,-224},{-246,-184,-186,-186,-206,-204},{-240,-260,-235,-237,-267,-237},{-269,-184,-264,-233,-190,-188},{-228,-224,-202,-199,-195,-179},{-249,-264,-249,-208,-269,-222},{-215,-184,-220,-202,-269,-208},{-220,-246,-260,-246,-217,-193},{-186,-267,-237,-211,-224,-220},{-231,-217,-222,-242,-184,-264}},{{-235,-208,-217,-246,-211,-237},{-253,-211,-197,-186,-262,-237},{-220,-211,-235,-206,-249,-260},{-260,-206,-233,-246,-220,-262},{-249,-251,-181,-181,-188,-206},{-184,-222,-242,-262,-253,-244},{-179,-249,-226,-186,-199,-204},{-244,-197,-260,-231,-215,-220},{-253,-267,-202,-267,-206,-237},{-213,-242,-260,-269,-233,-215},{-251,-224,-267,-208,-193,-262},{-240,-184,-258,-260,-211,-246},{-199,-258,-186,-186,-186,-195},{-251,-202,-255,-208,-222,-190},{-244,-215,-184,-237,-255,-233},{-224,-260,-202,-264,-184,-269},{-206,-235,-206,-202,-217,-244},{-215,-208,-240,-235,-215,-222},{-260,-179,-231,-199,-240,-240},{-197,-197,-193,-222,-204,-237}},{{-193,-253,-190,-262,-204,-228},{-222,-251,-193,-220,-186,-249},{-188,-255,-246,-235,-251,-235},{-233,-202,-264,-246,-235,-237},{-206,-253,-193,-204,-211,-181},{-240,-253,-186,-202,-244,-233},{-260,-253,-255,-262,-195,-269},{-240,-258,-262,-202,-199,-215},{-202,-190,-202,-215,-240,-202},{-244,-197,-267,-220,-267,-215},{-199,-204,-206,-186,-215,-195},{-253,-197,-228,-267,-220,-184},{-253,-208,-197,-188,-181,-253},{-179,-181,-228,-249,-186,-188},{-202,-181,-260,-246,-255,-233},{-249,-179,-231,-199,-186,-213},{-237,-195,-190,-206,-181,-253},{-262,-260,-260,-204,-260,-193},{-213,-220,-220,-224,-267,-186},{-264,-213,-184,-228,-184,-222}},{{-197,-269,-244,-255,-235,-211},{-215,-211,-235,-204,-255,-251},{-217,-190,-246,-179,-246,-217},{-258,-228,-260,-213,-193,-240},{-186,-226,-213,-179,-222,-215},{-181,-224,-255,-242,-231,-186},{-258,-253,-206,-246,-237,-244},{-251,-258,-237,-235,-193,-215},{-190,-184,-206,-186,-204,-197},{-258,-181,-193,-215,-193,-215},{-246,-217,-262,-267,-195,-220},{-233,-246,-220,-208,-240,-240},{-244,-228,-195,-231,-217,-181},{-258,-179,-255,-211,-217,-222},{-267,-202,-228,-188,-233,-246},{-258,-231,-188,-188,-190,-204},{-231,-264,-181,-255,-208,-255},{-193,-253,-255,-199,-253,-246},{-213,-267,-190,-235,-186,-269},{-264,-188,-242,-249,-228,-264}},{{-264,-249,-211,-195,-193,-264},{-224,-217,-269,-202,-220,-262},{-208,-249,-269,-204,-253,-226},{-220,-240,-249,-181,-199,-242},{-244,-244,-184,-226,-258,-262},{-217,-186,-262,-226,-233,-226},{-217,-222,-202,-255,-220,-253},{-267,-226,-228,-240,-246,-179},{-184,-264,-244,-255,-222,-217},{-204,-228,-249,-188,-184,-237},{-255,-255,-206,-204,-215,-202},{-255,-206,-186,-244,-215,-211},{-269,-197,-237,-186,-267,-233},{-267,-197,-188,-253,-242,-186},{-213,-231,-255,-190,-184,-190},{-220,-251,-184,-220,-179,-215},{-264,-190,-224,-262,-184,-211},{-242,-193,-186,-195,-197,-197},{-220,-206,-267,-188,-231,-264},{-215,-222,-240,-244,-204,-251}},{{-184,-188,-264,-184,-222,-251},{-211,-197,-197,-186,-246,-233},{-233,-258,-255,-258,-222,-253},{-206,-264,-253,-199,-193,-188},{-235,-269,-262,-224,-195,-202},{-262,-269,-226,-242,-267,-269},{-258,-195,-186,-206,-264,-202},{-244,-211,-226,-206,-195,-269},{-269,-213,-237,-240,-233,-249},{-246,-204,-233,-233,-258,-260},{-240,-235,-199,-179,-188,-208},{-235,-240,-233,-208,-213,-246},{-213,-235,-188,-204,-231,-224},{-264,-181,-206,-197,-208,-199},{-235,-197,-202,-215,-258,-258},{-233,-222,-186,-206,-181,-267},{-195,-258,-249,-202,-246,-193},{-249,-240,-267,-260,-213,-188},{-255,-262,-255,-244,-224,-233},{-190,-267,-224,-190,-186,-235}}},{{{-276,-278,-243,-240,-240,-252},{-243,-264,-219,-262,-259,-252},{-271,-212,-259,-259,-202,-257},{-259,-283,-231,-209,-262,-209},{-278,-267,-255,-231,-190,-255},{-214,-286,-228,-217,-283,-207},{-219,-259,-202,-267,-269,-248},{-274,-219,-233,-281,-283,-198},{-238,-200,-195,-276,-286,-217},{-233,-198,-221,-200,-202,-219},{-271,-271,-217,-257,-255,-255},{-262,-193,-286,-278,-228,-271},{-202,-255,-224,-248,-193,-240},{-278,-224,-202,-190,-209,-271},{-248,-259,-250,-219,-200,-274},{-236,-240,-233,-217,-233,-257},{-217,-250,-286,-271,-267,-198},{-257,-255,-209,-198,-224,-278},{-240,-278,-259,-205,-259,-190},{-198,-193,-243,-198,-255,-269}},{{-286,-224,-221,-243,-207,-264},{-243,-274,-224,-233,-202,-267},{-255,-250,-212,-198,-283,-250},{-202,-248,-207,-250,-262,-209},{-259,-281,-228,-190,-274,-240},{-190,-245,-221,-262,-224,-233},{-264,-238,-276,-257,-209,-262},{-198,-224,-269,-207,-209,-212},{-286,-283,-252,-245,-262,-207},{-233,-278,-267,-209,-276,-264},{-264,-255,-226,-264,-281,-252},{-248,-228,-274,-252,-228,-259},{-248,-207,-226,-257,-274,-202},{-281,-200,-238,-257,-243,-259},{-190,-271,-276,-228,-226,-228},{-245,-274,-238,-200,-233,-245},{-190,-198,-257,-281,-243,-217},{-259,-219,-228,-248,-240,-250},{-224,-259,-228,-195,-257,-257},{-219,-200,-269,-236,-228,-195}},{{-226,-271,-238,-250,-264,-276},{-245,-257,-209,-250,-252,-219},{-205,-236,-190,-193,-276,-286},{-264,-269,-276,-209,-248,-264},{-195,-259,-278,-236,-278,-274},{-207,-205,-283,-238,-269,-214},{-255,-267,-214,-257,-228,-245},{-286,-245,-271,-267,-233,-221},{-228,-214,-200,-195,-231,-202},{-207,-245,-224,-228,-262,-195},{-198,-233,-217,-198,-250,-207},{-283,-209,-209,-276,-209,-276},{-193,-248,-214,-198,-233,-269},{-259,-193,-245,-236,-257,-236},{-228,-198,-276,-221,-238,-190},{-255,-276,-198,-193,-259,-259},{-226,-248,-209,-276,-219,-286},{-195,-200,-243,-226,-195,-248},{-274,-250,-217,-259,-250,-267},{-195,-198,-200,-240,-231,-248}},{{-269,-245,-236,-259,-248,-212},{-195,-240,-255,-267,-257,-271},{-274,-240,-205,-219,-267,-276},{-207,-209,-231,-200,-240,-200},{-252,-240,-193,-224,-226,-250},{-278,-221,-264,-269,-250,-200},{-255,-269,-224,-214,-283,-248},{-245,-195,-264,-195,-217,-195},{-281,-240,-209,-205,-198,-198},{-224,-195,-209,-252,-221,-252},{-262,-238,-278,-217,-257,-281},{-195,-209,-257,-202,-243,-278},{-276,-255,-240,-276,-264,-214},{-212,-240,-207,-217,-236,-255},{-226,-259,-190,-264,-200,-221},{-278,-238,-198,-193,-219,-278},{-264,-205,-190,-278,-214,-226},{-212,-236,-226,-259,-252,-245},{-212,-217,-231,-217,-255,-276},{-255,-250,-202,-205,-259,-214}},{{-243,-283,-271,-276,-214,-250},{-262,-269,-205,-195,-255,-209},{-286,-190,-262,-195,-209,-271},{-286,-286,-214,-238,-202,-221},{-281,-281,-262,-255,-195,-212},{-276,-252,-198,-264,-278,-276},{-283,-190,-205,-267,-233,-262},{-269,-228,-209,-278,-226,-200},{-214,-250,-190,-267,-259,-209},{-271,-228,-212,-198,-276,-228},{-243,-271,-231,-207,-226,-219},{-248,-226,-245,-281,-195,-259},{-259,-209,-209,-271,-198,-238},{-226,-233,-262,-262,-267,-219},{-276,-271,-276,-238,-278,-228},{-250,-202,-245,-233,-224,-271},{-221,-221,-248,-269,-238,-214},{-286,-202,-224,-286,-224,-200},{-205,-252,-198,-274,-264,-243},{-202,-228,-212,-205,-226,-228}},{{-200,-231,-221,-221,-240,-267},{-226,-243,-259,-233,-195,-250},{-212,-240,-252,-271,-209,-271},{-221,-262,-240,-245,-250,-200},{-193,-286,-205,-200,-245,-283},{-250,-283,-212,-212,-207,-274},{-236,-281,-195,-286,-240,-214},{-243,-278,-250,-271,-190,-236},{-238,-195,-212,-245,-198,-219},{-286,-257,-205,-278,-198,-257},{-217,-250,-205,-240,-281,-243},{-281,-209,-240,-190,-252,-190},{-278,-217,-276,-264,-214,-252},{-269,-238,-226,-212,-209,-231},{-205,-219,-209,-245,-200,-278},{-202,-264,-255,-262,-269,-209},{-248,-250,-283,-259,-278,-228},{-205,-276,-243,-200,-252,-252},{-195,-267,-245,-245,-228,-224},{-259,-252,-238,-248,-243,-262}}},{{{-298,-322,-322,-295,-278,-246},{-243,-276,-278,-257,-328,-308},{-281,-328,-289,-248,-246,-300},{-284,-240,-221,-308,-317,-292},{-308,-273,-265,-298,-295,-218},{-276,-270,-243,-257,-262,-251},{-218,-317,-248,-303,-240,-276},{-259,-221,-308,-306,-221,-303},{-328,-295,-278,-240,-238,-276},{-306,-273,-243,-319,-270,-251},{-248,-259,-270,-268,-235,-278},{-224,-303,-325,-232,-289,-270},{-306,-278,-235,-308,-238,-218},{-317,-328,-311,-268,-229,-328},{-224,-317,-306,-262,-229,-221},{-218,-314,-322,-273,-276,-246},{-232,-292,-243,-284,-273,-284},{-243,-221,-322,-319,-229,-254},{-221,-240,-325,-246,-276,-281},{-259,-276,-322,-229,-292,-317}},{{-259,-306,-300,-306,-295,-328},{-284,-224,-314,-270,-259,-292},{-270,-306,-224,-303,-292,-295},{-319,-292,-240,-303,-289,-298},{-317,-289,-257,-319,-224,-259},{-314,-259,-254,-308,-246,-325},{-265,-284,-300,-243,-300,-306},{-322,-281,-308,-276,-227,-322},{-328,-287,-259,-268,-270,-221},{-278,-295,-254,-317,-284,-259},{-243,-276,-240,-287,-295,-289},{-224,-224,-259,-248,-298,-317},{-254,-270,-322,-238,-295,-298},{-221,-229,-289,-221,-303,-232},{-328,-287,-235,-322,-300,-257},{-268,-259,-240,-319,-276,-227},{-218,-265,-281,-311,-229,-259},{-270,-278,-238,-218,-259,-303},{-317,-221,-262,-298,-300,-295},{-259,-284,-276,-273,-284,-289}},{{-303,-240,-314,-289,-300,-243},{-224,-284,-276,-284,-303,-240},{-303,-224,-319,-238,-284,-276},{-254,-319,-229,-319,-300,-273},{-314,-232,-298,-240,-328,-317},{-262,-284,-262,-287,-308,-270},{-314,-221,-265,-328,-306,-308},{-229,-240,-319,-259,-295,-287},{-232,-257,-262,-268,-319,-227},{-251,-243,-292,-265,-235,-284},{-221,-311,-295,-281,-292,-292},{-314,-298,-276,-232,-218,-317},{-257,-284,-308,-218,-229,-240},{-328,-289,-289,-300,-235,-273},{-229,-251,-281,-284,-311,-284},{-289,-325,-300,-246,-284,-300},{-254,-317,-311,-270,-276,-257},{-248,-238,-314,-292,-325,-295},{-314,-276,-308,-278,-292,-235},{-276,-240,-322,-268,-248,-221}},{{-227,-281,-224,-240,-322,-270},{-298,-328,-229,-317,-278,-276},{-284,-314,-268,-281,-289,-268},{-243,-238,-246,-317,-248,-265},{-278,-262,-325,-232,-284,-328},{-292,-248,-273,-284,-232,-254},{-306,-300,-259,-308,-246,-308},{-248,-232,-311,-281,-232,-289},{-257,-300,-303,-314,-238,-287},{-306,-218,-300,-238,-308,-232},{-221,-229,-308,-287,-251,-292},{-317,-227,-281,-238,-308,-270},{-298,-265,-322,-232,-221,-262},{-218,-322,-227,-243,-243,-289},{-303,-298,-289,-308,-298,-243},{-273,-224,-295,-298,-308,-322},{-311,-238,-240,-273,-295,-319},{-238,-289,-243,-298,-240,-229},{-328,-278,-235,-278,-322,-251},{-270,-259,-273,-221,-265,-308}},{{-246,-308,-273,-292,-295,-281},{-276,-246,-257,-284,-284,-240},{-246,-218,-298,-289,-303,-281},{-246,-240,-254,-270,-232,-281},{-251,-229,-248,-303,-265,-238},{-270,-284,-311,-328,-270,-235},{-298,-306,-281,-265,-276,-284},{-227,-322,-292,-257,-229,-268},{-300,-325,-295,-319,-238,-276},{-257,-276,-259,-317,-257,-254},{-273,-314,-314,-295,-278,-235},{-308,-254,-319,-328,-221,-322},{-270,-325,-281,-218,-295,-259},{-251,-229,-251,-303,-218,-232},{-287,-322,-248,-238,-243,-303},{-238,-224,-262,-229,-270,-270},{-240,-311,-254,-281,-268,-322},{-284,-251,-240,-268,-292,-232},{-319,-268,-306,-246,-221,-292},{-284,-270,-308,-224,-289,-284}},{{-235,-240,-317,-265,-224,-281},{-254,-303,-229,-262,-328,-311},{-322,-284,-314,-314,-238,-276},{-254,-317,-224,-278,-325,-238},{-251,-218,-273,-325,-284,-227},{-289,-292,-221,-235,-224,-314},{-284,-246,-248,-298,-306,-284},{-276,-254,-235,-218,-243,-295},{-257,-298,-308,-232,-292,-322},{-276,-262,-319,-240,-287,-243},{-278,-259,-325,-229,-311,-248},{-224,-235,-227,-268,-221,-246},{-284,-287,-246,-248,-276,-311},{-227,-238,-287,-254,-281,-262},{-289,-308,-259,-235,-308,-265},{-317,-273,-262,-248,-248,-322},{-251,-311,-322,-295,-287,-262},{-251,-303,-322,-243,-265,-311},{-278,-319,-284,-281,-278,-308},{-221,-240,-325,-300,-254,-292}}},{{{-142,-143,-134,-139,-148,-176},{-139,-185,-125,-125,-160,-136},{-165,-169,-180,-185,-176,-142},{-145,-137,-123,-182,-136,-159},{-142,-126,-163,-180,-132,-156},{-134,-143,-136,-151,-126,-136},{-166,-169,-134,-171,-172,-180},{-134,-148,-159,-171,-145,-126},{-168,-160,-157,-151,-171,-163},{-148,-154,-132,-128,-185,-146},{-142,-143,-146,-180,-154,-125},{-131,-169,-156,-126,-145,-148},{-139,-145,-171,-179,-156,-177},{-182,-183,-129,-182,-136,-182},{-179,-151,-123,-143,-129,-162},{-129,-123,-165,-146,-123,-128},{-154,-166,-176,-174,-163,-172},{-131,-142,-146,-145,-162,-180},{-129,-140,-159,-132,-134,-159},{-142,-134,-174,-132,-126,-151}},{{-152,-145,-157,-137,-154,-148},{-125,-154,-128,-145,-157,-185},{-139,-180,-179,-156,-152,-139},{-157,-143,-157,-160,-174,-182},{-171,-151,-149,-180,-168,-140},{-160,-162,-148,-182,-143,-129},{-129,-157,-149,-157,-159,-137},{-182,-166,-142,-183,-174,-136},{-145,-146,-162,-171,-180,-168},{-159,-177,-166,-128,-154,-160},{-185,-168,-126,-125,-148,-132},{-123,-154,-154,-140,-156,-163},{-128,-154,-160,-142,-171,-129},{-174,-131,-166,-137,-159,-131},{-169,-137,-151,-148,-148,-157},{-166,-179,-174,-166,-172,-152},{-142,-140,-176,-163,-151,-160},{-159,-169,-146,-159,-154,-154},{-174,-182,-128,-176,-166,-177},{-176,-139,-180,-125,-174,-168}},{{-143,-171,-163,-149,-180,-152},{-145,-169,-174,-160,-137,-163},{-177,-151,-143,-177,-156,-154},{-180,-177,-142,-169,-142,-152},{-165,-146,-143,-143,-179,-177},{-142,-169,-185,-182,-157,-148},{-132,-177,-146,-171,-152,-183},{-185,-183,-174,-137,-159,-132},{-123,-172,-126,-132,-128,-168},{-154,-137,-152,-160,-172,-139},{-157,-152,-166,-180,-132,-180},{-180,-159,-145,-143,-149,-162},{-136,-142,-182,-166,-154,-140},{-125,-179,-152,-146,-171,-145},{-139,-162,-185,-169,-151,-177},{-140,-176,-162,-160,-136,-180},{-125,-159,-179,-151,-129,-182},{-126,-169,-162,-128,-142,-157},{-165,-171,-172,-123,-182,-145},{-136,-131,-157,-125,-180,-157}},{{-145,-179,-132,-136,-160,-172},{-162,-125,-137,-172,-172,-156},{-126,-125,-183,-160,-137,-172},{-139,-157,-159,-185,-163,-125},{-179,-129,-168,-146,-174,-154},{-168,-183,-129,-174,-171,-129},{-136,-151,-126,-128,-179,-128},{-129,-148,-148,-160,-145,-139},{-165,-159,-176,-125,-154,-172},{-152,-131,-143,-126,-183,-151},{-182,-132,-160,-132,-156,-166},{-137,-146,-171,-136,-165,-145},{-183,-134,-156,-146,-145,-172},{-140,-152,-129,-177,-182,-163},{-182,-172,-136,-137,-152,-156},{-146,-129,-145,-163,-123,-176},{-126,-166,-132,-171,-148,-182},{-156,-134,-125,-143,-177,-177},{-156,-146,-149,-132,-174,-125},{-139,-151,-162,-169,-140,-156}},{{-163,-132,-123,-142,-134,-143},{-179,-146,-131,-179,-132,-169},{-125,-172,-149,-134,-143,-139},{-149,-183,-152,-131,-131,-140},{-160,-139,-166,-139,-183,-174},{-139,-132,-185,-137,-131,-166},{-163,-151,-149,-125,-180,-174},{-177,-143,-125,-154,-177,-139},{-125,-146,-162,-163,-137,-179},{-171,-125,-140,-140,-182,-139},{-160,-136,-151,-183,-156,-159},{-148,-177,-168,-136,-139,-129},{-177,-129,-145,-149,-182,-143},{-177,-154,-149,-157,-185,-129},{-171,-134,-137,-131,-152,-179},{-148,-148,-142,-159,-176,-163},{-136,-137,-126,-159,-163,-139},{-152,-185,-177,-163,-182,-143},{-148,-179,-132,-149,-142,-183},{-182,-163,-143,-182,-168,-177}},{{-156,-179,-183,-171,-162,-126},{-182,-185,-159,-125,-149,-163},{-177,-136,-166,-149,-146,-177},{-156,-168,-157,-165,-156,-168},{-165,-172,-156,-145,-146,-163},{-134,-163,-136,-157,-180,-163},{-149,-183,-149,-129,-157,-145},{-174,-128,-140,-169,-131,-145},{-159,-143,-177,-185,-132,-125},{-165,-163,-154,-180,-162,-185},{-168,-176,-168,-166,-126,-152},{-148,-139,-165,-182,-129,-125},{-140,-131,-183,-146,-159,-171},{-149,-160,-146,-145,-162,-139},{-149,-180,-132,-171,-145,-143},{-162,-129,-123,-163,-154,-140},{-134,-126,-126,-183,-128,-143},{-123,-176,-169,-142,-172,-125},{-139,-148,-183,-172,-156,-166},{-162,-166,-174,-162,-142,-125}}},{{{-178,-147,-160,-206,-193,-178},{-166,-202,-155,-175,-189,-187},{-167,-175,-191,-200,-178,-206},{-202,-155,-209,-169,-200,-202},{-147,-191,-146,-207,-149,-209},{-215,-155,-169,-187,-204,-151},{-146,-171,-193,-173,-173,-187},{-169,-191,-167,-169,-155,-180},{-218,-171,-146,-158,-173,-191},{-162,-211,-217,-213,-195,-153},{-169,-173,-164,-177,-200,-178},{-206,-173,-153,-217,-162,-178},{-187,-158,-217,-146,-202,-169},{-184,-175,-177,-200,-193,-166},{-189,-187,-207,-166,-198,-193},{-193,-166,-195,-202,-164,-209},{-178,-195,-213,-182,-173,-202},{-193,-153,-198,-189,-178,-204},{-207,-209,-180,-200,-189,-151},{-166,-213,-189,-149,-171,-171}},{{-202,-195,-146,-167,-171,-209},{-193,-149,-182,-215,-207,-169},{-147,-218,-169,-167,-197,-206},{-164,-191,-180,-197,-167,-200},{-193,-155,-189,-151,-206,-204},{-204,-182,-160,-191,-200,-166},{-197,-157,-193,-209,-164,-162},{-193,-173,-209,-158,-182,-175},{-177,-202,-175,-146,-153,-191},{-187,-209,-146,-155,-178,-186},{-147,-211,-178,-147,-182,-215},{-200,-218,-149,-155,-155,-204},{-157,-182,-166,-211,-180,-207},{-166,-182,-160,-218,-164,-157},{-171,-164,-155,-162,-155,-213},{-180,-209,-180,-162,-175,-189},{-166,-215,-175,-195,-178,-173},{-211,-164,-189,-213,-189,-187},{-209,-184,-155,-162,-211,-189},{-177,-218,-195,-153,-149,-177}},{{-158,-189,-178,-204,-147,-160},{-146,-211,-197,-177,-158,-169},{-191,-213,-146,-182,-187,-184},{-202,-157,-209,-164,-197,-200},{-182,-177,-182,-189,-195,-195},{-193,-186,-177,-153,-206,-178},{-197,-166,-189,-146,-209,-200},{-178,-167,-151,-166,-211,-164},{-147,-157,-173,-171,-164,-197},{-173,-149,-200,-157,-177,-157},{-171,-189,-189,-202,-167,-186},{-209,-218,-173,-158,-158,-164},{-178,-180,-158,-177,-202,-217},{-217,-158,-197,-215,-218,-206},{-158,-206,-178,-197,-198,-177},{-207,-213,-200,-198,-215,-167},{-160,-202,-186,-189,-180,-173},{-193,-157,-202,-166,-187,-182},{-186,-195,-162,-202,-211,-213},{-191,-175,-164,-191,-198,-215}},{{-217,-202,-207,-149,-213,-146},{-217,-186,-195,-215,-149,-146},{-198,-157,-146,-202,-204,-186},{-187,-206,-186,-169,-193,-149},{-158,-215,-207,-160,-162,-164},{-153,-175,-191,-198,-149,-166},{-218,-155,-173,-211,-149,-173},{-147,-166,-191,-149,-173,-202},{-195,-167,-155,-195,-146,-166},{-213,-198,-195,-189,-180,-157},{-189,-155,-186,-160,-204,-153},{-167,-146,-218,-158,-184,-195},{-149,-180,-204,-189,-217,-146},{-195,-195,-209,-146,-171,-153},{-204,-164,-213,-171,-202,-157},{-153,-158,-215,-169,-158,-187},{-211,-178,-217,-166,-184,-147},{-206,-189,-178,-193,-186,-189},{-215,-166,-166,-151,-153,-195},{-195,-217,-173,-157,-177,-187}},{{-202,-178,-202,-209,-209,-178},{-153,-215,-207,-167,-189,-173},{-160,-164,-175,-207,-217,-149},{-197,-151,-215,-195,-157,-167},{-158,-202,-191,-175,-171,-182},{-157,-160,-189,-202,-147,-184},{-177,-195,-191,-182,-218,-195},{-175,-153,-146,-207,-215,-217},{-166,-195,-211,-211,-206,-169},{-217,-209,-182,-149,-186,-189},{-209,-171,-175,-173,-171,-166},{-160,-204,-173,-167,-164,-213},{-175,-184,-191,-166,-198,-178},{-195,-151,-211,-200,-177,-177},{-164,-149,-178,-160,-155,-193},{-182,-173,-193,-167,-189,-164},{-184,-169,-213,-164,-191,-173},{-157,-186,-189,-206,-206,-211},{-147,-187,-147,-162,-187,-180},{-157,-206,-213,-171,-177,-213}},{{-149,-164,-178,-204,-177,-160},{-146,-186,-184,-204,-200,-162},{-200,-186,-158,-180,-213,-202},{-191,-187,-204,-166,-187,-215},{-157,-149,-146,-166,-209,-175},{-198,-158,-200,-200,-158,-146},{-184,-153,-209,-186,-180,-160},{-187,-182,-158,-146,-200,-149},{-171,-204,-153,-217,-160,-209},{-189,-169,-209,-177,-157,-213},{-206,-173,-149,-180,-146,-195},{-189,-191,-198,-162,-171,-193},{-202,-189,-160,-178,-175,-180},{-167,-180,-160,-186,-146,-217},{-166,-173,-213,-160,-164,-215},{-207,-195,-171,-155,-166,-160},{-187,-160,-189,-213,-191,-153},{-173,-200,-211,-178,-189,-213},{-215,-146,-218,-204,-195,-146},{-207,-158,-169,-157,-217,-160}}},{{{-201,-230,-277,-198,-203,-272},{-267,-274,-247,-267,-238,-289},{-292,-213,-282,-272,-211,-289},{-218,-225,-216,-211,-292,-220},{-203,-260,-201,-257,-240,-282},{-208,-282,-245,-228,-289,-233},{-220,-228,-198,-270,-260,-294},{-247,-287,-228,-198,-218,-289},{-260,-223,-245,-225,-245,-282},{-240,-211,-294,-247,-238,-238},{-272,-257,-216,-240,-267,-238},{-216,-255,-218,-198,-247,-228},{-228,-262,-282,-233,-220,-206},{-243,-279,-198,-262,-203,-223},{-228,-220,-267,-208,-287,-223},{-206,-247,-228,-238,-267,-243},{-218,-201,-245,-262,-225,-230},{-235,-252,-294,-292,-243,-255},{-230,-235,-220,-233,-211,-203},{-260,-289,-220,-282,-223,-218}},{{-267,-284,-213,-238,-233,-245},{-198,-218,-292,-223,-218,-230},{-287,-274,-247,-220,-272,-277},{-196,-243,-282,-294,-216,-223},{-257,-208,-230,-211,-218,-287},{-220,-211,-240,-294,-243,-250},{-287,-240,-220,-270,-262,-284},{-238,-289,-267,-289,-203,-203},{-270,-228,-265,-208,-216,-201},{-272,-235,-252,-265,-216,-216},{-274,-265,-238,-218,-213,-201},{-287,-243,-265,-240,-198,-252},{-272,-282,-272,-294,-262,-243},{-213,-252,-223,-201,-265,-223},{-287,-208,-262,-223,-250,-257},{-223,-198,-289,-233,-228,-198},{-245,-238,-218,-203,-225,-262},{-294,-240,-289,-206,-230,-274},{-208,-223,-262,-282,-267,-211},{-223,-247,-292,-213,-230,-287}},{{-228,-282,-270,-220,-206,-267},{-201,-211,-235,-282,-213,-225},{-265,-294,-247,-213,-213,-245},{-206,-272,-225,-289,-208,-196},{-270,-284,-196,-252,-267,-240},{-284,-292,-252,-284,-277,-238},{-255,-235,-267,-289,-255,-274},{-245,-247,-208,-260,-240,-282},{-272,-294,-250,-270,-238,-208},{-213,-220,-245,-255,-257,-255},{-270,-203,-252,-289,-230,-257},{-292,-247,-196,-235,-277,-235},{-282,-267,-270,-279,-257,-287},{-206,-267,-277,-198,-243,-292},{-240,-255,-262,-216,-208,-284},{-223,-282,-272,-294,-257,-255},{-213,-267,-243,-211,-255,-220},{-198,-235,-289,-250,-206,-287},{-294,-245,-218,-216,-245,-206},{-265,-260,-230,-274,-292,-218}},{{-245,-225,-289,-282,-284,-245},{-240,-247,-238,-265,-284,-255},{-211,-292,-235,-203,-257,-223},{-255,-247,-287,-262,-257,-225},{-250,-274,-284,-272,-230,-255},{-247,-284,-289,-243,-213,-216},{-206,-218,-267,-211,-196,-270},{-250,-196,-272,-284,-240,-198},{-294,-238,-287,-270,-267,-228},{-196,-262,-274,-216,-230,-198},{-284,-201,-289,-211,-265,-245},{-272,-252,-206,-218,-203,-240},{-198,-203,-240,-235,-292,-196},{-196,-216,-228,-250,-252,-274},{-201,-208,-245,-272,-225,-208},{-203,-270,-262,-274,-247,-223},{-284,-287,-211,-267,-270,-262},{-238,-206,-282,-243,-294,-233},{-257,-257,-282,-213,-289,-230},{-252,-284,-220,-270,-238,-277}},{{-294,-270,-289,-289,-294,-260},{-203,-196,-198,-196,-257,-243},{-287,-257,-274,-265,-235,-213},{-255,-260,-272,-272,-282,-223},{-201,-223,-233,-230,-279,-233},{-243,-201,-238,-279,-289,-196},{-284,-272,-257,-284,-294,-240},{-238,-213,-240,-257,-274,-270},{-203,-230,-208,-238,-245,-213},{-255,-218,-282,-262,-243,-206},{-233,-206,-287,-277,-216,-230},{-252,-260,-238,-228,-277,-292},{-196,-233,-203,-274,-292,-243},{-262,-206,-243,-274,-262,-289},{-230,-270,-216,-289,-252,-238},{-284,-260,-220,-294,-206,-206},{-260,-243,-208,-250,-223,-260},{-243,-228,-211,-225,-228,-255},{-233,-211,-208,-255,-213,-267},{-198,-262,-277,-267,-198,-257}},{{-267,-218,-203,-294,-216,-257},{-223,-211,-203,-206,-213,-252},{-238,-240,-255,-284,-228,-250},{-213,-282,-223,-230,-238,-250},{-265,-220,-243,-240,-250,-211},{-247,-260,-262,-235,-257,-252},{-220,-272,-260,-267,-262,-272},{-247,-287,-265,-243,-252,-213},{-208,-279,-267,-292,-257,-230},{-228,-233,-282,-265,-223,-225},{-272,-277,-211,-203,-289,-208},{-196,-240,-225,-216,-233,-206},{-292,-279,-238,-206,-196,-257},{-233,-272,-255,-211,-250,-196},{-255,-287,-277,-270,-287,-245},{-230,-287,-203,-233,-272,-250},{-277,-235,-282,-243,-223,-289},{-265,-238,-270,-265,-262,-282},{-196,-282,-240,-245,-213,-223},{-206,-233,-265,-223,-240,-260}}},{{{-236,-254,-229,-201,-217,-189},{-266,-243,-215,-275,-275,-206},{-240,-208,-189,-187,-185,-268},{-263,-252,-194,-192,-196,-185},{-254,-249,-233,-231,-201,-270},{-240,-268,-270,-254,-273,-208},{-243,-196,-226,-263,-261,-275},{-199,-277,-185,-219,-208,-261},{-275,-229,-196,-266,-252,-236},{-229,-256,-203,-187,-245,-219},{-219,-196,-236,-233,-252,-226},{-277,-206,-233,-259,-196,-240},{-201,-231,-233,-256,-187,-270},{-261,-243,-213,-240,-231,-233},{-263,-226,-245,-277,-203,-256},{-185,-259,-194,-215,-233,-256},{-254,-187,-259,-277,-185,-231},{-206,-259,-259,-268,-270,-249},{-192,-254,-277,-185,-219,-270},{-196,-192,-236,-199,-217,-266}},{{-259,-203,-196,-185,-270,-219},{-273,-254,-259,-243,-187,-266},{-270,-270,-240,-213,-273,-259},{-266,-196,-236,-243,-240,-217},{-273,-231,-226,-256,-201,-192},{-273,-189,-243,-224,-206,-261},{-263,-256,-229,-201,-187,-236},{-233,-261,-252,-189,-273,-219},{-208,-187,-263,-189,-252,-236},{-222,-226,-217,-192,-219,-263},{-256,-229,-231,-192,-189,-236},{-277,-224,-259,-263,-226,-261},{-196,-231,-236,-254,-226,-196},{-247,-240,-208,-185,-231,-252},{-219,-206,-231,-217,-263,-206},{-277,-254,-210,-273,-254,-268},{-256,-266,-252,-215,-236,-229},{-263,-252,-252,-259,-263,-273},{-185,-222,-224,-215,-256,-238},{-185,-187,-196,-245,-254,-249}},{{-201,-192,-266,-249,-217,-224},{-261,-199,-215,-275,-201,-229},{-240,-194,-187,-196,-236,-233},{-273,-252,-238,-196,-238,-270},{-210,-189,-254,-275,-263,-254},{-226,-233,-185,-273,-201,-185},{-266,-249,-266,-245,-261,-259},{-189,-252,-268,-247,-194,-206},{-189,-273,-273,-213,-256,-189},{-231,-215,-215,-266,-266,-240},{-199,-199,-247,-263,-192,-201},{-254,-270,-247,-275,-238,-199},{-261,-201,-208,-210,-233,-185},{-224,-243,-275,-187,-203,-222},{-238,-266,-245,-210,-236,-236},{-259,-268,-194,-254,-206,-217},{-263,-199,-259,-268,-217,-277},{-231,-231,-240,-208,-201,-261},{-226,-270,-229,-238,-210,-236},{-196,-266,-252,-189,-259,-185}},{{-185,-201,-275,-247,-247,-199},{-203,-273,-273,-275,-208,-247},{-249,-263,-222,-247,-206,-263},{-252,-189,-199,-199,-222,-192},{-243,-192,-249,-240,-243,-194},{-208,-266,-208,-275,-215,-206},{-210,-226,-224,-217,-252,-270},{-270,-213,-243,-236,-240,-203},{-249,-254,-252,-213,-206,-224},{-270,-236,-261,-238,-254,-273},{-196,-240,-192,-215,-238,-219},{-231,-236,-240,-254,-245,-256},{-268,-259,-236,-215,-222,-185},{-256,-189,-240,-270,-249,-203},{-277,-206,-259,-192,-185,-187},{-206,-266,-226,-261,-187,-217},{-238,-256,-266,-275,-185,-261},{-203,-208,-231,-231,-219,-222},{-224,-222,-192,-196,-245,-210},{-243,-185,-249,-206,-187,-201}},{{-222,-231,-263,-231,-263,-210},{-249,-199,-203,-266,-249,-222},{-210,-226,-233,-219,-275,-236},{-263,-268,-199,-222,-243,-206},{-233,-213,-231,-259,-222,-226},{-275,-203,-266,-243,-208,-243},{-217,-215,-185,-240,-252,-203},{-275,-275,-268,-210,-266,-238},{-275,-240,-277,-224,-226,-192},{-210,-187,-277,-203,-233,-252},{-196,-199,-245,-226,-208,-215},{-187,-185,-194,-229,-254,-208},{-208,-203,-206,-247,-245,-259},{-210,-247,-268,-243,-187,-203},{-224,-245,-263,-275,-222,-201},{-263,-213,-256,-226,-210,-247},{-187,-208,-201,-229,-210,-245},{-256,-196,-252,-196,-243,-187},{-266,-199,-247,-261,-231,-231},{-252,-268,-187,-263,-245,-263}},{{-196,-229,-185,-277,-185,-194},{-233,-247,-249,-243,-206,-226},{-259,-238,-266,-245,-203,-268},{-199,-224,-245,-231,-256,-243},{-185,-263,-266,-210,-219,-266},{-189,-261,-254,-243,-233,-273},{-236,-217,-243,-263,-189,-208},{-254,-185,-224,-277,-194,-252},{-275,-259,-210,-194,-259,-266},{-238,-263,-240,-201,-210,-245},{-189,-222,-219,-201,-240,-238},{-247,-189,-261,-224,-273,-240},{-256,-238,-215,-231,-233,-192},{-201,-268,-273,-266,-199,-206},{-252,-189,-254,-189,-219,-266},{-196,-275,-277,-254,-229,-277},{-240,-201,-252,-254,-206,-270},{-185,-233,-210,-266,-245,-210},{-233,-259,-233,-224,-224,-222},{-222,-236,-243,-233,-238,-208}}},{{{-309,-335,-312,-294,-241,-238},{-262,-282,-265,-262,-353,-270},{-256,-329,-279,-303,-256,-238},{-297,-309,-300,-335,-265,-335},{-350,-291,-285,-285,-318,-262},{-259,-262,-273,-347,-335,-270},{-279,-323,-320,-303,-344,-244},{-347,-338,-279,-253,-335,-253},{-288,-291,-320,-235,-282,-297},{-320,-306,-265,-282,-259,-341},{-247,-312,-265,-285,-312,-294},{-279,-332,-300,-338,-235,-282},{-350,-350,-270,-309,-341,-235},{-344,-344,-238,-244,-276,-291},{-273,-268,-338,-253,-294,-244},{-341,-244,-291,-306,-306,-270},{-265,-353,-312,-309,-256,-259},{-300,-338,-285,-329,-318,-285},{-320,-250,-344,-241,-315,-353},{-318,-350,-326,-291,-326,-288}},{{-297,-344,-256,-238,-268,-300},{-353,-279,-300,-341,-259,-300},{-300,-300,-353,-262,-318,-353},{-268,-276,-265,-244,-332,-282},{-253,-318,-350,-288,-353,-320},{-303,-344,-341,-268,-315,-341},{-270,-350,-338,-262,-268,-350},{-341,-265,-244,-279,-241,-256},{-276,-270,-273,-279,-300,-309},{-350,-332,-276,-312,-315,-315},{-315,-315,-238,-291,-262,-247},{-335,-256,-253,-309,-247,-256},{-256,-309,-350,-256,-341,-320},{-259,-262,-350,-247,-315,-291},{-303,-253,-273,-309,-306,-329},{-250,-318,-241,-329,-244,-265},{-247,-315,-335,-309,-273,-276},{-294,-306,-247,-353,-306,-270},{-241,-335,-338,-238,-285,-238},{-350,-238,-279,-247,-276,-353}},{{-253,-326,-323,-285,-294,-247},{-338,-238,-326,-347,-320,-276},{-297,-244,-285,-297,-341,-344},{-285,-285,-312,-238,-353,-341},{-297,-253,-309,-320,-326,-291},{-329,-259,-259,-329,-279,-309},{-318,-253,-253,-347,-306,-247},{-318,-247,-253,-276,-250,-309},{-285,-250,-315,-244,-350,-300},{-323,-276,-262,-285,-247,-315},{-329,-353,-250,-285,-300,-285},{-291,-341,-256,-326,-294,-244},{-329,-300,-306,-294,-312,-347},{-312,-270,-262,-265,-253,-312},{-338,-294,-326,-315,-315,-268},{-329,-309,-312,-350,-297,-241},{-335,-312,-241,-326,-335,-309},{-256,-344,-323,-291,-326,-270},{-273,-256,-350,-344,-312,-318},{-244,-291,-235,-235,-326,-312}},{{-353,-270,-329,-259,-247,-297},{-259,-285,-329,-350,-306,-241},{-279,-247,-253,-238,-306,-238},{-276,-303,-341,-265,-332,-344},{-238,-350,-253,-241,-273,-315},{-315,-259,-320,-291,-347,-341},{-253,-276,-268,-276,-341,-262},{-256,-323,-332,-306,-253,-341},{-276,-326,-250,-262,-350,-241},{-256,-303,-247,-262,-320,-288},{-268,-265,-282,-285,-329,-344},{-279,-306,-312,-241,-341,-315},{-273,-273,-341,-268,-323,-306},{-329,-326,-315,-250,-294,-338},{-247,-347,-238,-353,-268,-306},{-326,-306,-262,-256,-256,-297},{-341,-285,-259,-256,-297,-326},{-265,-312,-300,-335,-312,-288},{-262,-265,-250,-309,-259,-238},{-306,-256,-285,-326,-270,-312}},{{-253,-247,-247,-285,-341,-256},{-285,-256,-247,-276,-318,-312},{-265,-253,-282,-323,-256,-282},{-250,-235,-300,-256,-250,-315},{-250,-332,-247,-318,-262,-235},{-241,-347,-312,-338,-276,-344},{-344,-309,-279,-323,-259,-282},{-270,-273,-235,-306,-323,-320},{-241,-297,-262,-276,-268,-341},{-282,-262,-335,-276,-262,-309},{-344,-300,-265,-315,-306,-262},{-250,-320,-347,-235,-268,-350},{-347,-238,-259,-288,-338,-259},{-326,-285,-344,-341,-291,-350},{-238,-309,-250,-265,-323,-291},{-353,-303,-273,-300,-344,-273},{-332,-335,-309,-306,-353,-326},{-312,-350,-350,-332,-341,-338},{-347,-318,-244,-297,-285,-303},{-309,-291,-273,-341,-235,-347}},{{-303,-291,-265,-294,-341,-315},{-247,-312,-341,-265,-320,-273},{-309,-276,-341,-241,-350,-344},{-320,-265,-353,-238,-279,-282},{-291,-312,-256,-303,-326,-256},{-312,-335,-303,-279,-306,-250},{-288,-285,-268,-250,-309,-276},{-253,-309,-312,-329,-344,-291},{-300,-326,-247,-335,-312,-285},{-253,-297,-241,-303,-235,-247},{-353,-344,-326,-247,-332,-320},{-350,-303,-332,-303,-332,-291},{-250,-335,-320,-270,-353,-335},{-326,-270,-350,-291,-312,-250},{-309,-276,-344,-279,-309,-300},{-303,-347,-244,-241,-276,-341},{-315,-291,-318,-235,-329,-309},{-247,-250,-268,-344,-265,-318},{-312,-244,-279,-341,-247,-326},{-309,-250,-309,-288,-282,-285}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1841,192,221,150,198,208,315,198,294}; // initial inventory 
int ubiv[I]={2104,384,442,300,396,416,630,396,588}; // the upper bounds of inventory 
int len[I1][I2]={{5,3,2,2,1,1,2,3}}; // the traveling time between two sites 
// cost parameters: 
double c1[I]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // inventory holding cost 
double c2[I]={0.05,13.32,8.46,5.6,4.24,2.89,1.51,4.53,7.74}; // cost of leftover and unmet 
double c3[BN]={0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0}; // transportation cost for capacity contracts 
double c4[I1][I2]={{12.11,7.69,5.09,3.85,2.63,1.37,4.12,7.04}}; // cost of spot market 
// bid parameters: 
int RLBN[I1][I2]={{9,9,9,9,9,9,9,9}}; // number of bids on each arc 
int LBset[I1][I2][LBN]={{{0,1,2,3,4,5,6,7,8},{9,10,11,12,13,14,15,16,17},{18,19,20,21,22,23,24,25,26},{27,28,29,30,31,32,33,34,35},{36,37,38,39,40,41,42,43,44},{45,46,47,48,49,50,51,52,53},{54,55,56,57,58,59,60,61,62},{63,64,65,66,67,68,69,70,71}}}; // set of bids on each arc 
double frt[BN]={9.69,9.69,9.69,8.48,8.48,8.48,7.27,7.27,7.27,6.15,6.15,6.15,5.38,5.38,5.38,4.61,4.61,4.61,4.07,4.07,4.07,3.56,3.56,3.56,3.05,3.05,3.05,3.08,3.08,3.08,2.7,2.7,2.7,2.31,2.31,2.31,2.1,2.1,2.1,1.84,1.84,1.84,1.58,1.58,1.58,1.1,1.1,1.1,0.96,0.96,0.96,0.82,0.82,0.82,3.3,3.3,3.3,2.88,2.88,2.88,2.47,2.47,2.47,5.63,5.63,5.63,4.93,4.93,4.93,4.22,4.22,4.22}; // freight rate of each bid 
int lbcap[BN]={75,75,75,1,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226,75,75,75,301,151,151,151,226,226}; // capacity lower bound of each bid 
int ubcap[BN]={150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300,150,150,150,225,225,225,300,300,300}; // capacity upper bound of each bid 
// shipment parameters: 
int SHN[BN]={15,8,5,15,8,6,15,8,5,16,9,6,17,8,6,16,8,6,17,9,6,16,9,6,16,8,6,17,9,6,16,8,6,17,8,6,17,9,6,18,9,6,18,9,6,17,9,6,17,9,6,18,9,6,17,9,6,17,8,6,17,9,6,17,8,6,16,8,6,17,8,6}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14},{15,16,17,18,19,20,21,22},{23,24,25,26,27},{28,29,30,31,32,33,34,35,36,37,38,39,40,41,42},{43,44,45,46,47,48,49,50},{51,52,53,54,55,56},{57,58,59,60,61,62,63,64,65,66,67,68,69,70,71},{72,73,74,75,76,77,78,79},{80,81,82,83,84},{85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100},{101,102,103,104,105,106,107,108,109},{110,111,112,113,114,115},{116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132},{133,134,135,136,137,138,139,140},{141,142,143,144,145,146},{147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162},{163,164,165,166,167,168,169,170},{171,172,173,174,175,176},{177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193},{194,195,196,197,198,199,200,201,202},{203,204,205,206,207,208},{209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224},{225,226,227,228,229,230,231,232,233},{234,235,236,237,238,239},{240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255},{256,257,258,259,260,261,262,263},{264,265,266,267,268,269},{270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286},{287,288,289,290,291,292,293,294,295},{296,297,298,299,300,301},{302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317},{318,319,320,321,322,323,324,325},{326,327,328,329,330,331},{332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348},{349,350,351,352,353,354,355,356},{357,358,359,360,361,362},{363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379},{380,381,382,383,384,385,386,387,388},{389,390,391,392,393,394},{395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412},{413,414,415,416,417,418,419,420,421},{422,423,424,425,426,427},{428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445},{446,447,448,449,450,451,452,453,454},{455,456,457,458,459,460},{461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477},{478,479,480,481,482,483,484,485,486},{487,488,489,490,491,492},{493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509},{510,511,512,513,514,515,516,517,518},{519,520,521,522,523,524},{525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542},{543,544,545,546,547,548,549,550,551},{552,553,554,555,556,557},{558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574},{575,576,577,578,579,580,581,582,583},{584,585,586,587,588,589},{590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606},{607,608,609,610,611,612,613,614},{615,616,617,618,619,620},{621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637},{638,639,640,641,642,643,644,645,646},{647,648,649,650,651,652},{653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669},{670,671,672,673,674,675,676,677},{678,679,680,681,682,683},{684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699},{700,701,702,703,704,705,706,707},{708,709,710,711,712,713},{714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730},{731,732,733,734,735,736,737,738},{739,740,741,742,743,744}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,0,4,8,12,16,20,24,28,2,8,14,20,26,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,0,4,8,12,16,20,24,28,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,2,6,10,14,18,22,26,30,2,8,14,20,26,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,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,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,2,6,10,14,18,22,26,30,2,8,14,20,26,32,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,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,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,2,8,14,20,26,32,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,1,5,9,13,17,21,25,29,33,1,7,13,19,25,31,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,0,6,12,18,24,30,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,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,0,6,12,18,24,30,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,2,6,10,14,18,22,26,30,1,7,13,19,25,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,1,5,9,13,17,21,25,29,33,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,1,7,13,19,25,31,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,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,1,7,13,19,25,31}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,7,13,19,25,31,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,5,11,17,23,29,35,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,7,11,15,19,23,27,31,35,7,13,19,25,31,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,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,5,11,17,23,29,35,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,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,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,2,8,14,20,26,32,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,4,8,12,16,20,24,28,32,4,10,16,22,28,34,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,3,9,15,21,27,33,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,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,1,7,13,19,25,31,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,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,2,8,14,20,26,32,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,3,9,15,21,27,33,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,4,10,16,22,28,34,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,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,4,10,16,22,28,34}; // set of end times of each shipment 
