int Dev = 40;// 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]={{{{11135,0,0,0,0,0},{11767,0,0,0,0,0},{11266,0,0,0,0,0},{10691,0,0,0,0,0},{11084,0,0,0,0,0},{10843,0,0,0,0,0},{11110,0,0,0,0,0},{10884,0,0,0,0,0},{11645,0,0,0,0,0},{11087,0,0,0,0,0},{10850,0,0,0,0,0},{11665,0,0,0,0,0},{11181,0,0,0,0,0},{11070,0,0,0,0,0},{10738,0,0,0,0,0},{10718,0,0,0,0,0},{10987,0,0,0,0,0},{11292,0,0,0,0,0},{11397,0,0,0,0,0},{10322,0,0,0,0,0},{11056,0,0,0,0,0},{11360,0,0,0,0,0},{11004,0,0,0,0,0},{10328,0,0,0,0,0},{10683,0,0,0,0,0},{10859,0,0,0,0,0},{10386,0,0,0,0,0},{10674,0,0,0,0,0},{10660,0,0,0,0,0},{11261,0,0,0,0,0},{11316,0,0,0,0,0},{10860,0,0,0,0,0},{10843,0,0,0,0,0},{11617,0,0,0,0,0},{10096,0,0,0,0,0},{11097,0,0,0,0,0},{11488,0,0,0,0,0},{11066,0,0,0,0,0},{11927,0,0,0,0,0},{10321,0,0,0,0,0},{10771,0,0,0,0,0},{11207,0,0,0,0,0},{11649,0,0,0,0,0},{11585,0,0,0,0,0},{9905,0,0,0,0,0},{11683,0,0,0,0,0},{11142,0,0,0,0,0},{10963,0,0,0,0,0},{11502,0,0,0,0,0},{10985,0,0,0,0,0}},{{11034,0,0,0,0,0},{10909,0,0,0,0,0},{11013,0,0,0,0,0},{10275,0,0,0,0,0},{11405,0,0,0,0,0},{11435,0,0,0,0,0},{10847,0,0,0,0,0},{10826,0,0,0,0,0},{11584,0,0,0,0,0},{11332,0,0,0,0,0},{11204,0,0,0,0,0},{10981,0,0,0,0,0},{11033,0,0,0,0,0},{11410,0,0,0,0,0},{11145,0,0,0,0,0},{10841,0,0,0,0,0},{11556,0,0,0,0,0},{10942,0,0,0,0,0},{10873,0,0,0,0,0},{10783,0,0,0,0,0},{11754,0,0,0,0,0},{11148,0,0,0,0,0},{10692,0,0,0,0,0},{10276,0,0,0,0,0},{11091,0,0,0,0,0},{10958,0,0,0,0,0},{11435,0,0,0,0,0},{10546,0,0,0,0,0},{10973,0,0,0,0,0},{11324,0,0,0,0,0},{10522,0,0,0,0,0},{11632,0,0,0,0,0},{10207,0,0,0,0,0},{10757,0,0,0,0,0},{10892,0,0,0,0,0},{11759,0,0,0,0,0},{10402,0,0,0,0,0},{11060,0,0,0,0,0},{10865,0,0,0,0,0},{11187,0,0,0,0,0},{10861,0,0,0,0,0},{11345,0,0,0,0,0},{11245,0,0,0,0,0},{10967,0,0,0,0,0},{11570,0,0,0,0,0},{10818,0,0,0,0,0},{11073,0,0,0,0,0},{10953,0,0,0,0,0},{10993,0,0,0,0,0},{10855,0,0,0,0,0}},{{11063,0,0,0,0,0},{11157,0,0,0,0,0},{11905,0,0,0,0,0},{10695,0,0,0,0,0},{10882,0,0,0,0,0},{10774,0,0,0,0,0},{10918,0,0,0,0,0},{11620,0,0,0,0,0},{11116,0,0,0,0,0},{10939,0,0,0,0,0},{10914,0,0,0,0,0},{11315,0,0,0,0,0},{10623,0,0,0,0,0},{11609,0,0,0,0,0},{10759,0,0,0,0,0},{11312,0,0,0,0,0},{10771,0,0,0,0,0},{11484,0,0,0,0,0},{11385,0,0,0,0,0},{11148,0,0,0,0,0},{10931,0,0,0,0,0},{10757,0,0,0,0,0},{11188,0,0,0,0,0},{11068,0,0,0,0,0},{11405,0,0,0,0,0},{11242,0,0,0,0,0},{10038,0,0,0,0,0},{10664,0,0,0,0,0},{11353,0,0,0,0,0},{11247,0,0,0,0,0},{10364,0,0,0,0,0},{10320,0,0,0,0,0},{11219,0,0,0,0,0},{11060,0,0,0,0,0},{11032,0,0,0,0,0},{10698,0,0,0,0,0},{11182,0,0,0,0,0},{11170,0,0,0,0,0},{11945,0,0,0,0,0},{11144,0,0,0,0,0},{10392,0,0,0,0,0},{11022,0,0,0,0,0},{11302,0,0,0,0,0},{10418,0,0,0,0,0},{11516,0,0,0,0,0},{11345,0,0,0,0,0},{11543,0,0,0,0,0},{10800,0,0,0,0,0},{11184,0,0,0,0,0},{11577,0,0,0,0,0}}},{{{-172,-179,-296,-291,-179,-164},{-217,-179,-237,-228,-242,-155},{-137,-193,-253,-164,-197,-260},{-267,-139,-157,-282,-155,-134},{-267,-164,-296,-188,-276,-148},{-193,-175,-159,-150,-271,-134},{-258,-202,-220,-226,-296,-240},{-197,-168,-222,-152,-213,-141},{-264,-280,-168,-188,-273,-287},{-195,-155,-197,-307,-276,-228},{-134,-228,-170,-195,-161,-244},{-217,-139,-269,-186,-307,-284},{-260,-193,-258,-172,-280,-235},{-246,-262,-311,-242,-208,-264},{-134,-276,-179,-311,-150,-240},{-208,-302,-244,-235,-148,-222},{-244,-298,-168,-172,-282,-199},{-208,-246,-267,-314,-222,-208},{-139,-139,-287,-148,-139,-190},{-211,-222,-251,-280,-195,-253},{-159,-172,-300,-164,-148,-143},{-152,-278,-199,-251,-255,-226},{-177,-186,-258,-287,-150,-199},{-289,-202,-296,-168,-155,-273},{-211,-184,-215,-305,-170,-222},{-237,-157,-166,-228,-269,-240},{-220,-222,-244,-143,-222,-264},{-139,-309,-215,-175,-148,-166},{-220,-148,-264,-175,-267,-260},{-282,-298,-148,-300,-217,-186},{-235,-258,-179,-249,-228,-307},{-193,-226,-148,-139,-190,-188},{-211,-314,-242,-222,-224,-181},{-307,-242,-287,-296,-235,-233},{-146,-170,-159,-307,-170,-267},{-175,-251,-150,-179,-213,-220},{-296,-276,-276,-258,-233,-228},{-213,-289,-228,-188,-249,-190},{-298,-293,-204,-143,-311,-197},{-300,-168,-231,-152,-267,-170},{-305,-152,-309,-237,-170,-190},{-146,-240,-284,-237,-262,-311},{-148,-195,-302,-170,-150,-213},{-269,-186,-291,-193,-260,-258},{-273,-164,-242,-146,-220,-159},{-226,-284,-311,-240,-289,-267},{-237,-228,-271,-217,-206,-137},{-276,-237,-166,-175,-179,-186},{-161,-307,-291,-244,-251,-222},{-262,-170,-139,-291,-157,-267}},{{-143,-300,-231,-199,-155,-168},{-237,-204,-226,-213,-164,-231},{-188,-233,-190,-246,-293,-278},{-155,-282,-202,-249,-197,-168},{-146,-293,-222,-226,-269,-255},{-231,-222,-208,-204,-202,-217},{-159,-311,-204,-202,-159,-273},{-186,-211,-314,-282,-197,-296},{-305,-262,-305,-240,-244,-298},{-293,-242,-164,-240,-170,-137},{-139,-155,-148,-134,-170,-260},{-298,-264,-148,-168,-298,-190},{-267,-302,-269,-146,-199,-184},{-291,-255,-255,-258,-282,-307},{-253,-269,-213,-179,-260,-311},{-251,-244,-152,-233,-148,-161},{-195,-206,-291,-298,-215,-208},{-282,-211,-148,-190,-314,-177},{-177,-293,-150,-159,-175,-172},{-269,-231,-289,-258,-284,-206},{-298,-206,-215,-280,-253,-202},{-291,-235,-146,-226,-208,-287},{-146,-251,-202,-148,-193,-242},{-134,-260,-170,-161,-211,-190},{-166,-139,-267,-228,-244,-287},{-305,-188,-293,-206,-134,-177},{-300,-249,-157,-258,-188,-202},{-193,-246,-309,-296,-177,-186},{-211,-170,-309,-206,-258,-309},{-284,-233,-298,-233,-152,-215},{-267,-262,-195,-197,-168,-199},{-188,-137,-280,-255,-253,-148},{-164,-204,-199,-249,-222,-164},{-244,-175,-152,-143,-166,-211},{-166,-249,-282,-258,-195,-244},{-269,-188,-152,-220,-276,-311},{-289,-137,-314,-235,-314,-172},{-206,-240,-287,-166,-222,-269},{-253,-282,-170,-249,-300,-262},{-152,-213,-215,-224,-242,-269},{-199,-193,-233,-278,-137,-170},{-251,-181,-305,-311,-213,-249},{-305,-188,-161,-220,-208,-237},{-137,-309,-267,-190,-237,-150},{-172,-311,-307,-276,-164,-298},{-264,-170,-231,-166,-193,-260},{-146,-220,-213,-172,-264,-197},{-222,-190,-143,-251,-287,-195},{-224,-249,-235,-307,-177,-141},{-184,-311,-237,-260,-157,-204}},{{-208,-190,-291,-224,-264,-220},{-139,-148,-204,-206,-291,-213},{-267,-166,-289,-208,-264,-305},{-134,-269,-164,-143,-253,-280},{-244,-215,-300,-249,-141,-146},{-302,-199,-289,-181,-204,-208},{-157,-282,-217,-296,-309,-199},{-284,-143,-289,-249,-220,-168},{-179,-186,-175,-287,-197,-222},{-155,-161,-161,-246,-235,-146},{-231,-211,-235,-139,-168,-224},{-291,-311,-134,-150,-244,-271},{-237,-217,-141,-280,-273,-168},{-240,-302,-152,-186,-143,-172},{-269,-148,-264,-137,-170,-307},{-233,-199,-159,-296,-188,-240},{-260,-204,-233,-271,-249,-287},{-184,-258,-190,-262,-177,-260},{-244,-170,-157,-240,-146,-181},{-280,-184,-157,-168,-251,-181},{-211,-164,-175,-244,-159,-287},{-202,-246,-148,-213,-161,-217},{-155,-235,-179,-226,-159,-177},{-302,-226,-300,-293,-157,-311},{-231,-164,-264,-309,-276,-213},{-267,-222,-224,-166,-311,-134},{-150,-262,-134,-168,-269,-152},{-134,-260,-289,-137,-276,-233},{-224,-267,-208,-284,-184,-179},{-271,-271,-314,-235,-244,-271},{-242,-146,-177,-134,-213,-188},{-164,-190,-278,-155,-222,-228},{-293,-235,-280,-177,-139,-269},{-150,-267,-296,-148,-150,-172},{-143,-193,-168,-226,-242,-233},{-143,-166,-204,-307,-195,-309},{-188,-291,-314,-211,-172,-179},{-150,-172,-271,-276,-298,-181},{-172,-235,-273,-237,-293,-307},{-249,-141,-217,-226,-166,-177},{-249,-255,-195,-146,-175,-179},{-235,-291,-228,-284,-137,-246},{-267,-269,-193,-199,-202,-208},{-302,-177,-211,-271,-249,-175},{-197,-314,-246,-296,-226,-300},{-244,-157,-152,-246,-179,-269},{-298,-262,-260,-253,-155,-195},{-253,-278,-271,-197,-172,-291},{-276,-188,-282,-314,-168,-298},{-264,-164,-141,-228,-314,-228}}},{{{-286,-331,-150,-209,-286,-231},{-305,-269,-307,-255,-252,-290},{-255,-190,-143,-159,-331,-331},{-219,-307,-321,-169,-171,-181},{-174,-214,-295,-231,-226,-267},{-257,-255,-233,-328,-324,-167},{-155,-259,-219,-169,-150,-255},{-290,-195,-267,-164,-248,-188},{-209,-321,-202,-302,-293,-262},{-193,-283,-200,-288,-190,-286},{-283,-331,-190,-333,-224,-324},{-271,-217,-148,-171,-328,-186},{-328,-248,-200,-300,-212,-286},{-207,-171,-314,-293,-159,-288},{-214,-257,-317,-176,-269,-319},{-271,-248,-145,-305,-152,-281},{-202,-207,-176,-219,-259,-219},{-267,-209,-167,-188,-298,-155},{-257,-240,-209,-286,-281,-255},{-200,-245,-238,-152,-155,-195},{-231,-250,-328,-164,-224,-267},{-317,-221,-326,-271,-257,-174},{-321,-145,-195,-240,-328,-274},{-219,-155,-148,-178,-307,-259},{-152,-314,-300,-264,-309,-243},{-312,-209,-217,-150,-264,-190},{-271,-183,-243,-233,-181,-164},{-317,-328,-176,-152,-162,-328},{-319,-212,-148,-224,-317,-271},{-262,-245,-295,-226,-319,-209},{-328,-328,-281,-264,-236,-152},{-190,-195,-278,-245,-217,-202},{-219,-224,-224,-143,-183,-167},{-224,-240,-317,-171,-283,-224},{-236,-324,-152,-143,-331,-171},{-276,-143,-319,-262,-243,-276},{-236,-309,-214,-276,-314,-195},{-328,-207,-257,-148,-209,-326},{-198,-259,-255,-317,-300,-278},{-178,-238,-333,-302,-305,-157},{-250,-200,-145,-259,-271,-181},{-259,-321,-214,-324,-162,-278},{-181,-328,-214,-314,-288,-164},{-269,-259,-252,-269,-231,-183},{-264,-155,-298,-195,-221,-176},{-174,-164,-245,-319,-228,-245},{-252,-150,-214,-309,-245,-305},{-188,-243,-238,-157,-276,-250},{-145,-333,-274,-148,-205,-295},{-236,-276,-214,-290,-174,-198}},{{-257,-264,-276,-307,-267,-314},{-193,-307,-271,-202,-178,-198},{-195,-228,-302,-298,-307,-298},{-190,-183,-264,-233,-174,-250},{-186,-252,-150,-188,-298,-288},{-331,-281,-317,-236,-169,-319},{-252,-238,-148,-176,-309,-290},{-321,-298,-209,-186,-262,-319},{-274,-193,-257,-255,-219,-155},{-302,-190,-324,-157,-259,-286},{-174,-217,-331,-250,-195,-183},{-169,-157,-202,-178,-262,-231},{-193,-207,-326,-167,-207,-198},{-259,-205,-243,-290,-305,-274},{-328,-240,-148,-240,-181,-152},{-236,-143,-231,-238,-226,-333},{-178,-157,-276,-155,-328,-319},{-281,-150,-174,-188,-167,-202},{-186,-326,-202,-178,-181,-207},{-331,-238,-281,-198,-157,-195},{-248,-305,-221,-276,-217,-302},{-238,-267,-314,-245,-290,-190},{-267,-209,-228,-240,-283,-300},{-286,-228,-169,-221,-169,-243},{-262,-307,-255,-295,-288,-267},{-278,-157,-238,-207,-143,-162},{-190,-293,-221,-319,-309,-228},{-302,-221,-209,-164,-183,-176},{-257,-212,-255,-255,-181,-157},{-183,-326,-228,-178,-207,-293},{-167,-252,-148,-286,-212,-159},{-302,-198,-240,-243,-198,-243},{-200,-145,-162,-309,-181,-309},{-324,-207,-186,-278,-219,-212},{-314,-312,-143,-143,-271,-295},{-333,-212,-274,-328,-238,-252},{-307,-190,-217,-314,-198,-259},{-214,-245,-331,-178,-207,-221},{-269,-174,-188,-190,-283,-171},{-295,-236,-238,-207,-198,-167},{-231,-219,-267,-195,-319,-162},{-248,-217,-219,-202,-262,-202},{-309,-274,-167,-328,-276,-219},{-224,-314,-159,-167,-331,-190},{-278,-212,-278,-181,-171,-205},{-298,-255,-243,-159,-312,-226},{-290,-236,-195,-240,-186,-243},{-293,-155,-331,-209,-188,-233},{-278,-312,-186,-248,-245,-331},{-288,-309,-231,-267,-328,-145}},{{-176,-167,-155,-233,-236,-193},{-305,-195,-224,-162,-257,-286},{-319,-305,-262,-259,-293,-245},{-143,-224,-307,-324,-305,-155},{-174,-317,-274,-293,-226,-317},{-333,-200,-190,-245,-226,-328},{-221,-186,-190,-331,-312,-155},{-252,-181,-262,-281,-228,-328},{-255,-205,-148,-183,-295,-286},{-250,-190,-219,-238,-257,-264},{-281,-317,-224,-248,-150,-143},{-290,-250,-286,-145,-148,-236},{-162,-233,-190,-150,-195,-250},{-264,-298,-312,-178,-307,-257},{-262,-317,-295,-228,-248,-167},{-321,-240,-278,-212,-190,-317},{-164,-302,-288,-252,-319,-145},{-278,-214,-314,-314,-198,-290},{-295,-262,-312,-205,-167,-198},{-276,-226,-240,-259,-259,-283},{-238,-207,-181,-155,-233,-243},{-288,-181,-200,-224,-243,-236},{-305,-274,-143,-212,-333,-209},{-193,-162,-226,-200,-245,-302},{-302,-176,-243,-205,-286,-202},{-193,-157,-240,-326,-328,-312},{-183,-169,-190,-278,-298,-262},{-155,-205,-233,-283,-252,-174},{-290,-236,-309,-286,-178,-333},{-252,-248,-307,-205,-250,-248},{-300,-143,-262,-171,-221,-262},{-302,-240,-250,-309,-198,-198},{-267,-224,-228,-226,-236,-274},{-195,-326,-233,-302,-314,-252},{-278,-295,-317,-214,-286,-174},{-231,-202,-200,-164,-148,-148},{-143,-219,-252,-178,-219,-286},{-228,-155,-319,-309,-331,-262},{-169,-321,-278,-248,-302,-290},{-293,-305,-317,-255,-217,-217},{-314,-295,-226,-176,-190,-150},{-319,-186,-286,-190,-278,-200},{-333,-143,-186,-321,-333,-333},{-286,-221,-252,-255,-319,-276},{-143,-159,-333,-167,-233,-321},{-314,-300,-205,-286,-159,-326},{-245,-278,-224,-262,-212,-214},{-148,-186,-255,-226,-236,-164},{-317,-298,-148,-195,-331,-286},{-274,-171,-181,-317,-262,-288}}},{{{-238,-358,-240,-344,-336,-379},{-369,-379,-377,-333,-243,-221},{-207,-207,-243,-374,-311,-344},{-371,-259,-328,-238,-265,-248},{-358,-377,-336,-339,-366,-377},{-224,-216,-177,-317,-358,-311},{-339,-314,-202,-363,-183,-216},{-167,-382,-322,-382,-235,-330},{-186,-197,-339,-232,-330,-169},{-246,-238,-363,-284,-289,-262},{-238,-358,-197,-218,-276,-292},{-341,-243,-229,-210,-379,-265},{-344,-330,-224,-188,-330,-347},{-292,-199,-314,-257,-295,-284},{-270,-186,-341,-248,-278,-180},{-227,-240,-330,-379,-254,-259},{-281,-298,-202,-306,-336,-349},{-371,-325,-363,-377,-177,-191},{-349,-306,-311,-374,-177,-276},{-295,-379,-199,-210,-188,-254},{-366,-319,-205,-298,-202,-177},{-216,-287,-311,-265,-216,-276},{-355,-317,-341,-328,-257,-240},{-246,-276,-289,-224,-175,-276},{-300,-175,-199,-240,-344,-270},{-243,-259,-360,-281,-284,-180},{-218,-287,-371,-287,-333,-379},{-177,-314,-268,-238,-328,-352},{-194,-232,-207,-207,-216,-246},{-213,-308,-169,-164,-180,-169},{-379,-183,-259,-292,-238,-194},{-289,-270,-349,-306,-303,-229},{-352,-325,-300,-188,-246,-205},{-349,-336,-262,-298,-308,-306},{-197,-363,-311,-197,-377,-167},{-248,-333,-262,-295,-347,-246},{-218,-164,-265,-246,-229,-352},{-308,-352,-232,-213,-360,-270},{-347,-221,-330,-358,-268,-268},{-175,-188,-186,-224,-366,-210},{-213,-379,-210,-243,-328,-207},{-180,-254,-235,-281,-248,-306},{-355,-270,-333,-292,-311,-213},{-213,-191,-344,-311,-227,-325},{-273,-227,-194,-205,-229,-232},{-308,-284,-180,-265,-379,-339},{-349,-330,-289,-199,-229,-254},{-358,-358,-186,-172,-298,-298},{-227,-317,-232,-235,-341,-308},{-347,-265,-317,-199,-366,-251}},{{-191,-229,-306,-167,-213,-379},{-180,-167,-232,-281,-314,-254},{-251,-352,-229,-366,-363,-259},{-262,-169,-314,-164,-197,-330},{-292,-262,-325,-325,-317,-360},{-355,-295,-167,-197,-289,-186},{-276,-273,-265,-199,-360,-379},{-246,-371,-218,-251,-254,-164},{-202,-273,-330,-216,-164,-218},{-358,-336,-314,-300,-175,-248},{-227,-360,-366,-167,-333,-292},{-325,-218,-371,-175,-202,-210},{-224,-347,-227,-281,-221,-175},{-194,-300,-270,-339,-251,-213},{-289,-281,-175,-273,-227,-183},{-344,-317,-221,-167,-213,-341},{-186,-227,-229,-308,-259,-224},{-276,-259,-276,-248,-216,-358},{-268,-306,-188,-172,-188,-210},{-205,-216,-328,-254,-207,-341},{-371,-218,-363,-344,-262,-341},{-197,-344,-278,-336,-251,-199},{-341,-235,-292,-177,-172,-336},{-188,-213,-191,-186,-292,-314},{-306,-352,-292,-175,-377,-262},{-371,-295,-213,-360,-344,-268},{-213,-167,-183,-197,-243,-248},{-265,-238,-202,-246,-306,-355},{-207,-360,-238,-205,-374,-371},{-207,-180,-344,-298,-240,-325},{-175,-218,-284,-257,-202,-246},{-289,-339,-347,-314,-254,-314},{-358,-295,-240,-251,-325,-268},{-164,-374,-325,-177,-377,-336},{-322,-202,-172,-322,-306,-347},{-319,-300,-169,-224,-369,-273},{-172,-229,-265,-306,-292,-177},{-308,-308,-374,-284,-284,-180},{-377,-229,-254,-221,-355,-306},{-298,-180,-322,-347,-207,-295},{-257,-308,-330,-298,-371,-188},{-194,-218,-371,-270,-352,-287},{-257,-202,-289,-227,-341,-229},{-298,-325,-229,-175,-306,-262},{-232,-278,-281,-164,-325,-295},{-314,-197,-248,-191,-268,-199},{-289,-259,-270,-232,-355,-317},{-232,-240,-317,-229,-358,-358},{-232,-172,-317,-377,-270,-284},{-355,-341,-199,-186,-339,-289}},{{-218,-358,-358,-287,-218,-292},{-199,-336,-270,-328,-300,-325},{-284,-188,-360,-268,-257,-374},{-347,-366,-175,-344,-268,-167},{-246,-257,-232,-314,-371,-325},{-210,-243,-276,-243,-205,-210},{-284,-207,-218,-186,-177,-325},{-306,-289,-371,-360,-339,-382},{-300,-306,-194,-330,-292,-202},{-240,-317,-330,-188,-341,-191},{-319,-210,-251,-360,-292,-205},{-268,-292,-262,-328,-303,-232},{-177,-311,-325,-177,-191,-229},{-355,-287,-325,-246,-227,-262},{-322,-191,-268,-227,-308,-224},{-251,-183,-336,-180,-366,-284},{-317,-224,-232,-194,-186,-251},{-246,-213,-292,-355,-355,-314},{-216,-344,-238,-289,-379,-328},{-339,-306,-369,-292,-317,-172},{-319,-377,-180,-319,-218,-292},{-177,-352,-232,-188,-259,-186},{-333,-369,-257,-273,-295,-175},{-262,-167,-319,-328,-191,-251},{-248,-341,-254,-238,-235,-347},{-308,-175,-336,-221,-292,-246},{-172,-221,-175,-339,-194,-298},{-246,-265,-229,-270,-295,-287},{-344,-336,-330,-205,-328,-197},{-336,-243,-360,-328,-183,-164},{-221,-238,-183,-248,-224,-317},{-240,-167,-216,-292,-169,-240},{-164,-311,-177,-273,-336,-347},{-183,-227,-169,-175,-238,-360},{-177,-240,-251,-194,-205,-366},{-216,-254,-207,-300,-352,-265},{-248,-180,-358,-265,-289,-341},{-273,-273,-216,-177,-216,-259},{-177,-210,-229,-183,-191,-341},{-287,-199,-330,-374,-273,-186},{-167,-229,-257,-295,-265,-262},{-344,-287,-238,-374,-224,-281},{-251,-311,-205,-248,-262,-265},{-287,-382,-328,-210,-339,-235},{-328,-377,-229,-199,-262,-232},{-366,-360,-325,-295,-232,-382},{-216,-240,-317,-218,-287,-379},{-371,-284,-240,-333,-175,-191},{-330,-216,-281,-330,-202,-317},{-180,-366,-360,-284,-298,-366}}},{{{-136,-182,-214,-154,-109,-103},{-202,-146,-126,-151,-216,-111},{-114,-179,-206,-174,-97,-116},{-182,-136,-213,-143,-143,-154},{-154,-114,-165,-157,-99,-188},{-169,-154,-143,-114,-149,-134},{-142,-188,-166,-202,-112,-214},{-168,-185,-188,-151,-216,-149},{-171,-149,-134,-114,-199,-117},{-206,-179,-159,-163,-108,-188},{-100,-180,-174,-191,-128,-136},{-166,-182,-205,-160,-142,-134},{-92,-205,-202,-179,-154,-179},{-196,-109,-182,-152,-165,-149},{-97,-134,-148,-165,-116,-99},{-216,-142,-202,-111,-120,-119},{-102,-94,-117,-139,-205,-159},{-108,-108,-117,-183,-176,-122},{-151,-213,-112,-168,-112,-179},{-128,-157,-177,-145,-162,-200},{-160,-165,-120,-162,-174,-148},{-197,-100,-182,-200,-183,-191},{-172,-172,-169,-205,-94,-185},{-174,-194,-185,-108,-120,-137},{-192,-180,-168,-126,-100,-163},{-128,-99,-208,-122,-143,-151},{-126,-156,-95,-166,-200,-197},{-117,-125,-137,-117,-206,-171},{-108,-169,-157,-106,-157,-188},{-123,-148,-128,-205,-182,-148},{-200,-209,-185,-143,-103,-148},{-183,-129,-176,-216,-168,-119},{-151,-214,-194,-176,-154,-205},{-132,-208,-123,-159,-126,-191},{-156,-117,-103,-97,-151,-180},{-169,-202,-162,-99,-208,-189},{-214,-199,-177,-179,-132,-102},{-134,-152,-92,-174,-114,-166},{-99,-134,-119,-166,-216,-200},{-106,-182,-179,-196,-109,-214},{-109,-211,-114,-179,-111,-211},{-123,-103,-202,-129,-146,-169},{-112,-108,-200,-109,-185,-209},{-146,-120,-216,-165,-209,-205},{-200,-145,-105,-119,-122,-151},{-180,-162,-192,-151,-176,-213},{-162,-106,-102,-176,-117,-208},{-205,-179,-111,-180,-108,-194},{-143,-202,-92,-208,-169,-191},{-145,-165,-206,-156,-160,-112}},{{-186,-176,-196,-116,-112,-200},{-214,-126,-208,-200,-159,-114},{-148,-163,-180,-106,-114,-146},{-202,-185,-125,-186,-146,-111},{-116,-95,-216,-143,-119,-191},{-122,-197,-151,-182,-168,-125},{-132,-99,-140,-123,-197,-109},{-103,-145,-117,-203,-102,-191},{-131,-209,-139,-137,-169,-159},{-176,-172,-111,-129,-92,-140},{-185,-172,-216,-100,-214,-185},{-95,-189,-95,-151,-125,-191},{-211,-117,-180,-213,-100,-109},{-149,-162,-202,-105,-149,-145},{-114,-97,-154,-209,-129,-189},{-182,-213,-162,-146,-191,-185},{-116,-183,-114,-132,-196,-159},{-154,-209,-200,-95,-205,-206},{-162,-122,-188,-136,-203,-185},{-172,-129,-117,-200,-105,-185},{-143,-109,-95,-192,-152,-102},{-192,-111,-209,-120,-92,-180},{-166,-142,-176,-172,-206,-199},{-109,-202,-111,-119,-159,-166},{-148,-97,-172,-209,-169,-192},{-192,-120,-214,-152,-194,-199},{-120,-129,-131,-165,-136,-171},{-145,-143,-196,-92,-106,-148},{-156,-95,-148,-185,-142,-189},{-146,-102,-183,-214,-146,-192},{-143,-146,-166,-103,-92,-203},{-180,-205,-140,-214,-196,-171},{-211,-203,-99,-148,-100,-139},{-206,-216,-136,-211,-112,-145},{-103,-105,-174,-174,-116,-97},{-183,-216,-186,-100,-194,-148},{-116,-102,-194,-131,-125,-114},{-191,-171,-105,-111,-132,-99},{-116,-139,-103,-94,-111,-211},{-92,-149,-183,-109,-185,-206},{-134,-214,-213,-163,-106,-166},{-209,-189,-122,-149,-172,-171},{-183,-129,-211,-140,-180,-180},{-139,-174,-199,-189,-197,-148},{-209,-129,-182,-119,-159,-216},{-126,-154,-116,-120,-92,-163},{-145,-191,-208,-168,-157,-185},{-119,-108,-126,-103,-122,-102},{-134,-189,-163,-126,-152,-191},{-176,-192,-174,-128,-109,-149}},{{-194,-188,-185,-111,-185,-94},{-179,-197,-156,-117,-194,-109},{-105,-151,-94,-166,-142,-136},{-188,-129,-209,-162,-126,-180},{-145,-189,-205,-103,-163,-142},{-148,-186,-157,-152,-131,-143},{-171,-100,-92,-151,-208,-103},{-105,-143,-182,-109,-169,-203},{-149,-216,-125,-134,-116,-197},{-129,-148,-165,-209,-131,-159},{-199,-162,-146,-168,-102,-114},{-186,-134,-122,-128,-162,-140},{-120,-166,-194,-131,-208,-171},{-148,-162,-188,-172,-94,-189},{-183,-119,-123,-103,-105,-202},{-137,-97,-191,-169,-176,-120},{-156,-156,-146,-106,-206,-159},{-200,-137,-123,-209,-149,-145},{-106,-209,-169,-99,-168,-202},{-183,-169,-160,-183,-140,-148},{-97,-196,-99,-160,-200,-123},{-122,-145,-120,-211,-137,-132},{-157,-194,-174,-119,-192,-123},{-163,-156,-174,-168,-179,-177},{-165,-196,-182,-189,-132,-188},{-179,-194,-145,-202,-94,-186},{-116,-120,-97,-125,-140,-105},{-148,-123,-203,-146,-189,-191},{-119,-105,-157,-131,-183,-200},{-109,-179,-213,-112,-156,-202},{-191,-182,-129,-103,-165,-163},{-213,-202,-154,-183,-183,-185},{-214,-154,-194,-126,-196,-160},{-103,-105,-211,-116,-145,-200},{-209,-176,-182,-126,-197,-134},{-122,-105,-126,-202,-128,-102},{-140,-122,-116,-129,-186,-213},{-202,-108,-203,-139,-206,-163},{-194,-95,-199,-105,-186,-134},{-94,-197,-112,-149,-163,-128},{-119,-151,-197,-131,-125,-159},{-186,-125,-137,-114,-149,-123},{-171,-165,-128,-125,-174,-132},{-169,-159,-100,-199,-174,-116},{-179,-180,-137,-95,-142,-192},{-157,-108,-106,-171,-160,-216},{-196,-180,-154,-162,-136,-146},{-131,-209,-157,-108,-146,-206},{-211,-211,-95,-112,-148,-156},{-177,-111,-206,-149,-166,-151}}},{{{-222,-157,-180,-146,-109,-177},{-238,-238,-251,-151,-193,-147},{-255,-164,-251,-140,-167,-186},{-151,-120,-164,-144,-206,-157},{-184,-248,-202,-113,-155,-111},{-166,-126,-120,-200,-244,-115},{-246,-149,-189,-184,-242,-246},{-149,-129,-153,-246,-131,-167},{-197,-200,-253,-189,-180,-202},{-237,-180,-167,-253,-109,-175},{-226,-189,-237,-109,-160,-136},{-178,-171,-246,-177,-164,-249},{-155,-118,-144,-220,-113,-202},{-193,-238,-180,-191,-189,-237},{-193,-167,-187,-146,-153,-131},{-142,-118,-164,-218,-220,-242},{-129,-133,-209,-233,-157,-209},{-240,-178,-189,-113,-178,-115},{-220,-229,-167,-155,-186,-224},{-136,-120,-213,-116,-198,-222},{-186,-131,-155,-164,-249,-162},{-233,-175,-193,-160,-177,-215},{-144,-166,-187,-142,-202,-189},{-164,-166,-191,-224,-177,-113},{-189,-155,-164,-160,-231,-135},{-178,-151,-182,-206,-169,-195},{-115,-215,-180,-248,-146,-169},{-218,-142,-186,-120,-158,-171},{-109,-217,-246,-202,-238,-118},{-215,-251,-249,-249,-193,-126},{-124,-127,-160,-213,-242,-160},{-187,-167,-217,-224,-248,-200},{-193,-167,-222,-133,-122,-248},{-215,-209,-206,-129,-206,-235},{-177,-217,-169,-157,-120,-189},{-171,-124,-207,-113,-158,-149},{-198,-162,-228,-127,-200,-207},{-178,-135,-228,-147,-202,-184},{-244,-177,-226,-146,-215,-244},{-238,-129,-146,-126,-116,-229},{-229,-178,-129,-191,-211,-135},{-187,-116,-253,-129,-226,-138},{-233,-240,-124,-157,-115,-244},{-231,-149,-233,-164,-184,-197},{-149,-166,-207,-184,-144,-180},{-147,-140,-136,-158,-131,-244},{-127,-253,-193,-144,-228,-162},{-202,-255,-195,-251,-224,-248},{-228,-115,-157,-246,-222,-200},{-198,-182,-249,-136,-235,-255}},{{-213,-135,-228,-164,-231,-167},{-191,-209,-229,-162,-140,-218},{-209,-177,-207,-206,-142,-213},{-209,-131,-253,-120,-140,-178},{-197,-184,-153,-169,-238,-140},{-228,-173,-206,-255,-140,-111},{-136,-220,-217,-202,-180,-189},{-127,-175,-153,-118,-209,-184},{-231,-144,-197,-229,-149,-251},{-215,-129,-111,-177,-246,-242},{-251,-222,-146,-224,-246,-248},{-113,-220,-184,-122,-249,-186},{-162,-220,-246,-248,-240,-113},{-175,-231,-109,-186,-113,-184},{-226,-228,-146,-111,-191,-166},{-237,-240,-195,-244,-167,-142},{-131,-253,-153,-235,-177,-193},{-193,-151,-131,-180,-202,-124},{-215,-217,-140,-193,-198,-162},{-136,-198,-118,-169,-120,-164},{-126,-142,-116,-253,-146,-195},{-228,-175,-142,-116,-177,-142},{-251,-144,-173,-246,-151,-215},{-220,-235,-189,-129,-147,-131},{-136,-235,-158,-217,-249,-111},{-228,-157,-144,-140,-186,-213},{-238,-226,-195,-229,-217,-246},{-124,-157,-157,-115,-200,-255},{-142,-191,-220,-131,-160,-153},{-147,-118,-133,-233,-224,-124},{-167,-162,-198,-193,-237,-133},{-138,-246,-213,-149,-135,-211},{-166,-116,-133,-166,-200,-158},{-207,-244,-226,-235,-184,-118},{-177,-206,-175,-202,-249,-167},{-138,-155,-231,-197,-120,-175},{-246,-224,-164,-122,-195,-240},{-248,-195,-211,-224,-131,-157},{-195,-169,-175,-177,-151,-197},{-115,-122,-191,-237,-162,-182},{-133,-220,-133,-129,-218,-233},{-195,-131,-195,-144,-175,-182},{-146,-220,-207,-127,-166,-116},{-120,-122,-155,-209,-131,-138},{-129,-251,-244,-224,-142,-244},{-160,-113,-228,-251,-178,-135},{-118,-206,-136,-189,-218,-162},{-160,-218,-213,-129,-215,-226},{-135,-180,-246,-244,-228,-129},{-109,-229,-191,-224,-157,-229}},{{-206,-229,-240,-206,-182,-253},{-233,-218,-178,-191,-140,-146},{-202,-244,-120,-204,-180,-242},{-249,-193,-211,-111,-211,-155},{-206,-200,-136,-118,-249,-200},{-184,-135,-206,-144,-136,-255},{-157,-229,-195,-126,-136,-253},{-111,-184,-149,-200,-191,-242},{-217,-126,-175,-197,-191,-197},{-184,-242,-202,-113,-120,-146},{-218,-166,-191,-233,-248,-182},{-129,-238,-153,-238,-222,-169},{-204,-140,-173,-151,-251,-249},{-211,-155,-109,-226,-235,-193},{-144,-167,-207,-169,-193,-109},{-157,-118,-131,-244,-231,-235},{-184,-127,-113,-171,-131,-169},{-140,-191,-249,-244,-127,-233},{-226,-237,-209,-136,-131,-171},{-109,-115,-220,-167,-195,-209},{-162,-147,-251,-255,-116,-204},{-249,-246,-238,-222,-182,-248},{-237,-171,-251,-158,-187,-151},{-115,-197,-240,-164,-240,-193},{-140,-115,-178,-238,-146,-187},{-171,-233,-207,-146,-251,-217},{-151,-204,-109,-127,-207,-175},{-206,-195,-146,-220,-198,-111},{-191,-218,-237,-127,-160,-220},{-133,-213,-177,-222,-213,-202},{-213,-118,-195,-217,-146,-189},{-193,-211,-233,-122,-129,-175},{-206,-229,-178,-144,-109,-175},{-151,-109,-189,-142,-209,-127},{-193,-164,-144,-253,-206,-233},{-133,-207,-206,-164,-213,-238},{-191,-136,-251,-200,-204,-229},{-218,-135,-215,-138,-171,-238},{-253,-226,-228,-109,-197,-255},{-126,-151,-229,-182,-164,-116},{-133,-235,-193,-164,-122,-191},{-249,-111,-195,-113,-157,-198},{-182,-242,-200,-209,-238,-180},{-109,-207,-171,-116,-228,-142},{-171,-240,-204,-144,-171,-228},{-131,-115,-158,-127,-238,-149},{-204,-162,-167,-173,-177,-215},{-136,-206,-228,-246,-202,-109},{-147,-149,-166,-226,-202,-206},{-129,-255,-164,-160,-120,-175}}},{{{-149,-289,-328,-294,-296,-159},{-260,-272,-218,-282,-341,-191},{-267,-250,-225,-321,-260,-208},{-164,-267,-184,-203,-316,-292},{-279,-220,-211,-179,-181,-265},{-260,-294,-181,-299,-169,-311},{-318,-326,-179,-201,-172,-159},{-201,-341,-233,-149,-243,-265},{-211,-311,-262,-287,-314,-206},{-260,-154,-265,-309,-147,-147},{-147,-238,-282,-257,-198,-230},{-284,-147,-238,-338,-294,-331},{-284,-189,-318,-167,-270,-252},{-240,-282,-243,-235,-162,-235},{-176,-309,-179,-272,-213,-225},{-208,-274,-184,-147,-181,-213},{-247,-338,-240,-186,-245,-172},{-179,-176,-159,-316,-341,-333},{-218,-270,-287,-309,-179,-287},{-152,-172,-194,-191,-318,-282},{-299,-336,-194,-216,-201,-311},{-267,-208,-314,-282,-154,-277},{-220,-255,-333,-198,-238,-257},{-243,-250,-154,-260,-225,-179},{-169,-270,-289,-216,-255,-169},{-257,-240,-314,-223,-201,-218},{-257,-181,-223,-176,-184,-211},{-314,-162,-326,-189,-203,-247},{-299,-289,-272,-321,-167,-223},{-211,-328,-220,-250,-211,-250},{-191,-309,-154,-194,-301,-321},{-333,-179,-289,-238,-287,-301},{-323,-179,-255,-306,-203,-196},{-301,-233,-321,-147,-252,-167},{-201,-152,-284,-157,-203,-149},{-326,-270,-318,-323,-257,-216},{-336,-272,-174,-179,-323,-294},{-194,-240,-294,-149,-292,-157},{-336,-331,-333,-176,-240,-311},{-206,-196,-318,-191,-243,-238},{-333,-216,-309,-292,-233,-184},{-262,-294,-343,-287,-208,-328},{-213,-343,-149,-338,-341,-338},{-321,-245,-228,-301,-164,-279},{-279,-287,-176,-245,-218,-184},{-157,-240,-336,-233,-279,-213},{-267,-196,-191,-265,-247,-328},{-245,-279,-147,-225,-287,-233},{-333,-284,-284,-260,-282,-172},{-164,-164,-304,-314,-172,-247}},{{-169,-238,-198,-270,-203,-167},{-208,-184,-265,-289,-262,-316},{-213,-292,-189,-287,-198,-223},{-333,-196,-169,-230,-282,-211},{-223,-301,-211,-228,-240,-318},{-225,-343,-162,-255,-240,-316},{-213,-157,-164,-328,-225,-282},{-287,-164,-208,-233,-157,-233},{-147,-243,-296,-216,-306,-314},{-247,-152,-247,-289,-277,-265},{-296,-265,-152,-233,-152,-333},{-341,-274,-252,-321,-211,-223},{-167,-233,-265,-252,-289,-245},{-235,-265,-267,-341,-172,-235},{-306,-162,-294,-279,-223,-311},{-294,-213,-167,-265,-262,-194},{-194,-176,-181,-299,-314,-294},{-333,-343,-301,-203,-176,-198},{-306,-230,-341,-176,-341,-306},{-316,-336,-233,-225,-172,-294},{-218,-252,-203,-245,-245,-181},{-265,-328,-245,-179,-235,-230},{-186,-240,-218,-270,-228,-152},{-338,-159,-318,-167,-201,-225},{-230,-208,-159,-257,-250,-184},{-267,-225,-218,-243,-240,-301},{-318,-323,-233,-211,-257,-318},{-191,-194,-179,-216,-270,-208},{-218,-277,-277,-274,-265,-289},{-326,-316,-240,-250,-314,-311},{-235,-265,-272,-292,-154,-247},{-223,-306,-169,-186,-257,-343},{-211,-233,-255,-159,-220,-218},{-282,-159,-287,-272,-157,-318},{-154,-225,-262,-176,-164,-228},{-152,-294,-343,-321,-262,-159},{-238,-270,-289,-172,-194,-149},{-301,-257,-147,-338,-198,-270},{-282,-262,-211,-289,-238,-306},{-257,-306,-267,-252,-287,-301},{-314,-203,-216,-157,-287,-172},{-279,-225,-157,-203,-314,-277},{-326,-279,-240,-292,-172,-284},{-311,-201,-272,-159,-270,-191},{-284,-245,-230,-174,-220,-176},{-304,-333,-176,-179,-218,-274},{-191,-296,-230,-203,-309,-304},{-343,-235,-321,-167,-260,-176},{-228,-240,-292,-238,-194,-314},{-311,-252,-230,-169,-164,-191}},{{-228,-323,-196,-301,-206,-265},{-321,-296,-179,-284,-198,-223},{-260,-194,-304,-321,-336,-203},{-228,-194,-235,-331,-228,-206},{-159,-172,-179,-243,-164,-267},{-287,-216,-314,-328,-309,-316},{-172,-294,-162,-343,-304,-245},{-284,-326,-154,-220,-243,-243},{-260,-191,-211,-220,-196,-301},{-287,-216,-306,-260,-172,-225},{-235,-233,-321,-172,-186,-152},{-301,-318,-287,-262,-306,-220},{-167,-176,-159,-338,-208,-201},{-314,-321,-328,-326,-223,-270},{-184,-159,-282,-154,-203,-235},{-147,-213,-206,-311,-321,-167},{-220,-220,-265,-277,-316,-201},{-233,-328,-336,-238,-196,-186},{-343,-176,-201,-296,-238,-181},{-333,-174,-198,-247,-196,-159},{-211,-292,-247,-149,-321,-247},{-287,-252,-203,-186,-223,-147},{-292,-294,-149,-149,-164,-267},{-292,-220,-157,-184,-149,-191},{-260,-159,-270,-240,-323,-341},{-257,-211,-147,-311,-186,-343},{-157,-167,-186,-208,-245,-341},{-299,-147,-225,-196,-323,-250},{-314,-255,-289,-169,-194,-164},{-191,-294,-176,-287,-336,-157},{-284,-220,-196,-257,-228,-208},{-206,-243,-211,-179,-186,-147},{-206,-230,-282,-252,-262,-169},{-301,-343,-267,-186,-301,-292},{-152,-267,-247,-147,-284,-311},{-333,-235,-191,-323,-265,-250},{-228,-323,-294,-255,-220,-213},{-311,-162,-314,-172,-184,-260},{-311,-331,-247,-223,-225,-306},{-206,-243,-260,-289,-279,-270},{-343,-294,-208,-252,-321,-223},{-279,-287,-343,-270,-311,-262},{-301,-172,-252,-289,-318,-164},{-172,-169,-260,-211,-159,-318},{-304,-186,-255,-323,-343,-174},{-255,-176,-284,-326,-252,-262},{-243,-265,-318,-243,-181,-318},{-318,-296,-333,-174,-186,-211},{-235,-208,-154,-213,-149,-304},{-245,-341,-257,-284,-250,-194}}},{{{-176,-159,-189,-155,-314,-284},{-307,-206,-229,-219,-277,-210},{-310,-185,-282,-247,-178,-300},{-256,-298,-152,-270,-150,-192},{-169,-201,-203,-201,-159,-291},{-240,-189,-270,-224,-296,-213},{-282,-298,-185,-284,-157,-180},{-233,-139,-256,-159,-208,-268},{-219,-210,-323,-249,-310,-310},{-296,-199,-284,-277,-166,-323},{-310,-291,-277,-173,-173,-270},{-312,-280,-162,-323,-173,-303},{-206,-245,-143,-139,-321,-323},{-247,-229,-157,-143,-231,-194},{-203,-152,-231,-243,-201,-310},{-169,-185,-226,-169,-162,-233},{-226,-222,-139,-182,-196,-208},{-215,-166,-291,-173,-286,-280},{-208,-300,-312,-180,-270,-159},{-219,-270,-162,-266,-229,-263},{-201,-238,-236,-307,-238,-233},{-226,-233,-176,-150,-189,-316},{-139,-159,-192,-185,-300,-280},{-150,-323,-231,-171,-187,-282},{-245,-217,-203,-238,-243,-178},{-266,-277,-236,-150,-201,-305},{-298,-213,-236,-256,-169,-139},{-166,-277,-146,-180,-222,-256},{-169,-152,-192,-203,-150,-199},{-316,-240,-233,-319,-266,-229},{-293,-173,-284,-213,-182,-254},{-166,-210,-159,-150,-159,-139},{-141,-199,-312,-224,-238,-178},{-180,-243,-296,-277,-247,-305},{-256,-286,-229,-229,-159,-143},{-196,-263,-162,-247,-162,-162},{-224,-229,-289,-319,-273,-249},{-233,-159,-256,-259,-289,-236},{-182,-206,-203,-259,-240,-296},{-148,-141,-166,-254,-171,-261},{-150,-178,-199,-162,-201,-277},{-152,-296,-316,-252,-261,-143},{-254,-213,-319,-291,-247,-152},{-213,-282,-148,-261,-307,-249},{-157,-192,-303,-293,-162,-150},{-233,-182,-187,-254,-206,-321},{-284,-259,-261,-296,-148,-213},{-189,-286,-213,-189,-139,-210},{-157,-277,-247,-157,-233,-152},{-139,-256,-180,-286,-310,-203}},{{-289,-213,-189,-215,-289,-199},{-319,-231,-321,-296,-201,-148},{-146,-148,-148,-166,-215,-275},{-282,-219,-169,-224,-148,-206},{-259,-222,-213,-256,-293,-150},{-298,-243,-254,-178,-176,-323},{-314,-300,-192,-189,-203,-199},{-286,-256,-249,-238,-196,-303},{-291,-282,-194,-201,-300,-268},{-263,-261,-206,-284,-256,-303},{-296,-238,-229,-155,-305,-173},{-215,-280,-189,-319,-189,-261},{-291,-164,-270,-231,-178,-155},{-213,-201,-162,-254,-224,-256},{-233,-319,-146,-280,-171,-222},{-240,-226,-284,-171,-233,-298},{-314,-291,-289,-316,-314,-305},{-321,-314,-210,-206,-259,-312},{-270,-254,-314,-305,-305,-316},{-233,-229,-187,-229,-199,-231},{-245,-222,-284,-208,-323,-289},{-300,-312,-152,-273,-245,-282},{-291,-273,-259,-224,-229,-157},{-176,-273,-240,-270,-173,-180},{-247,-307,-141,-273,-152,-282},{-210,-289,-314,-194,-310,-247},{-319,-316,-141,-277,-249,-226},{-268,-280,-180,-259,-141,-266},{-196,-208,-185,-243,-215,-150},{-199,-148,-310,-270,-298,-166},{-247,-217,-282,-307,-208,-289},{-162,-236,-203,-261,-150,-314},{-259,-152,-238,-180,-171,-277},{-236,-189,-162,-199,-208,-192},{-203,-256,-256,-182,-261,-263},{-173,-189,-189,-300,-194,-236},{-249,-176,-157,-254,-159,-139},{-238,-182,-196,-141,-143,-187},{-217,-180,-169,-176,-196,-249},{-282,-152,-215,-249,-273,-316},{-178,-252,-194,-305,-263,-277},{-284,-226,-263,-310,-252,-261},{-300,-252,-261,-307,-196,-307},{-307,-298,-314,-219,-305,-201},{-185,-238,-245,-296,-289,-236},{-312,-245,-263,-319,-192,-185},{-236,-159,-282,-141,-192,-268},{-305,-229,-219,-252,-263,-300},{-293,-192,-206,-245,-164,-159},{-194,-162,-236,-249,-141,-273}},{{-194,-139,-286,-259,-282,-245},{-231,-305,-303,-169,-305,-215},{-316,-303,-296,-249,-162,-203},{-182,-213,-314,-178,-238,-187},{-210,-171,-296,-247,-252,-291},{-256,-180,-187,-166,-312,-256},{-152,-236,-316,-196,-280,-243},{-286,-185,-229,-166,-280,-305},{-270,-316,-275,-171,-293,-192},{-319,-215,-201,-314,-321,-206},{-217,-256,-187,-310,-240,-171},{-152,-270,-157,-245,-206,-162},{-139,-249,-312,-206,-307,-233},{-148,-201,-270,-284,-157,-270},{-226,-240,-303,-215,-305,-219},{-314,-305,-240,-169,-247,-305},{-286,-243,-164,-247,-143,-189},{-141,-314,-226,-173,-201,-270},{-296,-238,-236,-312,-141,-305},{-254,-210,-261,-194,-196,-176},{-270,-210,-208,-192,-277,-259},{-224,-155,-245,-150,-259,-252},{-157,-284,-310,-268,-303,-252},{-263,-268,-321,-169,-171,-176},{-273,-210,-231,-275,-300,-233},{-249,-266,-187,-189,-298,-243},{-169,-162,-266,-208,-310,-275},{-259,-249,-141,-171,-203,-280},{-286,-187,-263,-169,-229,-310},{-152,-176,-314,-185,-176,-178},{-226,-289,-217,-155,-280,-307},{-226,-155,-166,-240,-226,-159},{-236,-189,-157,-159,-233,-148},{-300,-201,-249,-284,-148,-249},{-176,-252,-249,-300,-176,-247},{-169,-245,-185,-316,-182,-224},{-178,-277,-162,-238,-143,-152},{-270,-236,-166,-261,-171,-249},{-194,-314,-268,-277,-215,-289},{-139,-254,-159,-215,-291,-273},{-210,-152,-245,-155,-173,-171},{-277,-194,-236,-171,-247,-150},{-236,-256,-263,-238,-310,-263},{-143,-159,-146,-206,-215,-178},{-305,-224,-321,-196,-312,-305},{-252,-231,-206,-226,-208,-249},{-176,-150,-194,-319,-280,-178},{-284,-189,-213,-157,-229,-323},{-159,-189,-171,-199,-298,-217},{-249,-199,-208,-226,-182,-208}}},{{{-241,-326,-256,-412,-206,-344},{-353,-318,-209,-303,-206,-338},{-403,-291,-376,-318,-294,-203},{-403,-265,-294,-226,-256,-379},{-215,-288,-403,-312,-259,-259},{-376,-306,-241,-182,-318,-391},{-309,-226,-285,-288,-412,-303},{-270,-359,-347,-353,-200,-365},{-406,-223,-412,-291,-185,-309},{-212,-238,-394,-182,-368,-262},{-256,-206,-318,-200,-265,-397},{-323,-365,-291,-373,-332,-232},{-188,-250,-318,-288,-347,-235},{-244,-191,-400,-385,-268,-197},{-391,-303,-329,-273,-297,-350},{-320,-303,-353,-318,-397,-212},{-373,-388,-379,-320,-282,-341},{-347,-294,-312,-406,-382,-256},{-376,-332,-238,-291,-329,-373},{-238,-247,-188,-259,-294,-282},{-350,-409,-312,-238,-382,-262},{-294,-309,-347,-229,-338,-347},{-332,-197,-309,-362,-226,-197},{-244,-265,-329,-241,-250,-256},{-315,-256,-179,-370,-259,-232},{-270,-270,-182,-315,-359,-397},{-206,-194,-212,-268,-291,-194},{-206,-315,-291,-332,-382,-300},{-315,-285,-400,-294,-403,-185},{-388,-347,-223,-215,-270,-338},{-347,-362,-276,-350,-282,-226},{-318,-359,-365,-179,-326,-312},{-182,-256,-223,-370,-365,-344},{-412,-197,-259,-238,-209,-276},{-218,-194,-353,-306,-262,-294},{-259,-303,-288,-315,-329,-312},{-226,-306,-303,-235,-268,-279},{-185,-350,-356,-253,-282,-409},{-365,-291,-218,-347,-362,-200},{-218,-335,-309,-253,-253,-300},{-373,-376,-182,-323,-176,-350},{-344,-179,-338,-335,-209,-197},{-318,-403,-326,-368,-212,-347},{-279,-238,-379,-300,-391,-250},{-259,-226,-259,-206,-244,-320},{-368,-309,-391,-365,-309,-323},{-250,-400,-350,-247,-238,-303},{-229,-332,-332,-215,-291,-329},{-268,-323,-388,-176,-409,-391},{-241,-185,-282,-206,-329,-385}},{{-323,-338,-318,-309,-247,-370},{-262,-338,-276,-265,-265,-241},{-250,-285,-268,-235,-382,-206},{-382,-394,-235,-226,-212,-188},{-385,-329,-247,-265,-332,-318},{-306,-285,-409,-368,-226,-344},{-306,-347,-276,-262,-285,-188},{-347,-223,-226,-223,-332,-253},{-253,-309,-335,-300,-362,-412},{-276,-303,-412,-359,-282,-215},{-412,-338,-262,-382,-220,-253},{-329,-232,-409,-341,-347,-262},{-315,-347,-294,-297,-350,-391},{-315,-323,-382,-391,-232,-241},{-341,-394,-403,-232,-326,-341},{-218,-226,-206,-179,-356,-306},{-318,-362,-182,-368,-370,-368},{-244,-341,-244,-247,-303,-220},{-197,-218,-182,-397,-291,-265},{-276,-394,-232,-226,-279,-191},{-409,-253,-391,-373,-341,-379},{-309,-312,-368,-223,-226,-238},{-412,-176,-209,-218,-200,-247},{-382,-359,-332,-329,-188,-223},{-209,-215,-197,-356,-312,-250},{-226,-335,-185,-235,-241,-200},{-279,-197,-312,-412,-282,-397},{-268,-403,-223,-282,-315,-291},{-353,-238,-212,-332,-388,-206},{-218,-270,-391,-353,-370,-188},{-244,-200,-294,-329,-385,-218},{-309,-385,-344,-282,-359,-403},{-268,-206,-182,-229,-359,-306},{-350,-212,-268,-206,-200,-350},{-379,-179,-273,-273,-341,-329},{-409,-397,-376,-412,-244,-359},{-282,-300,-238,-226,-244,-306},{-323,-379,-332,-220,-365,-344},{-200,-273,-323,-397,-203,-323},{-300,-218,-356,-403,-309,-206},{-306,-235,-253,-229,-347,-256},{-294,-212,-412,-270,-285,-235},{-188,-300,-220,-341,-318,-220},{-379,-282,-256,-376,-185,-250},{-335,-250,-409,-412,-276,-394},{-218,-350,-279,-359,-206,-376},{-388,-376,-323,-191,-259,-318},{-185,-406,-182,-232,-253,-353},{-353,-250,-182,-176,-356,-209},{-353,-270,-220,-176,-379,-188}},{{-376,-244,-288,-191,-232,-247},{-344,-226,-265,-268,-250,-329},{-315,-282,-356,-312,-188,-406},{-288,-344,-282,-194,-185,-176},{-262,-194,-273,-341,-273,-191},{-194,-282,-200,-194,-329,-179},{-176,-409,-370,-212,-379,-256},{-323,-209,-268,-350,-300,-329},{-385,-262,-391,-329,-268,-303},{-406,-291,-232,-332,-309,-250},{-388,-312,-344,-241,-250,-362},{-406,-370,-235,-353,-353,-250},{-276,-388,-297,-303,-382,-218},{-412,-232,-406,-273,-206,-373},{-379,-362,-400,-338,-203,-176},{-329,-209,-365,-356,-359,-270},{-188,-329,-297,-388,-373,-223},{-323,-273,-329,-215,-394,-247},{-250,-412,-382,-256,-403,-285},{-391,-232,-332,-394,-294,-350},{-359,-218,-344,-291,-356,-268},{-391,-356,-329,-282,-220,-391},{-250,-373,-315,-406,-294,-238},{-400,-285,-403,-212,-288,-318},{-188,-356,-276,-256,-356,-268},{-376,-273,-241,-303,-297,-182},{-262,-215,-409,-259,-391,-218},{-226,-400,-279,-203,-276,-238},{-409,-238,-220,-282,-397,-212},{-362,-285,-226,-244,-306,-341},{-235,-247,-385,-282,-182,-265},{-288,-350,-356,-318,-238,-185},{-362,-276,-388,-347,-409,-373},{-376,-370,-268,-388,-329,-244},{-194,-335,-323,-300,-294,-359},{-312,-323,-332,-368,-303,-185},{-288,-262,-400,-320,-370,-409},{-294,-318,-262,-309,-353,-376},{-394,-382,-329,-353,-315,-335},{-268,-365,-303,-385,-370,-335},{-341,-294,-268,-294,-247,-256},{-185,-247,-226,-347,-276,-229},{-218,-200,-212,-356,-282,-297},{-179,-229,-218,-253,-323,-215},{-315,-373,-226,-226,-268,-215},{-270,-294,-215,-303,-335,-368},{-382,-318,-391,-368,-220,-412},{-238,-194,-303,-265,-191,-341},{-182,-344,-409,-365,-329,-253},{-394,-276,-347,-353,-412,-303}}}}; // 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]={7,4,2,6,3,2,6,3,2,8,4,3,8,4,3,7,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,5,3,8,4,3,8,5,3,8,5,3,9,4,3,8,4,3,8,4,3,7,4,3,7,4,3,8,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]={0,2,4,6,8,10,12,0,4,8,12,1,7,1,3,5,7,9,11,1,5,9,2,8,1,3,5,7,9,11,1,5,9,2,8,0,2,4,6,8,10,12,14,1,5,9,13,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,0,6,12,1,3,5,7,9,11,13,2,6,10,14,1,7,13,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,1,3,5,7,9,11,13,15,1,5,9,13,0,6,12,0,2,4,6,8,10,12,14,1,5,9,13,0,6,12,0,2,4,6,8,10,12,14,0,4,8,12,1,7,13,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,2,8,14,2,4,6,8,10,12,14,16,0,4,8,12,16,2,8,14,1,3,5,7,9,11,13,15,1,5,9,13,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,16,0,6,12,1,3,5,7,9,11,13,15,0,4,8,12,16,2,8,14,0,2,4,6,8,10,12,14,16,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,0,4,8,12,0,6,12,2,4,6,8,10,12,14,2,6,10,14,2,8,14,1,3,5,7,9,11,13,2,6,10,14,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,1,5,9,13,0,6,12}; // set of start times of each shipment 
int SHets[SPN]={5,7,9,11,13,15,17,5,9,13,17,6,12,6,8,10,12,14,16,6,10,14,7,13,6,8,10,12,14,16,6,10,14,7,13,3,5,7,9,11,13,15,17,4,8,12,16,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,5,9,13,17,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,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,2,4,6,8,10,12,14,16,3,7,11,15,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,3,5,7,9,11,13,15,17,1,5,9,13,17,3,9,15,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,1,5,9,13,17,1,7,13,2,4,6,8,10,12,14,16,1,5,9,13,17,3,9,15,1,3,5,7,9,11,13,15,17,3,7,11,15,2,8,14,3,5,7,9,11,13,15,17,4,8,12,16,3,9,15,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,4,6,8,10,12,14,16,4,8,12,16,4,10,16,4,6,8,10,12,14,16,5,9,13,17,4,10,16,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,5,7,9,11,13,15,17,4,8,12,16,3,9,15}; // set of end times of each shipment 
