int Dev = 50;// Deviation
extern const int CNN = 4;// Case Index
extern const int P = 3;// Number of phases
extern const int PT = 6;// Number of periods in a phase
extern const int T = 18;// Number of periods
extern const int I1 =1;// Number of suppliers
extern const int I2 = 8;// Number of customers
extern const int I = 9;// Number of sites
extern const int BN = 72;//Number of bids
extern const int LBN = 9;//Number of bids on each arc
extern const int SPN = 350;//Number of shipments
extern const int SN = 50;//Number of scenarios at each stage
extern const int MBSN = 9;//Number of shipments in a bid
// tree parameters:
double PRO[P][SN]={{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02},{0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02,0.02}}; // the probability of each scenario at each phase 
// timing parameters: 
int PTN[P]={6,6,6}; // number of periods in each phase 
int PTset[P][PT]={{0,1,2,3,4,5},{6,7,8,9,10,11},{12,13,14,15,16,17}}; // set of periods in each phase 
// distribution parameters: 
int sup[I][P][SN][PT]={{{{10941,0,0,0,0,0},{10814,0,0,0,0,0},{11056,0,0,0,0,0},{11092,0,0,0,0,0},{12243,0,0,0,0,0},{12045,0,0,0,0,0},{10598,0,0,0,0,0},{10857,0,0,0,0,0},{10251,0,0,0,0,0},{11430,0,0,0,0,0},{11903,0,0,0,0,0},{10860,0,0,0,0,0},{10432,0,0,0,0,0},{10853,0,0,0,0,0},{11684,0,0,0,0,0},{11408,0,0,0,0,0},{11046,0,0,0,0,0},{11701,0,0,0,0,0},{10096,0,0,0,0,0},{10288,0,0,0,0,0},{10195,0,0,0,0,0},{11447,0,0,0,0,0},{11974,0,0,0,0,0},{10679,0,0,0,0,0},{12160,0,0,0,0,0},{10926,0,0,0,0,0},{11550,0,0,0,0,0},{10704,0,0,0,0,0},{11702,0,0,0,0,0},{10638,0,0,0,0,0},{11200,0,0,0,0,0},{11634,0,0,0,0,0},{10585,0,0,0,0,0},{10633,0,0,0,0,0},{10973,0,0,0,0,0},{11345,0,0,0,0,0},{11588,0,0,0,0,0},{11149,0,0,0,0,0},{10932,0,0,0,0,0},{11319,0,0,0,0,0},{11251,0,0,0,0,0},{10877,0,0,0,0,0},{10359,0,0,0,0,0},{11206,0,0,0,0,0},{11073,0,0,0,0,0},{10889,0,0,0,0,0},{11190,0,0,0,0,0},{10720,0,0,0,0,0},{11556,0,0,0,0,0},{10243,0,0,0,0,0}},{{11109,0,0,0,0,0},{11109,0,0,0,0,0},{10815,0,0,0,0,0},{11031,0,0,0,0,0},{10892,0,0,0,0,0},{11516,0,0,0,0,0},{10029,0,0,0,0,0},{10540,0,0,0,0,0},{10892,0,0,0,0,0},{12904,0,0,0,0,0},{11475,0,0,0,0,0},{10662,0,0,0,0,0},{10608,0,0,0,0,0},{11525,0,0,0,0,0},{10604,0,0,0,0,0},{11505,0,0,0,0,0},{11051,0,0,0,0,0},{10703,0,0,0,0,0},{11016,0,0,0,0,0},{11074,0,0,0,0,0},{11330,0,0,0,0,0},{10712,0,0,0,0,0},{11194,0,0,0,0,0},{11316,0,0,0,0,0},{11584,0,0,0,0,0},{11339,0,0,0,0,0},{11541,0,0,0,0,0},{11510,0,0,0,0,0},{10801,0,0,0,0,0},{10526,0,0,0,0,0},{11098,0,0,0,0,0},{10180,0,0,0,0,0},{10963,0,0,0,0,0},{10628,0,0,0,0,0},{10712,0,0,0,0,0},{10869,0,0,0,0,0},{10679,0,0,0,0,0},{11956,0,0,0,0,0},{11070,0,0,0,0,0},{11132,0,0,0,0,0},{10729,0,0,0,0,0},{11201,0,0,0,0,0},{11350,0,0,0,0,0},{11046,0,0,0,0,0},{10563,0,0,0,0,0},{10557,0,0,0,0,0},{11753,0,0,0,0,0},{10397,0,0,0,0,0},{11179,0,0,0,0,0},{11079,0,0,0,0,0}},{{11137,0,0,0,0,0},{11039,0,0,0,0,0},{10783,0,0,0,0,0},{11164,0,0,0,0,0},{11383,0,0,0,0,0},{10988,0,0,0,0,0},{10804,0,0,0,0,0},{10770,0,0,0,0,0},{11761,0,0,0,0,0},{11112,0,0,0,0,0},{10653,0,0,0,0,0},{11120,0,0,0,0,0},{10354,0,0,0,0,0},{11109,0,0,0,0,0},{10780,0,0,0,0,0},{10165,0,0,0,0,0},{10949,0,0,0,0,0},{11724,0,0,0,0,0},{10547,0,0,0,0,0},{11207,0,0,0,0,0},{10995,0,0,0,0,0},{11247,0,0,0,0,0},{10184,0,0,0,0,0},{11712,0,0,0,0,0},{11030,0,0,0,0,0},{10880,0,0,0,0,0},{11170,0,0,0,0,0},{11379,0,0,0,0,0},{10989,0,0,0,0,0},{11392,0,0,0,0,0},{10800,0,0,0,0,0},{10876,0,0,0,0,0},{10784,0,0,0,0,0},{11210,0,0,0,0,0},{11459,0,0,0,0,0},{11443,0,0,0,0,0},{11081,0,0,0,0,0},{11676,0,0,0,0,0},{10716,0,0,0,0,0},{10465,0,0,0,0,0},{11629,0,0,0,0,0},{10946,0,0,0,0,0},{11994,0,0,0,0,0},{10340,0,0,0,0,0},{11295,0,0,0,0,0},{10082,0,0,0,0,0},{11436,0,0,0,0,0},{11424,0,0,0,0,0},{10913,0,0,0,0,0},{10099,0,0,0,0,0}}},{{{-157,-280,-325,-125,-334,-226},{-316,-175,-320,-222,-240,-112},{-269,-161,-130,-190,-307,-168},{-190,-267,-289,-121,-309,-260},{-143,-128,-327,-329,-293,-226},{-287,-217,-211,-251,-282,-199},{-231,-271,-305,-193,-231,-204},{-184,-172,-215,-302,-267,-197},{-255,-293,-264,-237,-128,-307},{-336,-327,-336,-184,-217,-262},{-157,-121,-249,-271,-309,-213},{-146,-320,-316,-215,-289,-188},{-325,-114,-224,-193,-224,-112},{-336,-336,-181,-296,-197,-253},{-231,-202,-224,-213,-217,-276},{-213,-323,-255,-112,-284,-300},{-231,-271,-293,-284,-130,-168},{-242,-282,-291,-215,-164,-296},{-128,-264,-137,-233,-123,-164},{-334,-206,-307,-244,-112,-242},{-233,-186,-311,-137,-116,-137},{-334,-237,-262,-206,-329,-284},{-262,-327,-332,-237,-332,-181},{-314,-311,-179,-311,-114,-233},{-298,-293,-258,-289,-222,-231},{-226,-197,-146,-217,-224,-211},{-168,-150,-197,-199,-211,-168},{-130,-175,-271,-125,-139,-284},{-284,-172,-208,-123,-305,-249},{-208,-177,-119,-114,-202,-233},{-193,-206,-161,-233,-199,-253},{-314,-284,-323,-262,-300,-197},{-262,-300,-269,-264,-240,-164},{-260,-125,-323,-237,-282,-298},{-282,-318,-112,-224,-233,-300},{-262,-172,-134,-222,-130,-276},{-193,-155,-323,-202,-181,-152},{-276,-298,-146,-150,-155,-325},{-282,-150,-181,-300,-155,-226},{-179,-141,-132,-172,-190,-114},{-300,-314,-278,-269,-159,-287},{-141,-159,-305,-132,-175,-164},{-278,-197,-159,-211,-269,-170},{-146,-237,-287,-168,-213,-298},{-260,-237,-202,-228,-323,-137},{-267,-311,-309,-121,-215,-309},{-119,-318,-137,-242,-260,-228},{-148,-240,-197,-121,-112,-208},{-325,-327,-123,-208,-233,-114},{-298,-148,-305,-130,-269,-291}},{{-177,-123,-139,-271,-233,-177},{-314,-282,-143,-264,-334,-159},{-119,-121,-253,-193,-206,-181},{-309,-159,-233,-244,-334,-204},{-177,-220,-164,-116,-186,-336},{-278,-309,-220,-327,-116,-139},{-253,-206,-114,-150,-139,-179},{-271,-226,-242,-112,-215,-132},{-170,-228,-258,-125,-132,-298},{-302,-150,-320,-318,-276,-271},{-166,-255,-175,-269,-121,-228},{-242,-251,-280,-211,-181,-320},{-139,-112,-311,-208,-202,-251},{-211,-220,-327,-284,-287,-264},{-224,-208,-143,-329,-260,-132},{-258,-233,-325,-235,-311,-123},{-325,-287,-336,-287,-222,-184},{-318,-228,-280,-170,-246,-307},{-309,-325,-220,-217,-325,-309},{-246,-166,-146,-181,-253,-114},{-249,-273,-316,-226,-121,-289},{-291,-226,-298,-150,-188,-143},{-300,-177,-235,-314,-260,-204},{-146,-137,-130,-269,-217,-291},{-253,-220,-206,-237,-262,-255},{-336,-195,-215,-309,-249,-208},{-235,-258,-188,-166,-134,-278},{-188,-193,-296,-276,-217,-121},{-172,-208,-206,-233,-260,-291},{-235,-132,-141,-278,-264,-314},{-197,-199,-208,-193,-276,-284},{-166,-112,-150,-240,-222,-132},{-316,-334,-130,-305,-300,-190},{-325,-213,-289,-260,-168,-226},{-323,-213,-316,-152,-197,-114},{-278,-155,-143,-320,-327,-168},{-125,-334,-224,-186,-237,-125},{-244,-177,-114,-260,-309,-325},{-137,-186,-289,-327,-278,-150},{-258,-175,-193,-336,-112,-190},{-280,-269,-172,-305,-143,-327},{-246,-269,-237,-164,-282,-235},{-240,-132,-260,-305,-220,-137},{-233,-215,-309,-177,-264,-119},{-114,-184,-166,-116,-262,-199},{-195,-255,-291,-190,-293,-150},{-323,-280,-273,-179,-237,-334},{-132,-307,-316,-226,-157,-143},{-130,-139,-264,-276,-291,-195},{-168,-336,-300,-233,-157,-164}},{{-302,-251,-262,-298,-164,-264},{-141,-220,-181,-197,-325,-146},{-215,-296,-168,-175,-224,-300},{-318,-130,-273,-307,-206,-228},{-271,-269,-231,-161,-114,-273},{-114,-336,-155,-278,-137,-332},{-190,-168,-298,-195,-213,-327},{-300,-166,-323,-327,-300,-125},{-217,-112,-329,-152,-233,-278},{-121,-128,-287,-318,-278,-334},{-130,-222,-184,-123,-215,-271},{-134,-293,-320,-237,-139,-222},{-271,-148,-220,-220,-284,-190},{-217,-228,-220,-235,-143,-264},{-208,-217,-139,-121,-172,-224},{-164,-251,-181,-116,-296,-119},{-251,-235,-316,-228,-206,-116},{-134,-193,-289,-262,-293,-309},{-271,-240,-264,-116,-114,-291},{-258,-184,-208,-269,-291,-336},{-134,-305,-235,-231,-246,-164},{-172,-206,-309,-226,-273,-255},{-130,-208,-190,-271,-128,-220},{-231,-208,-125,-323,-332,-271},{-166,-305,-202,-161,-141,-220},{-237,-267,-332,-293,-130,-273},{-311,-289,-228,-166,-112,-215},{-197,-255,-244,-137,-237,-168},{-231,-190,-284,-206,-123,-116},{-195,-336,-300,-208,-141,-240},{-125,-141,-195,-240,-130,-132},{-130,-242,-188,-195,-112,-293},{-146,-132,-325,-307,-121,-289},{-278,-298,-170,-128,-284,-128},{-195,-150,-215,-242,-204,-237},{-300,-251,-170,-267,-298,-217},{-255,-298,-305,-161,-231,-195},{-190,-228,-231,-193,-311,-276},{-155,-123,-125,-199,-329,-289},{-157,-137,-199,-150,-208,-287},{-148,-159,-296,-195,-260,-164},{-220,-202,-253,-287,-233,-168},{-220,-217,-291,-134,-320,-240},{-282,-309,-155,-293,-309,-217},{-166,-302,-291,-222,-235,-276},{-159,-159,-152,-116,-336,-130},{-325,-213,-323,-320,-289,-269},{-235,-114,-249,-289,-251,-215},{-222,-220,-255,-112,-316,-152},{-116,-125,-280,-146,-179,-291}}},{{{-352,-326,-176,-328,-150,-331},{-324,-157,-233,-188,-238,-240},{-345,-152,-257,-245,-159,-269},{-257,-219,-257,-143,-328,-298},{-352,-162,-317,-152,-221,-221},{-219,-333,-288,-145,-357,-181},{-248,-212,-224,-293,-340,-326},{-188,-324,-338,-278,-150,-314},{-148,-138,-209,-214,-205,-150},{-343,-352,-338,-143,-193,-212},{-347,-286,-343,-200,-257,-293},{-155,-286,-314,-133,-140,-343},{-129,-131,-188,-155,-240,-243},{-257,-302,-186,-136,-248,-221},{-195,-238,-352,-259,-345,-171},{-212,-302,-347,-331,-248,-286},{-167,-133,-309,-300,-157,-159},{-343,-131,-300,-269,-269,-357},{-145,-174,-336,-209,-305,-245},{-226,-212,-319,-217,-162,-148},{-271,-138,-269,-124,-136,-143},{-200,-119,-219,-174,-190,-352},{-347,-228,-338,-276,-212,-298},{-248,-231,-267,-198,-350,-131},{-298,-331,-262,-148,-331,-209},{-138,-319,-131,-226,-119,-152},{-264,-231,-347,-226,-355,-345},{-207,-224,-167,-236,-183,-221},{-119,-119,-228,-312,-326,-328},{-145,-140,-278,-355,-178,-124},{-278,-124,-295,-319,-333,-226},{-145,-281,-217,-136,-226,-271},{-214,-193,-305,-281,-343,-190},{-155,-124,-214,-283,-288,-278},{-221,-245,-250,-295,-205,-178},{-195,-167,-350,-333,-326,-162},{-257,-331,-226,-286,-347,-293},{-333,-328,-188,-212,-164,-278},{-298,-193,-193,-345,-347,-231},{-145,-245,-169,-178,-252,-355},{-255,-300,-202,-140,-271,-138},{-214,-121,-198,-355,-293,-186},{-124,-324,-240,-155,-248,-305},{-267,-238,-131,-250,-347,-252},{-248,-274,-264,-217,-140,-302},{-340,-238,-121,-321,-162,-278},{-333,-345,-324,-224,-207,-343},{-324,-243,-295,-162,-231,-309},{-174,-278,-162,-319,-338,-328},{-255,-243,-338,-231,-259,-352}},{{-300,-159,-181,-190,-288,-305},{-331,-124,-248,-276,-252,-245},{-205,-257,-129,-295,-152,-198},{-214,-162,-181,-295,-198,-164},{-188,-159,-278,-283,-302,-205},{-295,-219,-190,-188,-326,-267},{-352,-278,-178,-183,-178,-190},{-300,-124,-267,-129,-169,-271},{-340,-347,-293,-221,-243,-155},{-226,-307,-340,-150,-312,-305},{-276,-209,-248,-314,-340,-324},{-317,-129,-157,-286,-217,-140},{-257,-126,-257,-214,-188,-255},{-209,-152,-119,-319,-331,-178},{-259,-129,-167,-336,-278,-307},{-245,-262,-350,-126,-274,-248},{-288,-248,-343,-328,-276,-162},{-333,-252,-302,-169,-155,-124},{-150,-205,-347,-288,-121,-219},{-321,-331,-276,-226,-321,-150},{-221,-259,-286,-336,-138,-286},{-305,-269,-347,-288,-148,-271},{-357,-145,-140,-319,-328,-283},{-317,-238,-207,-238,-331,-264},{-295,-267,-278,-321,-340,-276},{-255,-136,-290,-293,-131,-164},{-188,-302,-193,-269,-250,-326},{-143,-202,-226,-236,-324,-262},{-271,-264,-238,-193,-140,-167},{-317,-159,-162,-355,-119,-193},{-338,-355,-126,-217,-150,-226},{-288,-162,-288,-231,-281,-255},{-152,-212,-240,-171,-269,-217},{-221,-240,-217,-252,-124,-228},{-288,-200,-178,-300,-343,-236},{-281,-317,-300,-169,-226,-126},{-250,-214,-231,-202,-188,-264},{-214,-355,-243,-343,-343,-326},{-300,-188,-121,-178,-319,-347},{-286,-155,-193,-328,-336,-238},{-309,-129,-138,-217,-305,-248},{-159,-198,-209,-190,-226,-152},{-226,-198,-145,-309,-302,-231},{-133,-274,-257,-178,-198,-355},{-257,-169,-314,-245,-157,-231},{-126,-186,-267,-350,-129,-214},{-312,-278,-276,-321,-262,-140},{-340,-176,-281,-138,-145,-331},{-269,-178,-193,-159,-259,-355},{-298,-202,-290,-281,-159,-319}},{{-331,-262,-264,-200,-293,-295},{-178,-174,-214,-231,-224,-124},{-347,-312,-298,-188,-257,-138},{-283,-300,-126,-331,-288,-231},{-200,-240,-129,-190,-288,-338},{-245,-202,-264,-176,-212,-257},{-300,-333,-271,-288,-236,-252},{-155,-124,-214,-312,-238,-336},{-312,-240,-276,-238,-286,-138},{-226,-290,-259,-143,-302,-331},{-290,-183,-136,-119,-319,-347},{-302,-129,-333,-228,-293,-140},{-290,-350,-209,-295,-271,-169},{-159,-286,-231,-159,-181,-347},{-343,-252,-243,-248,-126,-129},{-183,-286,-295,-214,-262,-333},{-243,-264,-167,-183,-167,-288},{-286,-255,-276,-317,-231,-171},{-193,-245,-190,-267,-140,-224},{-126,-169,-226,-236,-183,-269},{-157,-259,-295,-155,-288,-333},{-152,-209,-167,-319,-255,-148},{-143,-119,-343,-174,-293,-345},{-312,-121,-121,-138,-269,-298},{-209,-136,-288,-178,-245,-183},{-355,-271,-133,-226,-119,-209},{-283,-248,-228,-119,-352,-293},{-317,-176,-317,-131,-288,-264},{-181,-314,-352,-357,-195,-152},{-148,-195,-233,-338,-274,-338},{-157,-300,-340,-200,-121,-181},{-262,-238,-209,-186,-255,-281},{-121,-347,-321,-159,-183,-276},{-186,-286,-119,-298,-271,-286},{-338,-350,-262,-288,-233,-267},{-288,-352,-328,-347,-198,-202},{-174,-248,-207,-157,-217,-328},{-202,-236,-238,-195,-143,-357},{-300,-212,-226,-200,-350,-271},{-200,-219,-162,-169,-221,-205},{-164,-228,-276,-300,-319,-171},{-269,-228,-178,-269,-331,-212},{-255,-212,-324,-231,-259,-150},{-333,-324,-202,-121,-336,-155},{-231,-152,-129,-190,-326,-174},{-124,-319,-140,-193,-171,-319},{-136,-148,-188,-124,-331,-198},{-221,-324,-205,-302,-224,-145},{-181,-298,-257,-286,-221,-331},{-267,-140,-209,-202,-286,-347}}},{{{-289,-205,-336,-287,-172,-287},{-339,-259,-150,-257,-210,-238},{-218,-186,-169,-248,-341,-333},{-145,-328,-322,-207,-404,-311},{-399,-322,-298,-374,-306,-339},{-298,-347,-243,-369,-344,-339},{-289,-177,-401,-136,-183,-251},{-284,-251,-158,-265,-164,-371},{-229,-246,-311,-158,-390,-287},{-183,-300,-246,-224,-333,-191},{-363,-235,-371,-358,-399,-333},{-221,-180,-251,-227,-374,-153},{-158,-333,-322,-240,-379,-243},{-205,-322,-229,-298,-325,-235},{-382,-235,-229,-328,-251,-136},{-153,-360,-287,-339,-265,-175},{-399,-191,-268,-243,-251,-322},{-224,-339,-224,-306,-186,-284},{-213,-257,-167,-382,-246,-238},{-336,-153,-172,-210,-284,-164},{-363,-257,-322,-300,-139,-292},{-150,-254,-401,-142,-156,-136},{-300,-186,-366,-300,-396,-393},{-221,-363,-161,-216,-396,-199},{-308,-314,-401,-248,-268,-273},{-308,-153,-339,-180,-259,-145},{-224,-303,-240,-238,-393,-194},{-169,-360,-257,-366,-377,-161},{-153,-410,-352,-300,-339,-240},{-298,-289,-167,-393,-251,-227},{-213,-259,-333,-349,-358,-265},{-385,-306,-379,-287,-254,-287},{-333,-183,-328,-150,-235,-377},{-330,-177,-393,-251,-278,-254},{-390,-371,-180,-229,-333,-191},{-153,-308,-393,-139,-210,-410},{-221,-216,-319,-377,-284,-404},{-366,-270,-317,-292,-303,-257},{-385,-243,-227,-295,-377,-382},{-407,-257,-390,-393,-202,-281},{-396,-259,-139,-175,-202,-377},{-300,-210,-207,-164,-317,-136},{-191,-167,-158,-156,-248,-358},{-213,-254,-172,-407,-289,-339},{-136,-268,-401,-341,-161,-153},{-358,-227,-363,-358,-191,-369},{-186,-308,-287,-224,-341,-153},{-300,-213,-281,-308,-382,-322},{-270,-374,-136,-366,-314,-265},{-147,-268,-379,-186,-191,-213}},{{-213,-218,-292,-218,-339,-186},{-136,-300,-273,-229,-172,-257},{-227,-404,-235,-158,-344,-262},{-404,-268,-199,-235,-257,-210},{-210,-175,-276,-224,-161,-139},{-270,-289,-142,-407,-238,-169},{-161,-298,-246,-306,-153,-175},{-289,-396,-319,-210,-164,-161},{-410,-210,-153,-276,-281,-259},{-194,-410,-330,-377,-314,-298},{-393,-298,-287,-169,-385,-232},{-328,-232,-366,-265,-251,-164},{-158,-382,-216,-257,-311,-284},{-388,-167,-341,-371,-390,-330},{-199,-298,-169,-336,-175,-352},{-371,-284,-396,-382,-136,-229},{-341,-224,-229,-142,-330,-136},{-161,-240,-218,-333,-197,-287},{-333,-147,-352,-344,-156,-142},{-251,-300,-191,-388,-407,-366},{-401,-341,-197,-379,-202,-369},{-150,-308,-276,-281,-167,-156},{-167,-360,-202,-207,-303,-224},{-161,-388,-336,-303,-142,-322},{-265,-142,-393,-194,-311,-197},{-379,-276,-246,-325,-308,-216},{-355,-153,-344,-145,-257,-366},{-298,-388,-175,-401,-349,-344},{-273,-339,-339,-175,-292,-308},{-401,-177,-150,-197,-136,-268},{-254,-205,-207,-224,-308,-175},{-169,-232,-339,-287,-150,-213},{-306,-393,-298,-205,-139,-191},{-213,-218,-197,-186,-161,-246},{-246,-172,-227,-213,-207,-194},{-295,-347,-388,-156,-202,-169},{-142,-188,-319,-289,-333,-175},{-240,-153,-382,-207,-164,-344},{-205,-172,-382,-347,-314,-254},{-306,-311,-265,-298,-388,-339},{-379,-251,-161,-298,-175,-388},{-224,-164,-287,-289,-325,-188},{-257,-292,-240,-322,-238,-153},{-202,-145,-142,-371,-333,-393},{-207,-319,-259,-229,-150,-238},{-382,-202,-194,-333,-153,-278},{-213,-379,-199,-205,-205,-177},{-300,-139,-303,-298,-257,-270},{-268,-248,-221,-153,-377,-407},{-284,-358,-150,-349,-284,-153}},{{-344,-145,-172,-344,-136,-385},{-410,-273,-205,-281,-270,-306},{-257,-374,-336,-213,-369,-360},{-232,-227,-355,-158,-191,-385},{-407,-336,-333,-308,-360,-369},{-199,-341,-300,-300,-336,-311},{-401,-150,-330,-287,-317,-224},{-158,-191,-229,-213,-257,-366},{-300,-390,-246,-410,-243,-265},{-158,-169,-366,-145,-221,-300},{-270,-347,-156,-341,-175,-254},{-207,-216,-382,-147,-295,-194},{-352,-158,-404,-177,-177,-289},{-276,-300,-188,-371,-360,-369},{-248,-404,-150,-377,-136,-377},{-379,-207,-216,-317,-142,-188},{-344,-191,-404,-265,-330,-191},{-388,-235,-207,-404,-218,-382},{-270,-360,-210,-145,-199,-379},{-388,-295,-287,-284,-347,-248},{-401,-311,-358,-246,-156,-216},{-273,-317,-281,-295,-322,-224},{-136,-265,-218,-213,-306,-221},{-374,-328,-210,-349,-167,-360},{-232,-227,-366,-257,-388,-158},{-344,-330,-339,-393,-284,-161},{-191,-401,-352,-229,-349,-382},{-311,-410,-410,-167,-248,-396},{-371,-355,-339,-339,-235,-194},{-363,-202,-229,-369,-328,-366},{-308,-300,-358,-371,-396,-161},{-197,-227,-407,-153,-180,-385},{-262,-273,-284,-298,-268,-218},{-161,-390,-207,-407,-227,-147},{-289,-303,-180,-396,-210,-336},{-273,-257,-322,-281,-273,-210},{-407,-292,-248,-287,-218,-303},{-232,-240,-396,-401,-393,-347},{-360,-276,-153,-289,-172,-197},{-341,-197,-295,-145,-158,-382},{-390,-360,-374,-221,-164,-235},{-339,-156,-224,-265,-287,-276},{-404,-257,-284,-303,-404,-401},{-202,-330,-147,-287,-169,-292},{-287,-238,-303,-246,-224,-180},{-303,-158,-341,-341,-238,-319},{-371,-218,-360,-276,-248,-194},{-197,-238,-229,-355,-213,-207},{-382,-139,-404,-232,-289,-401},{-188,-268,-295,-369,-147,-317}}},{{{-126,-111,-182,-146,-86,-91},{-160,-102,-160,-149,-132,-129},{-151,-114,-186,-92,-148,-163},{-203,-111,-139,-148,-125,-229},{-196,-95,-168,-131,-229,-174},{-131,-208,-199,-105,-177,-222},{-143,-200,-109,-217,-86,-86},{-106,-151,-97,-192,-100,-86},{-216,-219,-105,-143,-123,-205},{-202,-209,-179,-94,-88,-192},{-134,-174,-199,-174,-86,-111},{-139,-228,-137,-200,-222,-100},{-79,-219,-139,-162,-79,-223},{-169,-183,-140,-172,-108,-222},{-226,-125,-179,-194,-200,-94},{-102,-86,-103,-220,-151,-77},{-136,-83,-123,-83,-211,-191},{-202,-152,-172,-126,-174,-148},{-103,-160,-83,-112,-88,-145},{-229,-120,-171,-231,-92,-102},{-183,-154,-139,-120,-112,-179},{-108,-86,-211,-171,-122,-202},{-231,-172,-182,-151,-112,-169},{-154,-128,-106,-100,-111,-199},{-119,-231,-217,-92,-214,-145},{-140,-77,-194,-132,-220,-171},{-216,-208,-206,-209,-79,-116},{-99,-228,-156,-165,-171,-174},{-168,-225,-125,-183,-125,-222},{-132,-225,-189,-189,-192,-228},{-177,-85,-151,-185,-194,-82},{-128,-188,-146,-143,-174,-148},{-89,-146,-122,-194,-208,-126},{-148,-166,-142,-120,-213,-191},{-197,-95,-126,-139,-183,-109},{-143,-146,-146,-176,-165,-134},{-228,-103,-231,-82,-159,-128},{-128,-157,-196,-132,-226,-208},{-199,-182,-149,-151,-191,-94},{-165,-157,-77,-146,-229,-117},{-139,-197,-80,-192,-216,-194},{-223,-174,-99,-174,-213,-157},{-148,-106,-211,-226,-220,-92},{-137,-95,-177,-116,-211,-172},{-228,-102,-200,-142,-82,-209},{-194,-94,-216,-88,-97,-82},{-168,-151,-168,-163,-151,-197},{-88,-134,-95,-199,-213,-134},{-208,-182,-148,-97,-112,-188},{-231,-125,-156,-165,-136,-120}},{{-123,-102,-180,-211,-106,-211},{-140,-77,-171,-88,-91,-196},{-189,-163,-226,-125,-216,-217},{-214,-157,-86,-206,-77,-192},{-189,-226,-108,-228,-203,-92},{-126,-202,-196,-122,-97,-226},{-92,-119,-162,-102,-223,-152},{-211,-102,-228,-128,-160,-189},{-209,-136,-205,-220,-137,-157},{-220,-111,-219,-191,-85,-120},{-148,-79,-226,-192,-83,-145},{-89,-95,-95,-148,-226,-77},{-194,-188,-172,-86,-137,-82},{-183,-126,-231,-176,-200,-142},{-106,-99,-226,-225,-169,-199},{-179,-123,-109,-229,-99,-177},{-126,-132,-165,-194,-86,-174},{-85,-146,-123,-220,-79,-99},{-208,-226,-95,-85,-228,-151},{-128,-86,-168,-189,-129,-88},{-146,-206,-231,-156,-192,-119},{-174,-194,-213,-132,-159,-188},{-129,-86,-188,-166,-83,-203},{-79,-208,-179,-217,-211,-180},{-202,-213,-100,-225,-199,-131},{-202,-231,-152,-213,-165,-191},{-169,-105,-196,-228,-111,-166},{-206,-168,-108,-109,-209,-200},{-140,-92,-95,-199,-197,-136},{-106,-160,-137,-109,-95,-188},{-200,-85,-83,-136,-123,-156},{-222,-157,-148,-128,-142,-126},{-142,-203,-136,-171,-229,-80},{-82,-160,-171,-99,-94,-143},{-225,-217,-172,-79,-177,-205},{-185,-165,-142,-137,-206,-162},{-106,-112,-117,-79,-169,-192},{-231,-128,-134,-136,-89,-139},{-143,-180,-202,-120,-134,-137},{-203,-183,-209,-214,-137,-189},{-129,-205,-169,-174,-134,-83},{-213,-194,-206,-103,-117,-120},{-91,-185,-95,-197,-214,-108},{-197,-185,-174,-182,-123,-95},{-136,-166,-177,-165,-102,-83},{-208,-106,-134,-117,-131,-169},{-205,-223,-205,-165,-120,-97},{-95,-143,-183,-117,-208,-82},{-92,-139,-123,-196,-208,-134},{-208,-86,-112,-223,-174,-154}},{{-152,-80,-157,-189,-186,-143},{-163,-145,-94,-228,-214,-95},{-206,-165,-88,-183,-220,-219},{-116,-112,-156,-137,-148,-171},{-116,-199,-95,-192,-179,-154},{-103,-140,-180,-231,-97,-132},{-142,-185,-108,-128,-219,-143},{-137,-213,-145,-171,-156,-152},{-165,-86,-86,-231,-79,-103},{-125,-199,-188,-88,-223,-214},{-197,-106,-123,-128,-197,-125},{-228,-163,-125,-197,-112,-209},{-189,-220,-86,-91,-142,-120},{-228,-120,-188,-83,-114,-197},{-220,-114,-174,-122,-105,-116},{-185,-111,-88,-86,-219,-197},{-112,-213,-226,-94,-219,-137},{-89,-122,-95,-106,-211,-182},{-174,-82,-163,-99,-89,-194},{-122,-226,-213,-177,-179,-100},{-223,-225,-182,-166,-203,-231},{-199,-140,-183,-183,-134,-152},{-86,-82,-111,-220,-165,-106},{-140,-177,-188,-105,-163,-180},{-111,-177,-86,-159,-229,-154},{-157,-148,-82,-122,-213,-129},{-117,-145,-85,-111,-106,-216},{-92,-151,-92,-116,-149,-216},{-160,-213,-112,-142,-112,-132},{-132,-191,-223,-177,-102,-209},{-168,-132,-159,-166,-85,-183},{-129,-208,-182,-109,-226,-226},{-91,-192,-122,-139,-88,-140},{-145,-183,-166,-216,-116,-197},{-217,-86,-120,-103,-185,-91},{-231,-169,-231,-217,-77,-152},{-136,-120,-157,-159,-125,-85},{-94,-168,-217,-168,-177,-216},{-217,-123,-185,-199,-82,-148},{-116,-148,-77,-128,-214,-209},{-217,-125,-191,-105,-132,-116},{-126,-169,-126,-211,-103,-128},{-145,-139,-82,-112,-200,-185},{-214,-83,-116,-85,-189,-134},{-229,-183,-196,-95,-99,-188},{-136,-217,-174,-116,-163,-163},{-199,-222,-119,-125,-231,-209},{-125,-200,-219,-168,-88,-185},{-111,-209,-211,-176,-163,-226},{-159,-103,-189,-132,-89,-99}}},{{{-191,-206,-237,-155,-268,-122},{-91,-178,-178,-211,-229,-175},{-200,-120,-238,-229,-248,-95},{-95,-180,-100,-131,-158,-142},{-136,-271,-147,-262,-244,-162},{-258,-95,-242,-251,-151,-180},{-155,-118,-95,-131,-195,-251},{-207,-246,-169,-189,-111,-246},{-113,-147,-153,-231,-171,-228},{-251,-167,-248,-162,-120,-231},{-269,-251,-149,-218,-102,-122},{-255,-93,-118,-229,-240,-262},{-231,-189,-109,-193,-129,-228},{-171,-167,-166,-116,-104,-146},{-175,-258,-169,-187,-140,-258},{-151,-224,-178,-173,-149,-211},{-91,-257,-178,-160,-178,-171},{-111,-269,-237,-213,-224,-249},{-167,-169,-255,-233,-136,-131},{-149,-115,-186,-136,-204,-253},{-118,-273,-115,-178,-217,-135},{-193,-240,-268,-238,-249,-244},{-98,-242,-173,-200,-107,-157},{-231,-266,-96,-91,-229,-251},{-255,-220,-255,-224,-107,-222},{-178,-118,-220,-200,-238,-164},{-167,-187,-171,-142,-237,-177},{-158,-169,-246,-162,-224,-111},{-200,-151,-107,-102,-118,-106},{-244,-218,-235,-173,-115,-173},{-240,-118,-222,-218,-111,-162},{-153,-175,-197,-266,-209,-96},{-107,-257,-116,-184,-269,-104},{-237,-136,-126,-146,-257,-122},{-149,-186,-96,-202,-268,-257},{-169,-116,-98,-164,-202,-111},{-262,-229,-138,-102,-264,-200},{-213,-120,-237,-257,-200,-116},{-273,-129,-126,-231,-136,-160},{-169,-255,-251,-166,-136,-222},{-98,-95,-217,-207,-266,-238},{-157,-226,-246,-257,-135,-246},{-184,-251,-197,-228,-98,-146},{-133,-222,-244,-100,-107,-273},{-131,-158,-177,-153,-273,-131},{-146,-213,-144,-93,-131,-248},{-149,-104,-228,-258,-171,-224},{-113,-235,-111,-224,-222,-226},{-155,-204,-198,-257,-107,-237},{-96,-171,-184,-100,-187,-91}},{{-193,-120,-204,-235,-158,-242},{-224,-142,-213,-111,-171,-138},{-93,-198,-242,-195,-160,-160},{-226,-146,-153,-264,-204,-120},{-264,-178,-160,-153,-157,-266},{-273,-167,-198,-142,-147,-149},{-177,-211,-147,-162,-218,-180},{-211,-244,-104,-246,-189,-147},{-98,-135,-142,-211,-209,-96},{-191,-240,-228,-240,-231,-118},{-175,-177,-155,-268,-209,-126},{-93,-229,-102,-204,-157,-200},{-257,-160,-207,-268,-166,-249},{-124,-115,-126,-202,-206,-124},{-127,-140,-158,-220,-228,-144},{-109,-197,-146,-258,-253,-191},{-237,-129,-202,-166,-122,-178},{-144,-115,-171,-198,-249,-126},{-235,-257,-133,-122,-177,-160},{-127,-211,-177,-95,-96,-246},{-144,-266,-217,-175,-215,-142},{-140,-147,-171,-255,-160,-264},{-162,-171,-140,-167,-189,-144},{-136,-136,-171,-91,-217,-253},{-115,-178,-237,-122,-273,-207},{-107,-131,-129,-215,-260,-182},{-146,-238,-260,-206,-240,-202},{-129,-237,-258,-242,-164,-189},{-211,-144,-149,-233,-136,-231},{-218,-95,-231,-135,-240,-226},{-255,-158,-193,-95,-213,-211},{-244,-158,-207,-228,-138,-136},{-184,-177,-240,-237,-257,-195},{-266,-122,-268,-140,-173,-155},{-244,-184,-237,-180,-269,-215},{-240,-251,-102,-198,-248,-253},{-257,-109,-138,-186,-215,-268},{-255,-115,-249,-95,-253,-157},{-189,-129,-233,-98,-175,-120},{-182,-126,-191,-149,-127,-207},{-228,-178,-118,-180,-251,-102},{-177,-207,-202,-264,-226,-158},{-138,-269,-153,-100,-264,-91},{-213,-207,-173,-158,-102,-222},{-195,-146,-109,-140,-197,-204},{-131,-255,-228,-177,-197,-164},{-240,-271,-213,-120,-135,-198},{-93,-115,-106,-197,-224,-96},{-131,-177,-213,-242,-100,-111},{-268,-258,-171,-96,-120,-273}},{{-224,-149,-93,-206,-118,-173},{-220,-173,-228,-144,-248,-255},{-135,-215,-149,-164,-177,-207},{-235,-129,-189,-166,-129,-147},{-248,-91,-111,-169,-115,-126},{-215,-240,-242,-146,-115,-91},{-157,-136,-269,-171,-215,-197},{-107,-218,-91,-220,-131,-169},{-95,-218,-255,-140,-186,-206},{-124,-118,-186,-180,-144,-155},{-209,-116,-127,-202,-111,-193},{-248,-195,-147,-193,-204,-169},{-147,-257,-95,-175,-268,-144},{-144,-195,-187,-111,-240,-268},{-175,-258,-169,-237,-169,-193},{-189,-129,-207,-104,-244,-115},{-235,-122,-218,-167,-96,-113},{-160,-197,-164,-226,-169,-215},{-273,-142,-187,-126,-100,-91},{-126,-193,-157,-149,-246,-191},{-111,-229,-260,-126,-109,-222},{-211,-153,-200,-164,-242,-180},{-129,-200,-222,-244,-113,-133},{-184,-158,-215,-237,-175,-200},{-175,-186,-253,-266,-100,-189},{-218,-136,-135,-226,-262,-251},{-187,-204,-269,-197,-215,-218},{-155,-238,-257,-271,-260,-189},{-133,-135,-237,-258,-222,-193},{-220,-233,-213,-167,-213,-149},{-160,-186,-167,-258,-246,-200},{-220,-258,-222,-226,-244,-186},{-235,-116,-273,-149,-162,-173},{-228,-238,-191,-173,-218,-100},{-228,-184,-222,-136,-255,-126},{-246,-155,-95,-222,-126,-209},{-224,-242,-164,-222,-96,-193},{-204,-198,-122,-229,-131,-228},{-98,-153,-213,-207,-151,-178},{-149,-258,-109,-120,-151,-253},{-189,-206,-253,-95,-111,-138},{-248,-248,-218,-224,-258,-178},{-184,-171,-238,-140,-160,-147},{-95,-193,-220,-218,-218,-98},{-178,-258,-135,-237,-120,-246},{-268,-173,-271,-109,-180,-158},{-235,-164,-136,-202,-113,-189},{-226,-222,-138,-191,-251,-271},{-167,-113,-195,-160,-180,-122},{-158,-157,-149,-195,-244,-198}}},{{{-292,-132,-282,-240,-154,-282},{-145,-247,-216,-247,-365,-122},{-311,-149,-196,-174,-184,-154},{-333,-164,-228,-292,-326,-233},{-272,-152,-247,-159,-309,-250},{-287,-323,-323,-247,-318,-208},{-225,-255,-279,-179,-228,-198},{-132,-355,-306,-186,-348,-316},{-162,-216,-218,-270,-122,-140},{-267,-277,-159,-132,-225,-149},{-203,-198,-238,-331,-267,-250},{-147,-196,-257,-282,-211,-316},{-157,-206,-358,-250,-287,-203},{-299,-162,-137,-135,-336,-333},{-257,-363,-294,-260,-321,-321},{-306,-220,-230,-196,-203,-326},{-235,-196,-284,-223,-233,-243},{-282,-198,-233,-220,-152,-294},{-296,-304,-132,-230,-127,-350},{-154,-203,-360,-176,-326,-140},{-181,-198,-157,-172,-318,-184},{-309,-358,-299,-331,-365,-292},{-208,-260,-363,-127,-292,-147},{-228,-240,-348,-167,-250,-122},{-323,-360,-328,-311,-240,-365},{-284,-292,-321,-245,-309,-255},{-223,-318,-289,-203,-157,-341},{-196,-341,-321,-127,-294,-333},{-301,-314,-368,-198,-243,-260},{-282,-314,-314,-294,-240,-149},{-328,-127,-196,-294,-309,-255},{-282,-343,-240,-142,-282,-260},{-294,-154,-287,-223,-194,-270},{-154,-194,-304,-142,-240,-321},{-145,-323,-125,-345,-343,-130},{-350,-270,-326,-350,-186,-289},{-301,-211,-154,-223,-247,-206},{-265,-149,-238,-240,-154,-203},{-167,-179,-294,-137,-284,-309},{-174,-272,-220,-262,-326,-345},{-252,-225,-167,-358,-208,-287},{-294,-265,-174,-238,-255,-223},{-341,-154,-353,-274,-125,-353},{-122,-355,-164,-238,-130,-252},{-167,-363,-172,-311,-164,-355},{-167,-333,-140,-181,-189,-245},{-142,-218,-122,-125,-309,-164},{-328,-125,-294,-233,-318,-174},{-243,-250,-338,-316,-167,-216},{-145,-284,-368,-147,-127,-360}},{{-345,-368,-225,-213,-169,-333},{-174,-145,-233,-181,-333,-306},{-196,-135,-176,-345,-149,-164},{-336,-331,-169,-135,-296,-137},{-257,-355,-257,-301,-314,-213},{-220,-216,-203,-284,-318,-292},{-132,-363,-184,-294,-125,-345},{-338,-338,-272,-243,-149,-206},{-181,-201,-169,-194,-152,-292},{-299,-245,-323,-282,-282,-350},{-296,-277,-252,-152,-216,-201},{-365,-257,-331,-360,-152,-172},{-252,-235,-250,-174,-189,-167},{-318,-172,-252,-338,-348,-247},{-272,-296,-164,-225,-213,-127},{-274,-257,-272,-343,-218,-314},{-184,-208,-174,-363,-140,-225},{-211,-216,-220,-208,-365,-179},{-309,-140,-189,-208,-140,-267},{-353,-250,-125,-194,-306,-127},{-206,-216,-243,-265,-149,-289},{-169,-338,-174,-220,-149,-198},{-225,-247,-289,-179,-262,-314},{-272,-184,-159,-218,-191,-132},{-240,-358,-348,-252,-132,-201},{-206,-262,-287,-341,-167,-159},{-287,-228,-299,-255,-358,-189},{-152,-301,-289,-252,-189,-181},{-162,-159,-360,-326,-220,-191},{-355,-184,-201,-162,-203,-294},{-321,-270,-172,-270,-309,-157},{-218,-167,-260,-162,-353,-140},{-350,-196,-223,-328,-137,-167},{-122,-213,-164,-198,-309,-333},{-218,-238,-208,-304,-196,-223},{-220,-274,-201,-130,-284,-245},{-363,-164,-333,-277,-314,-142},{-274,-140,-238,-328,-184,-365},{-274,-292,-360,-233,-172,-140},{-206,-338,-363,-135,-314,-240},{-208,-218,-270,-328,-267,-201},{-338,-149,-331,-309,-260,-343},{-294,-265,-363,-211,-331,-314},{-191,-333,-284,-152,-355,-243},{-255,-181,-333,-338,-235,-326},{-172,-265,-194,-257,-331,-157},{-345,-328,-194,-220,-243,-211},{-164,-225,-203,-223,-345,-299},{-137,-243,-294,-142,-189,-174},{-294,-355,-225,-201,-172,-140}},{{-238,-311,-216,-309,-194,-135},{-243,-304,-299,-279,-147,-318},{-225,-157,-277,-272,-208,-125},{-189,-277,-201,-343,-172,-184},{-292,-292,-331,-341,-147,-289},{-292,-314,-184,-247,-167,-318},{-208,-213,-287,-167,-201,-194},{-299,-238,-159,-348,-194,-326},{-355,-292,-216,-176,-306,-365},{-194,-311,-127,-309,-270,-235},{-365,-345,-262,-279,-145,-260},{-211,-140,-250,-211,-211,-272},{-245,-279,-125,-145,-247,-179},{-196,-196,-122,-309,-314,-169},{-172,-333,-252,-176,-301,-223},{-331,-225,-343,-135,-296,-365},{-137,-321,-350,-294,-235,-176},{-135,-252,-304,-345,-365,-233},{-292,-191,-135,-267,-257,-326},{-127,-333,-167,-299,-154,-132},{-363,-132,-149,-164,-277,-157},{-220,-287,-311,-225,-230,-125},{-363,-311,-189,-198,-309,-274},{-245,-198,-247,-348,-137,-326},{-203,-272,-203,-211,-326,-294},{-145,-169,-208,-282,-208,-201},{-323,-311,-191,-368,-255,-167},{-181,-208,-191,-181,-345,-292},{-152,-186,-250,-292,-147,-140},{-169,-257,-252,-238,-235,-159},{-198,-132,-233,-179,-179,-130},{-174,-350,-296,-157,-252,-314},{-260,-252,-323,-299,-167,-343},{-287,-265,-213,-333,-203,-311},{-172,-272,-235,-257,-350,-360},{-274,-368,-142,-323,-137,-179},{-323,-198,-265,-279,-292,-257},{-304,-321,-176,-174,-277,-316},{-152,-184,-343,-262,-154,-277},{-230,-284,-247,-270,-125,-348},{-321,-323,-292,-350,-292,-368},{-137,-125,-218,-238,-189,-279},{-353,-350,-218,-318,-338,-365},{-318,-252,-172,-304,-267,-162},{-149,-338,-355,-247,-333,-208},{-172,-130,-194,-225,-277,-198},{-323,-164,-287,-240,-341,-186},{-311,-162,-220,-292,-225,-157},{-301,-250,-145,-206,-122,-262},{-203,-132,-238,-282,-292,-172}}},{{{-203,-335,-238,-249,-159,-268},{-286,-146,-328,-280,-236,-261},{-215,-284,-261,-314,-282,-203},{-238,-240,-319,-219,-178,-330},{-291,-340,-286,-340,-261,-263},{-282,-293,-346,-203,-314,-194},{-243,-243,-120,-231,-125,-178},{-146,-208,-340,-310,-296,-340},{-226,-146,-129,-208,-173,-337},{-289,-233,-134,-233,-261,-196},{-252,-132,-277,-132,-270,-275},{-316,-238,-226,-141,-310,-180},{-303,-233,-342,-176,-233,-199},{-127,-282,-300,-213,-280,-155},{-247,-280,-249,-178,-268,-284},{-240,-178,-293,-210,-307,-136},{-298,-275,-249,-201,-333,-189},{-291,-346,-296,-155,-296,-346},{-125,-148,-346,-139,-176,-116},{-316,-159,-116,-261,-120,-342},{-189,-346,-208,-210,-231,-155},{-328,-249,-120,-208,-171,-247},{-252,-187,-256,-208,-323,-150},{-116,-224,-187,-180,-286,-134},{-139,-208,-303,-238,-155,-252},{-219,-192,-152,-182,-300,-263},{-261,-259,-215,-328,-199,-293},{-268,-328,-342,-176,-224,-337},{-136,-266,-314,-249,-289,-157},{-150,-150,-139,-180,-148,-215},{-277,-293,-125,-125,-199,-187},{-342,-206,-171,-328,-224,-116},{-275,-206,-282,-233,-120,-148},{-166,-238,-187,-344,-259,-162},{-284,-340,-178,-314,-176,-282},{-326,-215,-222,-344,-219,-219},{-305,-259,-141,-270,-129,-187},{-233,-323,-180,-270,-247,-346},{-148,-141,-146,-303,-132,-247},{-166,-180,-312,-254,-333,-340},{-280,-139,-300,-148,-203,-182},{-210,-337,-340,-176,-266,-169},{-148,-252,-201,-139,-314,-146},{-213,-169,-187,-229,-312,-335},{-229,-155,-215,-273,-166,-307},{-282,-146,-252,-213,-182,-238},{-268,-143,-189,-259,-254,-157},{-187,-178,-127,-256,-224,-201},{-171,-185,-266,-171,-296,-319},{-321,-275,-122,-213,-166,-150}},{{-127,-291,-319,-316,-280,-330},{-238,-268,-333,-194,-282,-143},{-333,-323,-206,-284,-316,-328},{-196,-215,-152,-222,-340,-337},{-261,-171,-192,-307,-282,-166},{-337,-282,-155,-314,-259,-159},{-256,-210,-199,-263,-132,-136},{-275,-122,-254,-141,-210,-249},{-330,-134,-178,-316,-206,-328},{-203,-236,-222,-300,-118,-319},{-277,-259,-127,-282,-236,-326},{-192,-208,-305,-173,-310,-330},{-226,-192,-118,-236,-139,-328},{-171,-280,-247,-217,-305,-231},{-312,-162,-296,-132,-122,-148},{-180,-217,-323,-118,-148,-252},{-263,-275,-337,-231,-247,-171},{-333,-199,-196,-333,-208,-217},{-127,-217,-337,-224,-310,-185},{-344,-275,-229,-182,-247,-222},{-173,-116,-127,-303,-199,-132},{-199,-268,-346,-326,-134,-148},{-171,-157,-305,-169,-229,-289},{-176,-252,-199,-298,-254,-270},{-256,-247,-187,-284,-116,-307},{-187,-249,-120,-180,-249,-275},{-342,-261,-280,-176,-155,-141},{-284,-236,-210,-196,-217,-249},{-344,-219,-219,-208,-189,-296},{-185,-185,-203,-261,-213,-249},{-134,-342,-229,-342,-330,-344},{-122,-305,-155,-296,-293,-321},{-233,-159,-240,-261,-247,-222},{-305,-164,-263,-178,-196,-300},{-157,-203,-298,-125,-240,-185},{-256,-164,-192,-136,-136,-263},{-296,-129,-120,-312,-289,-194},{-323,-307,-236,-316,-280,-298},{-245,-293,-328,-240,-224,-289},{-275,-169,-215,-125,-139,-155},{-252,-224,-122,-196,-192,-187},{-182,-337,-208,-326,-340,-118},{-328,-233,-333,-346,-284,-289},{-328,-252,-141,-182,-132,-289},{-337,-240,-203,-189,-233,-254},{-206,-256,-171,-173,-146,-298},{-189,-328,-136,-319,-291,-256},{-240,-275,-249,-275,-196,-185},{-330,-307,-259,-213,-256,-344},{-259,-268,-231,-293,-178,-335}},{{-169,-344,-127,-282,-150,-182},{-215,-282,-233,-321,-254,-122},{-307,-189,-178,-280,-129,-152},{-125,-166,-337,-328,-122,-252},{-238,-210,-127,-129,-312,-259},{-139,-157,-155,-169,-312,-319},{-187,-157,-146,-233,-178,-166},{-185,-139,-169,-231,-229,-236},{-245,-222,-139,-219,-316,-261},{-125,-284,-249,-316,-240,-259},{-275,-333,-176,-152,-238,-252},{-176,-293,-201,-321,-210,-162},{-189,-210,-213,-323,-166,-194},{-289,-169,-157,-127,-298,-270},{-256,-305,-127,-310,-199,-196},{-224,-176,-243,-226,-240,-182},{-171,-346,-249,-162,-219,-155},{-229,-208,-319,-159,-249,-129},{-298,-240,-298,-217,-148,-164},{-254,-194,-236,-199,-224,-303},{-293,-303,-176,-240,-340,-116},{-226,-166,-249,-178,-296,-120},{-328,-162,-178,-298,-132,-194},{-275,-182,-141,-289,-296,-171},{-273,-340,-298,-284,-208,-307},{-323,-169,-143,-118,-180,-337},{-226,-277,-127,-273,-139,-254},{-116,-333,-233,-270,-208,-159},{-217,-300,-259,-217,-185,-238},{-129,-159,-337,-185,-229,-194},{-280,-323,-176,-303,-152,-215},{-185,-222,-139,-266,-254,-326},{-275,-330,-219,-116,-185,-300},{-143,-282,-180,-155,-330,-314},{-229,-335,-215,-187,-176,-236},{-150,-185,-189,-134,-245,-178},{-120,-201,-116,-219,-333,-125},{-261,-176,-256,-303,-176,-215},{-164,-229,-284,-263,-143,-291},{-321,-187,-203,-136,-187,-249},{-335,-203,-238,-280,-231,-307},{-284,-178,-203,-192,-240,-328},{-277,-243,-252,-116,-298,-238},{-150,-136,-116,-256,-252,-270},{-263,-159,-206,-261,-296,-203},{-296,-275,-231,-134,-275,-132},{-305,-208,-254,-134,-199,-229},{-171,-310,-291,-247,-333,-303},{-129,-159,-226,-213,-326,-307},{-185,-293,-171,-136,-270,-342}}},{{{-241,-179,-165,-259,-259,-397},{-362,-203,-426,-409,-276,-147},{-441,-379,-362,-176,-417,-423},{-179,-326,-262,-318,-323,-168},{-438,-159,-332,-235,-356,-429},{-415,-250,-270,-182,-273,-188},{-403,-229,-226,-185,-385,-365},{-226,-218,-276,-147,-185,-200},{-244,-323,-215,-309,-417,-173},{-279,-176,-385,-417,-329,-426},{-359,-379,-435,-173,-197,-441},{-282,-232,-359,-238,-273,-182},{-385,-335,-247,-156,-250,-179},{-294,-191,-362,-203,-285,-332},{-220,-338,-406,-282,-265,-162},{-156,-197,-412,-323,-432,-426},{-218,-288,-409,-323,-288,-423},{-150,-394,-229,-276,-335,-209},{-238,-409,-218,-432,-344,-218},{-259,-291,-273,-212,-335,-209},{-159,-273,-244,-438,-391,-344},{-241,-347,-276,-297,-291,-241},{-220,-179,-359,-368,-417,-353},{-171,-415,-291,-309,-218,-388},{-247,-226,-220,-368,-415,-179},{-382,-306,-432,-432,-350,-268},{-168,-223,-429,-273,-368,-435},{-159,-176,-370,-185,-256,-156},{-432,-276,-420,-259,-412,-409},{-241,-435,-218,-376,-288,-294},{-441,-253,-368,-244,-220,-417},{-397,-394,-362,-156,-312,-200},{-173,-171,-276,-326,-188,-212},{-182,-171,-365,-209,-147,-294},{-265,-188,-209,-365,-168,-229},{-370,-168,-338,-382,-350,-309},{-400,-162,-359,-315,-397,-429},{-291,-203,-162,-206,-156,-435},{-432,-241,-247,-247,-153,-294},{-385,-382,-153,-429,-332,-162},{-206,-373,-373,-370,-365,-215},{-420,-417,-312,-156,-382,-159},{-262,-262,-168,-156,-420,-226},{-294,-223,-353,-388,-382,-365},{-347,-171,-347,-212,-438,-403},{-270,-173,-412,-315,-156,-391},{-397,-391,-435,-394,-362,-150},{-341,-171,-423,-147,-291,-312},{-365,-173,-306,-397,-312,-318},{-209,-279,-156,-150,-147,-359}},{{-185,-315,-153,-273,-335,-438},{-326,-350,-353,-332,-426,-391},{-191,-320,-241,-400,-165,-420},{-394,-309,-212,-409,-294,-232},{-223,-391,-179,-315,-312,-373},{-282,-285,-365,-300,-394,-417},{-438,-291,-147,-165,-250,-415},{-191,-226,-203,-232,-320,-415},{-300,-273,-332,-385,-288,-279},{-385,-329,-368,-397,-435,-417},{-326,-312,-335,-373,-291,-265},{-362,-150,-379,-176,-147,-241},{-359,-200,-309,-373,-288,-279},{-153,-341,-297,-165,-244,-356},{-165,-285,-385,-320,-400,-238},{-426,-365,-256,-270,-238,-176},{-238,-247,-288,-250,-423,-188},{-270,-194,-415,-262,-173,-429},{-368,-185,-206,-359,-315,-344},{-179,-350,-288,-415,-291,-323},{-171,-194,-435,-379,-197,-438},{-435,-320,-232,-162,-203,-232},{-403,-256,-332,-291,-306,-417},{-294,-297,-423,-400,-350,-432},{-409,-241,-171,-294,-312,-315},{-220,-303,-388,-394,-323,-320},{-194,-379,-297,-353,-329,-344},{-268,-341,-220,-385,-420,-262},{-370,-209,-350,-203,-262,-182},{-362,-244,-288,-329,-397,-273},{-376,-326,-388,-247,-206,-285},{-162,-350,-179,-206,-320,-220},{-253,-332,-150,-273,-329,-244},{-382,-229,-435,-368,-312,-300},{-400,-303,-309,-188,-194,-200},{-315,-203,-362,-238,-312,-282},{-429,-435,-241,-303,-173,-191},{-326,-256,-288,-379,-429,-265},{-171,-291,-241,-423,-291,-209},{-391,-206,-285,-223,-294,-235},{-229,-203,-220,-370,-432,-165},{-320,-315,-168,-212,-329,-385},{-391,-350,-250,-197,-300,-159},{-309,-300,-435,-220,-362,-209},{-376,-241,-265,-368,-203,-350},{-200,-226,-347,-153,-403,-397},{-197,-420,-309,-394,-276,-312},{-194,-353,-409,-256,-220,-168},{-229,-285,-276,-432,-409,-412},{-159,-294,-409,-150,-341,-147}},{{-420,-279,-229,-229,-332,-409},{-323,-409,-150,-265,-365,-203},{-212,-300,-182,-165,-200,-270},{-344,-382,-273,-391,-315,-359},{-150,-385,-332,-441,-220,-276},{-391,-309,-197,-338,-297,-256},{-417,-156,-359,-235,-150,-300},{-400,-165,-229,-397,-288,-294},{-435,-270,-309,-382,-303,-435},{-403,-344,-200,-312,-285,-329},{-244,-153,-420,-415,-241,-182},{-432,-382,-429,-315,-206,-297},{-226,-320,-150,-194,-326,-215},{-332,-200,-323,-253,-382,-394},{-153,-441,-288,-288,-162,-432},{-182,-259,-165,-171,-147,-232},{-259,-429,-238,-335,-273,-259},{-235,-409,-350,-235,-391,-391},{-153,-409,-373,-229,-400,-312},{-309,-385,-288,-332,-323,-265},{-288,-220,-188,-285,-315,-212},{-435,-212,-412,-388,-226,-397},{-215,-423,-179,-253,-279,-165},{-297,-426,-420,-438,-338,-279},{-173,-265,-223,-400,-250,-353},{-420,-197,-417,-171,-220,-197},{-159,-235,-318,-162,-347,-220},{-353,-353,-171,-385,-171,-370},{-303,-188,-397,-300,-441,-194},{-215,-247,-370,-370,-297,-318},{-423,-350,-435,-370,-194,-262},{-156,-344,-150,-250,-262,-203},{-370,-241,-250,-188,-268,-188},{-182,-206,-291,-335,-373,-365},{-420,-191,-203,-329,-359,-285},{-182,-326,-435,-441,-338,-253},{-370,-356,-365,-326,-194,-288},{-385,-173,-194,-400,-385,-223},{-247,-173,-432,-429,-153,-356},{-397,-259,-150,-420,-409,-279},{-268,-297,-194,-379,-220,-429},{-403,-226,-335,-329,-179,-229},{-379,-441,-435,-182,-206,-176},{-182,-262,-276,-209,-268,-162},{-406,-394,-165,-362,-320,-294},{-291,-297,-147,-171,-341,-150},{-320,-256,-388,-368,-306,-253},{-370,-276,-206,-265,-394,-394},{-185,-223,-376,-241,-288,-223},{-162,-318,-206,-165,-270,-218}}}}; // 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]={6,3,2,7,3,3,6,4,2,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,9,5,3,8,5,3,8,4,3,8,4,3,8,4,3,9,5,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3,7,4,3}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5},{6,7,8},{9,10},{11,12,13,14,15,16,17},{18,19,20},{21,22,23},{24,25,26,27,28,29},{30,31,32,33},{34,35},{36,37,38,39,40,41,42},{43,44,45,46},{47,48,49},{50,51,52,53,54,55,56},{57,58,59,60},{61,62,63},{64,65,66,67,68,69,70},{71,72,73,74},{75,76,77},{78,79,80,81,82,83,84,85},{86,87,88,89},{90,91,92},{93,94,95,96,97,98,99,100},{101,102,103,104},{105,106,107},{108,109,110,111,112,113,114,115},{116,117,118,119},{120,121,122},{123,124,125,126,127,128,129,130},{131,132,133,134},{135,136,137},{138,139,140,141,142,143,144,145},{146,147,148,149},{150,151,152},{153,154,155,156,157,158,159,160},{161,162,163,164},{165,166,167},{168,169,170,171,172,173,174,175,176},{177,178,179,180,181},{182,183,184},{185,186,187,188,189,190,191,192},{193,194,195,196,197},{198,199,200},{201,202,203,204,205,206,207,208},{209,210,211,212},{213,214,215},{216,217,218,219,220,221,222,223},{224,225,226,227},{228,229,230},{231,232,233,234,235,236,237,238},{239,240,241,242},{243,244,245},{246,247,248,249,250,251,252,253,254},{255,256,257,258,259},{260,261,262},{263,264,265,266,267,268,269,270},{271,272,273,274},{275,276,277},{278,279,280,281,282,283,284,285},{286,287,288,289},{290,291,292},{293,294,295,296,297,298,299,300},{301,302,303,304},{305,306,307},{308,309,310,311,312,313,314},{315,316,317,318},{319,320,321},{322,323,324,325,326,327,328},{329,330,331,332},{333,334,335},{336,337,338,339,340,341,342},{343,344,345,346},{347,348,349}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,1,5,9,2,8,0,2,4,6,8,10,12,2,6,10,0,6,12,1,3,5,7,9,11,0,4,8,12,1,7,1,3,5,7,9,11,13,0,4,8,12,0,6,12,2,4,6,8,10,12,14,2,6,10,14,2,8,14,2,4,6,8,10,12,14,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,0,2,4,6,8,10,12,14,0,4,8,12,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,1,5,9,13,0,6,12,1,3,5,7,9,11,13,15,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,16,0,4,8,12,16,1,7,13,2,4,6,8,10,12,14,16,0,4,8,12,16,0,6,12,1,3,5,7,9,11,13,15,1,5,9,13,0,6,12,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,16,0,4,8,12,16,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,0,4,8,12,2,8,14,1,3,5,7,9,11,13,2,6,10,14,1,7,13,2,4,6,8,10,12,14,1,5,9,13,2,8,14,2,4,6,8,10,12,14,2,6,10,14,0,6,12}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,6,10,14,7,13,5,7,9,11,13,15,17,7,11,15,5,11,17,6,8,10,12,14,16,5,9,13,17,6,12,4,6,8,10,12,14,16,3,7,11,15,3,9,15,5,7,9,11,13,15,17,5,9,13,17,5,11,17,5,7,9,11,13,15,17,5,9,13,17,5,11,17,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,1,3,5,7,9,11,13,15,17,1,5,9,13,17,2,8,14,3,5,7,9,11,13,15,17,1,5,9,13,17,1,7,13,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,3,9,15,1,3,5,7,9,11,13,15,17,1,5,9,13,17,1,7,13,2,4,6,8,10,12,14,16,4,8,12,16,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,2,4,6,8,10,12,14,16,2,6,10,14,4,10,16,4,6,8,10,12,14,16,5,9,13,17,4,10,16,5,7,9,11,13,15,17,4,8,12,16,5,11,17,5,7,9,11,13,15,17,5,9,13,17,3,9,15}; // set of end times of each shipment 
