int Dev = 50;// Deviation
extern const int CNN = 2;// 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 = 344;//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]={{{{10438,0,0,0,0,0},{10750,0,0,0,0,0},{11136,0,0,0,0,0},{10665,0,0,0,0,0},{11665,0,0,0,0,0},{10598,0,0,0,0,0},{11604,0,0,0,0,0},{11332,0,0,0,0,0},{10947,0,0,0,0,0},{10427,0,0,0,0,0},{10920,0,0,0,0,0},{11015,0,0,0,0,0},{11430,0,0,0,0,0},{11133,0,0,0,0,0},{9861,0,0,0,0,0},{11014,0,0,0,0,0},{11239,0,0,0,0,0},{11866,0,0,0,0,0},{11717,0,0,0,0,0},{10022,0,0,0,0,0},{11568,0,0,0,0,0},{11223,0,0,0,0,0},{11047,0,0,0,0,0},{10857,0,0,0,0,0},{11615,0,0,0,0,0},{11247,0,0,0,0,0},{10668,0,0,0,0,0},{10841,0,0,0,0,0},{10429,0,0,0,0,0},{9773,0,0,0,0,0},{11529,0,0,0,0,0},{11196,0,0,0,0,0},{10836,0,0,0,0,0},{10572,0,0,0,0,0},{10870,0,0,0,0,0},{10816,0,0,0,0,0},{11074,0,0,0,0,0},{10544,0,0,0,0,0},{11049,0,0,0,0,0},{10368,0,0,0,0,0},{11477,0,0,0,0,0},{11290,0,0,0,0,0},{11271,0,0,0,0,0},{10707,0,0,0,0,0},{10832,0,0,0,0,0},{11287,0,0,0,0,0},{11114,0,0,0,0,0},{11705,0,0,0,0,0},{11614,0,0,0,0,0},{10997,0,0,0,0,0}},{{11194,0,0,0,0,0},{11351,0,0,0,0,0},{11808,0,0,0,0,0},{11330,0,0,0,0,0},{10162,0,0,0,0,0},{11347,0,0,0,0,0},{10131,0,0,0,0,0},{11097,0,0,0,0,0},{11914,0,0,0,0,0},{11082,0,0,0,0,0},{11304,0,0,0,0,0},{9863,0,0,0,0,0},{10393,0,0,0,0,0},{10879,0,0,0,0,0},{10589,0,0,0,0,0},{10477,0,0,0,0,0},{11030,0,0,0,0,0},{11048,0,0,0,0,0},{11378,0,0,0,0,0},{10652,0,0,0,0,0},{10135,0,0,0,0,0},{11145,0,0,0,0,0},{11044,0,0,0,0,0},{11472,0,0,0,0,0},{10905,0,0,0,0,0},{11201,0,0,0,0,0},{10461,0,0,0,0,0},{11234,0,0,0,0,0},{10927,0,0,0,0,0},{10793,0,0,0,0,0},{11973,0,0,0,0,0},{10788,0,0,0,0,0},{11181,0,0,0,0,0},{10243,0,0,0,0,0},{10873,0,0,0,0,0},{10622,0,0,0,0,0},{10401,0,0,0,0,0},{10254,0,0,0,0,0},{11271,0,0,0,0,0},{11052,0,0,0,0,0},{10869,0,0,0,0,0},{11103,0,0,0,0,0},{11201,0,0,0,0,0},{11160,0,0,0,0,0},{10653,0,0,0,0,0},{11721,0,0,0,0,0},{12048,0,0,0,0,0},{12116,0,0,0,0,0},{11093,0,0,0,0,0},{11015,0,0,0,0,0}},{{10409,0,0,0,0,0},{10911,0,0,0,0,0},{12041,0,0,0,0,0},{11818,0,0,0,0,0},{10233,0,0,0,0,0},{11544,0,0,0,0,0},{11508,0,0,0,0,0},{11083,0,0,0,0,0},{11483,0,0,0,0,0},{10880,0,0,0,0,0},{11182,0,0,0,0,0},{11309,0,0,0,0,0},{11539,0,0,0,0,0},{11509,0,0,0,0,0},{11306,0,0,0,0,0},{11515,0,0,0,0,0},{12003,0,0,0,0,0},{11134,0,0,0,0,0},{10953,0,0,0,0,0},{11435,0,0,0,0,0},{10481,0,0,0,0,0},{11101,0,0,0,0,0},{10873,0,0,0,0,0},{10234,0,0,0,0,0},{12094,0,0,0,0,0},{10874,0,0,0,0,0},{11087,0,0,0,0,0},{10292,0,0,0,0,0},{10769,0,0,0,0,0},{10895,0,0,0,0,0},{10888,0,0,0,0,0},{10585,0,0,0,0,0},{11807,0,0,0,0,0},{11370,0,0,0,0,0},{10928,0,0,0,0,0},{10760,0,0,0,0,0},{11089,0,0,0,0,0},{10634,0,0,0,0,0},{11058,0,0,0,0,0},{10067,0,0,0,0,0},{11106,0,0,0,0,0},{11211,0,0,0,0,0},{10837,0,0,0,0,0},{11169,0,0,0,0,0},{10929,0,0,0,0,0},{11438,0,0,0,0,0},{11195,0,0,0,0,0},{11595,0,0,0,0,0},{11797,0,0,0,0,0},{11204,0,0,0,0,0}}},{{{-318,-199,-202,-244,-143,-323},{-289,-155,-298,-305,-300,-166},{-137,-262,-181,-123,-318,-233},{-155,-222,-206,-220,-188,-269},{-186,-168,-222,-211,-242,-253},{-157,-305,-202,-112,-181,-302},{-114,-293,-119,-246,-121,-253},{-260,-177,-242,-293,-190,-336},{-130,-264,-137,-157,-202,-202},{-309,-141,-134,-305,-300,-289},{-179,-336,-289,-289,-193,-282},{-199,-137,-298,-114,-215,-251},{-206,-271,-253,-305,-197,-112},{-296,-240,-235,-152,-202,-242},{-119,-249,-161,-264,-128,-262},{-318,-148,-141,-287,-206,-291},{-231,-269,-320,-314,-244,-119},{-334,-307,-220,-329,-204,-291},{-334,-253,-269,-260,-204,-202},{-273,-309,-204,-204,-316,-137},{-220,-302,-307,-280,-264,-226},{-150,-186,-170,-206,-289,-148},{-231,-195,-287,-188,-231,-199},{-193,-300,-244,-307,-336,-291},{-264,-226,-159,-168,-161,-264},{-197,-119,-246,-123,-188,-116},{-237,-307,-244,-179,-264,-195},{-186,-116,-164,-137,-336,-273},{-123,-199,-255,-296,-175,-128},{-244,-307,-251,-253,-128,-199},{-130,-150,-314,-152,-139,-267},{-161,-280,-128,-224,-267,-269},{-271,-291,-177,-240,-305,-130},{-143,-300,-166,-116,-199,-168},{-137,-276,-204,-161,-249,-179},{-255,-311,-197,-332,-305,-186},{-282,-139,-289,-307,-119,-280},{-112,-161,-298,-159,-175,-269},{-195,-242,-251,-121,-242,-224},{-336,-325,-289,-278,-220,-128},{-217,-237,-121,-305,-305,-175},{-300,-190,-237,-240,-300,-159},{-159,-159,-143,-323,-121,-316},{-220,-177,-291,-314,-298,-164},{-148,-139,-264,-336,-141,-314},{-327,-258,-246,-264,-231,-334},{-228,-302,-213,-320,-233,-240},{-282,-159,-114,-132,-213,-244},{-255,-220,-260,-271,-112,-215},{-134,-318,-134,-146,-271,-132}},{{-287,-148,-152,-336,-150,-246},{-323,-222,-300,-150,-141,-327},{-237,-320,-318,-329,-298,-197},{-329,-114,-293,-193,-305,-211},{-300,-139,-121,-314,-152,-246},{-231,-195,-184,-141,-251,-215},{-114,-320,-195,-134,-327,-130},{-336,-193,-307,-159,-137,-327},{-311,-246,-332,-235,-166,-264},{-307,-125,-233,-220,-289,-334},{-197,-202,-267,-172,-231,-123},{-137,-121,-220,-242,-204,-123},{-184,-291,-139,-244,-323,-193},{-334,-323,-329,-264,-231,-237},{-282,-181,-121,-291,-159,-269},{-206,-150,-206,-244,-128,-244},{-141,-177,-123,-139,-302,-284},{-329,-220,-307,-143,-141,-287},{-264,-273,-139,-114,-244,-307},{-264,-114,-190,-152,-114,-244},{-284,-199,-161,-188,-329,-157},{-293,-172,-305,-224,-222,-329},{-284,-123,-197,-168,-311,-121},{-255,-293,-211,-197,-168,-249},{-309,-175,-320,-329,-222,-211},{-325,-202,-179,-199,-284,-141},{-224,-125,-168,-199,-190,-242},{-298,-184,-186,-240,-206,-316},{-172,-159,-260,-327,-246,-228},{-217,-150,-217,-204,-269,-251},{-231,-282,-267,-318,-309,-134},{-161,-161,-220,-195,-215,-282},{-334,-255,-264,-327,-123,-280},{-139,-267,-211,-208,-289,-121},{-262,-175,-222,-139,-273,-237},{-282,-112,-314,-170,-228,-217},{-271,-332,-152,-116,-116,-302},{-329,-282,-307,-244,-255,-184},{-318,-251,-179,-284,-302,-258},{-137,-242,-130,-159,-186,-237},{-311,-161,-186,-186,-146,-258},{-157,-197,-325,-244,-255,-170},{-159,-280,-271,-289,-336,-271},{-284,-251,-251,-143,-224,-300},{-166,-148,-282,-112,-152,-298},{-240,-170,-121,-161,-143,-309},{-327,-199,-123,-213,-311,-188},{-114,-327,-157,-202,-311,-244},{-224,-282,-208,-186,-318,-139},{-282,-298,-228,-146,-284,-244}},{{-119,-224,-184,-253,-190,-276},{-293,-128,-271,-284,-309,-204},{-152,-217,-251,-137,-305,-132},{-222,-224,-323,-141,-258,-260},{-146,-141,-264,-260,-128,-323},{-334,-282,-316,-302,-220,-287},{-220,-211,-336,-206,-258,-121},{-150,-121,-300,-199,-280,-237},{-244,-273,-134,-148,-311,-220},{-237,-121,-260,-264,-329,-148},{-202,-323,-195,-128,-112,-289},{-186,-262,-258,-276,-309,-336},{-155,-262,-307,-264,-114,-280},{-204,-155,-287,-228,-224,-150},{-251,-206,-276,-264,-318,-202},{-300,-244,-316,-231,-296,-202},{-211,-298,-217,-271,-217,-116},{-260,-186,-186,-300,-323,-307},{-255,-249,-244,-309,-202,-139},{-316,-318,-220,-302,-309,-204},{-141,-166,-141,-249,-150,-215},{-240,-262,-146,-226,-146,-291},{-152,-119,-195,-320,-233,-318},{-150,-237,-121,-150,-175,-329},{-233,-291,-264,-332,-282,-217},{-143,-148,-336,-179,-143,-121},{-152,-305,-168,-197,-199,-170},{-278,-242,-197,-161,-119,-112},{-195,-271,-130,-184,-217,-208},{-166,-231,-172,-282,-125,-314},{-188,-121,-309,-170,-123,-184},{-253,-208,-164,-332,-269,-287},{-237,-325,-197,-222,-280,-273},{-302,-228,-112,-307,-181,-164},{-123,-293,-211,-116,-164,-260},{-296,-235,-217,-213,-215,-251},{-175,-143,-193,-155,-231,-291},{-170,-190,-325,-143,-150,-188},{-177,-260,-204,-309,-134,-253},{-155,-316,-159,-184,-137,-253},{-152,-170,-134,-307,-233,-186},{-202,-220,-215,-262,-278,-181},{-128,-211,-130,-251,-175,-224},{-242,-208,-190,-161,-311,-112},{-137,-231,-323,-278,-318,-157},{-231,-228,-336,-224,-193,-267},{-157,-188,-311,-177,-251,-184},{-164,-224,-298,-134,-329,-204},{-242,-177,-287,-152,-170,-195},{-329,-278,-302,-166,-329,-293}}},{{{-250,-245,-221,-131,-264,-136},{-212,-183,-290,-217,-207,-326},{-243,-124,-288,-124,-152,-328},{-264,-355,-300,-252,-264,-119},{-283,-345,-345,-207,-309,-271},{-300,-314,-214,-214,-148,-305},{-350,-195,-212,-209,-183,-200},{-321,-155,-121,-195,-236,-357},{-126,-245,-333,-198,-245,-309},{-307,-200,-124,-321,-293,-188},{-305,-195,-233,-314,-236,-314},{-305,-305,-262,-257,-340,-176},{-319,-302,-326,-312,-319,-171},{-238,-248,-193,-326,-231,-193},{-174,-152,-312,-174,-183,-352},{-298,-345,-148,-317,-333,-314},{-262,-245,-293,-267,-231,-271},{-264,-119,-145,-238,-293,-345},{-295,-319,-224,-338,-319,-207},{-150,-231,-145,-190,-240,-209},{-255,-331,-336,-195,-333,-295},{-314,-352,-343,-164,-157,-252},{-226,-286,-331,-133,-205,-221},{-238,-290,-138,-328,-219,-157},{-176,-162,-257,-305,-228,-307},{-317,-319,-190,-307,-262,-181},{-267,-336,-124,-188,-190,-121},{-231,-317,-286,-238,-357,-209},{-350,-209,-343,-257,-352,-155},{-152,-198,-183,-214,-164,-219},{-357,-283,-248,-207,-240,-319},{-255,-250,-209,-150,-345,-238},{-164,-357,-145,-357,-302,-281},{-181,-221,-321,-176,-281,-150},{-314,-155,-290,-148,-233,-119},{-178,-224,-243,-195,-307,-343},{-274,-129,-138,-188,-200,-167},{-276,-250,-355,-209,-219,-171},{-255,-340,-178,-212,-321,-259},{-178,-138,-200,-190,-333,-262},{-252,-205,-171,-347,-155,-312},{-207,-333,-350,-290,-317,-236},{-200,-345,-264,-155,-278,-171},{-126,-136,-300,-321,-138,-155},{-152,-271,-267,-340,-119,-307},{-314,-205,-171,-269,-357,-169},{-186,-186,-140,-300,-169,-357},{-338,-302,-148,-321,-283,-259},{-207,-300,-309,-126,-198,-343},{-343,-319,-176,-205,-228,-295}},{{-150,-236,-264,-283,-326,-152},{-324,-236,-162,-345,-312,-345},{-224,-298,-145,-262,-300,-224},{-231,-157,-255,-269,-317,-121},{-140,-162,-336,-140,-200,-300},{-271,-345,-305,-276,-338,-209},{-300,-231,-198,-129,-212,-259},{-355,-233,-352,-138,-121,-193},{-290,-200,-312,-319,-155,-290},{-155,-352,-178,-190,-333,-133},{-300,-355,-152,-340,-143,-221},{-293,-136,-352,-240,-238,-198},{-347,-190,-255,-276,-119,-217},{-207,-250,-357,-281,-129,-224},{-119,-214,-243,-233,-209,-295},{-124,-121,-129,-250,-129,-129},{-183,-355,-202,-155,-195,-309},{-190,-157,-126,-338,-136,-183},{-321,-317,-155,-133,-278,-347},{-221,-226,-121,-331,-283,-288},{-126,-195,-150,-159,-302,-193},{-190,-295,-321,-231,-178,-298},{-186,-126,-264,-326,-283,-195},{-305,-340,-252,-326,-131,-202},{-140,-221,-302,-164,-124,-343},{-355,-133,-231,-252,-126,-352},{-271,-171,-281,-286,-309,-157},{-148,-202,-183,-264,-345,-190},{-198,-145,-212,-136,-214,-281},{-195,-248,-345,-238,-188,-340},{-293,-328,-190,-278,-207,-347},{-152,-138,-221,-278,-262,-347},{-174,-133,-326,-121,-136,-119},{-131,-164,-312,-131,-188,-205},{-171,-347,-243,-140,-157,-317},{-312,-207,-281,-174,-167,-324},{-195,-140,-257,-157,-347,-155},{-138,-186,-269,-309,-133,-145},{-148,-159,-267,-269,-293,-148},{-200,-293,-169,-252,-347,-259},{-333,-333,-317,-231,-267,-324},{-357,-326,-288,-121,-248,-321},{-302,-152,-278,-252,-264,-224},{-317,-281,-217,-259,-155,-124},{-240,-233,-195,-186,-121,-217},{-217,-276,-248,-267,-205,-183},{-295,-343,-350,-133,-352,-350},{-288,-345,-298,-309,-257,-236},{-150,-145,-140,-314,-314,-159},{-162,-347,-176,-226,-305,-298}},{{-190,-124,-205,-347,-143,-236},{-198,-257,-357,-286,-250,-288},{-309,-255,-152,-121,-245,-150},{-357,-259,-248,-150,-186,-298},{-288,-143,-274,-171,-195,-171},{-298,-205,-176,-300,-259,-274},{-152,-264,-178,-238,-288,-183},{-293,-138,-167,-243,-309,-293},{-357,-262,-164,-255,-193,-164},{-347,-255,-302,-307,-352,-276},{-295,-174,-295,-345,-321,-157},{-236,-307,-312,-178,-217,-243},{-228,-302,-178,-355,-345,-252},{-259,-309,-181,-276,-212,-138},{-350,-357,-233,-293,-186,-212},{-305,-119,-217,-333,-164,-331},{-281,-259,-350,-119,-355,-138},{-295,-226,-169,-355,-131,-338},{-312,-174,-155,-200,-317,-119},{-219,-259,-307,-314,-300,-236},{-245,-324,-212,-245,-278,-328},{-343,-298,-231,-164,-155,-343},{-226,-219,-248,-181,-274,-324},{-314,-212,-138,-157,-155,-143},{-238,-131,-243,-186,-293,-307},{-143,-138,-281,-209,-355,-159},{-317,-143,-186,-183,-224,-309},{-143,-305,-250,-209,-328,-176},{-288,-214,-143,-262,-264,-307},{-276,-250,-295,-274,-198,-214},{-145,-290,-240,-357,-286,-219},{-252,-328,-231,-357,-245,-174},{-121,-338,-150,-188,-145,-233},{-331,-209,-169,-140,-131,-355},{-255,-319,-219,-228,-317,-159},{-169,-143,-340,-357,-274,-336},{-248,-190,-181,-224,-269,-145},{-326,-152,-200,-214,-350,-150},{-212,-155,-352,-126,-159,-319},{-219,-288,-293,-286,-140,-271},{-181,-250,-276,-119,-340,-312},{-231,-188,-319,-190,-319,-119},{-129,-152,-300,-171,-129,-169},{-326,-338,-255,-245,-309,-167},{-317,-143,-305,-238,-124,-186},{-347,-250,-162,-283,-305,-307},{-302,-283,-347,-188,-152,-274},{-328,-286,-326,-228,-245,-183},{-288,-167,-190,-314,-231,-324},{-209,-298,-155,-143,-233,-167}}},{{{-374,-139,-221,-240,-156,-213},{-158,-235,-139,-281,-360,-336},{-248,-265,-393,-273,-287,-336},{-366,-142,-336,-295,-205,-164},{-390,-273,-382,-191,-314,-401},{-213,-410,-224,-308,-202,-147},{-273,-207,-407,-371,-330,-341},{-207,-396,-186,-202,-142,-235},{-393,-167,-240,-390,-147,-145},{-164,-142,-257,-385,-232,-377},{-188,-410,-333,-191,-298,-352},{-175,-150,-169,-232,-262,-295},{-251,-273,-276,-347,-385,-333},{-202,-161,-382,-218,-339,-317},{-175,-314,-177,-139,-254,-396},{-308,-194,-284,-229,-145,-180},{-360,-216,-156,-344,-325,-161},{-139,-224,-213,-341,-401,-314},{-199,-322,-145,-352,-322,-319},{-303,-366,-298,-205,-248,-175},{-139,-183,-322,-240,-273,-298},{-183,-276,-311,-347,-319,-213},{-404,-199,-213,-153,-344,-145},{-262,-172,-322,-221,-169,-265},{-251,-303,-317,-407,-319,-213},{-265,-295,-314,-407,-161,-404},{-374,-194,-308,-232,-295,-210},{-278,-382,-388,-142,-145,-169},{-235,-374,-147,-303,-183,-262},{-314,-164,-169,-175,-254,-197},{-319,-221,-186,-314,-339,-401},{-213,-147,-278,-369,-393,-341},{-336,-167,-358,-379,-205,-377},{-158,-186,-336,-393,-341,-355},{-298,-379,-347,-311,-287,-216},{-147,-213,-186,-188,-235,-404},{-298,-347,-276,-308,-306,-319},{-156,-257,-336,-295,-330,-254},{-265,-311,-407,-336,-410,-191},{-207,-156,-385,-339,-298,-147},{-281,-328,-188,-308,-240,-270},{-210,-273,-325,-300,-199,-330},{-289,-268,-147,-186,-199,-407},{-292,-292,-139,-311,-169,-311},{-136,-240,-210,-142,-276,-407},{-358,-232,-186,-336,-300,-314},{-298,-306,-161,-273,-404,-349},{-325,-385,-183,-273,-317,-298},{-407,-145,-330,-218,-410,-344},{-295,-344,-158,-175,-396,-278}},{{-355,-339,-150,-355,-358,-210},{-180,-325,-355,-268,-352,-344},{-145,-281,-248,-164,-374,-328},{-328,-224,-227,-377,-169,-251},{-262,-246,-298,-363,-136,-177},{-161,-188,-183,-352,-371,-355},{-139,-268,-145,-257,-164,-344},{-197,-246,-210,-254,-232,-199},{-374,-295,-270,-227,-330,-292},{-147,-355,-410,-259,-254,-306},{-232,-232,-175,-393,-407,-158},{-240,-248,-379,-232,-311,-325},{-322,-150,-265,-142,-232,-382},{-259,-216,-358,-169,-360,-197},{-377,-186,-251,-175,-156,-186},{-177,-188,-246,-393,-205,-186},{-330,-407,-194,-191,-390,-150},{-207,-366,-188,-339,-276,-164},{-257,-407,-172,-399,-276,-221},{-175,-404,-284,-341,-191,-344},{-232,-183,-377,-262,-227,-374},{-358,-333,-292,-164,-232,-224},{-292,-153,-199,-352,-358,-238},{-150,-330,-205,-311,-251,-369},{-325,-177,-385,-344,-142,-161},{-336,-136,-169,-153,-306,-156},{-407,-199,-142,-199,-360,-393},{-248,-382,-268,-292,-186,-167},{-186,-243,-257,-347,-194,-388},{-199,-401,-232,-191,-194,-199},{-238,-349,-287,-153,-410,-156},{-300,-142,-259,-227,-183,-227},{-257,-262,-205,-306,-401,-347},{-248,-221,-139,-401,-216,-344},{-180,-292,-344,-150,-330,-276},{-153,-186,-213,-385,-254,-172},{-388,-197,-358,-287,-229,-349},{-273,-156,-183,-311,-322,-216},{-281,-169,-205,-227,-150,-235},{-306,-303,-167,-314,-360,-379},{-349,-136,-156,-388,-300,-216},{-221,-355,-142,-257,-303,-270},{-382,-235,-177,-183,-374,-257},{-246,-248,-371,-167,-232,-139},{-314,-199,-191,-216,-153,-292},{-399,-273,-374,-404,-210,-349},{-341,-199,-328,-358,-232,-300},{-325,-161,-360,-246,-390,-377},{-251,-377,-284,-265,-317,-347},{-273,-158,-399,-139,-251,-363}},{{-188,-355,-221,-265,-317,-322},{-254,-145,-352,-216,-366,-224},{-341,-393,-251,-330,-306,-298},{-407,-180,-360,-289,-322,-177},{-156,-153,-183,-246,-139,-336},{-232,-349,-292,-180,-238,-366},{-407,-221,-199,-330,-169,-262},{-328,-139,-382,-377,-366,-153},{-156,-308,-232,-349,-319,-319},{-287,-186,-186,-268,-188,-180},{-281,-229,-254,-205,-371,-207},{-311,-374,-218,-289,-213,-164},{-262,-202,-390,-210,-238,-399},{-336,-341,-355,-251,-164,-273},{-147,-183,-257,-407,-216,-349},{-158,-407,-281,-300,-240,-197},{-379,-314,-167,-325,-180,-407},{-235,-330,-199,-314,-319,-352},{-268,-248,-330,-360,-164,-229},{-306,-221,-336,-188,-396,-224},{-284,-186,-303,-180,-379,-284},{-355,-172,-145,-382,-199,-303},{-218,-183,-202,-341,-369,-194},{-246,-216,-339,-164,-358,-344},{-330,-374,-270,-257,-183,-207},{-404,-188,-251,-227,-349,-355},{-183,-207,-300,-218,-347,-336},{-213,-388,-360,-325,-319,-287},{-339,-325,-396,-199,-153,-175},{-205,-207,-147,-167,-238,-218},{-306,-262,-393,-306,-355,-377},{-232,-175,-390,-259,-355,-278},{-232,-393,-399,-164,-339,-183},{-281,-306,-194,-289,-298,-330},{-410,-369,-284,-336,-246,-369},{-156,-136,-396,-259,-270,-333},{-150,-268,-347,-183,-172,-248},{-278,-358,-336,-330,-210,-221},{-393,-164,-278,-396,-183,-213},{-207,-221,-306,-172,-246,-177},{-330,-164,-369,-175,-240,-150},{-262,-229,-333,-349,-371,-311},{-221,-366,-164,-404,-363,-369},{-388,-169,-295,-284,-183,-319},{-319,-276,-355,-303,-292,-298},{-227,-393,-142,-385,-161,-330},{-385,-243,-328,-355,-191,-251},{-276,-410,-213,-177,-369,-390},{-191,-158,-177,-385,-287,-336},{-325,-161,-262,-270,-199,-325}}},{{{-91,-122,-205,-216,-94,-176},{-174,-183,-169,-163,-137,-129},{-223,-92,-146,-91,-202,-208},{-122,-99,-174,-163,-117,-189},{-102,-199,-140,-213,-145,-185},{-140,-188,-200,-220,-199,-166},{-157,-228,-79,-156,-208,-91},{-203,-129,-123,-105,-102,-177},{-165,-214,-162,-105,-208,-117},{-77,-171,-188,-177,-179,-139},{-86,-196,-165,-152,-103,-99},{-219,-156,-226,-162,-199,-200},{-157,-171,-200,-88,-185,-219},{-216,-157,-157,-228,-128,-160},{-77,-114,-180,-163,-142,-82},{-186,-102,-140,-116,-216,-203},{-99,-116,-202,-214,-162,-162},{-94,-217,-206,-85,-128,-180},{-114,-102,-188,-149,-145,-80},{-139,-225,-99,-119,-197,-134},{-226,-80,-213,-206,-154,-220},{-203,-105,-80,-200,-139,-89},{-128,-182,-165,-146,-151,-88},{-200,-159,-100,-154,-182,-79},{-142,-208,-219,-216,-199,-83},{-137,-162,-143,-106,-125,-200},{-200,-119,-197,-171,-222,-131},{-211,-171,-163,-205,-100,-157},{-194,-122,-162,-231,-114,-85},{-176,-105,-86,-79,-146,-149},{-152,-213,-82,-231,-220,-146},{-180,-131,-106,-222,-162,-211},{-77,-100,-225,-185,-86,-140},{-95,-196,-83,-151,-129,-77},{-125,-111,-112,-108,-111,-217},{-168,-148,-134,-145,-213,-180},{-109,-125,-191,-106,-85,-189},{-143,-88,-152,-188,-92,-166},{-82,-186,-148,-122,-225,-125},{-156,-106,-186,-211,-142,-109},{-143,-99,-95,-180,-169,-174},{-77,-116,-220,-142,-152,-149},{-114,-196,-179,-126,-171,-109},{-97,-197,-109,-186,-112,-148},{-206,-91,-194,-143,-182,-169},{-179,-148,-228,-192,-92,-117},{-128,-146,-223,-116,-219,-92},{-148,-157,-219,-226,-163,-105},{-194,-191,-151,-182,-214,-111},{-220,-97,-202,-145,-199,-216}},{{-200,-109,-106,-114,-136,-208},{-103,-176,-163,-185,-92,-169},{-162,-134,-223,-222,-77,-99},{-213,-222,-83,-206,-163,-209},{-102,-105,-208,-137,-208,-165},{-112,-192,-206,-114,-226,-136},{-157,-125,-105,-143,-208,-159},{-162,-156,-162,-185,-137,-199},{-157,-169,-208,-225,-91,-139},{-213,-183,-179,-186,-92,-157},{-205,-223,-122,-183,-120,-220},{-143,-145,-109,-120,-162,-199},{-100,-112,-182,-189,-162,-148},{-185,-89,-179,-80,-86,-220},{-157,-200,-146,-225,-126,-168},{-109,-148,-162,-191,-103,-94},{-162,-186,-149,-203,-182,-166},{-194,-97,-159,-157,-152,-191},{-136,-199,-131,-117,-100,-145},{-157,-208,-171,-136,-82,-189},{-166,-180,-83,-186,-152,-200},{-94,-100,-177,-214,-160,-169},{-168,-231,-228,-116,-131,-157},{-183,-94,-214,-197,-205,-191},{-231,-89,-86,-140,-220,-216},{-202,-166,-157,-128,-174,-91},{-151,-229,-163,-89,-132,-134},{-89,-116,-106,-174,-92,-197},{-116,-129,-95,-191,-143,-156},{-105,-94,-177,-163,-102,-219},{-128,-166,-92,-183,-157,-108},{-219,-186,-151,-92,-95,-223},{-225,-194,-140,-129,-108,-222},{-202,-111,-112,-157,-86,-229},{-177,-205,-154,-136,-143,-79},{-86,-177,-86,-199,-77,-188},{-94,-197,-80,-229,-79,-91},{-80,-82,-129,-142,-105,-152},{-108,-91,-146,-169,-79,-91},{-112,-97,-213,-229,-120,-134},{-220,-200,-231,-191,-117,-208},{-82,-114,-79,-169,-206,-123},{-136,-169,-197,-132,-157,-125},{-205,-97,-209,-171,-149,-131},{-108,-128,-157,-192,-129,-182},{-171,-206,-229,-203,-88,-119},{-151,-209,-172,-162,-223,-163},{-196,-189,-219,-168,-92,-116},{-82,-219,-112,-140,-159,-169},{-171,-177,-213,-94,-202,-180}},{{-109,-228,-95,-225,-183,-88},{-111,-160,-214,-99,-103,-129},{-213,-123,-157,-217,-228,-213},{-188,-194,-206,-192,-123,-206},{-169,-86,-194,-203,-131,-119},{-174,-208,-209,-102,-99,-116},{-140,-226,-160,-148,-148,-139},{-168,-145,-154,-231,-148,-206},{-126,-79,-211,-199,-100,-159},{-122,-223,-203,-97,-229,-171},{-83,-209,-174,-208,-202,-168},{-80,-105,-119,-197,-162,-186},{-171,-97,-89,-169,-196,-209},{-97,-106,-222,-223,-205,-206},{-226,-140,-80,-220,-132,-165},{-128,-189,-229,-125,-156,-205},{-77,-217,-199,-225,-203,-168},{-172,-214,-83,-117,-79,-180},{-151,-137,-134,-142,-213,-171},{-176,-100,-103,-166,-86,-116},{-200,-205,-126,-94,-219,-205},{-149,-189,-117,-83,-206,-231},{-213,-156,-139,-157,-106,-117},{-169,-176,-229,-143,-219,-200},{-194,-91,-154,-211,-157,-202},{-189,-226,-111,-231,-182,-146},{-183,-182,-145,-131,-114,-137},{-94,-194,-116,-159,-213,-200},{-132,-126,-229,-214,-226,-200},{-197,-157,-168,-112,-156,-206},{-182,-109,-177,-162,-191,-89},{-103,-123,-200,-99,-92,-171},{-189,-123,-174,-166,-188,-143},{-86,-228,-196,-129,-183,-211},{-163,-94,-202,-126,-137,-225},{-163,-222,-163,-228,-105,-169},{-203,-219,-200,-103,-165,-92},{-196,-91,-156,-85,-188,-131},{-194,-82,-185,-217,-199,-188},{-146,-172,-117,-85,-143,-120},{-226,-139,-165,-192,-149,-191},{-163,-126,-185,-85,-216,-202},{-191,-171,-186,-191,-151,-103},{-122,-83,-180,-179,-148,-111},{-134,-162,-202,-122,-176,-205},{-109,-223,-192,-125,-177,-120},{-89,-95,-168,-219,-226,-188},{-168,-188,-171,-94,-229,-217},{-219,-152,-163,-114,-208,-192},{-225,-171,-166,-192,-171,-197}}},{{{-195,-96,-269,-118,-229,-133},{-218,-220,-167,-193,-218,-106},{-175,-178,-251,-258,-162,-193},{-96,-107,-229,-242,-266,-269},{-149,-184,-253,-187,-186,-260},{-217,-229,-115,-229,-93,-93},{-106,-253,-122,-229,-120,-235},{-175,-238,-124,-217,-244,-206},{-197,-226,-151,-147,-187,-146},{-171,-240,-217,-162,-107,-104},{-153,-162,-189,-218,-104,-189},{-106,-127,-189,-157,-237,-164},{-195,-182,-224,-273,-264,-96},{-91,-268,-153,-271,-231,-182},{-153,-133,-237,-251,-202,-258},{-178,-95,-102,-178,-204,-109},{-171,-158,-178,-209,-142,-187},{-204,-162,-113,-213,-273,-171},{-135,-158,-164,-218,-167,-253},{-248,-95,-116,-109,-220,-253},{-177,-269,-126,-129,-226,-186},{-226,-273,-240,-166,-184,-204},{-136,-129,-268,-151,-244,-111},{-93,-213,-133,-218,-191,-140},{-184,-109,-171,-140,-178,-249},{-207,-166,-213,-136,-155,-242},{-198,-138,-226,-91,-206,-164},{-244,-96,-116,-266,-246,-175},{-149,-222,-127,-187,-242,-111},{-171,-173,-135,-104,-107,-91},{-191,-258,-228,-155,-160,-217},{-104,-191,-248,-268,-238,-147},{-147,-169,-102,-98,-197,-191},{-135,-224,-140,-242,-191,-213},{-186,-209,-118,-91,-157,-226},{-149,-258,-116,-271,-197,-218},{-124,-93,-273,-133,-162,-149},{-149,-129,-249,-204,-226,-153},{-160,-209,-158,-104,-266,-264},{-142,-193,-113,-167,-118,-146},{-184,-242,-157,-204,-262,-229},{-95,-260,-213,-207,-111,-115},{-102,-115,-233,-191,-144,-207},{-189,-189,-146,-271,-217,-257},{-264,-147,-249,-220,-226,-191},{-107,-126,-118,-273,-131,-136},{-164,-118,-162,-129,-164,-171},{-233,-111,-257,-113,-269,-95},{-109,-217,-211,-173,-91,-153},{-91,-147,-96,-229,-204,-166}},{{-166,-231,-126,-244,-93,-180},{-127,-91,-186,-136,-178,-129},{-258,-180,-173,-93,-122,-238},{-255,-157,-144,-266,-182,-255},{-238,-113,-122,-202,-91,-269},{-124,-93,-166,-109,-197,-269},{-197,-153,-206,-95,-129,-160},{-158,-153,-231,-262,-109,-127},{-187,-129,-238,-167,-140,-218},{-257,-96,-155,-215,-195,-124},{-268,-96,-127,-198,-173,-249},{-222,-111,-242,-131,-146,-138},{-198,-151,-115,-198,-122,-224},{-182,-273,-144,-118,-217,-126},{-167,-200,-200,-268,-96,-136},{-224,-266,-173,-266,-244,-153},{-217,-175,-242,-113,-127,-200},{-258,-120,-231,-237,-218,-224},{-206,-242,-255,-153,-93,-211},{-166,-235,-213,-166,-209,-186},{-231,-215,-238,-96,-235,-155},{-260,-120,-218,-167,-182,-260},{-226,-240,-238,-178,-157,-151},{-233,-244,-127,-200,-215,-251},{-129,-138,-226,-144,-266,-116},{-271,-135,-231,-151,-186,-217},{-153,-264,-169,-138,-100,-158},{-260,-258,-146,-102,-240,-153},{-100,-200,-222,-251,-215,-271},{-248,-144,-155,-144,-122,-186},{-195,-226,-127,-146,-197,-251},{-151,-173,-257,-226,-129,-229},{-206,-273,-115,-251,-115,-209},{-229,-215,-102,-184,-229,-155},{-273,-169,-126,-177,-109,-207},{-184,-118,-184,-217,-182,-257},{-253,-171,-126,-173,-96,-207},{-93,-142,-235,-240,-164,-120},{-248,-220,-233,-215,-251,-113},{-178,-242,-240,-244,-157,-116},{-118,-107,-124,-218,-178,-238},{-218,-268,-248,-207,-226,-187},{-135,-133,-178,-173,-133,-260},{-187,-189,-166,-171,-268,-157},{-100,-253,-173,-124,-200,-195},{-175,-120,-244,-224,-95,-136},{-262,-178,-271,-246,-240,-127},{-251,-167,-273,-248,-177,-222},{-151,-268,-200,-206,-136,-95},{-180,-220,-209,-127,-160,-266}},{{-197,-242,-258,-184,-233,-93},{-91,-91,-147,-246,-102,-153},{-262,-269,-209,-258,-186,-186},{-116,-244,-169,-146,-164,-220},{-186,-222,-158,-127,-233,-266},{-238,-177,-189,-244,-195,-217},{-257,-268,-244,-126,-173,-177},{-238,-129,-138,-153,-111,-180},{-126,-215,-140,-151,-258,-144},{-162,-171,-102,-171,-135,-131},{-135,-169,-169,-107,-166,-253},{-104,-106,-258,-237,-182,-113},{-142,-166,-228,-169,-193,-111},{-206,-169,-211,-266,-177,-169},{-255,-204,-107,-113,-106,-220},{-229,-198,-169,-100,-142,-175},{-229,-260,-271,-187,-182,-246},{-164,-202,-136,-157,-175,-124},{-142,-273,-164,-122,-106,-158},{-253,-106,-249,-98,-144,-124},{-120,-133,-255,-240,-233,-127},{-273,-115,-246,-102,-200,-144},{-102,-95,-251,-226,-149,-146},{-231,-195,-257,-109,-147,-102},{-124,-271,-222,-204,-237,-226},{-180,-182,-211,-129,-200,-136},{-269,-246,-171,-220,-104,-218},{-211,-107,-104,-186,-115,-127},{-129,-98,-155,-207,-217,-95},{-217,-193,-211,-104,-195,-211},{-142,-204,-228,-262,-191,-93},{-269,-173,-218,-160,-186,-116},{-257,-255,-178,-166,-240,-235},{-197,-135,-204,-107,-189,-202},{-104,-171,-255,-182,-175,-102},{-155,-149,-113,-136,-171,-189},{-142,-96,-189,-237,-273,-180},{-211,-167,-167,-184,-198,-228},{-177,-213,-213,-91,-107,-197},{-155,-127,-251,-260,-233,-115},{-151,-155,-126,-182,-146,-233},{-102,-91,-142,-207,-257,-193},{-177,-209,-191,-142,-215,-160},{-91,-118,-255,-177,-142,-228},{-240,-169,-228,-133,-198,-133},{-231,-135,-169,-96,-269,-109},{-269,-113,-249,-115,-91,-255},{-162,-191,-160,-217,-129,-157},{-248,-113,-100,-129,-264,-200},{-173,-182,-242,-211,-231,-178}}},{{{-321,-132,-201,-316,-220,-274},{-238,-172,-169,-164,-277,-225},{-203,-250,-169,-299,-189,-318},{-218,-296,-365,-343,-257,-198},{-223,-238,-145,-235,-318,-328},{-137,-181,-122,-355,-127,-122},{-301,-292,-326,-260,-274,-363},{-201,-274,-318,-343,-154,-238},{-311,-206,-345,-169,-196,-169},{-279,-198,-208,-238,-262,-176},{-243,-135,-213,-176,-218,-333},{-270,-196,-164,-191,-292,-216},{-247,-255,-169,-336,-142,-353},{-311,-201,-252,-311,-164,-198},{-260,-157,-184,-122,-360,-336},{-181,-245,-284,-176,-338,-122},{-206,-279,-130,-267,-287,-230},{-157,-208,-203,-309,-343,-299},{-326,-341,-316,-277,-257,-184},{-338,-216,-191,-365,-167,-135},{-152,-157,-368,-189,-348,-368},{-257,-304,-360,-174,-196,-211},{-196,-311,-233,-257,-132,-243},{-306,-350,-159,-331,-203,-240},{-284,-350,-309,-220,-318,-179},{-365,-284,-127,-277,-343,-301},{-260,-326,-311,-265,-174,-245},{-211,-162,-145,-189,-132,-350},{-157,-186,-152,-167,-132,-316},{-228,-211,-358,-225,-230,-127},{-284,-260,-208,-157,-194,-130},{-301,-225,-247,-245,-245,-358},{-355,-203,-198,-154,-368,-304},{-223,-194,-328,-333,-127,-368},{-350,-198,-176,-326,-142,-167},{-316,-287,-167,-189,-157,-363},{-306,-292,-230,-176,-213,-149},{-125,-137,-191,-328,-130,-186},{-260,-289,-147,-184,-172,-130},{-223,-257,-341,-142,-174,-274},{-282,-282,-162,-147,-277,-125},{-363,-301,-270,-238,-189,-208},{-157,-184,-186,-235,-272,-304},{-159,-184,-309,-358,-350,-157},{-122,-345,-260,-287,-154,-316},{-189,-247,-179,-238,-255,-257},{-314,-247,-135,-181,-122,-360},{-181,-157,-336,-274,-353,-304},{-179,-189,-336,-353,-333,-149},{-201,-122,-208,-142,-167,-321}},{{-137,-360,-260,-230,-206,-164},{-323,-181,-159,-167,-321,-296},{-172,-235,-228,-363,-174,-203},{-140,-314,-328,-338,-252,-218},{-306,-287,-179,-211,-137,-172},{-360,-238,-314,-184,-353,-294},{-331,-181,-311,-179,-314,-316},{-125,-167,-279,-353,-363,-350},{-304,-287,-358,-345,-296,-223},{-145,-230,-265,-265,-184,-257},{-353,-294,-306,-184,-348,-328},{-331,-147,-201,-287,-191,-196},{-235,-159,-162,-326,-309,-279},{-208,-220,-247,-208,-265,-287},{-326,-250,-149,-299,-127,-328},{-311,-172,-353,-213,-350,-336},{-292,-140,-174,-240,-326,-314},{-321,-287,-167,-274,-145,-152},{-304,-235,-294,-314,-314,-132},{-247,-289,-203,-194,-179,-274},{-306,-147,-140,-145,-191,-230},{-220,-172,-191,-218,-189,-211},{-331,-306,-240,-218,-338,-162},{-218,-181,-145,-336,-142,-191},{-350,-243,-203,-270,-306,-142},{-331,-289,-206,-125,-282,-341},{-223,-132,-309,-181,-355,-125},{-189,-365,-363,-299,-311,-154},{-189,-358,-211,-191,-304,-272},{-260,-336,-257,-350,-167,-211},{-240,-250,-331,-358,-292,-328},{-186,-260,-348,-198,-174,-191},{-245,-304,-140,-243,-154,-304},{-292,-140,-233,-167,-363,-176},{-343,-127,-301,-328,-245,-250},{-358,-145,-338,-152,-189,-135},{-238,-167,-137,-189,-172,-277},{-122,-355,-277,-282,-186,-296},{-336,-326,-326,-350,-343,-245},{-149,-255,-189,-355,-216,-355},{-191,-250,-125,-167,-218,-167},{-233,-345,-270,-279,-321,-292},{-127,-179,-176,-181,-343,-318},{-189,-267,-186,-331,-365,-328},{-282,-149,-348,-240,-301,-365},{-257,-368,-306,-287,-245,-333},{-299,-152,-247,-270,-358,-355},{-169,-341,-368,-198,-368,-255},{-203,-333,-270,-230,-343,-184},{-206,-147,-216,-191,-130,-282}},{{-238,-172,-262,-294,-203,-328},{-304,-174,-228,-243,-252,-191},{-358,-198,-350,-252,-260,-348},{-277,-201,-127,-360,-338,-272},{-311,-147,-169,-262,-174,-360},{-296,-167,-321,-230,-301,-130},{-235,-149,-255,-284,-130,-252},{-345,-179,-311,-365,-341,-250},{-240,-363,-223,-196,-282,-279},{-201,-255,-336,-277,-201,-206},{-132,-137,-363,-167,-233,-360},{-225,-152,-299,-157,-306,-358},{-191,-206,-355,-321,-142,-341},{-284,-292,-350,-167,-284,-299},{-127,-206,-368,-130,-265,-157},{-184,-235,-208,-206,-213,-336},{-130,-225,-252,-181,-341,-294},{-186,-245,-162,-355,-294,-338},{-260,-247,-292,-169,-289,-328},{-157,-267,-176,-157,-154,-350},{-184,-174,-228,-247,-132,-203},{-360,-274,-306,-122,-333,-336},{-147,-350,-127,-125,-350,-333},{-186,-336,-296,-135,-213,-184},{-343,-318,-206,-341,-355,-218},{-299,-245,-186,-345,-132,-309},{-353,-223,-122,-223,-196,-304},{-252,-189,-196,-328,-323,-238},{-323,-279,-169,-184,-213,-240},{-289,-152,-328,-311,-196,-243},{-272,-179,-277,-225,-184,-282},{-137,-176,-206,-223,-130,-257},{-282,-238,-328,-358,-284,-142},{-353,-247,-154,-294,-223,-203},{-250,-304,-164,-122,-323,-176},{-164,-262,-345,-194,-274,-152},{-189,-348,-262,-282,-301,-277},{-211,-145,-243,-267,-235,-154},{-355,-274,-365,-318,-309,-127},{-228,-216,-365,-135,-130,-306},{-331,-358,-282,-228,-157,-198},{-164,-309,-238,-318,-277,-365},{-296,-365,-145,-294,-328,-336},{-321,-287,-240,-235,-247,-277},{-277,-162,-262,-220,-255,-196},{-289,-294,-159,-304,-353,-169},{-345,-135,-167,-243,-172,-311},{-277,-294,-299,-292,-154,-213},{-304,-353,-343,-328,-368,-277},{-162,-294,-208,-331,-145,-218}}},{{{-261,-136,-243,-307,-333,-270},{-162,-346,-208,-217,-247,-199},{-233,-122,-134,-210,-280,-342},{-291,-116,-150,-275,-127,-243},{-268,-229,-171,-122,-249,-152},{-152,-259,-208,-139,-139,-238},{-310,-217,-275,-222,-312,-316},{-321,-127,-164,-340,-203,-326},{-157,-206,-169,-312,-293,-289},{-178,-146,-215,-266,-129,-224},{-326,-173,-187,-132,-256,-143},{-187,-206,-247,-233,-323,-298},{-155,-125,-176,-333,-273,-256},{-252,-330,-155,-162,-139,-252},{-173,-284,-148,-340,-129,-162},{-284,-185,-157,-293,-150,-159},{-199,-266,-157,-231,-226,-231},{-340,-298,-201,-252,-247,-330},{-217,-171,-173,-328,-321,-316},{-164,-143,-171,-141,-240,-187},{-289,-127,-150,-240,-180,-185},{-169,-213,-266,-233,-321,-319},{-134,-340,-342,-199,-340,-293},{-314,-159,-210,-143,-314,-176},{-210,-266,-201,-213,-196,-282},{-189,-182,-231,-337,-180,-270},{-178,-166,-159,-171,-249,-277},{-340,-346,-245,-129,-176,-298},{-284,-169,-323,-240,-240,-206},{-337,-300,-277,-298,-263,-139},{-298,-289,-201,-122,-337,-162},{-231,-307,-127,-224,-127,-210},{-252,-249,-323,-143,-146,-199},{-266,-169,-222,-182,-155,-226},{-233,-312,-229,-222,-289,-132},{-182,-342,-342,-196,-182,-148},{-282,-316,-226,-273,-254,-150},{-118,-222,-335,-213,-203,-224},{-203,-226,-344,-342,-143,-233},{-217,-316,-187,-173,-277,-243},{-335,-270,-275,-321,-259,-143},{-116,-303,-263,-196,-247,-194},{-326,-141,-310,-277,-340,-323},{-224,-240,-240,-176,-116,-323},{-270,-293,-132,-217,-182,-146},{-146,-196,-321,-333,-312,-249},{-213,-189,-125,-346,-270,-236},{-328,-210,-148,-316,-116,-328},{-247,-233,-143,-199,-342,-300},{-321,-231,-340,-296,-312,-240}},{{-321,-199,-305,-261,-256,-280},{-340,-118,-217,-335,-259,-280},{-314,-226,-293,-215,-289,-344},{-219,-305,-206,-206,-213,-206},{-206,-182,-178,-275,-284,-270},{-159,-259,-252,-201,-245,-208},{-270,-150,-187,-229,-284,-256},{-231,-189,-280,-176,-316,-259},{-213,-231,-176,-312,-273,-203},{-136,-291,-229,-254,-298,-226},{-277,-210,-333,-171,-321,-203},{-222,-139,-136,-178,-330,-139},{-291,-143,-166,-129,-217,-185},{-280,-152,-296,-143,-129,-344},{-275,-148,-136,-298,-236,-169},{-164,-208,-210,-159,-240,-166},{-182,-146,-321,-328,-270,-245},{-150,-307,-335,-284,-176,-342},{-286,-178,-229,-159,-127,-139},{-182,-166,-166,-219,-316,-196},{-266,-152,-194,-199,-303,-233},{-319,-245,-256,-187,-166,-169},{-187,-169,-284,-206,-289,-217},{-203,-296,-229,-314,-196,-319},{-303,-213,-125,-201,-213,-259},{-208,-321,-277,-164,-192,-275},{-330,-150,-268,-164,-215,-192},{-275,-141,-254,-340,-321,-146},{-208,-263,-249,-180,-222,-222},{-273,-247,-213,-173,-226,-136},{-150,-201,-231,-310,-286,-120},{-157,-312,-270,-231,-134,-328},{-219,-169,-152,-342,-310,-157},{-247,-340,-312,-337,-143,-134},{-238,-210,-208,-289,-346,-300},{-252,-291,-206,-176,-284,-159},{-132,-256,-346,-120,-243,-316},{-314,-187,-146,-310,-148,-296},{-326,-321,-176,-261,-194,-143},{-127,-196,-155,-312,-185,-300},{-314,-187,-173,-280,-280,-236},{-217,-194,-120,-268,-125,-335},{-340,-291,-310,-194,-314,-176},{-129,-233,-259,-291,-280,-176},{-189,-310,-249,-226,-286,-238},{-162,-261,-254,-273,-284,-330},{-196,-254,-201,-249,-125,-199},{-169,-275,-275,-199,-116,-346},{-150,-254,-323,-169,-238,-266},{-159,-206,-139,-222,-326,-185}},{{-236,-291,-134,-275,-176,-157},{-273,-300,-256,-203,-282,-289},{-263,-249,-254,-310,-189,-127},{-326,-176,-215,-222,-236,-335},{-261,-275,-335,-141,-143,-293},{-118,-273,-148,-291,-187,-289},{-206,-249,-261,-171,-185,-321},{-273,-139,-169,-277,-286,-208},{-217,-293,-289,-335,-337,-173},{-189,-296,-337,-224,-254,-164},{-134,-312,-217,-319,-169,-224},{-247,-296,-132,-213,-224,-245},{-206,-256,-321,-129,-254,-132},{-189,-273,-254,-300,-148,-143},{-342,-182,-252,-122,-122,-136},{-323,-293,-206,-182,-314,-268},{-321,-222,-300,-139,-254,-143},{-141,-162,-224,-286,-233,-236},{-310,-171,-157,-330,-310,-270},{-289,-231,-201,-171,-310,-213},{-326,-125,-300,-268,-282,-134},{-125,-122,-291,-173,-196,-296},{-314,-173,-150,-286,-289,-120},{-215,-187,-310,-157,-185,-118},{-323,-150,-164,-259,-238,-316},{-166,-148,-330,-229,-337,-146},{-270,-346,-169,-236,-314,-125},{-266,-192,-203,-219,-192,-116},{-180,-314,-164,-159,-307,-319},{-263,-162,-270,-273,-344,-310},{-173,-275,-261,-268,-132,-176},{-152,-182,-296,-155,-143,-210},{-210,-217,-243,-213,-176,-307},{-189,-199,-337,-127,-263,-120},{-342,-305,-178,-314,-215,-266},{-120,-240,-203,-122,-180,-134},{-268,-233,-199,-240,-342,-296},{-217,-157,-300,-125,-222,-256},{-280,-319,-157,-194,-194,-176},{-229,-217,-236,-141,-252,-291},{-321,-312,-305,-162,-286,-316},{-192,-346,-273,-196,-164,-266},{-210,-169,-312,-125,-148,-182},{-245,-176,-340,-208,-125,-127},{-277,-316,-178,-243,-194,-150},{-252,-122,-342,-270,-289,-316},{-238,-335,-150,-180,-346,-291},{-305,-189,-210,-136,-277,-275},{-150,-252,-319,-182,-266,-192},{-132,-146,-282,-219,-307,-159}}},{{{-309,-212,-226,-182,-344,-188},{-373,-276,-279,-220,-153,-291},{-300,-150,-397,-382,-244,-420},{-165,-279,-303,-241,-194,-209},{-212,-362,-412,-273,-150,-382},{-320,-347,-417,-394,-291,-303},{-238,-420,-156,-373,-362,-179},{-403,-253,-218,-400,-382,-373},{-323,-315,-435,-356,-209,-432},{-250,-262,-288,-359,-176,-173},{-200,-250,-420,-315,-191,-256},{-179,-359,-397,-320,-300,-353},{-159,-168,-150,-312,-318,-291},{-218,-185,-373,-373,-215,-385},{-153,-147,-229,-268,-229,-203},{-379,-420,-338,-256,-294,-438},{-400,-338,-215,-370,-206,-373},{-394,-415,-253,-238,-197,-415},{-232,-223,-265,-229,-344,-441},{-232,-323,-185,-238,-232,-197},{-426,-218,-235,-329,-270,-326},{-220,-262,-273,-197,-400,-359},{-318,-250,-417,-270,-370,-312},{-403,-247,-153,-232,-362,-241},{-394,-403,-320,-262,-438,-185},{-179,-256,-356,-326,-265,-376},{-147,-262,-270,-206,-259,-415},{-276,-203,-165,-385,-238,-347},{-156,-212,-218,-279,-409,-291},{-223,-344,-291,-150,-153,-312},{-347,-417,-382,-279,-370,-253},{-441,-276,-179,-179,-329,-220},{-153,-150,-318,-150,-356,-256},{-312,-388,-312,-150,-162,-388},{-350,-276,-426,-347,-306,-315},{-203,-185,-200,-191,-320,-200},{-353,-435,-417,-250,-397,-250},{-150,-365,-279,-420,-344,-353},{-147,-247,-153,-415,-185,-420},{-426,-176,-150,-247,-194,-153},{-368,-197,-438,-303,-382,-356},{-347,-326,-194,-397,-250,-235},{-409,-391,-403,-385,-326,-285},{-429,-320,-347,-165,-153,-185},{-226,-373,-406,-168,-265,-179},{-412,-303,-309,-218,-232,-173},{-206,-385,-356,-326,-197,-409},{-265,-347,-379,-312,-238,-441},{-188,-259,-403,-412,-320,-362},{-253,-318,-341,-279,-176,-370}},{{-338,-197,-382,-182,-415,-291},{-165,-403,-244,-368,-150,-279},{-438,-435,-359,-309,-162,-376},{-388,-247,-288,-156,-412,-168},{-220,-397,-194,-173,-320,-179},{-309,-215,-341,-312,-441,-147},{-297,-209,-229,-212,-188,-285},{-268,-250,-223,-253,-350,-435},{-209,-259,-156,-385,-435,-273},{-350,-171,-179,-403,-326,-241},{-318,-153,-318,-226,-215,-262},{-218,-209,-200,-179,-185,-268},{-244,-329,-215,-294,-341,-197},{-209,-220,-323,-188,-218,-318},{-209,-253,-294,-379,-309,-368},{-285,-232,-409,-435,-370,-276},{-265,-409,-276,-212,-162,-379},{-223,-312,-235,-315,-370,-318},{-182,-420,-382,-388,-315,-368},{-279,-270,-441,-212,-235,-179},{-268,-303,-235,-191,-182,-215},{-417,-265,-365,-200,-241,-332},{-253,-297,-379,-359,-209,-203},{-165,-350,-420,-218,-285,-365},{-329,-223,-376,-415,-168,-171},{-406,-288,-397,-429,-373,-153},{-282,-259,-435,-176,-250,-212},{-385,-262,-353,-356,-244,-238},{-320,-265,-362,-276,-247,-306},{-223,-435,-179,-341,-432,-197},{-415,-312,-394,-441,-320,-241},{-220,-435,-306,-435,-173,-329},{-203,-218,-338,-441,-391,-294},{-341,-173,-191,-356,-173,-179},{-185,-270,-370,-197,-200,-256},{-300,-244,-226,-429,-432,-200},{-250,-285,-191,-279,-303,-356},{-200,-203,-212,-300,-247,-247},{-400,-223,-335,-362,-329,-168},{-368,-171,-212,-323,-312,-350},{-218,-268,-229,-415,-206,-197},{-250,-241,-150,-291,-250,-238},{-194,-159,-250,-335,-335,-365},{-365,-379,-232,-229,-259,-353},{-165,-435,-315,-382,-294,-223},{-294,-388,-197,-432,-182,-309},{-203,-435,-238,-297,-409,-215},{-188,-347,-435,-338,-220,-244},{-168,-438,-400,-182,-244,-341},{-300,-326,-379,-276,-265,-282}},{{-182,-203,-279,-306,-182,-197},{-212,-400,-223,-218,-329,-206},{-150,-391,-415,-426,-359,-276},{-341,-150,-429,-229,-376,-379},{-368,-285,-165,-168,-365,-200},{-256,-250,-356,-288,-359,-206},{-438,-438,-394,-244,-412,-435},{-300,-168,-259,-182,-176,-379},{-400,-338,-173,-226,-391,-412},{-309,-347,-232,-268,-171,-203},{-320,-382,-250,-391,-320,-326},{-332,-282,-338,-353,-215,-397},{-391,-406,-279,-385,-318,-223},{-206,-185,-359,-420,-441,-315},{-376,-347,-376,-382,-403,-338},{-415,-332,-203,-247,-326,-338},{-268,-359,-397,-362,-356,-391},{-276,-171,-268,-226,-356,-347},{-265,-147,-150,-306,-356,-409},{-329,-441,-273,-276,-368,-376},{-320,-171,-291,-150,-291,-188},{-362,-323,-206,-265,-379,-176},{-332,-406,-238,-320,-417,-223},{-297,-259,-370,-235,-194,-232},{-218,-420,-223,-415,-297,-359},{-171,-323,-203,-397,-415,-241},{-162,-365,-403,-256,-315,-441},{-165,-273,-229,-247,-250,-176},{-197,-244,-347,-285,-156,-391},{-200,-368,-294,-306,-318,-162},{-147,-294,-153,-403,-297,-229},{-279,-250,-238,-188,-288,-376},{-353,-438,-388,-362,-370,-165},{-226,-435,-415,-426,-359,-406},{-179,-329,-147,-203,-268,-229},{-265,-432,-320,-250,-203,-341},{-332,-423,-209,-235,-300,-441},{-338,-309,-356,-241,-309,-256},{-262,-326,-185,-341,-176,-350},{-203,-326,-197,-194,-171,-276},{-229,-294,-253,-179,-320,-432},{-238,-200,-403,-279,-156,-279},{-241,-379,-238,-373,-250,-303},{-356,-391,-185,-426,-368,-279},{-153,-400,-365,-232,-168,-179},{-291,-420,-165,-171,-312,-194},{-188,-326,-203,-194,-315,-412},{-238,-229,-197,-291,-426,-426},{-335,-329,-329,-244,-441,-412},{-200,-435,-168,-412,-191,-412}}}}; // 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,4,3,7,3,2,6,3,3,7,4,3,7,4,3,7,4,3,7,4,3,8,4,3,8,4,3,7,4,3,8,4,3,7,4,3,9,4,3,8,5,3,8,5,3,8,4,3,9,4,3,8,4,3,7,4,3,7,4,3,7,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}}; // set of shipments in each bid 
int SHsts[SPN]={2,4,6,8,10,12,0,4,8,12,0,6,12,0,2,4,6,8,10,12,2,6,10,2,8,1,3,5,7,9,11,2,6,10,0,6,12,2,4,6,8,10,12,14,1,5,9,13,2,8,14,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,0,6,12,2,4,6,8,10,12,14,0,4,8,12,2,8,14,0,2,4,6,8,10,12,14,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,2,4,6,8,10,12,14,2,6,10,14,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,2,8,14,2,4,6,8,10,12,14,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,16,2,6,10,14,0,6,12,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14,2,4,6,8,10,12,14,16,0,4,8,12,16,0,6,12,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,0,2,4,6,8,10,12,14,16,1,5,9,13,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,0,4,8,12,0,6,12,2,4,6,8,10,12,14,2,6,10,14,1,7,13,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,2,6,10,14,0,6,12,1,3,5,7,9,11,13,1,5,9,13,0,6,12}; // set of start times of each shipment 
int SHets[SPN]={7,9,11,13,15,17,5,9,13,17,5,11,17,5,7,9,11,13,15,17,7,11,15,7,13,6,8,10,12,14,16,7,11,15,5,11,17,5,7,9,11,13,15,17,4,8,12,16,5,11,17,5,7,9,11,13,15,17,3,7,11,15,5,11,17,4,6,8,10,12,14,16,5,9,13,17,3,9,15,4,6,8,10,12,14,16,2,6,10,14,4,10,16,2,4,6,8,10,12,14,16,3,7,11,15,3,9,15,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,4,6,8,10,12,14,16,4,8,12,16,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,4,10,16,4,6,8,10,12,14,16,4,8,12,16,4,10,16,1,3,5,7,9,11,13,15,17,3,7,11,15,1,7,13,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15,3,5,7,9,11,13,15,17,1,5,9,13,17,1,7,13,2,4,6,8,10,12,14,16,3,7,11,15,2,8,14,1,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,4,6,8,10,12,14,16,4,8,12,16,2,8,14,4,6,8,10,12,14,16,2,6,10,14,2,8,14,4,6,8,10,12,14,16,4,8,12,16,3,9,15,5,7,9,11,13,15,17,5,9,13,17,3,9,15,5,7,9,11,13,15,17,5,9,13,17,3,9,15,4,6,8,10,12,14,16,4,8,12,16,3,9,15}; // set of end times of each shipment 
