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