int Dev = 30;// 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 = 746;//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]={{{{11536,0,0,0,0,0},{11102,0,0,0,0,0},{10755,0,0,0,0,0},{11201,0,0,0,0,0},{10612,0,0,0,0,0},{11347,0,0,0,0,0},{11235,0,0,0,0,0},{10794,0,0,0,0,0},{11381,0,0,0,0,0},{10765,0,0,0,0,0},{10728,0,0,0,0,0},{10757,0,0,0,0,0},{10976,0,0,0,0,0},{11050,0,0,0,0,0},{10757,0,0,0,0,0},{11242,0,0,0,0,0},{10966,0,0,0,0,0},{11468,0,0,0,0,0},{11144,0,0,0,0,0},{11164,0,0,0,0,0}},{{11094,0,0,0,0,0},{11111,0,0,0,0,0},{11554,0,0,0,0,0},{11061,0,0,0,0,0},{11322,0,0,0,0,0},{11505,0,0,0,0,0},{10848,0,0,0,0,0},{10903,0,0,0,0,0},{11002,0,0,0,0,0},{11556,0,0,0,0,0},{11575,0,0,0,0,0},{11675,0,0,0,0,0},{10938,0,0,0,0,0},{11051,0,0,0,0,0},{11262,0,0,0,0,0},{10779,0,0,0,0,0},{10874,0,0,0,0,0},{10475,0,0,0,0,0},{10957,0,0,0,0,0},{10874,0,0,0,0,0}},{{10957,0,0,0,0,0},{11539,0,0,0,0,0},{11223,0,0,0,0,0},{10995,0,0,0,0,0},{11263,0,0,0,0,0},{11037,0,0,0,0,0},{11039,0,0,0,0,0},{11021,0,0,0,0,0},{10887,0,0,0,0,0},{11117,0,0,0,0,0},{10977,0,0,0,0,0},{11211,0,0,0,0,0},{10841,0,0,0,0,0},{10694,0,0,0,0,0},{11073,0,0,0,0,0},{11468,0,0,0,0,0},{11015,0,0,0,0,0},{10899,0,0,0,0,0},{10976,0,0,0,0,0},{10717,0,0,0,0,0}},{{11121,0,0,0,0,0},{11180,0,0,0,0,0},{10480,0,0,0,0,0},{11035,0,0,0,0,0},{11248,0,0,0,0,0},{10958,0,0,0,0,0},{11271,0,0,0,0,0},{11385,0,0,0,0,0},{10351,0,0,0,0,0},{11147,0,0,0,0,0},{10775,0,0,0,0,0},{10971,0,0,0,0,0},{10810,0,0,0,0,0},{10920,0,0,0,0,0},{11139,0,0,0,0,0},{10646,0,0,0,0,0},{11765,0,0,0,0,0},{11147,0,0,0,0,0},{11145,0,0,0,0,0},{10945,0,0,0,0,0}},{{11020,0,0,0,0,0},{11260,0,0,0,0,0},{10981,0,0,0,0,0},{11412,0,0,0,0,0},{10860,0,0,0,0,0},{10795,0,0,0,0,0},{11392,0,0,0,0,0},{10597,0,0,0,0,0},{10883,0,0,0,0,0},{10938,0,0,0,0,0},{10793,0,0,0,0,0},{11179,0,0,0,0,0},{10872,0,0,0,0,0},{11211,0,0,0,0,0},{11125,0,0,0,0,0},{10961,0,0,0,0,0},{10953,0,0,0,0,0},{11438,0,0,0,0,0},{10714,0,0,0,0,0},{11122,0,0,0,0,0}},{{11011,0,0,0,0,0},{11035,0,0,0,0,0},{11248,0,0,0,0,0},{11582,0,0,0,0,0},{10919,0,0,0,0,0},{11076,0,0,0,0,0},{11234,0,0,0,0,0},{10606,0,0,0,0,0},{11390,0,0,0,0,0},{10860,0,0,0,0,0},{11557,0,0,0,0,0},{10948,0,0,0,0,0},{10938,0,0,0,0,0},{11589,0,0,0,0,0},{10665,0,0,0,0,0},{11297,0,0,0,0,0},{11406,0,0,0,0,0},{11250,0,0,0,0,0},{10720,0,0,0,0,0},{11046,0,0,0,0,0}}},{{{-235,-284,-278,-188,-195,-246},{-242,-249,-193,-237,-269,-215},{-267,-217,-172,-211,-159,-161},{-276,-215,-267,-280,-253,-231},{-166,-159,-231,-246,-246,-244},{-258,-195,-217,-240,-242,-226},{-179,-287,-280,-222,-291,-208},{-190,-255,-206,-269,-186,-255},{-233,-175,-287,-224,-177,-233},{-197,-213,-267,-181,-237,-276},{-260,-269,-255,-164,-269,-195},{-179,-195,-175,-217,-184,-255},{-164,-217,-222,-280,-228,-222},{-284,-181,-226,-222,-280,-228},{-228,-264,-184,-170,-226,-161},{-211,-202,-235,-267,-276,-262},{-240,-166,-190,-228,-175,-240},{-157,-251,-179,-242,-215,-184},{-197,-287,-244,-244,-287,-289},{-190,-284,-226,-235,-284,-164}},{{-177,-164,-166,-255,-264,-164},{-208,-202,-253,-168,-168,-208},{-177,-267,-164,-206,-280,-206},{-291,-287,-170,-206,-184,-164},{-249,-282,-237,-233,-246,-246},{-172,-280,-258,-282,-264,-220},{-213,-175,-161,-204,-179,-184},{-280,-215,-226,-233,-235,-184},{-215,-269,-291,-291,-242,-220},{-240,-179,-220,-244,-215,-179},{-177,-231,-211,-240,-235,-224},{-280,-244,-255,-195,-258,-168},{-258,-204,-235,-168,-204,-244},{-202,-278,-233,-235,-215,-264},{-188,-211,-206,-235,-262,-235},{-197,-226,-269,-267,-172,-246},{-188,-255,-168,-190,-260,-206},{-197,-233,-211,-188,-197,-168},{-276,-175,-215,-269,-233,-213},{-197,-231,-164,-195,-161,-193}},{{-193,-204,-179,-224,-208,-282},{-271,-284,-222,-271,-278,-226},{-284,-228,-184,-233,-244,-235},{-177,-222,-206,-217,-181,-197},{-226,-175,-262,-222,-262,-233},{-204,-226,-190,-240,-267,-226},{-284,-177,-273,-170,-204,-231},{-199,-244,-208,-199,-237,-184},{-213,-253,-226,-235,-271,-289},{-166,-220,-291,-172,-226,-258},{-211,-260,-278,-231,-166,-269},{-222,-258,-188,-258,-188,-231},{-253,-202,-197,-264,-195,-240},{-224,-179,-280,-273,-164,-170},{-246,-284,-213,-251,-240,-208},{-291,-188,-242,-267,-186,-186},{-172,-206,-249,-186,-271,-291},{-264,-249,-215,-190,-211,-168},{-193,-253,-161,-226,-258,-179},{-228,-172,-231,-211,-220,-224}},{{-242,-181,-251,-255,-195,-282},{-204,-166,-202,-175,-195,-249},{-276,-258,-235,-255,-204,-188},{-166,-284,-199,-170,-246,-226},{-161,-249,-249,-181,-168,-271},{-276,-202,-206,-282,-255,-172},{-289,-184,-226,-175,-184,-233},{-278,-199,-226,-204,-215,-179},{-226,-213,-264,-220,-175,-251},{-220,-240,-197,-220,-244,-206},{-184,-235,-235,-251,-179,-251},{-175,-190,-246,-157,-206,-228},{-233,-264,-179,-215,-172,-264},{-228,-204,-161,-206,-202,-235},{-170,-235,-220,-188,-186,-217},{-206,-235,-188,-179,-193,-193},{-220,-278,-255,-244,-215,-204},{-258,-276,-190,-175,-184,-220},{-246,-197,-269,-249,-168,-202},{-188,-244,-242,-206,-177,-235}},{{-280,-170,-181,-202,-233,-284},{-258,-193,-226,-208,-291,-217},{-237,-170,-280,-228,-289,-215},{-246,-161,-271,-276,-237,-222},{-164,-233,-246,-228,-226,-255},{-255,-172,-161,-222,-168,-181},{-166,-179,-204,-235,-282,-206},{-276,-177,-161,-251,-273,-287},{-237,-220,-186,-164,-204,-175},{-202,-231,-284,-170,-197,-211},{-215,-262,-168,-215,-264,-184},{-193,-240,-208,-253,-211,-271},{-240,-179,-164,-175,-267,-157},{-166,-188,-170,-260,-172,-222},{-280,-213,-255,-161,-260,-244},{-276,-199,-289,-242,-258,-164},{-181,-199,-280,-253,-226,-208},{-208,-260,-175,-199,-213,-242},{-217,-157,-166,-267,-168,-208},{-164,-222,-240,-278,-251,-258}},{{-260,-284,-258,-161,-213,-206},{-179,-184,-228,-289,-260,-199},{-242,-202,-273,-226,-211,-159},{-172,-291,-208,-246,-271,-237},{-175,-195,-168,-190,-264,-249},{-206,-253,-228,-278,-204,-255},{-235,-208,-240,-197,-179,-215},{-181,-166,-184,-172,-184,-161},{-237,-260,-264,-159,-276,-199},{-280,-208,-175,-157,-287,-159},{-255,-276,-186,-220,-179,-267},{-184,-233,-202,-240,-278,-199},{-159,-269,-249,-267,-226,-164},{-271,-251,-217,-235,-258,-260},{-249,-206,-284,-177,-217,-177},{-276,-199,-260,-233,-237,-235},{-199,-184,-264,-195,-276,-291},{-253,-233,-164,-262,-260,-242},{-181,-170,-177,-284,-166,-213},{-249,-269,-220,-246,-226,-273}}},{{{-274,-302,-302,-250,-183,-243},{-169,-195,-298,-186,-264,-252},{-255,-302,-181,-190,-190,-193},{-276,-290,-178,-262,-281,-262},{-290,-269,-264,-186,-195,-209},{-221,-248,-176,-231,-200,-226},{-238,-181,-240,-281,-198,-259},{-186,-269,-174,-276,-278,-202},{-293,-262,-248,-219,-307,-274},{-169,-233,-295,-200,-214,-181},{-212,-167,-176,-200,-174,-202},{-231,-267,-231,-176,-305,-207},{-174,-295,-178,-178,-298,-293},{-283,-269,-238,-231,-171,-305},{-233,-181,-259,-212,-202,-281},{-271,-205,-252,-176,-240,-231},{-217,-248,-209,-198,-305,-288},{-207,-286,-226,-290,-278,-274},{-221,-276,-231,-167,-236,-205},{-198,-236,-238,-283,-283,-178}},{{-188,-300,-193,-171,-269,-224},{-300,-269,-205,-221,-259,-236},{-295,-171,-240,-267,-309,-186},{-269,-205,-195,-181,-288,-286},{-233,-290,-243,-193,-188,-226},{-250,-240,-298,-298,-307,-202},{-183,-188,-283,-295,-305,-274},{-205,-174,-181,-298,-295,-186},{-283,-169,-283,-183,-224,-305},{-243,-226,-264,-309,-274,-278},{-300,-300,-309,-228,-283,-231},{-259,-269,-300,-245,-243,-271},{-231,-283,-202,-257,-226,-205},{-195,-200,-226,-267,-226,-269},{-231,-257,-305,-302,-267,-250},{-276,-257,-298,-276,-243,-309},{-219,-212,-233,-195,-219,-240},{-167,-255,-243,-248,-176,-214},{-214,-221,-224,-202,-176,-267},{-240,-290,-231,-200,-250,-202}},{{-307,-257,-167,-221,-207,-212},{-250,-252,-286,-252,-236,-248},{-207,-224,-257,-228,-295,-186},{-209,-224,-288,-243,-186,-186},{-169,-174,-238,-293,-283,-305},{-198,-248,-217,-267,-243,-276},{-219,-174,-305,-309,-278,-269},{-286,-178,-302,-271,-307,-176},{-264,-238,-178,-202,-298,-193},{-195,-264,-228,-276,-252,-245},{-233,-181,-176,-174,-281,-290},{-276,-281,-233,-250,-283,-186},{-228,-214,-252,-248,-298,-305},{-205,-190,-236,-236,-309,-255},{-305,-267,-309,-224,-283,-190},{-236,-231,-264,-212,-276,-186},{-305,-202,-259,-269,-248,-217},{-233,-205,-174,-195,-195,-224},{-181,-271,-255,-290,-278,-259},{-176,-224,-278,-174,-209,-205}},{{-300,-195,-305,-231,-233,-186},{-240,-193,-236,-195,-221,-250},{-167,-169,-245,-309,-188,-269},{-228,-238,-269,-200,-188,-169},{-281,-202,-259,-195,-181,-295},{-255,-259,-269,-217,-231,-267},{-302,-264,-264,-240,-200,-202},{-295,-212,-286,-286,-190,-209},{-274,-209,-200,-188,-233,-186},{-259,-183,-257,-178,-233,-309},{-212,-167,-262,-167,-250,-236},{-226,-269,-202,-221,-302,-264},{-238,-248,-281,-167,-245,-183},{-198,-193,-209,-167,-176,-250},{-250,-190,-195,-252,-217,-231},{-202,-267,-281,-198,-193,-238},{-257,-274,-295,-264,-278,-190},{-202,-250,-178,-255,-219,-167},{-302,-300,-286,-250,-186,-169},{-174,-274,-209,-262,-302,-274}},{{-248,-233,-200,-248,-264,-224},{-283,-219,-276,-231,-257,-231},{-269,-290,-190,-198,-205,-298},{-214,-167,-283,-302,-167,-255},{-178,-290,-259,-245,-300,-219},{-264,-174,-236,-255,-262,-276},{-217,-302,-286,-186,-298,-233},{-178,-219,-264,-252,-309,-288},{-309,-271,-209,-214,-302,-219},{-200,-174,-231,-286,-236,-283},{-169,-307,-198,-221,-274,-224},{-190,-221,-198,-236,-207,-281},{-240,-169,-221,-238,-181,-295},{-269,-226,-183,-269,-269,-290},{-236,-228,-169,-171,-293,-281},{-238,-231,-202,-233,-257,-233},{-290,-212,-290,-188,-259,-274},{-276,-295,-226,-202,-226,-269},{-276,-240,-250,-255,-224,-183},{-186,-186,-274,-305,-276,-212}},{{-193,-250,-171,-240,-231,-290},{-290,-186,-193,-236,-302,-176},{-286,-176,-245,-278,-214,-255},{-286,-288,-188,-212,-238,-209},{-224,-276,-274,-257,-243,-171},{-298,-181,-250,-228,-198,-238},{-264,-281,-283,-217,-278,-257},{-300,-283,-198,-309,-167,-259},{-255,-214,-245,-293,-205,-195},{-264,-233,-250,-283,-214,-226},{-221,-259,-300,-274,-240,-290},{-278,-248,-283,-181,-224,-224},{-190,-169,-276,-288,-226,-243},{-309,-226,-300,-198,-167,-290},{-262,-255,-207,-250,-214,-193},{-174,-207,-219,-248,-224,-167},{-167,-307,-233,-248,-198,-293},{-245,-255,-212,-245,-231,-302},{-243,-271,-238,-209,-281,-221},{-202,-209,-228,-219,-243,-176}}},{{{-270,-207,-317,-265,-341,-341},{-289,-347,-352,-202,-259,-355},{-325,-232,-216,-232,-199,-224},{-276,-284,-270,-235,-262,-229},{-273,-248,-229,-191,-314,-284},{-298,-328,-240,-235,-248,-281},{-322,-292,-268,-339,-210,-235},{-314,-194,-295,-257,-276,-262},{-314,-202,-355,-238,-314,-235},{-349,-273,-300,-308,-262,-330},{-199,-235,-311,-295,-254,-254},{-213,-197,-194,-199,-317,-268},{-262,-227,-347,-246,-199,-308},{-202,-254,-308,-240,-289,-270},{-284,-197,-281,-207,-227,-300},{-325,-197,-251,-317,-339,-191},{-308,-254,-240,-303,-210,-278},{-287,-257,-246,-300,-254,-194},{-199,-355,-262,-325,-270,-238},{-311,-298,-303,-218,-292,-221}},{{-254,-270,-347,-341,-248,-216},{-218,-224,-341,-205,-278,-276},{-349,-317,-355,-221,-355,-330},{-352,-235,-232,-232,-246,-254},{-262,-352,-295,-333,-292,-238},{-191,-344,-276,-205,-325,-265},{-333,-347,-213,-235,-227,-199},{-202,-210,-238,-330,-194,-344},{-238,-295,-229,-278,-194,-292},{-344,-330,-289,-333,-298,-265},{-273,-229,-265,-322,-224,-251},{-270,-314,-355,-287,-311,-207},{-205,-317,-325,-349,-194,-298},{-336,-278,-197,-355,-207,-257},{-317,-308,-333,-273,-262,-352},{-199,-194,-213,-248,-202,-202},{-355,-197,-303,-248,-303,-306},{-325,-194,-303,-238,-347,-238},{-336,-339,-268,-213,-248,-216},{-284,-319,-292,-257,-330,-295}},{{-308,-251,-218,-325,-210,-352},{-270,-246,-238,-227,-352,-322},{-276,-314,-265,-254,-344,-248},{-330,-276,-336,-317,-276,-352},{-276,-336,-281,-216,-235,-314},{-311,-336,-295,-238,-207,-207},{-328,-235,-317,-224,-243,-298},{-207,-281,-232,-251,-238,-336},{-243,-251,-306,-298,-238,-262},{-224,-298,-268,-339,-238,-202},{-322,-349,-289,-300,-227,-221},{-229,-352,-306,-262,-355,-216},{-194,-311,-224,-221,-216,-254},{-251,-229,-333,-213,-213,-191},{-240,-207,-303,-213,-235,-213},{-224,-336,-336,-238,-240,-281},{-292,-248,-298,-251,-248,-229},{-349,-224,-347,-311,-207,-281},{-238,-265,-262,-251,-330,-210},{-218,-336,-218,-262,-235,-254}},{{-328,-197,-300,-308,-207,-306},{-251,-295,-278,-328,-314,-347},{-213,-210,-328,-278,-224,-284},{-276,-319,-216,-347,-265,-218},{-344,-325,-194,-232,-257,-199},{-333,-289,-207,-306,-248,-202},{-238,-308,-322,-333,-322,-336},{-306,-199,-218,-314,-276,-229},{-292,-281,-328,-205,-238,-336},{-259,-205,-216,-314,-207,-238},{-281,-246,-251,-197,-243,-227},{-265,-336,-278,-268,-292,-221},{-251,-207,-276,-235,-257,-243},{-287,-355,-268,-254,-341,-213},{-322,-341,-276,-295,-325,-238},{-240,-273,-276,-199,-292,-254},{-311,-319,-221,-352,-238,-289},{-314,-265,-333,-273,-268,-270},{-295,-197,-287,-344,-251,-232},{-314,-273,-352,-300,-303,-213}},{{-322,-317,-314,-238,-227,-330},{-191,-246,-303,-298,-284,-325},{-278,-221,-251,-238,-325,-276},{-284,-308,-322,-336,-270,-336},{-265,-311,-240,-259,-232,-254},{-339,-300,-298,-314,-218,-221},{-246,-199,-221,-259,-339,-248},{-232,-317,-205,-246,-251,-202},{-292,-199,-194,-292,-194,-197},{-303,-287,-352,-207,-330,-273},{-224,-292,-229,-218,-213,-352},{-221,-276,-229,-218,-341,-199},{-330,-224,-287,-344,-197,-333},{-347,-330,-349,-289,-213,-278},{-232,-259,-221,-221,-235,-287},{-314,-308,-281,-333,-240,-224},{-246,-216,-270,-224,-336,-336},{-191,-317,-194,-308,-308,-240},{-306,-308,-306,-199,-276,-308},{-281,-197,-336,-292,-278,-314}},{{-213,-240,-268,-210,-287,-205},{-240,-216,-287,-319,-292,-308},{-308,-270,-262,-298,-308,-278},{-268,-278,-311,-227,-319,-300},{-284,-248,-224,-265,-265,-349},{-254,-341,-308,-221,-235,-210},{-243,-341,-224,-229,-308,-341},{-257,-311,-330,-284,-197,-240},{-341,-300,-284,-276,-246,-352},{-341,-341,-205,-328,-265,-268},{-311,-273,-322,-355,-295,-232},{-191,-284,-330,-349,-306,-254},{-281,-232,-221,-202,-355,-314},{-227,-303,-295,-273,-336,-352},{-221,-281,-194,-265,-251,-298},{-270,-298,-210,-306,-265,-273},{-216,-325,-303,-311,-339,-355},{-344,-243,-218,-232,-311,-319},{-240,-333,-270,-224,-322,-191},{-213,-347,-221,-339,-232,-330}}},{{{-151,-152,-186,-180,-189,-132},{-152,-176,-171,-162,-136,-112},{-189,-166,-200,-134,-119,-146},{-177,-149,-117,-123,-180,-109},{-143,-112,-145,-168,-163,-145},{-109,-177,-146,-188,-182,-145},{-159,-145,-163,-197,-114,-191},{-109,-120,-162,-131,-199,-168},{-122,-196,-146,-128,-156,-159},{-174,-137,-114,-162,-149,-145},{-148,-160,-157,-152,-109,-185},{-108,-159,-159,-174,-134,-196},{-185,-172,-122,-182,-163,-122},{-136,-176,-139,-123,-149,-182},{-108,-157,-109,-114,-159,-131},{-132,-163,-186,-112,-185,-174},{-148,-163,-122,-123,-126,-134},{-188,-148,-126,-163,-171,-108},{-116,-136,-151,-163,-182,-143},{-172,-119,-112,-148,-154,-152}},{{-112,-186,-112,-192,-142,-125},{-140,-185,-109,-152,-189,-117},{-174,-128,-123,-157,-191,-185},{-131,-163,-134,-126,-157,-134},{-152,-137,-131,-137,-140,-160},{-197,-156,-117,-174,-189,-185},{-168,-200,-159,-197,-171,-119},{-192,-108,-157,-128,-191,-196},{-125,-149,-108,-140,-152,-169},{-128,-159,-199,-148,-182,-182},{-185,-196,-180,-180,-185,-131},{-186,-142,-139,-143,-137,-119},{-162,-116,-129,-137,-116,-163},{-185,-183,-169,-165,-166,-128},{-143,-177,-134,-157,-128,-157},{-194,-125,-129,-139,-151,-129},{-142,-117,-159,-186,-119,-145},{-114,-186,-185,-169,-185,-120},{-176,-171,-140,-119,-111,-168},{-156,-145,-117,-162,-177,-120}},{{-143,-172,-197,-165,-119,-134},{-159,-174,-171,-169,-152,-174},{-146,-182,-157,-142,-165,-166},{-136,-172,-148,-109,-123,-112},{-140,-126,-126,-162,-194,-183},{-191,-154,-139,-142,-129,-139},{-132,-128,-194,-139,-143,-171},{-166,-176,-156,-120,-152,-128},{-136,-109,-152,-183,-166,-185},{-128,-125,-152,-177,-191,-146},{-172,-197,-182,-120,-120,-165},{-129,-200,-196,-132,-186,-146},{-182,-194,-134,-128,-123,-116},{-168,-156,-157,-151,-162,-186},{-120,-192,-183,-143,-119,-177},{-156,-169,-186,-191,-139,-177},{-189,-112,-197,-145,-200,-162},{-140,-114,-152,-125,-146,-137},{-146,-136,-123,-145,-146,-126},{-199,-111,-125,-174,-189,-162}},{{-132,-146,-185,-125,-126,-149},{-139,-109,-125,-116,-169,-179},{-109,-137,-157,-139,-114,-120},{-109,-134,-117,-117,-176,-186},{-192,-117,-136,-108,-172,-166},{-179,-122,-183,-136,-114,-125},{-182,-152,-139,-163,-162,-129},{-119,-185,-125,-177,-160,-182},{-136,-176,-116,-145,-122,-139},{-189,-191,-189,-128,-191,-177},{-123,-126,-163,-159,-169,-136},{-125,-128,-182,-200,-199,-112},{-139,-166,-163,-186,-128,-182},{-169,-185,-165,-112,-188,-109},{-174,-177,-168,-146,-169,-188},{-120,-111,-152,-152,-136,-125},{-196,-108,-186,-183,-160,-177},{-192,-119,-191,-117,-188,-157},{-120,-123,-176,-154,-157,-199},{-163,-129,-182,-109,-131,-136}},{{-142,-125,-152,-176,-112,-192},{-139,-145,-159,-157,-168,-188},{-166,-136,-140,-143,-136,-131},{-196,-139,-163,-129,-128,-192},{-146,-128,-139,-200,-108,-108},{-119,-140,-174,-186,-179,-199},{-116,-116,-177,-172,-139,-159},{-151,-197,-134,-200,-174,-151},{-183,-182,-179,-192,-197,-162},{-142,-139,-176,-166,-128,-160},{-142,-114,-128,-157,-177,-126},{-194,-182,-174,-112,-137,-165},{-140,-200,-192,-117,-126,-179},{-143,-116,-177,-185,-148,-125},{-163,-123,-179,-117,-176,-159},{-172,-162,-152,-108,-142,-177},{-194,-196,-177,-165,-166,-125},{-179,-134,-151,-169,-157,-119},{-142,-157,-137,-120,-109,-145},{-148,-179,-128,-145,-140,-129}},{{-149,-194,-139,-151,-166,-142},{-137,-182,-154,-139,-174,-200},{-180,-199,-186,-183,-156,-137},{-196,-157,-151,-142,-140,-165},{-136,-200,-132,-159,-186,-148},{-149,-108,-179,-179,-162,-126},{-136,-160,-117,-132,-148,-129},{-159,-134,-123,-174,-174,-152},{-119,-183,-162,-154,-142,-165},{-185,-169,-120,-129,-189,-108},{-199,-129,-152,-109,-185,-140},{-140,-172,-123,-165,-131,-142},{-154,-157,-143,-143,-128,-123},{-146,-185,-162,-117,-136,-149},{-154,-163,-182,-156,-180,-166},{-151,-165,-199,-112,-156,-174},{-182,-200,-196,-200,-108,-196},{-117,-174,-159,-185,-136,-134},{-142,-185,-156,-111,-120,-165},{-116,-189,-162,-168,-145,-157}}},{{{-158,-217,-209,-144,-237,-222},{-237,-180,-147,-153,-140,-217},{-189,-171,-149,-140,-237,-222},{-135,-226,-144,-235,-180,-200},{-191,-202,-180,-175,-155,-198},{-135,-197,-220,-146,-171,-129},{-198,-195,-209,-235,-169,-142},{-160,-173,-231,-197,-173,-151},{-175,-177,-131,-149,-136,-213},{-217,-193,-131,-173,-158,-202},{-142,-186,-186,-206,-226,-202},{-206,-177,-160,-133,-193,-140},{-147,-222,-175,-228,-235,-226},{-186,-178,-211,-233,-177,-209},{-136,-204,-155,-136,-215,-151},{-171,-149,-133,-226,-160,-151},{-220,-233,-138,-166,-209,-169},{-237,-209,-171,-186,-235,-182},{-151,-231,-136,-167,-233,-215},{-189,-169,-197,-195,-151,-144}},{{-206,-140,-153,-222,-151,-211},{-151,-209,-184,-187,-166,-162},{-202,-182,-231,-195,-138,-207},{-209,-127,-142,-138,-144,-177},{-135,-175,-235,-178,-193,-171},{-207,-142,-237,-191,-182,-197},{-202,-237,-149,-164,-237,-211},{-189,-158,-207,-167,-149,-151},{-213,-164,-207,-233,-162,-191},{-167,-158,-175,-193,-186,-131},{-231,-218,-198,-167,-136,-155},{-218,-224,-136,-175,-229,-209},{-202,-202,-202,-169,-218,-224},{-180,-215,-133,-204,-229,-235},{-191,-147,-147,-160,-202,-195},{-217,-233,-140,-231,-164,-127},{-151,-144,-191,-180,-149,-191},{-136,-198,-140,-129,-140,-184},{-204,-149,-182,-215,-171,-166},{-151,-189,-198,-133,-140,-224}},{{-186,-180,-182,-155,-142,-146},{-131,-198,-197,-149,-200,-229},{-235,-158,-235,-217,-207,-182},{-135,-233,-204,-129,-171,-207},{-144,-180,-147,-211,-237,-151},{-189,-228,-202,-160,-213,-162},{-204,-207,-213,-235,-136,-169},{-187,-171,-149,-169,-195,-167},{-160,-155,-136,-153,-202,-167},{-160,-228,-164,-177,-217,-206},{-127,-160,-231,-195,-187,-157},{-155,-162,-180,-142,-195,-222},{-187,-218,-147,-233,-218,-151},{-171,-228,-149,-180,-229,-198},{-142,-158,-235,-135,-147,-173},{-218,-211,-228,-207,-235,-237},{-133,-171,-173,-187,-144,-233},{-133,-184,-233,-206,-169,-140},{-197,-211,-200,-186,-206,-180},{-146,-160,-202,-162,-235,-135}},{{-215,-226,-235,-213,-167,-191},{-235,-237,-220,-149,-189,-186},{-178,-173,-177,-158,-142,-171},{-193,-186,-193,-160,-202,-191},{-186,-131,-184,-182,-186,-151},{-144,-224,-173,-167,-167,-226},{-193,-182,-138,-191,-213,-133},{-175,-177,-200,-186,-184,-231},{-224,-140,-149,-138,-162,-164},{-206,-162,-135,-233,-173,-222},{-127,-204,-135,-191,-211,-180},{-166,-178,-175,-204,-147,-129},{-127,-218,-171,-140,-171,-220},{-202,-162,-166,-155,-180,-186},{-151,-217,-138,-166,-233,-189},{-175,-133,-133,-144,-207,-136},{-127,-177,-146,-144,-162,-233},{-171,-157,-147,-186,-217,-131},{-178,-155,-204,-153,-198,-162},{-235,-215,-173,-184,-224,-184}},{{-198,-207,-200,-140,-127,-237},{-136,-235,-217,-157,-213,-233},{-229,-164,-162,-187,-237,-193},{-213,-207,-191,-211,-171,-197},{-218,-228,-211,-209,-220,-158},{-171,-206,-222,-218,-164,-180},{-222,-222,-207,-157,-133,-169},{-135,-129,-228,-186,-146,-138},{-207,-180,-231,-166,-220,-142},{-160,-160,-180,-164,-166,-197},{-178,-140,-153,-195,-184,-164},{-155,-182,-146,-157,-157,-184},{-135,-158,-138,-146,-220,-195},{-182,-177,-169,-160,-144,-200},{-187,-229,-197,-233,-164,-157},{-235,-140,-160,-235,-204,-187},{-177,-206,-162,-189,-157,-186},{-136,-166,-220,-191,-187,-195},{-129,-140,-175,-229,-166,-218},{-160,-133,-160,-237,-151,-162}},{{-220,-149,-197,-228,-217,-180},{-186,-127,-198,-155,-198,-127},{-215,-157,-204,-228,-226,-197},{-191,-200,-207,-235,-133,-149},{-158,-171,-173,-224,-209,-209},{-211,-220,-147,-147,-193,-164},{-217,-171,-171,-211,-211,-140},{-233,-138,-195,-211,-160,-182},{-136,-220,-189,-151,-211,-229},{-200,-233,-180,-140,-147,-175},{-182,-127,-178,-182,-155,-175},{-158,-136,-155,-151,-142,-158},{-178,-228,-228,-207,-184,-182},{-229,-171,-195,-209,-202,-231},{-158,-177,-186,-189,-180,-204},{-146,-222,-182,-151,-173,-233},{-144,-133,-235,-220,-164,-162},{-182,-138,-187,-187,-213,-209},{-206,-229,-197,-136,-151,-136},{-213,-151,-153,-182,-193,-237}}},{{{-208,-220,-223,-238,-282,-279},{-194,-172,-235,-270,-284,-216},{-172,-179,-243,-203,-186,-270},{-218,-282,-240,-318,-299,-250},{-272,-233,-201,-225,-252,-201},{-270,-220,-296,-311,-301,-245},{-282,-284,-194,-292,-201,-257},{-194,-189,-284,-282,-279,-277},{-255,-238,-318,-299,-282,-247},{-247,-184,-284,-228,-179,-201},{-172,-238,-252,-181,-279,-243},{-316,-255,-252,-318,-274,-247},{-216,-201,-318,-296,-208,-270},{-225,-211,-184,-250,-267,-252},{-208,-260,-208,-294,-250,-306},{-238,-262,-318,-255,-292,-265},{-206,-184,-260,-243,-230,-277},{-274,-262,-243,-289,-176,-294},{-213,-218,-309,-238,-211,-272},{-296,-208,-299,-235,-243,-270}},{{-255,-299,-270,-299,-176,-220},{-292,-194,-299,-247,-294,-196},{-235,-194,-277,-191,-282,-287},{-289,-309,-272,-265,-208,-181},{-309,-245,-186,-257,-284,-220},{-287,-282,-304,-299,-289,-309},{-196,-294,-189,-172,-230,-230},{-228,-194,-179,-314,-260,-218},{-306,-235,-203,-267,-206,-243},{-299,-245,-247,-292,-191,-247},{-294,-309,-172,-220,-277,-198},{-184,-181,-194,-238,-260,-265},{-245,-250,-179,-208,-243,-270},{-311,-179,-174,-309,-184,-247},{-208,-255,-218,-179,-247,-220},{-218,-172,-235,-198,-218,-294},{-211,-228,-294,-176,-230,-233},{-257,-311,-255,-213,-274,-174},{-299,-284,-260,-279,-274,-218},{-318,-216,-201,-296,-287,-245}},{{-228,-194,-247,-179,-240,-233},{-196,-196,-194,-213,-306,-267},{-296,-174,-316,-203,-225,-179},{-198,-289,-282,-301,-247,-267},{-181,-257,-255,-306,-289,-292},{-240,-301,-304,-213,-262,-243},{-243,-233,-282,-198,-299,-172},{-282,-181,-181,-314,-235,-267},{-174,-316,-223,-267,-247,-196},{-257,-213,-243,-211,-279,-211},{-189,-304,-225,-240,-218,-201},{-238,-255,-311,-274,-272,-238},{-260,-279,-257,-220,-211,-257},{-213,-211,-245,-220,-314,-203},{-186,-301,-247,-230,-277,-316},{-247,-294,-223,-287,-265,-282},{-228,-287,-179,-220,-274,-225},{-250,-265,-304,-245,-311,-247},{-203,-238,-172,-252,-206,-196},{-250,-172,-257,-270,-318,-260}},{{-172,-245,-172,-225,-274,-240},{-262,-299,-314,-240,-287,-306},{-262,-184,-277,-245,-196,-201},{-299,-282,-279,-306,-299,-186},{-267,-279,-316,-306,-203,-243},{-172,-235,-216,-272,-179,-191},{-284,-245,-194,-203,-279,-208},{-181,-174,-196,-184,-277,-301},{-250,-274,-274,-184,-260,-196},{-299,-311,-309,-230,-287,-243},{-186,-250,-255,-225,-299,-247},{-304,-235,-230,-301,-282,-292},{-216,-301,-296,-306,-292,-294},{-289,-304,-304,-213,-255,-181},{-279,-272,-228,-296,-230,-257},{-238,-208,-255,-247,-274,-292},{-296,-314,-316,-292,-262,-309},{-314,-279,-257,-228,-184,-172},{-203,-240,-194,-316,-284,-299},{-201,-225,-179,-257,-257,-277}},{{-196,-299,-265,-176,-176,-245},{-292,-194,-262,-186,-274,-265},{-235,-309,-233,-179,-184,-230},{-299,-218,-284,-211,-186,-176},{-198,-296,-292,-198,-282,-316},{-245,-267,-194,-172,-223,-189},{-245,-265,-206,-267,-296,-292},{-296,-240,-296,-186,-208,-174},{-260,-243,-228,-206,-225,-235},{-274,-218,-196,-191,-279,-189},{-206,-284,-311,-196,-228,-186},{-289,-250,-245,-238,-282,-314},{-238,-213,-220,-304,-198,-274},{-196,-247,-172,-292,-316,-262},{-247,-230,-309,-233,-213,-196},{-279,-296,-289,-301,-279,-174},{-216,-228,-265,-255,-233,-181},{-247,-299,-274,-247,-318,-287},{-235,-243,-316,-316,-270,-201},{-191,-208,-255,-238,-181,-243}},{{-174,-174,-309,-220,-294,-240},{-250,-296,-306,-225,-252,-203},{-186,-174,-270,-301,-296,-220},{-318,-318,-292,-311,-230,-314},{-220,-299,-282,-203,-172,-176},{-311,-289,-284,-318,-316,-201},{-206,-274,-304,-260,-181,-306},{-174,-240,-179,-233,-174,-277},{-279,-277,-201,-279,-240,-172},{-252,-296,-284,-211,-247,-176},{-250,-309,-262,-252,-174,-216},{-250,-274,-194,-235,-235,-260},{-213,-196,-196,-196,-306,-186},{-294,-211,-189,-306,-203,-287},{-247,-184,-186,-172,-208,-245},{-287,-272,-247,-318,-203,-306},{-260,-294,-250,-240,-179,-294},{-284,-213,-181,-316,-311,-270},{-316,-179,-201,-260,-245,-179},{-270,-240,-265,-225,-274,-218}}},{{{-171,-245,-164,-208,-226,-263},{-213,-231,-273,-196,-270,-280},{-233,-187,-296,-247,-291,-166},{-187,-286,-169,-208,-176,-206},{-268,-243,-210,-247,-226,-199},{-284,-226,-231,-266,-173,-199},{-213,-164,-206,-171,-252,-280},{-185,-196,-229,-189,-213,-173},{-298,-194,-284,-229,-238,-224},{-273,-176,-187,-224,-213,-266},{-254,-187,-243,-243,-222,-196},{-185,-240,-245,-203,-289,-231},{-215,-203,-162,-266,-296,-282},{-229,-162,-275,-208,-201,-233},{-171,-298,-286,-263,-173,-249},{-277,-178,-222,-194,-293,-247},{-270,-229,-280,-296,-243,-266},{-296,-215,-277,-293,-284,-224},{-293,-208,-273,-259,-169,-210},{-166,-298,-182,-217,-243,-196}},{{-289,-273,-280,-210,-284,-266},{-259,-196,-252,-266,-231,-217},{-296,-169,-296,-298,-249,-240},{-252,-173,-293,-266,-275,-286},{-273,-187,-284,-252,-291,-194},{-166,-164,-275,-208,-224,-219},{-210,-286,-268,-178,-263,-229},{-266,-263,-224,-173,-270,-236},{-162,-249,-187,-293,-162,-217},{-256,-268,-201,-245,-245,-296},{-293,-213,-247,-238,-208,-289},{-173,-259,-263,-268,-233,-238},{-296,-289,-201,-266,-261,-169},{-266,-240,-173,-199,-194,-164},{-284,-298,-254,-164,-243,-245},{-226,-229,-286,-300,-252,-199},{-178,-189,-208,-199,-252,-192},{-277,-166,-173,-231,-266,-249},{-176,-254,-233,-277,-194,-206},{-185,-233,-215,-196,-296,-180}},{{-282,-180,-289,-270,-217,-245},{-266,-240,-259,-222,-236,-293},{-261,-284,-196,-263,-273,-185},{-252,-203,-256,-166,-231,-252},{-217,-282,-270,-187,-196,-240},{-233,-259,-192,-208,-162,-233},{-180,-247,-206,-201,-196,-291},{-187,-273,-199,-217,-169,-275},{-273,-266,-256,-201,-178,-254},{-289,-208,-213,-194,-252,-280},{-213,-247,-187,-293,-243,-208},{-249,-171,-280,-169,-277,-201},{-222,-300,-256,-238,-222,-270},{-268,-196,-282,-196,-245,-169},{-277,-243,-243,-166,-284,-275},{-243,-166,-192,-164,-245,-296},{-185,-254,-189,-180,-180,-273},{-243,-249,-270,-236,-187,-245},{-182,-266,-233,-296,-280,-226},{-300,-231,-169,-275,-185,-240}},{{-263,-289,-296,-166,-256,-268},{-185,-182,-293,-203,-210,-196},{-231,-289,-180,-173,-282,-261},{-201,-203,-240,-277,-268,-284},{-247,-298,-243,-298,-280,-296},{-213,-171,-236,-171,-298,-231},{-173,-187,-289,-185,-273,-194},{-275,-178,-296,-298,-254,-291},{-289,-162,-166,-169,-289,-171},{-233,-217,-261,-273,-266,-208},{-217,-266,-166,-176,-300,-256},{-261,-222,-263,-247,-229,-194},{-245,-277,-173,-254,-266,-236},{-217,-282,-293,-296,-203,-254},{-219,-254,-293,-236,-189,-284},{-243,-203,-280,-282,-206,-252},{-263,-300,-266,-185,-249,-252},{-270,-180,-180,-277,-293,-268},{-231,-266,-247,-293,-240,-273},{-259,-240,-293,-213,-210,-178}},{{-189,-243,-256,-189,-298,-286},{-273,-210,-254,-208,-247,-171},{-291,-180,-176,-261,-194,-240},{-243,-270,-217,-199,-243,-217},{-222,-162,-245,-240,-238,-180},{-185,-226,-233,-243,-189,-187},{-203,-229,-233,-263,-293,-300},{-215,-217,-187,-229,-249,-259},{-268,-166,-176,-238,-293,-256},{-266,-194,-192,-217,-224,-206},{-284,-280,-192,-291,-282,-187},{-284,-231,-238,-293,-296,-194},{-277,-238,-199,-233,-162,-270},{-263,-222,-256,-298,-217,-247},{-300,-176,-291,-189,-187,-298},{-176,-185,-247,-187,-203,-289},{-247,-243,-171,-268,-199,-208},{-222,-300,-254,-238,-222,-219},{-231,-286,-208,-282,-206,-247},{-169,-286,-194,-254,-189,-226}},{{-243,-226,-275,-201,-229,-282},{-187,-180,-208,-245,-259,-243},{-252,-215,-289,-252,-169,-300},{-219,-268,-233,-178,-206,-182},{-201,-284,-266,-224,-236,-280},{-259,-238,-266,-254,-180,-182},{-206,-222,-300,-217,-282,-243},{-256,-164,-203,-201,-240,-275},{-261,-243,-201,-300,-201,-213},{-254,-194,-226,-169,-176,-208},{-226,-252,-259,-194,-206,-284},{-194,-247,-213,-263,-173,-293},{-254,-213,-282,-176,-261,-289},{-238,-263,-192,-166,-259,-229},{-236,-196,-256,-296,-194,-273},{-222,-270,-291,-192,-187,-259},{-226,-296,-182,-261,-201,-185},{-210,-263,-199,-171,-194,-182},{-201,-254,-275,-261,-224,-189},{-192,-233,-236,-201,-206,-268}}},{{{-303,-335,-341,-379,-335,-218},{-315,-297,-247,-329,-306,-218},{-303,-376,-306,-362,-368,-379},{-376,-220,-370,-244,-303,-247},{-238,-288,-318,-215,-226,-329},{-368,-362,-344,-323,-335,-338},{-382,-273,-235,-206,-370,-326},{-259,-365,-259,-235,-365,-303},{-256,-285,-362,-350,-332,-212},{-247,-262,-273,-229,-282,-370},{-306,-373,-253,-362,-206,-368},{-265,-297,-297,-291,-309,-294},{-332,-244,-253,-209,-238,-250},{-291,-309,-312,-335,-244,-282},{-323,-285,-344,-335,-320,-312},{-338,-262,-288,-323,-341,-259},{-373,-226,-253,-326,-309,-247},{-250,-368,-244,-323,-379,-326},{-218,-306,-359,-223,-335,-273},{-373,-382,-344,-291,-212,-365}},{{-315,-282,-238,-382,-220,-373},{-373,-344,-315,-344,-220,-382},{-279,-297,-323,-218,-312,-303},{-235,-370,-256,-373,-370,-329},{-276,-344,-238,-365,-303,-232},{-373,-268,-238,-238,-270,-241},{-362,-209,-265,-235,-323,-297},{-373,-259,-353,-303,-347,-220},{-282,-297,-223,-268,-382,-306},{-350,-291,-309,-368,-262,-206},{-356,-323,-226,-370,-265,-382},{-347,-350,-370,-312,-379,-373},{-215,-312,-259,-268,-312,-250},{-279,-288,-368,-303,-288,-253},{-312,-365,-288,-206,-291,-253},{-303,-356,-215,-223,-359,-223},{-291,-376,-347,-382,-344,-373},{-306,-259,-212,-259,-250,-315},{-282,-262,-209,-320,-347,-306},{-368,-223,-320,-238,-232,-382}},{{-309,-282,-226,-326,-382,-382},{-347,-379,-309,-238,-291,-253},{-253,-338,-273,-247,-312,-247},{-220,-288,-344,-344,-212,-341},{-376,-288,-273,-282,-268,-303},{-365,-273,-218,-273,-335,-279},{-250,-262,-382,-309,-209,-270},{-279,-373,-356,-268,-370,-323},{-229,-370,-226,-270,-256,-323},{-273,-282,-379,-359,-218,-323},{-376,-209,-362,-247,-288,-256},{-238,-323,-268,-370,-238,-220},{-306,-226,-250,-253,-232,-235},{-253,-276,-312,-323,-256,-226},{-279,-309,-229,-259,-306,-291},{-329,-268,-326,-232,-326,-309},{-273,-244,-350,-273,-338,-376},{-368,-256,-294,-250,-229,-329},{-232,-294,-326,-356,-359,-297},{-294,-276,-326,-276,-320,-223}},{{-268,-273,-338,-270,-232,-262},{-326,-297,-329,-209,-368,-282},{-250,-365,-268,-212,-291,-238},{-235,-250,-312,-297,-270,-359},{-368,-265,-347,-259,-247,-332},{-318,-223,-362,-326,-335,-373},{-309,-265,-382,-256,-370,-376},{-350,-312,-382,-370,-309,-335},{-315,-218,-276,-229,-220,-279},{-226,-315,-259,-215,-279,-335},{-338,-379,-285,-359,-276,-297},{-253,-347,-259,-318,-223,-220},{-300,-235,-206,-309,-220,-215},{-232,-309,-218,-362,-303,-279},{-318,-259,-276,-232,-315,-238},{-344,-359,-276,-268,-259,-329},{-244,-206,-373,-353,-226,-356},{-285,-347,-344,-323,-379,-297},{-212,-209,-326,-306,-259,-338},{-282,-276,-285,-232,-262,-212}},{{-250,-362,-238,-297,-323,-209},{-341,-215,-379,-276,-253,-276},{-303,-238,-223,-329,-312,-382},{-341,-315,-282,-326,-356,-235},{-238,-247,-244,-212,-250,-323},{-212,-209,-382,-309,-344,-312},{-332,-353,-320,-315,-344,-341},{-241,-238,-223,-279,-291,-212},{-241,-362,-226,-218,-344,-379},{-344,-318,-265,-268,-323,-379},{-285,-270,-365,-256,-368,-235},{-379,-259,-291,-320,-303,-335},{-303,-329,-318,-276,-265,-368},{-318,-265,-209,-309,-344,-362},{-373,-365,-206,-341,-338,-303},{-209,-282,-220,-206,-273,-270},{-276,-382,-226,-300,-226,-241},{-373,-379,-368,-297,-253,-288},{-365,-218,-206,-244,-253,-206},{-379,-253,-382,-373,-323,-356}},{{-350,-326,-309,-235,-353,-259},{-220,-362,-335,-347,-300,-256},{-244,-320,-268,-268,-218,-247},{-212,-259,-318,-362,-368,-379},{-238,-215,-309,-238,-365,-285},{-306,-270,-270,-276,-235,-250},{-368,-276,-282,-268,-300,-256},{-323,-268,-312,-370,-223,-276},{-276,-265,-315,-376,-323,-306},{-329,-350,-229,-291,-253,-256},{-282,-329,-368,-329,-365,-332},{-329,-294,-312,-215,-353,-353},{-279,-329,-350,-241,-332,-253},{-368,-294,-323,-291,-306,-270},{-209,-291,-344,-223,-309,-300},{-306,-379,-335,-320,-323,-215},{-315,-382,-335,-206,-212,-244},{-241,-306,-362,-347,-282,-326},{-323,-256,-350,-215,-309,-315},{-338,-347,-223,-376,-206,-220}}}}; // 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,16,8,5,15,8,5,16,9,6,16,9,6,16,8,6,16,9,6,16,9,6,17,9,6,17,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,17,9,6,17,8,6,16,9,6,17,8,6,16,9,6,17,9,6}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14},{15,16,17,18,19,20,21,22},{23,24,25,26,27},{28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43},{44,45,46,47,48,49,50,51},{52,53,54,55,56},{57,58,59,60,61,62,63,64,65,66,67,68,69,70,71},{72,73,74,75,76,77,78,79},{80,81,82,83,84},{85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100},{101,102,103,104,105,106,107,108,109},{110,111,112,113,114,115},{116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131},{132,133,134,135,136,137,138,139,140},{141,142,143,144,145,146},{147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162},{163,164,165,166,167,168,169,170},{171,172,173,174,175,176},{177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192},{193,194,195,196,197,198,199,200,201},{202,203,204,205,206,207},{208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223},{224,225,226,227,228,229,230,231,232},{233,234,235,236,237,238},{239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255},{256,257,258,259,260,261,262,263,264},{265,266,267,268,269,270},{271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287},{288,289,290,291,292,293,294,295},{296,297,298,299,300,301},{302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318},{319,320,321,322,323,324,325,326,327},{328,329,330,331,332,333},{334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350},{351,352,353,354,355,356,357,358,359},{360,361,362,363,364,365},{366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382},{383,384,385,386,387,388,389,390,391},{392,393,394,395,396,397},{398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414},{415,416,417,418,419,420,421,422,423},{424,425,426,427,428,429},{430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446},{447,448,449,450,451,452,453,454,455},{456,457,458,459,460,461},{462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478},{479,480,481,482,483,484,485,486,487},{488,489,490,491,492,493},{494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510},{511,512,513,514,515,516,517,518,519},{520,521,522,523,524,525},{526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542},{543,544,545,546,547,548,549,550,551},{552,553,554,555,556,557},{558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574},{575,576,577,578,579,580,581,582,583},{584,585,586,587,588,589},{590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606},{607,608,609,610,611,612,613,614},{615,616,617,618,619,620},{621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636},{637,638,639,640,641,642,643,644,645},{646,647,648,649,650,651},{652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668},{669,670,671,672,673,674,675,676},{677,678,679,680,681,682},{683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698},{699,700,701,702,703,704,705,706,707},{708,709,710,711,712,713},{714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730},{731,732,733,734,735,736,737,738,739},{740,741,742,743,744,745}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,2,6,10,14,18,22,26,30,1,7,13,19,25,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,2,6,10,14,18,22,26,30,1,7,13,19,25,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,2,6,10,14,18,22,26,30,1,7,13,19,25,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,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,2,6,10,14,18,22,26,30,0,6,12,18,24,30,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,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,0,6,12,18,24,30,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,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,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,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,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,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,2,6,10,14,18,22,26,30,34,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,0,4,8,12,16,20,24,28,32,2,8,14,20,26,32,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,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,2,6,10,14,18,22,26,30,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,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,2,6,10,14,18,22,26,30,0,6,12,18,24,30,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,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,0,4,8,12,16,20,24,28,32,0,6,12,18,24,30}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,7,11,15,19,23,27,31,35,6,12,18,24,30,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,7,11,15,19,23,27,31,35,6,12,18,24,30,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,7,11,15,19,23,27,31,35,6,12,18,24,30,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,5,9,13,17,21,25,29,33,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,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,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,4,8,12,16,20,24,28,32,2,8,14,20,26,32,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,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,3,7,11,15,19,23,27,31,35,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,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,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,3,9,15,21,27,33,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,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,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,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,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,3,7,11,15,19,23,27,31,35,4,10,16,22,28,34,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,5,9,13,17,21,25,29,33,3,9,15,21,27,33,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,3,7,11,15,19,23,27,31,35,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,3,9,15,21,27,33}; // set of end times of each shipment 
