int Dev = 40;// 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 = 750;//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]={{{{10499,0,0,0,0,0},{11315,0,0,0,0,0},{11247,0,0,0,0,0},{10993,0,0,0,0,0},{11632,0,0,0,0,0},{11020,0,0,0,0,0},{11227,0,0,0,0,0},{10989,0,0,0,0,0},{10863,0,0,0,0,0},{10348,0,0,0,0,0},{11516,0,0,0,0,0},{11180,0,0,0,0,0},{11029,0,0,0,0,0},{11663,0,0,0,0,0},{11087,0,0,0,0,0},{10447,0,0,0,0,0},{10768,0,0,0,0,0},{11597,0,0,0,0,0},{11509,0,0,0,0,0},{11157,0,0,0,0,0}},{{11400,0,0,0,0,0},{10947,0,0,0,0,0},{10783,0,0,0,0,0},{11148,0,0,0,0,0},{11314,0,0,0,0,0},{11687,0,0,0,0,0},{11616,0,0,0,0,0},{10920,0,0,0,0,0},{10914,0,0,0,0,0},{11153,0,0,0,0,0},{10749,0,0,0,0,0},{11435,0,0,0,0,0},{11344,0,0,0,0,0},{11159,0,0,0,0,0},{10997,0,0,0,0,0},{11252,0,0,0,0,0},{11190,0,0,0,0,0},{10716,0,0,0,0,0},{11576,0,0,0,0,0},{11159,0,0,0,0,0}},{{10975,0,0,0,0,0},{10380,0,0,0,0,0},{10719,0,0,0,0,0},{10996,0,0,0,0,0},{10544,0,0,0,0,0},{11152,0,0,0,0,0},{10814,0,0,0,0,0},{11773,0,0,0,0,0},{10975,0,0,0,0,0},{10991,0,0,0,0,0},{11360,0,0,0,0,0},{10858,0,0,0,0,0},{10827,0,0,0,0,0},{11279,0,0,0,0,0},{11043,0,0,0,0,0},{10874,0,0,0,0,0},{11142,0,0,0,0,0},{11701,0,0,0,0,0},{10484,0,0,0,0,0},{11485,0,0,0,0,0}},{{10576,0,0,0,0,0},{11119,0,0,0,0,0},{11587,0,0,0,0,0},{10899,0,0,0,0,0},{10791,0,0,0,0,0},{11009,0,0,0,0,0},{11013,0,0,0,0,0},{10931,0,0,0,0,0},{11043,0,0,0,0,0},{10892,0,0,0,0,0},{11207,0,0,0,0,0},{10353,0,0,0,0,0},{11180,0,0,0,0,0},{11427,0,0,0,0,0},{11950,0,0,0,0,0},{10898,0,0,0,0,0},{11643,0,0,0,0,0},{10956,0,0,0,0,0},{11172,0,0,0,0,0},{10899,0,0,0,0,0}},{{10833,0,0,0,0,0},{11182,0,0,0,0,0},{11125,0,0,0,0,0},{10923,0,0,0,0,0},{10753,0,0,0,0,0},{11285,0,0,0,0,0},{10834,0,0,0,0,0},{10822,0,0,0,0,0},{10819,0,0,0,0,0},{11391,0,0,0,0,0},{10438,0,0,0,0,0},{11632,0,0,0,0,0},{11418,0,0,0,0,0},{11379,0,0,0,0,0},{10844,0,0,0,0,0},{11003,0,0,0,0,0},{10634,0,0,0,0,0},{11109,0,0,0,0,0},{11532,0,0,0,0,0},{11284,0,0,0,0,0}},{{11080,0,0,0,0,0},{11559,0,0,0,0,0},{11180,0,0,0,0,0},{9841,0,0,0,0,0},{10619,0,0,0,0,0},{10906,0,0,0,0,0},{11093,0,0,0,0,0},{11603,0,0,0,0,0},{10926,0,0,0,0,0},{11181,0,0,0,0,0},{11516,0,0,0,0,0},{10975,0,0,0,0,0},{10750,0,0,0,0,0},{11308,0,0,0,0,0},{11326,0,0,0,0,0},{10728,0,0,0,0,0},{10618,0,0,0,0,0},{11009,0,0,0,0,0},{10781,0,0,0,0,0},{10690,0,0,0,0,0}}},{{{-143,-152,-190,-172,-157,-262},{-179,-235,-264,-300,-255,-143},{-309,-215,-222,-231,-269,-161},{-235,-251,-302,-246,-143,-220},{-287,-184,-197,-260,-226,-298},{-206,-157,-293,-172,-226,-300},{-168,-199,-251,-311,-190,-273},{-152,-155,-298,-190,-228,-161},{-240,-181,-246,-262,-148,-220},{-249,-242,-217,-267,-199,-148},{-276,-284,-157,-282,-300,-278},{-298,-271,-228,-235,-217,-314},{-177,-146,-222,-267,-228,-311},{-305,-233,-282,-215,-157,-175},{-211,-168,-298,-242,-141,-307},{-278,-177,-264,-260,-269,-251},{-271,-280,-244,-141,-172,-235},{-184,-217,-224,-287,-293,-278},{-211,-190,-269,-159,-249,-155},{-195,-161,-309,-260,-269,-224}},{{-233,-184,-184,-206,-287,-211},{-262,-177,-222,-146,-309,-157},{-298,-148,-244,-175,-255,-179},{-296,-170,-242,-253,-188,-222},{-172,-222,-226,-307,-213,-164},{-276,-233,-208,-249,-164,-233},{-249,-251,-246,-222,-199,-307},{-307,-137,-202,-155,-280,-172},{-273,-311,-175,-148,-195,-267},{-291,-193,-246,-233,-204,-168},{-206,-233,-139,-262,-193,-280},{-253,-282,-262,-202,-264,-271},{-296,-235,-300,-296,-280,-287},{-152,-269,-168,-211,-220,-161},{-181,-152,-193,-206,-184,-152},{-264,-237,-249,-224,-220,-289},{-137,-202,-293,-155,-255,-307},{-170,-296,-255,-211,-215,-287},{-134,-204,-213,-271,-273,-208},{-150,-291,-235,-213,-267,-146}},{{-273,-226,-298,-249,-305,-184},{-195,-157,-233,-164,-233,-220},{-188,-168,-186,-244,-244,-186},{-134,-157,-293,-213,-287,-231},{-134,-181,-148,-307,-168,-260},{-233,-161,-155,-233,-204,-253},{-157,-188,-282,-300,-184,-253},{-208,-280,-213,-159,-244,-206},{-282,-184,-269,-134,-199,-206},{-177,-188,-222,-276,-240,-280},{-240,-293,-296,-206,-233,-267},{-278,-177,-226,-251,-175,-137},{-258,-175,-251,-260,-246,-157},{-269,-179,-237,-246,-255,-208},{-159,-228,-284,-246,-204,-202},{-190,-197,-307,-204,-186,-157},{-193,-278,-296,-269,-181,-143},{-179,-262,-309,-300,-249,-253},{-172,-262,-291,-190,-166,-237},{-258,-258,-172,-217,-251,-190}},{{-141,-311,-307,-264,-213,-181},{-206,-298,-307,-188,-188,-215},{-181,-246,-253,-273,-150,-280},{-244,-233,-278,-253,-155,-217},{-137,-264,-213,-253,-148,-282},{-222,-215,-141,-260,-152,-305},{-146,-269,-228,-300,-164,-258},{-220,-186,-258,-204,-166,-202},{-237,-215,-237,-311,-222,-164},{-170,-195,-284,-276,-181,-246},{-188,-276,-170,-284,-157,-150},{-242,-166,-188,-155,-202,-137},{-213,-296,-289,-260,-293,-269},{-284,-298,-195,-228,-226,-242},{-244,-291,-282,-289,-197,-175},{-179,-215,-231,-273,-224,-273},{-300,-170,-273,-213,-220,-224},{-146,-179,-181,-202,-280,-284},{-224,-208,-155,-314,-222,-267},{-246,-300,-141,-220,-175,-143}},{{-298,-208,-208,-177,-195,-150},{-150,-211,-289,-179,-269,-296},{-186,-280,-251,-224,-184,-300},{-161,-289,-199,-222,-202,-302},{-217,-166,-302,-175,-244,-164},{-289,-271,-284,-168,-311,-199},{-289,-300,-164,-220,-175,-188},{-260,-291,-289,-206,-143,-179},{-276,-199,-181,-215,-193,-231},{-193,-217,-231,-141,-222,-276},{-287,-267,-258,-224,-166,-150},{-226,-291,-220,-231,-215,-222},{-204,-273,-269,-215,-305,-222},{-184,-314,-296,-150,-161,-224},{-175,-206,-226,-179,-302,-161},{-244,-159,-202,-240,-215,-226},{-305,-255,-240,-267,-168,-244},{-282,-155,-208,-307,-298,-284},{-166,-237,-302,-267,-307,-258},{-152,-148,-253,-296,-235,-170}},{{-226,-197,-291,-228,-222,-228},{-305,-195,-249,-172,-264,-293},{-217,-289,-231,-296,-204,-204},{-181,-166,-222,-240,-164,-155},{-202,-172,-246,-242,-307,-211},{-271,-172,-296,-170,-237,-139},{-237,-213,-206,-233,-146,-309},{-211,-282,-197,-251,-284,-258},{-287,-215,-220,-298,-146,-258},{-278,-213,-309,-164,-242,-296},{-262,-217,-307,-284,-215,-159},{-307,-197,-233,-211,-217,-193},{-159,-206,-206,-152,-143,-161},{-231,-314,-208,-204,-177,-141},{-269,-267,-197,-240,-139,-302},{-217,-251,-155,-260,-264,-242},{-179,-188,-255,-141,-213,-208},{-199,-166,-150,-168,-195,-237},{-186,-177,-206,-157,-139,-240},{-305,-141,-197,-278,-262,-190}}},{{{-290,-221,-286,-302,-214,-281},{-169,-281,-217,-145,-255,-257},{-326,-224,-245,-264,-178,-307},{-267,-300,-250,-186,-207,-274},{-331,-228,-281,-228,-207,-288},{-228,-293,-209,-288,-145,-205},{-145,-231,-236,-188,-226,-198},{-312,-274,-281,-169,-307,-264},{-257,-305,-288,-233,-288,-257},{-155,-193,-245,-183,-157,-321},{-205,-281,-288,-257,-288,-290},{-312,-214,-217,-259,-333,-307},{-281,-195,-243,-152,-207,-200},{-238,-281,-193,-212,-209,-286},{-309,-278,-259,-214,-245,-307},{-248,-305,-186,-209,-248,-171},{-181,-214,-181,-176,-214,-333},{-250,-212,-145,-262,-243,-314},{-317,-312,-333,-195,-321,-217},{-274,-290,-148,-186,-145,-162}},{{-188,-262,-314,-143,-233,-190},{-145,-290,-193,-219,-302,-278},{-250,-143,-212,-200,-324,-164},{-169,-302,-155,-171,-148,-281},{-164,-245,-269,-245,-257,-186},{-145,-217,-295,-281,-224,-236},{-171,-267,-243,-243,-286,-224},{-155,-162,-162,-328,-262,-264},{-250,-326,-167,-150,-281,-188},{-309,-181,-157,-283,-252,-309},{-159,-298,-228,-257,-309,-233},{-240,-271,-300,-145,-324,-217},{-236,-243,-214,-307,-326,-183},{-319,-331,-159,-252,-186,-233},{-214,-195,-162,-324,-319,-307},{-171,-271,-257,-319,-312,-331},{-159,-309,-143,-183,-250,-202},{-321,-321,-193,-269,-155,-176},{-145,-212,-243,-317,-307,-178},{-295,-305,-200,-188,-231,-286}},{{-209,-159,-155,-143,-155,-240},{-314,-150,-162,-252,-186,-145},{-167,-195,-162,-300,-217,-307},{-257,-150,-252,-333,-309,-164},{-178,-217,-307,-207,-167,-157},{-283,-283,-224,-264,-328,-224},{-190,-193,-259,-233,-259,-231},{-312,-250,-324,-317,-159,-300},{-178,-312,-228,-214,-176,-300},{-274,-257,-190,-257,-274,-298},{-328,-162,-319,-295,-214,-271},{-252,-243,-157,-248,-190,-221},{-333,-333,-319,-212,-217,-302},{-321,-298,-312,-302,-171,-307},{-152,-162,-209,-281,-255,-190},{-176,-262,-176,-176,-333,-143},{-250,-250,-236,-255,-324,-202},{-228,-293,-309,-176,-298,-219},{-169,-193,-190,-298,-240,-226},{-200,-255,-193,-243,-200,-314}},{{-162,-212,-174,-250,-188,-217},{-295,-217,-186,-176,-328,-209},{-257,-252,-178,-145,-286,-262},{-250,-190,-152,-312,-267,-174},{-190,-150,-248,-224,-207,-295},{-252,-178,-228,-219,-226,-169},{-143,-226,-202,-207,-148,-321},{-324,-276,-152,-288,-212,-198},{-300,-148,-186,-305,-295,-181},{-157,-257,-233,-309,-293,-305},{-198,-245,-198,-228,-281,-245},{-169,-169,-193,-209,-262,-276},{-145,-281,-276,-188,-155,-269},{-198,-145,-181,-312,-288,-228},{-169,-245,-331,-293,-321,-302},{-233,-276,-193,-245,-183,-202},{-145,-181,-212,-205,-181,-281},{-278,-188,-317,-169,-212,-264},{-283,-233,-226,-248,-205,-257},{-226,-205,-238,-183,-188,-324}},{{-231,-205,-290,-264,-164,-188},{-224,-257,-164,-155,-314,-302},{-243,-152,-198,-267,-224,-328},{-240,-321,-155,-164,-298,-293},{-276,-231,-331,-286,-178,-169},{-174,-169,-267,-307,-319,-321},{-155,-250,-178,-159,-171,-228},{-228,-278,-309,-321,-150,-198},{-255,-183,-174,-178,-212,-269},{-212,-312,-324,-314,-295,-281},{-164,-159,-181,-171,-162,-240},{-252,-202,-198,-309,-181,-233},{-233,-145,-250,-283,-262,-167},{-298,-309,-212,-317,-276,-276},{-228,-293,-307,-186,-236,-207},{-212,-305,-264,-169,-217,-202},{-205,-324,-178,-145,-198,-200},{-281,-240,-240,-162,-328,-233},{-157,-171,-278,-300,-267,-233},{-250,-228,-257,-257,-324,-198}},{{-305,-188,-183,-326,-152,-293},{-278,-250,-159,-300,-186,-188},{-195,-236,-262,-293,-307,-176},{-205,-205,-307,-157,-300,-276},{-269,-290,-150,-312,-219,-164},{-198,-243,-188,-288,-145,-328},{-214,-228,-171,-276,-305,-307},{-264,-245,-281,-300,-188,-193},{-274,-152,-317,-331,-302,-278},{-183,-198,-252,-295,-207,-248},{-286,-143,-267,-319,-269,-259},{-183,-307,-314,-186,-238,-226},{-164,-295,-276,-324,-202,-319},{-214,-231,-169,-202,-209,-150},{-250,-162,-169,-276,-188,-293},{-245,-171,-300,-190,-281,-195},{-155,-152,-324,-245,-162,-209},{-324,-150,-221,-155,-240,-167},{-324,-226,-233,-333,-245,-233},{-255,-252,-217,-221,-148,-231}}},{{{-322,-347,-284,-300,-259,-330},{-292,-276,-333,-232,-254,-235},{-248,-369,-336,-224,-191,-167},{-205,-363,-358,-177,-366,-232},{-347,-339,-303,-382,-210,-257},{-273,-246,-344,-355,-254,-177},{-336,-308,-218,-259,-254,-289},{-172,-339,-216,-300,-248,-379},{-221,-188,-238,-221,-238,-366},{-224,-289,-175,-303,-194,-308},{-180,-186,-243,-371,-303,-377},{-172,-328,-262,-328,-180,-243},{-257,-366,-336,-221,-254,-341},{-183,-317,-265,-303,-330,-371},{-191,-377,-322,-229,-240,-205},{-295,-303,-188,-183,-240,-254},{-218,-306,-270,-341,-379,-202},{-374,-259,-355,-363,-199,-339},{-322,-306,-164,-292,-175,-379},{-341,-265,-349,-325,-358,-382}},{{-360,-218,-371,-278,-238,-278},{-347,-349,-218,-287,-314,-295},{-341,-333,-322,-377,-317,-199},{-238,-265,-180,-248,-207,-216},{-224,-281,-210,-344,-205,-379},{-227,-336,-276,-221,-369,-251},{-311,-330,-281,-325,-325,-311},{-186,-344,-210,-167,-379,-281},{-374,-328,-339,-273,-379,-172},{-369,-347,-235,-281,-199,-336},{-308,-325,-295,-207,-191,-322},{-216,-243,-229,-229,-289,-371},{-221,-227,-289,-328,-355,-265},{-207,-276,-358,-325,-300,-224},{-319,-205,-164,-254,-227,-169},{-197,-180,-374,-371,-172,-207},{-216,-169,-224,-216,-369,-322},{-248,-207,-262,-358,-306,-363},{-347,-183,-371,-355,-268,-369},{-257,-191,-284,-251,-347,-262}},{{-246,-167,-276,-238,-262,-191},{-229,-235,-221,-254,-308,-167},{-336,-333,-218,-377,-276,-238},{-183,-328,-188,-229,-333,-167},{-333,-377,-205,-270,-227,-216},{-344,-278,-330,-268,-377,-379},{-298,-210,-330,-194,-221,-221},{-284,-278,-273,-363,-352,-276},{-278,-355,-349,-303,-191,-289},{-382,-306,-248,-164,-325,-366},{-191,-303,-240,-216,-339,-379},{-369,-175,-210,-257,-374,-314},{-186,-314,-257,-216,-240,-164},{-199,-314,-177,-319,-308,-360},{-194,-278,-344,-216,-382,-300},{-325,-248,-314,-205,-259,-319},{-333,-358,-325,-238,-344,-229},{-268,-314,-262,-197,-341,-333},{-257,-207,-224,-197,-210,-240},{-336,-284,-229,-276,-339,-377}},{{-311,-284,-188,-169,-202,-352},{-238,-197,-352,-227,-268,-336},{-191,-308,-336,-341,-246,-227},{-303,-213,-240,-339,-183,-281},{-360,-382,-251,-229,-300,-167},{-341,-379,-295,-248,-314,-268},{-295,-379,-317,-366,-243,-199},{-194,-216,-262,-330,-300,-377},{-265,-276,-319,-172,-221,-363},{-164,-311,-207,-349,-328,-172},{-314,-243,-180,-379,-254,-218},{-188,-210,-186,-191,-224,-243},{-235,-347,-235,-240,-366,-287},{-287,-186,-246,-344,-221,-371},{-366,-164,-377,-287,-366,-270},{-355,-164,-202,-191,-328,-177},{-306,-229,-374,-292,-167,-300},{-246,-363,-344,-257,-186,-224},{-224,-207,-243,-199,-355,-292},{-254,-262,-347,-374,-221,-298}},{{-369,-374,-281,-240,-278,-289},{-197,-207,-336,-292,-281,-210},{-232,-341,-295,-227,-199,-227},{-308,-180,-172,-164,-191,-303},{-281,-317,-306,-191,-235,-210},{-235,-374,-164,-349,-248,-210},{-254,-298,-273,-262,-172,-248},{-298,-183,-273,-333,-197,-175},{-183,-319,-213,-188,-281,-355},{-246,-333,-235,-183,-240,-246},{-164,-344,-287,-341,-188,-281},{-311,-344,-295,-330,-371,-210},{-202,-191,-202,-284,-289,-186},{-235,-344,-194,-262,-238,-183},{-197,-287,-292,-336,-194,-199},{-284,-167,-213,-311,-352,-273},{-262,-355,-177,-311,-328,-197},{-306,-276,-175,-229,-216,-169},{-257,-180,-238,-270,-232,-333},{-382,-352,-248,-207,-355,-319}},{{-339,-180,-295,-341,-306,-183},{-319,-349,-336,-224,-188,-358},{-246,-311,-278,-169,-311,-276},{-284,-284,-191,-295,-281,-191},{-194,-232,-246,-369,-240,-268},{-347,-175,-382,-360,-265,-221},{-235,-243,-248,-227,-349,-377},{-308,-265,-382,-377,-248,-284},{-374,-248,-213,-344,-319,-224},{-284,-339,-205,-172,-268,-180},{-311,-243,-317,-344,-205,-265},{-243,-199,-221,-207,-311,-238},{-240,-167,-194,-325,-300,-358},{-246,-169,-341,-295,-349,-352},{-221,-177,-213,-352,-369,-330},{-374,-333,-278,-281,-248,-349},{-308,-273,-278,-164,-276,-278},{-303,-175,-363,-330,-259,-379},{-207,-194,-268,-276,-167,-254},{-191,-243,-339,-218,-287,-333}}},{{{-188,-125,-108,-126,-136,-209},{-188,-168,-100,-140,-134,-106},{-168,-196,-103,-159,-169,-157},{-156,-196,-105,-202,-172,-172},{-180,-172,-94,-176,-131,-143},{-109,-126,-136,-134,-122,-128},{-131,-214,-211,-142,-202,-214},{-108,-171,-126,-176,-108,-106},{-119,-199,-191,-100,-211,-194},{-177,-152,-116,-122,-139,-132},{-191,-154,-137,-156,-122,-154},{-100,-95,-149,-169,-154,-168},{-142,-151,-165,-172,-211,-191},{-154,-131,-214,-114,-154,-157},{-94,-134,-160,-126,-199,-125},{-134,-112,-183,-119,-129,-111},{-192,-143,-171,-174,-182,-145},{-171,-185,-92,-97,-174,-99},{-213,-128,-109,-177,-102,-197},{-128,-185,-122,-152,-126,-176}},{{-202,-192,-139,-180,-132,-108},{-172,-134,-119,-119,-200,-97},{-109,-140,-162,-169,-213,-200},{-196,-209,-94,-174,-120,-199},{-126,-163,-192,-180,-168,-213},{-171,-209,-159,-162,-203,-116},{-213,-211,-213,-171,-109,-168},{-163,-172,-169,-186,-186,-172},{-97,-172,-148,-192,-208,-137},{-200,-126,-163,-169,-95,-100},{-189,-94,-189,-122,-163,-180},{-136,-143,-111,-99,-142,-214},{-148,-112,-196,-116,-103,-106},{-197,-122,-119,-94,-148,-216},{-160,-151,-168,-186,-176,-106},{-92,-109,-202,-192,-165,-171},{-179,-149,-149,-149,-152,-209},{-168,-191,-179,-108,-169,-157},{-199,-176,-159,-143,-197,-157},{-182,-199,-169,-111,-106,-111}},{{-177,-200,-171,-125,-163,-134},{-216,-172,-139,-211,-165,-117},{-192,-94,-111,-174,-146,-136},{-108,-216,-172,-123,-139,-211},{-206,-132,-189,-103,-174,-166},{-194,-106,-125,-132,-134,-177},{-183,-168,-97,-148,-200,-189},{-169,-188,-197,-102,-142,-180},{-179,-206,-209,-176,-156,-136},{-156,-203,-111,-174,-203,-191},{-140,-152,-123,-163,-128,-111},{-108,-103,-134,-174,-117,-172},{-145,-105,-188,-191,-137,-128},{-123,-202,-194,-163,-122,-100},{-165,-132,-92,-157,-114,-102},{-136,-120,-112,-129,-136,-119},{-112,-94,-159,-92,-120,-108},{-202,-125,-95,-92,-216,-176},{-145,-165,-125,-139,-106,-157},{-117,-119,-165,-162,-197,-174}},{{-168,-185,-208,-177,-134,-169},{-156,-122,-169,-142,-111,-152},{-191,-168,-197,-106,-197,-117},{-213,-120,-156,-137,-129,-116},{-134,-185,-146,-143,-174,-142},{-95,-214,-202,-129,-176,-154},{-157,-185,-194,-139,-97,-208},{-99,-182,-131,-92,-95,-166},{-103,-171,-114,-169,-152,-132},{-214,-125,-139,-149,-114,-114},{-182,-188,-112,-209,-142,-114},{-214,-205,-209,-131,-166,-137},{-196,-188,-139,-122,-214,-168},{-102,-196,-108,-103,-169,-151},{-132,-200,-126,-168,-112,-177},{-114,-205,-151,-122,-174,-180},{-142,-188,-209,-200,-156,-186},{-177,-146,-128,-126,-111,-180},{-213,-137,-114,-176,-186,-116},{-148,-122,-108,-166,-102,-108}},{{-148,-189,-120,-128,-100,-169},{-139,-180,-108,-128,-97,-111},{-128,-203,-100,-136,-208,-171},{-142,-157,-137,-108,-103,-192},{-174,-119,-202,-105,-108,-197},{-116,-148,-105,-143,-205,-103},{-183,-136,-191,-125,-102,-213},{-117,-128,-112,-200,-134,-146},{-202,-216,-216,-197,-182,-102},{-180,-177,-165,-120,-103,-139},{-180,-143,-134,-148,-168,-105},{-180,-159,-95,-154,-183,-102},{-188,-194,-172,-120,-179,-157},{-142,-154,-140,-163,-140,-205},{-112,-174,-177,-94,-182,-183},{-157,-156,-196,-189,-165,-211},{-160,-95,-172,-97,-94,-123},{-182,-148,-117,-117,-151,-172},{-102,-117,-183,-149,-199,-154},{-128,-196,-169,-168,-136,-100}},{{-214,-106,-117,-117,-203,-148},{-139,-214,-171,-156,-125,-103},{-134,-185,-139,-140,-176,-145},{-102,-129,-192,-131,-95,-120},{-202,-116,-136,-116,-188,-108},{-139,-109,-122,-123,-156,-188},{-148,-134,-192,-166,-186,-206},{-202,-162,-189,-143,-123,-132},{-191,-129,-205,-171,-125,-162},{-143,-166,-146,-185,-137,-163},{-171,-112,-146,-206,-131,-188},{-199,-136,-132,-169,-146,-213},{-182,-92,-188,-92,-132,-188},{-154,-202,-199,-162,-112,-213},{-136,-97,-163,-140,-123,-165},{-208,-139,-183,-180,-186,-146},{-140,-189,-179,-134,-156,-160},{-139,-123,-125,-95,-152,-116},{-189,-100,-194,-111,-131,-137},{-128,-106,-137,-203,-117,-163}}},{{{-153,-109,-238,-215,-155,-111},{-248,-249,-204,-217,-166,-169},{-244,-206,-231,-217,-235,-140},{-127,-151,-124,-228,-217,-116},{-197,-109,-171,-202,-142,-182},{-175,-178,-158,-164,-157,-191},{-178,-251,-127,-222,-240,-195},{-157,-169,-111,-255,-240,-200},{-238,-244,-142,-146,-217,-122},{-228,-149,-173,-120,-224,-217},{-206,-155,-251,-218,-149,-229},{-166,-235,-217,-213,-166,-195},{-251,-215,-235,-120,-113,-144},{-206,-153,-164,-142,-115,-244},{-206,-189,-233,-186,-229,-182},{-175,-229,-253,-146,-126,-244},{-242,-197,-249,-133,-180,-198},{-191,-238,-231,-118,-186,-166},{-171,-235,-120,-180,-164,-218},{-158,-131,-162,-113,-242,-248}},{{-220,-138,-184,-209,-157,-218},{-229,-215,-151,-164,-122,-240},{-169,-224,-206,-124,-122,-255},{-153,-217,-151,-142,-169,-138},{-126,-220,-198,-189,-224,-187},{-244,-217,-178,-249,-204,-251},{-131,-177,-200,-162,-113,-240},{-126,-151,-167,-231,-131,-200},{-182,-175,-193,-217,-175,-138},{-127,-237,-115,-204,-120,-184},{-140,-118,-158,-160,-129,-140},{-182,-175,-238,-231,-191,-135},{-167,-122,-140,-171,-167,-124},{-195,-177,-157,-235,-151,-228},{-255,-209,-238,-253,-238,-206},{-178,-180,-122,-228,-164,-162},{-248,-206,-220,-215,-149,-186},{-173,-244,-182,-115,-198,-191},{-164,-246,-175,-187,-248,-240},{-224,-124,-160,-113,-255,-113}},{{-235,-122,-126,-200,-171,-231},{-222,-248,-177,-144,-226,-173},{-255,-120,-138,-153,-228,-206},{-129,-226,-228,-191,-255,-111},{-167,-133,-153,-186,-146,-151},{-220,-171,-226,-151,-116,-131},{-228,-142,-248,-248,-187,-116},{-213,-215,-158,-129,-251,-235},{-207,-231,-248,-177,-228,-151},{-171,-116,-217,-124,-206,-228},{-240,-144,-133,-202,-158,-184},{-184,-158,-226,-204,-140,-249},{-146,-202,-248,-251,-116,-197},{-211,-244,-248,-151,-171,-116},{-242,-195,-180,-131,-207,-204},{-244,-142,-206,-182,-113,-167},{-138,-164,-248,-178,-195,-224},{-229,-164,-178,-122,-242,-180},{-109,-224,-240,-167,-235,-138},{-115,-240,-240,-255,-157,-189}},{{-149,-116,-158,-116,-249,-144},{-116,-124,-115,-233,-197,-113},{-149,-118,-226,-207,-193,-157},{-206,-224,-127,-149,-136,-244},{-162,-182,-146,-177,-167,-191},{-111,-217,-180,-169,-157,-251},{-177,-155,-217,-204,-233,-111},{-171,-253,-211,-116,-251,-249},{-246,-167,-142,-135,-180,-224},{-166,-202,-191,-173,-173,-204},{-218,-180,-177,-251,-162,-162},{-135,-178,-235,-222,-175,-248},{-136,-160,-237,-197,-182,-149},{-242,-120,-231,-209,-111,-246},{-218,-136,-162,-233,-218,-140},{-198,-111,-242,-135,-189,-166},{-213,-238,-217,-235,-206,-127},{-197,-155,-177,-116,-191,-178},{-164,-187,-206,-186,-220,-207},{-248,-129,-127,-193,-226,-166}},{{-142,-140,-115,-228,-220,-251},{-151,-207,-237,-226,-149,-226},{-173,-127,-220,-193,-146,-229},{-178,-135,-198,-146,-206,-193},{-222,-142,-111,-136,-184,-240},{-186,-240,-129,-217,-158,-195},{-220,-158,-220,-147,-189,-151},{-142,-213,-157,-118,-116,-173},{-189,-122,-200,-198,-186,-197},{-218,-144,-206,-246,-126,-177},{-209,-189,-144,-147,-164,-246},{-149,-202,-224,-237,-228,-226},{-178,-147,-186,-171,-158,-113},{-129,-149,-182,-177,-248,-113},{-255,-242,-164,-197,-246,-248},{-133,-173,-171,-162,-146,-207},{-160,-131,-253,-228,-202,-169},{-207,-151,-213,-129,-207,-120},{-160,-211,-213,-144,-173,-215},{-249,-235,-126,-115,-115,-126}},{{-109,-135,-129,-131,-235,-193},{-109,-129,-213,-255,-226,-157},{-177,-169,-115,-182,-197,-220},{-131,-127,-129,-200,-191,-115},{-109,-224,-167,-115,-251,-248},{-215,-248,-158,-173,-249,-246},{-198,-109,-140,-118,-157,-187},{-206,-178,-189,-187,-251,-184},{-244,-120,-142,-160,-177,-115},{-211,-171,-249,-244,-146,-253},{-124,-204,-253,-127,-155,-209},{-115,-246,-209,-193,-182,-222},{-226,-222,-248,-127,-131,-177},{-171,-120,-228,-140,-153,-111},{-206,-187,-135,-251,-242,-198},{-140,-166,-133,-218,-151,-129},{-153,-157,-169,-198,-178,-124},{-171,-118,-157,-204,-218,-167},{-166,-131,-240,-253,-180,-233},{-140,-189,-113,-151,-240,-133}}},{{{-198,-152,-247,-169,-233,-323},{-191,-284,-301,-247,-243,-154},{-167,-343,-282,-157,-223,-255},{-149,-203,-203,-152,-279,-220},{-213,-326,-336,-338,-157,-262},{-211,-277,-328,-306,-164,-323},{-154,-157,-299,-167,-159,-201},{-211,-243,-287,-235,-245,-250},{-218,-230,-238,-181,-203,-338},{-181,-208,-238,-326,-289,-282},{-311,-336,-213,-318,-267,-238},{-198,-277,-287,-301,-301,-159},{-341,-164,-301,-311,-331,-152},{-262,-272,-304,-326,-323,-279},{-228,-333,-257,-316,-243,-230},{-147,-157,-147,-191,-159,-331},{-255,-262,-228,-206,-194,-309},{-279,-277,-162,-265,-338,-186},{-252,-289,-233,-279,-216,-230},{-162,-336,-174,-328,-220,-277}},{{-328,-309,-316,-159,-252,-225},{-274,-270,-289,-235,-216,-243},{-162,-198,-265,-162,-225,-316},{-184,-252,-341,-206,-314,-243},{-314,-194,-255,-194,-172,-331},{-233,-245,-255,-333,-211,-230},{-287,-270,-230,-201,-252,-292},{-341,-314,-235,-201,-277,-149},{-223,-206,-157,-326,-167,-301},{-309,-287,-198,-245,-299,-326},{-306,-154,-274,-341,-260,-159},{-228,-299,-162,-172,-230,-326},{-255,-331,-162,-260,-157,-287},{-287,-252,-282,-250,-208,-323},{-282,-338,-223,-225,-216,-282},{-167,-284,-336,-169,-230,-147},{-238,-284,-247,-206,-318,-257},{-213,-189,-152,-189,-189,-147},{-176,-252,-230,-225,-314,-299},{-341,-294,-162,-213,-238,-343}},{{-309,-296,-149,-272,-208,-292},{-255,-233,-321,-331,-316,-186},{-149,-174,-304,-247,-191,-272},{-341,-284,-208,-198,-299,-220},{-203,-176,-162,-306,-333,-225},{-228,-174,-260,-225,-311,-314},{-341,-194,-184,-279,-267,-191},{-191,-341,-194,-341,-147,-316},{-314,-162,-262,-223,-172,-230},{-277,-184,-299,-282,-169,-149},{-306,-238,-282,-157,-247,-252},{-167,-279,-328,-326,-206,-323},{-318,-331,-233,-194,-292,-149},{-316,-314,-250,-238,-176,-189},{-316,-304,-245,-306,-301,-154},{-343,-292,-179,-181,-326,-247},{-220,-228,-272,-201,-154,-284},{-174,-270,-336,-284,-252,-270},{-270,-326,-174,-164,-235,-164},{-174,-181,-343,-225,-265,-270}},{{-267,-172,-213,-164,-233,-326},{-267,-257,-265,-343,-311,-333},{-277,-201,-328,-255,-301,-230},{-198,-179,-323,-299,-201,-287},{-189,-191,-274,-245,-274,-257},{-235,-179,-252,-164,-162,-292},{-306,-331,-211,-174,-203,-174},{-230,-208,-265,-194,-299,-184},{-265,-211,-223,-196,-149,-235},{-279,-272,-225,-272,-323,-191},{-341,-189,-179,-265,-260,-174},{-336,-196,-321,-172,-181,-309},{-321,-149,-233,-287,-216,-167},{-238,-260,-191,-333,-316,-157},{-157,-338,-341,-282,-230,-277},{-157,-314,-301,-176,-343,-304},{-189,-157,-257,-252,-318,-228},{-247,-331,-196,-338,-328,-230},{-270,-321,-323,-174,-326,-326},{-154,-250,-240,-186,-265,-331}},{{-309,-152,-331,-230,-282,-245},{-167,-306,-338,-223,-277,-301},{-198,-255,-311,-181,-296,-309},{-172,-196,-309,-287,-203,-343},{-341,-343,-201,-179,-235,-164},{-159,-196,-196,-299,-284,-323},{-277,-292,-282,-230,-262,-333},{-282,-309,-294,-338,-343,-270},{-321,-338,-157,-154,-220,-333},{-149,-184,-318,-198,-247,-167},{-169,-265,-292,-338,-213,-167},{-198,-257,-164,-196,-316,-243},{-331,-277,-287,-314,-167,-206},{-181,-314,-326,-159,-194,-289},{-260,-159,-257,-331,-194,-282},{-277,-336,-152,-201,-318,-265},{-304,-240,-284,-257,-172,-314},{-230,-333,-235,-311,-323,-277},{-316,-321,-309,-272,-174,-247},{-304,-162,-250,-309,-262,-198}},{{-238,-184,-301,-167,-338,-154},{-230,-309,-336,-203,-191,-296},{-328,-186,-174,-306,-230,-162},{-147,-218,-245,-220,-270,-147},{-159,-203,-208,-341,-181,-272},{-157,-341,-331,-169,-250,-245},{-341,-203,-176,-301,-203,-333},{-206,-341,-203,-238,-341,-206},{-243,-211,-208,-216,-194,-203},{-257,-147,-250,-270,-159,-162},{-309,-309,-179,-186,-289,-336},{-189,-260,-206,-265,-211,-321},{-306,-184,-321,-336,-154,-333},{-218,-196,-301,-321,-316,-274},{-167,-333,-272,-309,-186,-294},{-172,-154,-184,-196,-198,-174},{-186,-252,-167,-159,-225,-235},{-203,-309,-245,-270,-243,-294},{-184,-328,-176,-299,-289,-279},{-218,-247,-228,-162,-282,-240}}},{{{-141,-217,-236,-199,-187,-182},{-219,-289,-238,-236,-238,-282},{-162,-284,-277,-199,-208,-323},{-231,-229,-189,-263,-270,-240},{-176,-231,-185,-233,-284,-192},{-139,-305,-215,-303,-296,-178},{-196,-307,-270,-243,-305,-275},{-231,-196,-187,-224,-247,-243},{-275,-141,-141,-192,-247,-196},{-231,-141,-259,-141,-194,-247},{-152,-150,-199,-266,-162,-219},{-224,-268,-141,-319,-141,-245},{-215,-305,-303,-208,-148,-196},{-259,-206,-291,-300,-280,-233},{-203,-159,-291,-201,-203,-182},{-300,-162,-312,-293,-176,-233},{-252,-268,-166,-233,-155,-141},{-238,-226,-277,-206,-298,-282},{-323,-213,-298,-141,-254,-219},{-141,-180,-261,-176,-247,-266}},{{-291,-268,-296,-277,-146,-146},{-252,-199,-143,-236,-141,-240},{-164,-240,-150,-203,-143,-282},{-256,-310,-252,-259,-293,-199},{-289,-194,-219,-291,-166,-194},{-252,-284,-314,-187,-240,-316},{-229,-155,-157,-162,-312,-217},{-199,-176,-157,-210,-310,-162},{-298,-222,-176,-321,-185,-176},{-217,-155,-192,-284,-166,-286},{-210,-284,-159,-171,-164,-192},{-298,-321,-293,-226,-171,-152},{-263,-316,-249,-201,-143,-185},{-210,-277,-284,-189,-169,-254},{-316,-215,-146,-321,-300,-238},{-270,-182,-148,-261,-240,-321},{-196,-259,-240,-266,-233,-210},{-314,-157,-254,-219,-194,-247},{-307,-219,-286,-178,-199,-236},{-273,-280,-268,-199,-166,-180}},{{-236,-280,-263,-254,-286,-286},{-226,-139,-171,-222,-229,-155},{-182,-176,-323,-192,-173,-286},{-217,-236,-268,-189,-213,-268},{-282,-199,-268,-217,-192,-219},{-199,-159,-146,-194,-268,-226},{-314,-146,-162,-182,-169,-159},{-139,-298,-157,-277,-298,-159},{-222,-208,-312,-139,-201,-162},{-196,-243,-192,-146,-194,-266},{-148,-189,-213,-169,-259,-146},{-240,-194,-243,-210,-280,-162},{-143,-238,-259,-173,-152,-143},{-162,-152,-222,-316,-293,-213},{-189,-169,-277,-143,-185,-189},{-256,-319,-171,-201,-155,-319},{-280,-321,-203,-169,-282,-263},{-139,-249,-268,-254,-169,-305},{-187,-261,-307,-148,-280,-259},{-141,-300,-280,-256,-270,-173}},{{-139,-159,-280,-252,-219,-303},{-166,-166,-270,-222,-185,-275},{-323,-162,-217,-199,-261,-222},{-249,-152,-194,-310,-162,-316},{-263,-215,-155,-321,-312,-268},{-259,-300,-150,-310,-319,-206},{-146,-222,-298,-229,-275,-236},{-289,-282,-176,-316,-203,-293},{-152,-298,-152,-252,-245,-164},{-203,-196,-219,-236,-139,-263},{-254,-201,-213,-284,-321,-189},{-247,-146,-217,-266,-243,-166},{-226,-217,-259,-206,-293,-141},{-256,-187,-277,-296,-293,-254},{-146,-199,-247,-229,-319,-176},{-286,-159,-261,-224,-210,-270},{-252,-213,-256,-222,-215,-300},{-157,-236,-164,-215,-203,-199},{-169,-217,-280,-199,-182,-155},{-245,-277,-263,-291,-305,-143}},{{-159,-219,-194,-143,-247,-282},{-298,-261,-139,-155,-277,-293},{-307,-254,-247,-203,-180,-252},{-312,-314,-180,-226,-298,-289},{-152,-312,-226,-171,-293,-254},{-286,-141,-143,-243,-245,-256},{-231,-171,-171,-173,-139,-305},{-141,-169,-217,-194,-277,-201},{-164,-224,-171,-261,-148,-314},{-275,-300,-289,-268,-286,-284},{-143,-210,-201,-226,-141,-206},{-187,-203,-323,-280,-180,-263},{-314,-252,-277,-213,-291,-215},{-185,-312,-261,-182,-289,-199},{-215,-171,-286,-206,-215,-196},{-273,-300,-259,-206,-263,-171},{-162,-210,-321,-229,-222,-215},{-314,-150,-185,-219,-303,-268},{-148,-236,-185,-275,-229,-256},{-219,-159,-215,-180,-249,-166}},{{-249,-314,-226,-310,-185,-300},{-189,-270,-314,-319,-316,-259},{-291,-162,-316,-185,-240,-201},{-169,-162,-310,-270,-277,-217},{-240,-169,-152,-291,-259,-196},{-231,-194,-263,-270,-275,-213},{-303,-296,-245,-252,-157,-321},{-148,-150,-323,-208,-300,-300},{-206,-206,-219,-240,-270,-249},{-166,-176,-296,-312,-203,-266},{-263,-252,-178,-310,-284,-261},{-282,-217,-185,-259,-256,-273},{-280,-166,-252,-314,-307,-296},{-249,-289,-192,-273,-249,-263},{-236,-143,-321,-213,-185,-217},{-139,-169,-247,-187,-307,-282},{-316,-280,-296,-319,-217,-243},{-303,-307,-201,-296,-298,-298},{-238,-247,-298,-187,-164,-222},{-208,-296,-152,-194,-266,-166}}},{{{-209,-394,-206,-191,-412,-218},{-247,-250,-385,-368,-388,-344},{-253,-356,-218,-288,-229,-312},{-282,-403,-315,-373,-247,-197},{-376,-359,-253,-300,-356,-303},{-394,-344,-368,-203,-270,-247},{-185,-403,-241,-373,-394,-291},{-359,-250,-244,-309,-312,-344},{-265,-276,-238,-341,-382,-241},{-288,-244,-206,-244,-241,-370},{-385,-203,-300,-194,-394,-241},{-265,-276,-215,-318,-197,-303},{-244,-268,-232,-179,-335,-282},{-220,-279,-412,-238,-288,-388},{-218,-285,-341,-203,-176,-412},{-212,-194,-326,-276,-259,-282},{-312,-297,-179,-238,-206,-303},{-332,-200,-335,-265,-326,-359},{-285,-323,-400,-291,-318,-365},{-197,-288,-226,-412,-362,-318}},{{-309,-397,-262,-209,-403,-350},{-332,-206,-379,-288,-203,-329},{-388,-212,-335,-356,-223,-185},{-412,-382,-365,-297,-279,-391},{-197,-400,-338,-329,-353,-385},{-306,-194,-318,-303,-368,-294},{-341,-388,-212,-409,-247,-356},{-315,-412,-368,-197,-370,-320},{-268,-235,-259,-273,-285,-206},{-259,-285,-241,-365,-288,-318},{-370,-359,-241,-320,-382,-176},{-400,-382,-338,-303,-329,-200},{-235,-388,-291,-341,-388,-332},{-223,-235,-385,-344,-368,-229},{-223,-335,-197,-203,-326,-338},{-350,-288,-323,-276,-338,-312},{-212,-306,-385,-370,-409,-232},{-226,-232,-309,-376,-212,-209},{-323,-297,-220,-362,-379,-185},{-306,-400,-212,-362,-359,-297}},{{-388,-220,-373,-241,-194,-397},{-188,-218,-212,-326,-320,-297},{-191,-323,-388,-315,-223,-315},{-362,-318,-279,-179,-212,-388},{-188,-212,-394,-300,-347,-356},{-270,-215,-400,-194,-265,-400},{-244,-282,-379,-270,-294,-400},{-320,-220,-265,-409,-368,-356},{-403,-185,-394,-188,-206,-241},{-338,-209,-244,-306,-294,-179},{-388,-365,-376,-370,-238,-347},{-276,-326,-323,-229,-235,-288},{-341,-182,-297,-176,-400,-312},{-279,-329,-212,-200,-294,-297},{-382,-353,-279,-312,-347,-385},{-406,-373,-320,-356,-194,-253},{-182,-412,-250,-229,-356,-300},{-409,-373,-232,-259,-365,-282},{-235,-300,-338,-294,-226,-397},{-359,-397,-232,-312,-235,-350}},{{-359,-288,-397,-247,-206,-253},{-241,-338,-353,-376,-382,-188},{-306,-329,-365,-379,-406,-388},{-341,-212,-215,-244,-403,-373},{-176,-194,-323,-323,-309,-253},{-250,-406,-176,-323,-265,-294},{-250,-268,-344,-185,-332,-341},{-203,-323,-197,-388,-268,-232},{-394,-406,-323,-359,-273,-394},{-215,-194,-229,-385,-285,-365},{-209,-253,-388,-400,-397,-385},{-262,-297,-323,-262,-229,-315},{-388,-179,-179,-273,-341,-373},{-338,-276,-391,-282,-379,-235},{-406,-353,-359,-256,-403,-241},{-312,-303,-188,-265,-379,-315},{-409,-385,-315,-365,-370,-350},{-406,-182,-323,-397,-229,-373},{-250,-347,-188,-265,-312,-394},{-253,-288,-320,-341,-259,-300}},{{-320,-312,-229,-347,-285,-188},{-279,-312,-394,-332,-235,-303},{-197,-397,-200,-279,-382,-285},{-262,-300,-279,-368,-273,-253},{-226,-320,-323,-300,-318,-176},{-259,-400,-273,-379,-220,-379},{-332,-253,-412,-300,-376,-276},{-235,-326,-300,-197,-394,-268},{-218,-338,-238,-326,-353,-229},{-300,-318,-412,-182,-347,-365},{-315,-262,-238,-294,-356,-391},{-282,-320,-394,-320,-347,-379},{-379,-376,-406,-362,-400,-206},{-376,-335,-379,-412,-203,-368},{-303,-191,-188,-385,-273,-247},{-197,-400,-191,-403,-191,-279},{-297,-212,-191,-206,-335,-220},{-341,-318,-220,-282,-265,-232},{-341,-309,-291,-368,-376,-406},{-397,-394,-323,-244,-394,-365}},{{-400,-359,-182,-338,-262,-253},{-306,-226,-356,-350,-179,-300},{-370,-356,-335,-282,-350,-226},{-297,-185,-206,-206,-323,-206},{-191,-350,-215,-188,-359,-332},{-326,-200,-229,-270,-188,-203},{-191,-229,-256,-353,-253,-215},{-285,-241,-232,-412,-276,-229},{-191,-200,-215,-306,-288,-320},{-326,-400,-200,-409,-247,-388},{-300,-359,-229,-212,-362,-200},{-185,-235,-215,-332,-359,-332},{-223,-179,-297,-200,-209,-197},{-335,-388,-388,-368,-256,-265},{-394,-279,-412,-365,-273,-270},{-291,-218,-300,-309,-206,-382},{-297,-294,-335,-279,-232,-341},{-350,-315,-259,-197,-329,-326},{-259,-235,-223,-335,-400,-288},{-218,-394,-326,-241,-359,-365}}}}; // 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,6,17,8,6,16,8,6,16,9,6,17,9,6,17,9,6,17,9,6,16,8,6,16,8,6,17,9,6,18,9,6,18,9,6,17,9,6,17,9,6,17,9,6,18,9,6,17,9,6,16,9,6,17,8,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,746,747,748,749}}; // 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,0,4,8,12,16,20,24,28,1,7,13,19,25,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,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,1,5,9,13,17,21,25,29,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,0,6,12,18,24,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,5,9,13,17,21,25,29,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,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,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,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,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,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,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,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,33,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,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,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,1,7,13,19,25,31,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,0,4,8,12,16,20,24,28,32,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,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,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,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,5,9,13,17,21,25,29,33,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,7,13,19,25,31,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,6,10,14,18,22,26,30,34,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,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,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,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,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,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,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,4,10,16,22,28,34,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,3,9,15,21,27,33,1,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,1,7,13,19,25,31,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,1,7,13,19,25,31,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,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,3,9,15,21,27,33,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,2,6,10,14,18,22,26,30,34,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,3,9,15,21,27,33,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,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,4,10,16,22,28,34}; // set of end times of each shipment 
