int Dev = 40;// Deviation
extern const int CNN = 3;// 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 = 345;//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]={{{{12459,0,0,0,0,0},{12374,0,0,0,0,0},{12509,0,0,0,0,0},{12828,0,0,0,0,0},{12287,0,0,0,0,0},{12570,0,0,0,0,0},{12798,0,0,0,0,0},{13086,0,0,0,0,0},{12354,0,0,0,0,0},{12222,0,0,0,0,0},{11832,0,0,0,0,0},{11754,0,0,0,0,0},{12738,0,0,0,0,0},{12182,0,0,0,0,0},{13182,0,0,0,0,0},{12617,0,0,0,0,0},{12289,0,0,0,0,0},{12643,0,0,0,0,0},{11378,0,0,0,0,0},{13188,0,0,0,0,0},{13231,0,0,0,0,0},{12456,0,0,0,0,0},{12696,0,0,0,0,0},{11703,0,0,0,0,0},{11846,0,0,0,0,0},{12779,0,0,0,0,0},{12687,0,0,0,0,0},{12235,0,0,0,0,0},{12181,0,0,0,0,0},{13106,0,0,0,0,0},{12287,0,0,0,0,0},{12081,0,0,0,0,0},{13205,0,0,0,0,0},{11748,0,0,0,0,0},{12396,0,0,0,0,0},{12577,0,0,0,0,0},{12708,0,0,0,0,0},{12168,0,0,0,0,0},{12627,0,0,0,0,0},{12805,0,0,0,0,0},{12762,0,0,0,0,0},{11818,0,0,0,0,0},{12535,0,0,0,0,0},{12160,0,0,0,0,0},{11882,0,0,0,0,0},{12422,0,0,0,0,0},{12355,0,0,0,0,0},{12077,0,0,0,0,0},{12276,0,0,0,0,0},{12399,0,0,0,0,0}},{{12062,0,0,0,0,0},{12697,0,0,0,0,0},{12341,0,0,0,0,0},{13439,0,0,0,0,0},{11692,0,0,0,0,0},{12146,0,0,0,0,0},{11509,0,0,0,0,0},{12709,0,0,0,0,0},{11738,0,0,0,0,0},{12381,0,0,0,0,0},{12865,0,0,0,0,0},{12233,0,0,0,0,0},{12419,0,0,0,0,0},{12106,0,0,0,0,0},{12257,0,0,0,0,0},{11852,0,0,0,0,0},{12145,0,0,0,0,0},{12909,0,0,0,0,0},{12045,0,0,0,0,0},{12159,0,0,0,0,0},{12201,0,0,0,0,0},{13076,0,0,0,0,0},{13168,0,0,0,0,0},{12891,0,0,0,0,0},{12363,0,0,0,0,0},{12762,0,0,0,0,0},{12068,0,0,0,0,0},{12253,0,0,0,0,0},{12972,0,0,0,0,0},{12079,0,0,0,0,0},{11694,0,0,0,0,0},{12703,0,0,0,0,0},{12707,0,0,0,0,0},{12581,0,0,0,0,0},{11813,0,0,0,0,0},{12573,0,0,0,0,0},{11881,0,0,0,0,0},{11814,0,0,0,0,0},{12050,0,0,0,0,0},{12265,0,0,0,0,0},{13271,0,0,0,0,0},{11872,0,0,0,0,0},{11990,0,0,0,0,0},{12520,0,0,0,0,0},{11892,0,0,0,0,0},{12349,0,0,0,0,0},{12368,0,0,0,0,0},{12325,0,0,0,0,0},{12039,0,0,0,0,0},{12698,0,0,0,0,0}},{{11520,0,0,0,0,0},{11461,0,0,0,0,0},{11789,0,0,0,0,0},{11734,0,0,0,0,0},{11106,0,0,0,0,0},{11572,0,0,0,0,0},{11561,0,0,0,0,0},{10529,0,0,0,0,0},{11779,0,0,0,0,0},{12464,0,0,0,0,0},{11863,0,0,0,0,0},{11841,0,0,0,0,0},{12329,0,0,0,0,0},{11494,0,0,0,0,0},{11051,0,0,0,0,0},{11838,0,0,0,0,0},{11794,0,0,0,0,0},{11088,0,0,0,0,0},{11084,0,0,0,0,0},{11078,0,0,0,0,0},{11902,0,0,0,0,0},{11236,0,0,0,0,0},{11404,0,0,0,0,0},{11967,0,0,0,0,0},{11835,0,0,0,0,0},{11862,0,0,0,0,0},{12327,0,0,0,0,0},{11305,0,0,0,0,0},{11655,0,0,0,0,0},{12222,0,0,0,0,0},{10714,0,0,0,0,0},{10992,0,0,0,0,0},{11878,0,0,0,0,0},{11539,0,0,0,0,0},{12479,0,0,0,0,0},{11494,0,0,0,0,0},{11828,0,0,0,0,0},{11866,0,0,0,0,0},{11465,0,0,0,0,0},{11638,0,0,0,0,0},{11516,0,0,0,0,0},{11866,0,0,0,0,0},{11861,0,0,0,0,0},{11400,0,0,0,0,0},{11629,0,0,0,0,0},{11161,0,0,0,0,0},{11467,0,0,0,0,0},{11569,0,0,0,0,0},{12174,0,0,0,0,0},{12341,0,0,0,0,0}}},{{{-329,-335,-350,-203,-265,-376},{-356,-188,-382,-226,-403,-268},{-250,-176,-300,-365,-294,-312},{-262,-412,-218,-312,-247,-212},{-306,-288,-368,-285,-303,-212},{-223,-291,-412,-297,-329,-209},{-385,-403,-385,-203,-344,-262},{-323,-200,-368,-312,-385,-194},{-262,-238,-356,-200,-206,-318},{-294,-238,-262,-291,-223,-376},{-203,-212,-209,-247,-206,-273},{-373,-179,-191,-394,-300,-341},{-347,-209,-250,-400,-409,-176},{-238,-226,-326,-376,-320,-191},{-235,-270,-238,-212,-262,-338},{-394,-270,-285,-353,-235,-347},{-194,-350,-203,-332,-285,-223},{-365,-259,-203,-182,-341,-206},{-185,-338,-379,-368,-215,-179},{-400,-370,-253,-400,-379,-256},{-400,-291,-365,-397,-382,-265},{-341,-285,-262,-188,-370,-226},{-365,-241,-273,-253,-259,-323},{-332,-350,-353,-182,-238,-312},{-270,-203,-397,-350,-262,-276},{-344,-259,-356,-362,-412,-350},{-385,-362,-409,-373,-226,-276},{-294,-318,-176,-253,-353,-338},{-323,-226,-297,-179,-203,-209},{-223,-368,-315,-300,-185,-338},{-179,-276,-288,-226,-294,-412},{-359,-329,-244,-273,-362,-265},{-323,-320,-291,-273,-176,-238},{-209,-379,-235,-238,-179,-335},{-344,-182,-391,-303,-356,-268},{-200,-409,-268,-353,-362,-338},{-329,-394,-329,-312,-206,-394},{-332,-188,-350,-385,-300,-220},{-279,-288,-247,-223,-326,-226},{-391,-282,-379,-397,-276,-203},{-250,-229,-309,-332,-394,-329},{-220,-218,-220,-312,-394,-306},{-312,-206,-253,-326,-268,-247},{-344,-306,-391,-409,-218,-373},{-268,-176,-347,-265,-197,-300},{-353,-256,-365,-335,-188,-350},{-218,-309,-279,-370,-326,-400},{-379,-215,-259,-179,-194,-256},{-285,-329,-300,-218,-309,-215},{-297,-400,-341,-312,-238,-188}},{{-310,-289,-266,-315,-299,-326},{-249,-186,-288,-345,-163,-282},{-235,-366,-179,-271,-296,-355},{-246,-323,-294,-192,-224,-168},{-229,-315,-350,-167,-224,-264},{-226,-272,-286,-304,-294,-246},{-244,-232,-202,-340,-206,-210},{-374,-329,-255,-315,-326,-308},{-264,-337,-207,-173,-307,-357},{-267,-398,-347,-375,-240,-161},{-313,-272,-171,-353,-168,-326},{-362,-346,-274,-181,-240,-347},{-400,-280,-244,-260,-179,-316},{-244,-392,-328,-329,-296,-194},{-316,-372,-269,-170,-352,-311},{-188,-295,-344,-340,-283,-282},{-383,-260,-330,-318,-278,-174},{-232,-246,-255,-381,-291,-319},{-357,-189,-168,-227,-171,-282},{-174,-340,-280,-175,-342,-319},{-293,-378,-353,-318,-320,-360},{-267,-335,-361,-225,-347,-347},{-342,-312,-386,-375,-238,-218},{-270,-392,-328,-214,-342,-344},{-281,-220,-204,-359,-315,-308},{-325,-355,-353,-238,-336,-220},{-249,-200,-185,-241,-214,-215},{-296,-269,-308,-279,-182,-225},{-241,-283,-358,-321,-371,-186},{-287,-174,-361,-323,-163,-220},{-252,-315,-193,-258,-320,-298},{-174,-220,-193,-216,-360,-344},{-188,-174,-283,-359,-320,-223},{-177,-280,-196,-197,-304,-233},{-203,-346,-356,-164,-184,-300},{-255,-358,-333,-323,-286,-163},{-342,-252,-294,-164,-334,-332},{-229,-203,-263,-184,-304,-342},{-215,-378,-280,-184,-275,-272},{-194,-206,-277,-353,-363,-332},{-365,-386,-305,-260,-366,-256},{-365,-252,-224,-197,-366,-256},{-342,-183,-266,-323,-216,-186},{-270,-335,-386,-255,-264,-189},{-209,-212,-300,-227,-296,-290},{-365,-263,-272,-353,-366,-179},{-209,-355,-300,-359,-259,-249},{-241,-309,-202,-310,-166,-246},{-194,-398,-216,-227,-256,-233},{-351,-266,-269,-345,-262,-355}},{{-312,-145,-177,-264,-133,-210},{-185,-215,-261,-146,-197,-288},{-205,-211,-205,-217,-154,-173},{-162,-254,-268,-211,-257,-140},{-165,-208,-156,-231,-139,-144},{-220,-339,-168,-195,-163,-154},{-270,-329,-200,-267,-235,-194},{-245,-298,-301,-164,-148,-165},{-235,-283,-247,-233,-248,-260},{-175,-227,-291,-181,-231,-126},{-248,-189,-245,-249,-212,-218},{-312,-160,-235,-195,-139,-237},{-230,-177,-284,-164,-210,-268},{-270,-182,-312,-204,-276,-225},{-310,-194,-156,-289,-227,-177},{-235,-172,-205,-137,-188,-175},{-280,-261,-149,-249,-263,-253},{-228,-191,-207,-228,-250,-175},{-325,-155,-291,-244,-218,-159},{-152,-225,-207,-271,-218,-148},{-260,-237,-189,-242,-143,-208},{-260,-334,-238,-166,-214,-218},{-295,-283,-305,-224,-203,-185},{-280,-194,-161,-213,-293,-146},{-308,-179,-326,-141,-143,-286},{-170,-307,-298,-168,-203,-276},{-195,-191,-282,-302,-203,-270},{-298,-162,-296,-204,-182,-163},{-230,-169,-200,-224,-158,-177},{-265,-182,-182,-175,-231,-214},{-295,-324,-287,-269,-139,-214},{-178,-329,-179,-170,-250,-239},{-172,-261,-254,-220,-265,-282},{-255,-300,-256,-240,-257,-165},{-295,-276,-205,-251,-229,-208},{-218,-227,-212,-208,-291,-146},{-175,-249,-228,-208,-199,-220},{-272,-295,-165,-186,-212,-284},{-175,-254,-175,-159,-133,-264},{-278,-334,-151,-199,-257,-245},{-218,-225,-270,-179,-261,-136},{-270,-157,-179,-300,-165,-216},{-262,-295,-252,-208,-175,-218},{-280,-242,-228,-159,-297,-140},{-285,-283,-268,-190,-240,-196},{-335,-162,-151,-269,-193,-198},{-162,-223,-322,-249,-289,-231},{-158,-327,-280,-146,-169,-253},{-182,-208,-254,-184,-210,-231},{-292,-293,-317,-246,-135,-278}}},{{{-151,-130,-110,-138,-147,-164},{-230,-115,-182,-175,-215,-227},{-200,-181,-233,-168,-145,-197},{-198,-150,-196,-131,-219,-265},{-185,-122,-124,-115,-178,-145},{-180,-120,-184,-129,-254,-168},{-121,-189,-172,-193,-191,-166},{-109,-189,-243,-202,-158,-151},{-119,-162,-234,-141,-247,-136},{-144,-115,-241,-188,-142,-174},{-131,-118,-238,-149,-144,-260},{-188,-135,-152,-109,-199,-136},{-220,-196,-133,-140,-190,-252},{-171,-112,-208,-111,-114,-262},{-134,-213,-222,-107,-178,-183},{-235,-225,-126,-145,-245,-258},{-126,-201,-215,-120,-140,-115},{-139,-201,-193,-209,-155,-166},{-109,-127,-158,-245,-138,-170},{-123,-176,-107,-147,-177,-267},{-124,-199,-149,-238,-188,-170},{-230,-225,-124,-251,-213,-195},{-141,-115,-241,-179,-252,-202},{-228,-198,-178,-125,-125,-126},{-165,-135,-114,-249,-140,-220},{-144,-223,-168,-116,-134,-225},{-183,-201,-236,-118,-162,-141},{-153,-150,-187,-193,-167,-223},{-131,-123,-205,-231,-201,-227},{-183,-226,-130,-249,-243,-138},{-155,-167,-236,-154,-250,-132},{-198,-145,-178,-124,-223,-120},{-150,-201,-117,-107,-258,-262},{-124,-123,-170,-193,-219,-157},{-212,-210,-124,-229,-156,-145},{-119,-123,-193,-211,-169,-155},{-143,-139,-194,-115,-162,-246},{-160,-201,-187,-111,-241,-176},{-141,-176,-201,-138,-258,-254},{-102,-117,-196,-156,-131,-117},{-170,-210,-178,-213,-202,-243},{-218,-103,-208,-218,-167,-176},{-111,-215,-187,-132,-116,-258},{-155,-105,-112,-107,-116,-216},{-101,-199,-241,-190,-224,-141},{-134,-134,-115,-179,-177,-176},{-176,-189,-193,-136,-171,-267},{-124,-171,-150,-234,-131,-237},{-220,-181,-105,-131,-167,-166},{-170,-188,-173,-152,-184,-172}},{{-216,-164,-273,-230,-236,-217},{-176,-170,-168,-190,-314,-221},{-184,-154,-158,-301,-147,-262},{-277,-258,-277,-309,-295,-150},{-240,-236,-145,-168,-156,-243},{-152,-160,-243,-133,-282,-226},{-238,-158,-130,-164,-190,-319},{-277,-250,-266,-223,-142,-262},{-170,-252,-177,-234,-163,-269},{-263,-217,-290,-192,-224,-209},{-141,-148,-138,-239,-250,-305},{-230,-135,-275,-201,-266,-319},{-248,-205,-141,-146,-279,-317},{-271,-187,-175,-188,-185,-181},{-178,-244,-256,-281,-140,-157},{-172,-170,-196,-296,-298,-159},{-198,-203,-128,-192,-195,-145},{-196,-148,-166,-155,-302,-278},{-218,-201,-200,-285,-211,-309},{-143,-129,-168,-265,-318,-148},{-178,-275,-266,-290,-256,-257},{-145,-246,-251,-290,-250,-186},{-248,-152,-258,-203,-321,-171},{-196,-211,-243,-139,-275,-150},{-164,-127,-173,-265,-137,-252},{-150,-158,-285,-157,-263,-183},{-186,-189,-283,-270,-270,-190},{-210,-244,-268,-267,-185,-164},{-214,-275,-177,-214,-263,-321},{-240,-164,-130,-290,-302,-331},{-251,-254,-204,-170,-250,-300},{-150,-154,-196,-188,-142,-159},{-148,-244,-175,-225,-314,-259},{-198,-123,-283,-259,-305,-307},{-202,-178,-228,-148,-176,-305},{-251,-158,-177,-245,-289,-252},{-174,-148,-230,-296,-199,-171},{-257,-176,-192,-301,-218,-174},{-152,-228,-136,-283,-211,-236},{-145,-230,-226,-201,-144,-274},{-275,-127,-298,-285,-284,-148},{-158,-264,-149,-287,-268,-183},{-228,-236,-175,-168,-156,-162},{-242,-144,-153,-225,-300,-178},{-192,-281,-213,-203,-305,-317},{-127,-168,-253,-292,-240,-286},{-271,-182,-138,-274,-307,-324},{-154,-228,-283,-168,-240,-233},{-166,-131,-202,-179,-300,-259},{-168,-254,-185,-148,-282,-202}},{{-306,-291,-231,-316,-260,-266},{-277,-334,-186,-343,-305,-209},{-170,-342,-299,-259,-288,-218},{-249,-309,-238,-192,-180,-291},{-220,-247,-299,-216,-269,-275},{-257,-158,-202,-354,-305,-334},{-262,-232,-259,-302,-241,-269},{-195,-168,-202,-186,-233,-260},{-247,-219,-249,-227,-227,-221},{-289,-283,-325,-351,-296,-314},{-274,-316,-267,-240,-199,-323},{-178,-273,-335,-224,-296,-388},{-190,-258,-194,-221,-385,-249},{-163,-252,-228,-302,-363,-376},{-168,-176,-160,-351,-222,-263},{-279,-347,-291,-235,-249,-303},{-165,-168,-228,-202,-191,-382},{-235,-273,-176,-197,-202,-306},{-301,-199,-186,-178,-188,-314},{-200,-245,-217,-173,-368,-272},{-205,-212,-304,-281,-191,-215},{-188,-227,-309,-321,-338,-393},{-190,-252,-238,-224,-208,-289},{-336,-357,-265,-256,-283,-379},{-247,-250,-272,-208,-307,-263},{-240,-301,-262,-192,-283,-306},{-205,-337,-341,-364,-299,-198},{-153,-227,-215,-202,-338,-351},{-190,-168,-307,-278,-307,-371},{-158,-347,-359,-176,-260,-382},{-230,-237,-176,-194,-227,-325},{-190,-296,-157,-262,-360,-229},{-225,-354,-291,-348,-385,-277},{-247,-217,-207,-275,-213,-354},{-217,-219,-252,-289,-332,-246},{-269,-173,-356,-351,-186,-204},{-217,-230,-325,-221,-377,-246},{-336,-199,-236,-200,-288,-238},{-329,-186,-191,-270,-360,-294},{-324,-166,-283,-362,-199,-294},{-274,-235,-338,-267,-175,-340},{-190,-181,-348,-292,-277,-201},{-153,-191,-215,-297,-388,-365},{-343,-329,-162,-286,-274,-357},{-329,-196,-265,-354,-349,-192},{-272,-214,-162,-230,-288,-314},{-277,-161,-346,-275,-266,-300},{-245,-332,-241,-243,-313,-243},{-156,-258,-299,-335,-296,-235},{-321,-153,-320,-284,-291,-320}}},{{{-260,-461,-237,-385,-372,-355},{-411,-385,-214,-345,-405,-257},{-240,-378,-388,-266,-405,-352},{-434,-352,-250,-319,-461,-372},{-329,-447,-349,-349,-434,-349},{-234,-283,-457,-434,-418,-234},{-421,-230,-447,-428,-197,-283},{-434,-250,-454,-375,-438,-451},{-451,-372,-204,-293,-359,-342},{-424,-293,-303,-342,-214,-319},{-234,-434,-280,-217,-237,-441},{-207,-220,-319,-322,-299,-392},{-401,-336,-243,-322,-250,-313},{-326,-375,-227,-375,-428,-332},{-247,-352,-454,-388,-250,-421},{-263,-349,-257,-362,-444,-355},{-303,-217,-280,-447,-345,-326},{-372,-303,-309,-447,-385,-339},{-240,-253,-441,-214,-362,-365},{-332,-362,-263,-457,-349,-303},{-398,-415,-424,-342,-296,-329},{-257,-438,-444,-263,-313,-385},{-234,-385,-273,-217,-201,-378},{-418,-451,-352,-431,-339,-247},{-339,-286,-230,-332,-286,-207},{-352,-237,-230,-454,-398,-197},{-322,-362,-438,-329,-388,-313},{-201,-336,-444,-428,-332,-247},{-247,-457,-447,-227,-359,-293},{-332,-444,-306,-421,-362,-424},{-329,-352,-243,-398,-375,-372},{-266,-204,-214,-395,-388,-342},{-408,-237,-326,-441,-457,-441},{-309,-257,-359,-250,-276,-250},{-382,-250,-217,-211,-395,-395},{-217,-418,-388,-359,-375,-211},{-220,-378,-345,-260,-411,-352},{-388,-382,-336,-197,-411,-220},{-309,-378,-461,-276,-401,-263},{-352,-401,-230,-408,-392,-401},{-345,-457,-388,-359,-382,-211},{-263,-398,-375,-234,-454,-217},{-339,-276,-243,-266,-201,-319},{-418,-316,-217,-451,-283,-237},{-243,-211,-395,-237,-434,-250},{-319,-428,-290,-290,-276,-303},{-234,-260,-418,-438,-336,-382},{-211,-444,-230,-319,-431,-336},{-392,-368,-201,-309,-253,-342},{-237,-447,-257,-240,-342,-293}},{{-305,-225,-360,-242,-234,-214},{-417,-290,-421,-330,-345,-388},{-351,-219,-217,-192,-339,-271},{-338,-206,-443,-352,-416,-211},{-446,-354,-252,-210,-277,-382},{-400,-425,-268,-436,-262,-415},{-413,-451,-204,-257,-191,-379},{-276,-280,-217,-223,-323,-412},{-207,-213,-322,-330,-296,-316},{-433,-306,-402,-301,-274,-361},{-289,-361,-386,-383,-305,-196},{-403,-235,-309,-264,-348,-241},{-446,-219,-249,-333,-388,-220},{-367,-209,-220,-207,-379,-244},{-344,-196,-408,-320,-419,-280},{-387,-287,-220,-399,-391,-244},{-403,-425,-223,-195,-216,-283},{-233,-435,-447,-311,-203,-307},{-351,-299,-335,-392,-237,-292},{-207,-280,-303,-242,-216,-367},{-380,-370,-236,-214,-280,-253},{-230,-335,-415,-232,-348,-370},{-210,-225,-364,-261,-228,-412},{-417,-213,-335,-436,-302,-418},{-315,-293,-322,-405,-271,-397},{-328,-357,-226,-330,-385,-199},{-446,-193,-265,-264,-333,-343},{-374,-441,-246,-414,-407,-277},{-374,-193,-383,-345,-216,-322},{-282,-277,-357,-207,-428,-259},{-207,-267,-220,-421,-203,-259},{-321,-332,-412,-248,-339,-364},{-315,-348,-434,-267,-219,-244},{-459,-306,-332,-217,-376,-373},{-216,-270,-437,-207,-216,-253},{-371,-402,-412,-220,-191,-262},{-289,-383,-281,-226,-246,-292},{-276,-222,-322,-436,-336,-373},{-417,-296,-354,-251,-394,-289},{-344,-328,-415,-289,-185,-418},{-328,-364,-370,-254,-243,-346},{-312,-248,-364,-198,-262,-343},{-456,-428,-338,-433,-225,-352},{-321,-306,-262,-367,-416,-361},{-216,-206,-437,-254,-265,-322},{-203,-213,-402,-305,-228,-292},{-295,-332,-233,-217,-333,-406},{-344,-338,-322,-380,-302,-334},{-384,-393,-207,-358,-428,-379},{-246,-364,-357,-270,-345,-310}},{{-266,-259,-291,-362,-249,-247},{-221,-233,-386,-218,-278,-257},{-189,-317,-274,-348,-241,-218},{-236,-328,-185,-381,-342,-311},{-384,-204,-325,-166,-273,-159},{-348,-222,-288,-302,-355,-293},{-254,-348,-235,-220,-270,-355},{-195,-311,-227,-381,-175,-213},{-292,-328,-375,-182,-329,-206},{-339,-184,-224,-163,-358,-314},{-404,-323,-378,-269,-310,-252},{-245,-251,-330,-356,-193,-344},{-360,-204,-392,-299,-318,-285},{-201,-230,-199,-258,-249,-252},{-274,-377,-356,-337,-241,-352},{-339,-271,-384,-185,-270,-355},{-283,-311,-213,-209,-371,-303},{-322,-213,-389,-275,-294,-347},{-369,-213,-252,-313,-347,-206},{-360,-236,-185,-185,-167,-157},{-242,-346,-244,-288,-199,-198},{-295,-294,-249,-318,-305,-350},{-283,-297,-224,-201,-363,-321},{-307,-328,-227,-343,-307,-324},{-345,-348,-375,-253,-231,-296},{-389,-271,-308,-226,-323,-211},{-357,-248,-319,-345,-276,-247},{-363,-400,-235,-375,-228,-316},{-283,-288,-330,-267,-170,-280},{-389,-389,-339,-204,-201,-239},{-183,-305,-196,-354,-170,-206},{-336,-216,-244,-283,-233,-342},{-363,-323,-224,-215,-196,-319},{-298,-337,-286,-362,-366,-324},{-407,-216,-305,-180,-334,-332},{-398,-305,-235,-163,-204,-350},{-401,-207,-260,-250,-193,-257},{-345,-210,-347,-335,-265,-352},{-177,-337,-174,-348,-334,-360},{-369,-334,-260,-318,-180,-342},{-204,-196,-258,-193,-186,-221},{-322,-285,-227,-275,-299,-290},{-283,-323,-179,-193,-278,-221},{-242,-207,-333,-207,-191,-231},{-360,-253,-224,-381,-183,-154},{-254,-337,-288,-267,-323,-180},{-292,-253,-272,-329,-358,-185},{-221,-219,-283,-351,-249,-231},{-395,-397,-370,-228,-270,-334},{-330,-213,-294,-356,-212,-350}}},{{{-109,-64,-131,-101,-99,-95},{-101,-83,-85,-94,-112,-164},{-105,-129,-105,-163,-116,-152},{-124,-81,-143,-137,-99,-90},{-104,-90,-113,-99,-104,-161},{-86,-72,-129,-161,-82,-82},{-147,-119,-143,-140,-134,-104},{-133,-101,-68,-113,-117,-129},{-79,-135,-150,-81,-85,-160},{-77,-95,-86,-142,-94,-157},{-103,-140,-125,-142,-113,-150},{-82,-93,-119,-111,-154,-86},{-138,-100,-93,-151,-82,-174},{-117,-98,-118,-157,-166,-86},{-114,-112,-156,-143,-100,-132},{-147,-140,-106,-138,-74,-169},{-80,-81,-116,-115,-92,-88},{-143,-136,-110,-142,-145,-157},{-119,-135,-96,-112,-138,-88},{-76,-143,-84,-150,-160,-165},{-101,-121,-86,-152,-138,-123},{-63,-137,-119,-131,-92,-132},{-133,-81,-88,-143,-113,-131},{-84,-119,-92,-91,-110,-168},{-91,-129,-155,-97,-104,-140},{-146,-109,-71,-75,-82,-152},{-118,-85,-96,-146,-163,-145},{-138,-70,-92,-130,-104,-122},{-139,-122,-76,-105,-151,-106},{-139,-119,-124,-149,-148,-102},{-143,-77,-95,-131,-126,-146},{-78,-146,-121,-88,-124,-154},{-127,-95,-75,-92,-84,-152},{-103,-80,-146,-156,-156,-110},{-122,-82,-125,-84,-94,-140},{-136,-113,-93,-125,-116,-105},{-129,-71,-125,-83,-140,-173},{-81,-125,-100,-142,-124,-79},{-65,-117,-153,-149,-161,-172},{-118,-142,-104,-161,-78,-90},{-72,-140,-84,-131,-120,-119},{-70,-136,-140,-97,-152,-96},{-135,-85,-97,-111,-113,-109},{-79,-94,-119,-88,-105,-96},{-66,-114,-148,-154,-90,-78},{-103,-140,-111,-128,-146,-168},{-135,-118,-136,-161,-88,-136},{-108,-85,-87,-124,-81,-172},{-144,-85,-118,-126,-79,-147},{-107,-93,-116,-145,-122,-136}},{{-140,-162,-117,-96,-114,-202},{-148,-183,-93,-208,-100,-153},{-136,-189,-167,-138,-140,-193},{-86,-114,-108,-195,-147,-176},{-111,-96,-173,-93,-124,-155},{-82,-148,-161,-163,-134,-195},{-122,-102,-107,-136,-159,-176},{-127,-145,-129,-200,-214,-203},{-176,-93,-148,-93,-113,-155},{-97,-103,-141,-191,-225,-134},{-130,-185,-135,-186,-190,-138},{-157,-93,-151,-167,-119,-218},{-124,-104,-186,-158,-216,-234},{-163,-190,-204,-146,-169,-133},{-126,-111,-102,-214,-221,-114},{-103,-107,-133,-164,-156,-234},{-107,-134,-133,-130,-209,-129},{-86,-131,-124,-144,-153,-129},{-107,-140,-90,-146,-187,-113},{-146,-195,-105,-191,-177,-158},{-151,-104,-163,-135,-148,-123},{-150,-128,-126,-164,-209,-208},{-119,-159,-124,-150,-150,-218},{-147,-154,-114,-119,-97,-146},{-130,-175,-198,-167,-182,-178},{-111,-152,-133,-180,-216,-106},{-138,-128,-92,-186,-109,-173},{-170,-124,-121,-115,-114,-200},{-92,-159,-200,-96,-122,-198},{-99,-85,-207,-200,-103,-195},{-144,-131,-185,-212,-166,-139},{-139,-113,-99,-194,-219,-218},{-162,-130,-108,-132,-164,-123},{-142,-182,-152,-112,-221,-223},{-173,-148,-182,-136,-106,-129},{-81,-188,-195,-98,-171,-118},{-171,-142,-127,-205,-108,-178},{-82,-188,-154,-214,-134,-101},{-150,-118,-201,-136,-113,-188},{-147,-145,-178,-115,-137,-166},{-126,-106,-186,-133,-98,-173},{-132,-162,-96,-136,-175,-168},{-136,-135,-93,-160,-153,-129},{-132,-131,-163,-178,-166,-131},{-180,-125,-169,-126,-167,-126},{-158,-97,-120,-140,-156,-143},{-99,-168,-142,-147,-166,-176},{-169,-169,-157,-108,-148,-101},{-146,-118,-123,-172,-213,-113},{-119,-192,-136,-194,-143,-198}},{{-214,-155,-160,-218,-129,-253},{-119,-211,-166,-152,-221,-214},{-210,-198,-166,-124,-206,-186},{-138,-241,-143,-247,-133,-216},{-240,-167,-240,-232,-172,-242},{-184,-202,-167,-169,-122,-261},{-206,-189,-201,-241,-180,-194},{-108,-182,-138,-179,-257,-131},{-208,-117,-203,-256,-249,-240},{-135,-198,-244,-177,-227,-277},{-189,-176,-117,-247,-270,-240},{-194,-225,-130,-230,-129,-255},{-159,-164,-147,-169,-274,-174},{-164,-124,-117,-255,-172,-259},{-187,-193,-260,-152,-129,-141},{-217,-239,-253,-226,-206,-180},{-136,-135,-182,-180,-159,-162},{-136,-196,-117,-177,-190,-133},{-198,-247,-206,-124,-137,-224},{-231,-157,-206,-179,-208,-196},{-191,-243,-192,-226,-239,-277},{-110,-164,-113,-186,-265,-164},{-121,-214,-234,-122,-122,-261},{-142,-155,-195,-194,-259,-242},{-231,-243,-154,-129,-120,-230},{-182,-198,-234,-116,-253,-188},{-163,-189,-234,-207,-155,-261},{-196,-212,-192,-213,-212,-204},{-229,-227,-212,-251,-153,-249},{-186,-238,-132,-249,-272,-190},{-136,-157,-153,-120,-120,-208},{-163,-110,-188,-190,-133,-137},{-214,-117,-199,-158,-157,-210},{-201,-209,-199,-211,-123,-238},{-215,-173,-253,-226,-214,-123},{-238,-121,-184,-260,-143,-158},{-233,-117,-175,-146,-133,-190},{-243,-189,-255,-133,-241,-166},{-180,-198,-203,-148,-223,-125},{-219,-158,-128,-154,-245,-156},{-210,-115,-259,-218,-221,-218},{-194,-176,-257,-251,-257,-198},{-173,-252,-240,-201,-261,-139},{-105,-160,-259,-137,-272,-210},{-208,-166,-216,-131,-208,-232},{-110,-247,-201,-142,-220,-257},{-243,-191,-113,-201,-241,-133},{-184,-247,-240,-177,-165,-255},{-170,-194,-251,-205,-220,-202},{-112,-175,-244,-239,-194,-154}}},{{{-310,-276,-159,-286,-245,-331},{-263,-181,-302,-295,-202,-243},{-172,-145,-267,-212,-207,-176},{-219,-286,-183,-145,-328,-150},{-284,-219,-202,-226,-157,-314},{-189,-307,-309,-243,-264,-214},{-280,-305,-176,-228,-243,-267},{-217,-198,-155,-321,-224,-307},{-301,-278,-188,-317,-245,-276},{-268,-174,-164,-248,-240,-240},{-196,-212,-207,-176,-183,-250},{-245,-155,-186,-259,-267,-286},{-205,-233,-226,-214,-328,-143},{-212,-178,-219,-145,-257,-159},{-273,-309,-226,-312,-305,-181},{-308,-248,-207,-143,-181,-248},{-312,-236,-193,-312,-305,-212},{-226,-162,-176,-152,-331,-271},{-324,-159,-183,-305,-236,-250},{-245,-248,-202,-259,-276,-259},{-275,-271,-264,-169,-245,-148},{-240,-155,-309,-198,-209,-226},{-193,-314,-143,-257,-328,-331},{-147,-143,-143,-317,-262,-150},{-224,-207,-200,-183,-200,-250},{-315,-221,-274,-305,-150,-183},{-245,-150,-267,-288,-240,-312},{-242,-317,-262,-333,-231,-250},{-261,-300,-157,-259,-150,-195},{-147,-231,-274,-255,-214,-245},{-294,-176,-245,-219,-281,-240},{-172,-238,-217,-248,-240,-312},{-252,-238,-255,-307,-278,-278},{-303,-174,-286,-174,-286,-262},{-282,-176,-145,-326,-193,-240},{-261,-238,-221,-219,-209,-219},{-282,-159,-200,-162,-231,-155},{-294,-169,-276,-288,-243,-145},{-168,-169,-300,-333,-331,-331},{-249,-317,-321,-226,-278,-169},{-294,-198,-167,-207,-290,-333},{-165,-267,-295,-245,-236,-293},{-268,-278,-195,-324,-269,-312},{-158,-157,-290,-233,-159,-188},{-322,-290,-309,-167,-164,-171},{-163,-309,-176,-293,-293,-193},{-172,-157,-190,-205,-264,-202},{-256,-202,-267,-155,-238,-200},{-308,-281,-148,-224,-262,-162},{-287,-298,-240,-307,-245,-224}},{{-195,-267,-322,-166,-192,-223},{-281,-271,-258,-148,-255,-155},{-317,-264,-148,-231,-301,-283},{-314,-207,-254,-252,-296,-186},{-164,-231,-226,-171,-224,-236},{-283,-159,-240,-146,-296,-256},{-148,-288,-315,-173,-305,-183},{-202,-288,-291,-219,-179,-212},{-333,-236,-143,-270,-179,-225},{-231,-193,-207,-314,-199,-239},{-198,-221,-221,-229,-172,-236},{-298,-181,-322,-224,-142,-276},{-143,-164,-207,-171,-296,-201},{-200,-257,-207,-314,-197,-243},{-238,-171,-223,-284,-147,-292},{-233,-331,-235,-166,-174,-234},{-243,-293,-291,-166,-212,-217},{-219,-228,-313,-185,-140,-261},{-271,-228,-157,-222,-296,-276},{-298,-319,-273,-150,-264,-267},{-214,-269,-146,-300,-210,-146},{-262,-226,-315,-266,-185,-139},{-305,-219,-202,-298,-301,-223},{-250,-155,-298,-259,-174,-144},{-333,-145,-230,-263,-145,-296},{-236,-326,-143,-155,-206,-239},{-295,-243,-240,-148,-174,-168},{-245,-214,-249,-305,-138,-292},{-324,-288,-204,-266,-210,-194},{-248,-174,-277,-171,-199,-133},{-181,-219,-146,-148,-149,-146},{-298,-317,-270,-316,-185,-252},{-231,-236,-322,-238,-237,-219},{-255,-262,-313,-280,-253,-274},{-283,-162,-289,-178,-260,-144},{-162,-162,-251,-245,-253,-301},{-219,-271,-176,-210,-240,-298},{-171,-174,-209,-141,-251,-179},{-309,-169,-155,-164,-208,-287},{-307,-314,-162,-217,-237,-194},{-317,-240,-301,-148,-294,-245},{-159,-312,-221,-268,-244,-290},{-262,-224,-324,-196,-235,-155},{-286,-148,-306,-213,-170,-261},{-143,-257,-183,-166,-179,-263},{-307,-274,-230,-178,-221,-252},{-333,-221,-303,-263,-156,-150},{-209,-228,-148,-217,-255,-228},{-286,-202,-176,-240,-310,-225},{-145,-286,-277,-268,-262,-259}},{{-168,-282,-202,-158,-243,-191},{-252,-171,-133,-201,-234,-223},{-267,-249,-192,-250,-194,-245},{-159,-253,-271,-160,-166,-250},{-157,-272,-186,-168,-258,-158},{-221,-240,-271,-244,-213,-178},{-258,-205,-204,-203,-131,-112},{-144,-209,-220,-189,-168,-130},{-284,-261,-265,-222,-239,-193},{-241,-263,-188,-222,-228,-230},{-183,-203,-230,-242,-178,-232},{-239,-140,-246,-117,-181,-198},{-301,-159,-196,-158,-144,-234},{-183,-230,-192,-254,-161,-248},{-237,-144,-141,-166,-245,-122},{-213,-286,-257,-215,-163,-119},{-181,-261,-248,-240,-236,-203},{-256,-255,-220,-129,-245,-113},{-292,-230,-275,-162,-161,-252},{-189,-192,-152,-240,-247,-241},{-187,-247,-180,-203,-208,-203},{-153,-153,-152,-117,-176,-146},{-202,-270,-129,-164,-252,-112},{-267,-190,-156,-271,-172,-223},{-194,-276,-275,-250,-178,-225},{-282,-270,-184,-230,-181,-175},{-249,-219,-210,-234,-243,-187},{-170,-167,-263,-193,-191,-137},{-254,-180,-252,-218,-260,-171},{-241,-199,-279,-166,-122,-211},{-267,-176,-184,-191,-183,-203},{-198,-163,-232,-218,-206,-115},{-297,-234,-204,-136,-251,-135},{-148,-130,-265,-244,-239,-252},{-280,-257,-216,-250,-120,-153},{-187,-226,-208,-265,-219,-113},{-191,-213,-240,-203,-239,-250},{-185,-205,-218,-230,-172,-119},{-273,-173,-149,-146,-219,-182},{-194,-150,-255,-271,-125,-112},{-129,-288,-236,-164,-185,-203},{-211,-278,-202,-142,-183,-142},{-277,-268,-242,-148,-155,-232},{-135,-176,-220,-185,-213,-230},{-275,-272,-236,-150,-161,-144},{-140,-176,-178,-193,-224,-155},{-168,-182,-121,-195,-140,-227},{-230,-274,-125,-136,-112,-202},{-243,-217,-259,-119,-243,-207},{-146,-184,-158,-254,-176,-232}}},{{{-189,-253,-194,-223,-340,-327},{-301,-274,-223,-351,-165,-253},{-314,-279,-218,-202,-332,-271},{-186,-348,-168,-319,-274,-271},{-271,-215,-261,-287,-338,-184},{-309,-287,-247,-322,-356,-258},{-184,-319,-325,-277,-332,-295},{-370,-293,-165,-237,-261,-340},{-250,-192,-325,-340,-335,-207},{-189,-332,-160,-370,-242,-327},{-362,-351,-309,-354,-330,-269},{-372,-181,-351,-239,-168,-197},{-271,-239,-367,-317,-322,-229},{-290,-370,-293,-271,-173,-173},{-314,-263,-319,-231,-332,-258},{-325,-322,-168,-279,-181,-293},{-173,-226,-258,-229,-287,-322},{-160,-226,-362,-327,-215,-197},{-266,-186,-223,-277,-266,-263},{-231,-332,-370,-202,-215,-160},{-338,-176,-274,-223,-176,-237},{-250,-274,-218,-197,-285,-314},{-330,-343,-290,-218,-210,-301},{-160,-165,-359,-340,-237,-181},{-168,-362,-168,-242,-200,-215},{-348,-348,-343,-207,-338,-317},{-319,-348,-184,-327,-330,-221},{-170,-306,-285,-255,-356,-160},{-197,-239,-218,-210,-234,-266},{-354,-258,-279,-192,-274,-325},{-170,-287,-245,-226,-343,-231},{-274,-263,-287,-207,-162,-338},{-340,-319,-285,-247,-287,-247},{-207,-160,-170,-287,-245,-258},{-210,-215,-274,-197,-364,-282},{-255,-231,-295,-362,-338,-298},{-354,-335,-223,-168,-271,-335},{-221,-173,-359,-192,-261,-173},{-356,-237,-362,-192,-271,-160},{-282,-340,-359,-186,-335,-322},{-215,-364,-266,-226,-348,-287},{-221,-170,-229,-282,-202,-237},{-309,-255,-253,-367,-247,-370},{-298,-266,-200,-332,-285,-218},{-295,-192,-346,-202,-306,-202},{-215,-340,-277,-317,-229,-290},{-194,-229,-231,-263,-242,-205},{-293,-162,-322,-340,-186,-306},{-221,-346,-218,-319,-327,-239},{-285,-293,-186,-327,-202,-213}},{{-282,-234,-306,-309,-354,-342},{-306,-247,-354,-338,-259,-282},{-213,-178,-250,-287,-181,-233},{-338,-356,-293,-362,-223,-293},{-298,-181,-239,-287,-283,-218},{-295,-229,-170,-221,-288,-210},{-165,-205,-173,-274,-278,-207},{-223,-162,-231,-285,-257,-215},{-205,-218,-258,-255,-301,-205},{-231,-242,-181,-181,-223,-256},{-303,-266,-205,-322,-351,-360},{-192,-364,-210,-285,-267,-324},{-332,-213,-231,-165,-223,-179},{-332,-170,-192,-279,-307,-225},{-348,-229,-290,-186,-362,-194},{-210,-189,-165,-306,-196,-262},{-192,-325,-231,-311,-359,-355},{-362,-330,-340,-269,-228,-363},{-181,-348,-200,-314,-233,-249},{-194,-218,-176,-197,-189,-241},{-173,-207,-330,-348,-181,-241},{-282,-359,-181,-168,-225,-158},{-218,-168,-372,-362,-346,-357},{-332,-372,-210,-247,-341,-168},{-213,-231,-229,-242,-314,-360},{-332,-184,-181,-168,-335,-303},{-306,-364,-170,-335,-272,-350},{-176,-277,-295,-266,-202,-161},{-325,-277,-356,-346,-330,-246},{-226,-303,-245,-309,-291,-350},{-263,-314,-269,-229,-202,-228},{-356,-247,-207,-351,-304,-329},{-287,-322,-354,-234,-244,-316},{-189,-335,-226,-338,-210,-300},{-293,-165,-197,-306,-194,-210},{-263,-223,-282,-306,-291,-210},{-253,-221,-317,-207,-257,-339},{-309,-200,-189,-301,-199,-161},{-242,-346,-274,-226,-267,-249},{-192,-338,-279,-173,-173,-179},{-194,-314,-332,-287,-354,-282},{-197,-202,-372,-234,-296,-280},{-367,-266,-218,-192,-223,-202},{-192,-247,-181,-176,-299,-241},{-322,-271,-314,-303,-304,-334},{-176,-287,-314,-205,-199,-238},{-231,-282,-245,-239,-238,-251},{-271,-173,-335,-192,-335,-355},{-266,-309,-184,-176,-157,-197},{-186,-327,-239,-343,-307,-269}},{{-243,-164,-232,-308,-255,-145},{-287,-215,-348,-169,-326,-239},{-326,-314,-156,-154,-318,-198},{-264,-316,-305,-310,-216,-152},{-267,-225,-154,-315,-206,-195},{-300,-321,-212,-308,-216,-272},{-163,-283,-186,-305,-331,-333},{-259,-164,-328,-164,-247,-193},{-264,-293,-262,-342,-299,-181},{-324,-329,-262,-246,-343,-313},{-272,-344,-244,-278,-196,-255},{-210,-243,-315,-233,-257,-277},{-249,-258,-330,-337,-333,-195},{-192,-296,-217,-258,-186,-301},{-285,-215,-176,-288,-245,-174},{-329,-159,-267,-151,-338,-205},{-324,-326,-277,-255,-203,-195},{-197,-261,-159,-303,-341,-251},{-246,-182,-249,-179,-233,-239},{-179,-286,-237,-246,-147,-304},{-316,-304,-267,-263,-255,-258},{-352,-167,-224,-149,-299,-265},{-308,-215,-312,-198,-198,-164},{-262,-240,-350,-213,-292,-200},{-306,-291,-224,-315,-309,-147},{-233,-293,-171,-270,-247,-301},{-360,-278,-257,-345,-341,-255},{-158,-210,-333,-275,-252,-176},{-238,-286,-343,-278,-167,-323},{-210,-250,-348,-330,-167,-335},{-300,-243,-174,-193,-181,-214},{-168,-233,-277,-188,-176,-239},{-243,-248,-260,-260,-169,-241},{-290,-172,-244,-293,-294,-217},{-231,-347,-330,-342,-284,-308},{-280,-266,-290,-164,-250,-321},{-334,-301,-287,-268,-284,-325},{-269,-253,-328,-340,-243,-200},{-306,-266,-232,-171,-176,-217},{-306,-293,-267,-308,-316,-217},{-223,-223,-275,-268,-323,-246},{-166,-197,-287,-246,-338,-328},{-337,-235,-265,-208,-198,-145},{-275,-243,-237,-327,-274,-275},{-220,-293,-280,-293,-198,-157},{-308,-180,-224,-278,-152,-231},{-285,-202,-262,-273,-228,-212},{-321,-223,-199,-280,-250,-195},{-334,-177,-219,-275,-223,-275},{-212,-266,-297,-327,-147,-337}}},{{{-295,-370,-250,-241,-412,-326},{-268,-409,-241,-406,-382,-299},{-397,-328,-382,-355,-223,-184},{-367,-394,-223,-313,-403,-408},{-226,-181,-253,-379,-331,-346},{-415,-199,-208,-205,-268,-287},{-247,-226,-187,-346,-364,-231},{-379,-316,-298,-388,-202,-340},{-289,-184,-397,-286,-184,-379},{-265,-193,-271,-268,-232,-394},{-184,-250,-376,-346,-334,-258},{-337,-247,-283,-403,-190,-255},{-325,-283,-193,-286,-238,-364},{-355,-220,-403,-349,-187,-411},{-310,-223,-271,-421,-346,-237},{-193,-394,-241,-244,-343,-414},{-382,-376,-256,-403,-271,-361},{-196,-334,-253,-418,-382,-275},{-412,-181,-181,-220,-256,-385},{-406,-202,-397,-358,-313,-255},{-397,-385,-223,-409,-394,-263},{-220,-346,-364,-241,-340,-275},{-298,-364,-334,-406,-361,-296},{-193,-205,-298,-286,-406,-213},{-244,-406,-349,-268,-397,-266},{-181,-238,-331,-379,-187,-243},{-340,-199,-307,-247,-364,-213},{-403,-250,-334,-217,-316,-204},{-337,-235,-394,-379,-385,-210},{-187,-364,-394,-367,-364,-364},{-391,-268,-349,-418,-283,-231},{-310,-361,-190,-364,-283,-213},{-283,-289,-382,-271,-358,-382},{-226,-211,-361,-325,-283,-373},{-385,-226,-211,-193,-295,-403},{-208,-277,-346,-205,-304,-308},{-379,-220,-322,-280,-217,-290},{-358,-394,-187,-364,-193,-240},{-244,-298,-337,-238,-349,-299},{-208,-265,-307,-196,-343,-269},{-352,-367,-196,-328,-187,-287},{-199,-268,-346,-355,-220,-308},{-355,-292,-334,-292,-253,-367},{-346,-346,-256,-187,-211,-243},{-208,-334,-394,-376,-421,-284},{-403,-241,-265,-250,-265,-198},{-199,-322,-379,-190,-292,-278},{-334,-340,-304,-319,-181,-403},{-349,-265,-256,-412,-418,-346},{-394,-358,-289,-286,-316,-408}},{{-176,-396,-171,-199,-339,-195},{-208,-304,-353,-259,-366,-172},{-240,-227,-350,-262,-329,-167},{-369,-356,-364,-270,-350,-314},{-319,-393,-316,-259,-193,-216},{-281,-224,-280,-281,-302,-308},{-240,-307,-314,-177,-231,-280},{-407,-281,-333,-238,-339,-288},{-258,-344,-221,-374,-164,-296},{-281,-258,-224,-248,-286,-332},{-352,-339,-176,-366,-321,-257},{-176,-273,-227,-289,-212,-190},{-316,-235,-356,-303,-254,-239},{-360,-255,-199,-333,-207,-314},{-305,-215,-288,-205,-164,-226},{-220,-221,-336,-167,-289,-306},{-314,-333,-260,-216,-297,-167},{-396,-287,-356,-330,-339,-239},{-407,-247,-336,-235,-241,-162},{-319,-218,-232,-298,-204,-324},{-314,-184,-213,-164,-183,-157},{-396,-336,-266,-360,-265,-162},{-299,-376,-241,-349,-249,-267},{-352,-238,-316,-319,-193,-296},{-381,-290,-171,-270,-170,-203},{-202,-362,-386,-382,-323,-285},{-278,-241,-227,-164,-331,-355},{-179,-238,-330,-199,-225,-154},{-398,-298,-193,-358,-268,-339},{-293,-178,-350,-172,-175,-257},{-226,-210,-316,-191,-186,-334},{-226,-310,-224,-257,-246,-308},{-190,-376,-291,-262,-363,-211},{-281,-321,-347,-175,-323,-265},{-270,-301,-255,-281,-238,-301},{-381,-232,-249,-216,-294,-234},{-284,-247,-333,-169,-217,-170},{-316,-195,-252,-199,-289,-170},{-331,-284,-202,-243,-326,-175},{-407,-382,-185,-366,-337,-298},{-404,-204,-179,-246,-350,-262},{-188,-276,-218,-216,-289,-193},{-316,-327,-266,-169,-254,-355},{-384,-253,-392,-235,-337,-306},{-287,-244,-179,-270,-249,-254},{-407,-301,-353,-210,-193,-337},{-355,-336,-221,-330,-193,-193},{-284,-230,-364,-308,-289,-275},{-202,-276,-188,-311,-241,-321},{-302,-333,-283,-169,-278,-211}},{{-193,-226,-295,-301,-127,-228},{-315,-204,-147,-294,-191,-196},{-293,-199,-321,-309,-284,-182},{-154,-182,-266,-278,-210,-135},{-154,-206,-300,-133,-261,-242},{-159,-331,-245,-164,-191,-196},{-198,-281,-252,-155,-235,-200},{-166,-281,-137,-274,-248,-182},{-171,-187,-243,-206,-157,-149},{-226,-274,-240,-294,-153,-265},{-191,-154,-295,-219,-225,-143},{-283,-298,-321,-259,-180,-204},{-298,-322,-305,-221,-269,-184},{-151,-281,-204,-188,-214,-255},{-218,-250,-169,-179,-134,-158},{-312,-334,-137,-217,-244,-250},{-298,-211,-321,-177,-216,-194},{-253,-216,-163,-243,-151,-275},{-184,-300,-169,-157,-218,-196},{-149,-319,-314,-179,-197,-121},{-250,-305,-202,-274,-250,-145},{-246,-274,-240,-152,-284,-158},{-151,-283,-266,-243,-193,-149},{-248,-180,-311,-217,-165,-133},{-236,-314,-293,-152,-129,-277},{-327,-218,-259,-179,-129,-261},{-317,-178,-286,-285,-170,-139},{-164,-252,-266,-292,-142,-224},{-278,-218,-275,-177,-244,-184},{-166,-156,-236,-305,-223,-257},{-337,-206,-254,-179,-290,-139},{-243,-182,-236,-144,-235,-240},{-298,-252,-307,-146,-167,-200},{-216,-180,-151,-135,-134,-236},{-238,-194,-208,-285,-216,-204},{-288,-293,-183,-294,-189,-204},{-193,-250,-163,-267,-134,-269},{-280,-221,-268,-267,-170,-250},{-236,-245,-309,-197,-193,-154},{-263,-175,-270,-208,-144,-121},{-320,-204,-302,-254,-159,-204},{-298,-329,-318,-179,-248,-152},{-298,-305,-238,-245,-210,-135},{-218,-254,-275,-161,-276,-242},{-246,-312,-220,-250,-231,-168},{-188,-264,-284,-155,-216,-236},{-248,-257,-158,-256,-284,-248},{-226,-319,-179,-270,-193,-194},{-345,-156,-250,-194,-235,-248},{-288,-262,-261,-259,-265,-162}}},{{{-466,-332,-273,-413,-245,-336},{-276,-430,-294,-248,-228,-217},{-315,-318,-480,-262,-458,-392},{-217,-441,-469,-329,-469,-234},{-395,-245,-399,-217,-444,-354},{-458,-357,-360,-385,-214,-441},{-382,-301,-238,-430,-395,-413},{-290,-452,-487,-336,-224,-389},{-350,-312,-322,-430,-224,-413},{-280,-444,-455,-490,-290,-452},{-276,-357,-287,-270,-458,-231},{-256,-466,-357,-270,-455,-228},{-483,-357,-410,-438,-357,-385},{-444,-399,-287,-413,-304,-210},{-487,-476,-395,-462,-360,-410},{-304,-241,-332,-364,-410,-312},{-231,-329,-389,-301,-462,-469},{-410,-402,-406,-480,-360,-315},{-238,-256,-444,-224,-224,-245},{-374,-329,-382,-382,-416,-476},{-430,-416,-326,-371,-276,-452},{-259,-434,-416,-298,-434,-270},{-304,-332,-455,-262,-332,-473},{-294,-427,-340,-259,-217,-312},{-262,-217,-458,-427,-466,-290},{-210,-350,-395,-382,-448,-490},{-469,-284,-234,-262,-346,-214},{-217,-389,-340,-315,-214,-420},{-343,-322,-364,-332,-469,-441},{-395,-276,-364,-273,-252,-490},{-340,-336,-430,-273,-224,-231},{-424,-280,-228,-220,-458,-452},{-424,-452,-294,-473,-329,-284},{-389,-326,-308,-371,-438,-312},{-270,-343,-416,-448,-469,-416},{-438,-466,-360,-252,-354,-357},{-462,-444,-228,-452,-402,-487},{-438,-410,-262,-378,-332,-382},{-287,-458,-238,-371,-346,-290},{-315,-395,-441,-350,-438,-270},{-231,-487,-284,-354,-413,-214},{-245,-385,-312,-217,-340,-389},{-441,-458,-448,-276,-374,-273},{-318,-444,-322,-399,-473,-476},{-241,-214,-438,-220,-248,-469},{-284,-424,-402,-483,-308,-340},{-476,-340,-326,-360,-406,-357},{-473,-301,-382,-368,-318,-270},{-378,-476,-266,-322,-228,-315},{-238,-340,-294,-315,-424,-280}},{{-386,-298,-414,-227,-321,-196},{-449,-477,-285,-397,-226,-219},{-404,-394,-414,-438,-387,-383},{-372,-322,-458,-344,-413,-328},{-223,-329,-383,-301,-331,-261},{-282,-405,-224,-324,-210,-319},{-261,-298,-336,-414,-282,-325},{-261,-418,-475,-217,-213,-399},{-282,-388,-244,-414,-315,-238},{-289,-456,-244,-404,-276,-235},{-459,-292,-380,-377,-380,-374},{-463,-285,-217,-277,-223,-435},{-261,-463,-393,-454,-390,-338},{-299,-316,-444,-237,-367,-251},{-452,-209,-434,-367,-282,-245},{-292,-250,-441,-261,-285,-235},{-334,-394,-292,-428,-305,-219},{-372,-247,-386,-307,-341,-399},{-365,-305,-244,-421,-259,-341},{-484,-425,-403,-428,-351,-299},{-393,-449,-217,-458,-407,-196},{-379,-398,-434,-434,-341,-374},{-334,-374,-447,-331,-338,-348},{-331,-470,-386,-344,-443,-251},{-428,-436,-420,-230,-312,-213},{-459,-405,-349,-404,-249,-402},{-355,-418,-275,-277,-440,-280},{-432,-466,-312,-438,-335,-225},{-237,-384,-325,-297,-298,-287},{-271,-381,-268,-324,-410,-390},{-421,-230,-444,-301,-413,-309},{-268,-432,-434,-240,-417,-415},{-397,-429,-312,-377,-318,-383},{-310,-370,-224,-237,-272,-264},{-237,-226,-458,-464,-407,-431},{-473,-336,-471,-434,-312,-193},{-223,-309,-353,-257,-312,-415},{-393,-422,-461,-411,-325,-216},{-345,-226,-278,-217,-371,-399},{-230,-257,-261,-458,-243,-264},{-432,-480,-475,-200,-279,-370},{-289,-220,-346,-364,-292,-341},{-268,-216,-241,-411,-344,-280},{-425,-381,-305,-277,-285,-345},{-341,-216,-386,-227,-266,-296},{-345,-353,-393,-341,-302,-312},{-372,-274,-342,-254,-407,-238},{-264,-346,-288,-418,-397,-264},{-216,-370,-363,-421,-266,-341},{-456,-268,-393,-271,-302,-303}},{{-428,-191,-420,-199,-276,-331},{-290,-367,-363,-243,-259,-172},{-318,-299,-198,-410,-325,-370},{-227,-379,-414,-331,-336,-348},{-372,-330,-189,-325,-276,-384},{-246,-277,-234,-322,-185,-264},{-410,-213,-288,-179,-305,-178},{-422,-388,-183,-293,-308,-170},{-220,-394,-399,-231,-205,-231},{-217,-354,-372,-223,-342,-386},{-198,-363,-225,-331,-251,-256},{-397,-376,-252,-226,-271,-264},{-438,-299,-309,-264,-365,-386},{-261,-354,-225,-355,-385,-270},{-428,-228,-315,-196,-351,-295},{-378,-237,-339,-231,-194,-322},{-302,-410,-351,-325,-319,-286},{-346,-314,-195,-240,-177,-328},{-246,-256,-237,-275,-302,-250},{-375,-305,-387,-211,-325,-373},{-432,-225,-354,-363,-294,-345},{-217,-231,-255,-264,-373,-170},{-353,-345,-216,-355,-336,-331},{-258,-385,-339,-246,-188,-275},{-362,-216,-309,-217,-180,-275},{-432,-216,-354,-202,-248,-295},{-252,-216,-261,-328,-251,-278},{-362,-237,-213,-208,-194,-289},{-365,-225,-252,-211,-288,-250},{-321,-403,-348,-267,-353,-370},{-205,-203,-279,-398,-254,-236},{-394,-367,-396,-211,-225,-292},{-381,-410,-198,-182,-274,-356},{-315,-271,-369,-202,-177,-225},{-318,-191,-399,-407,-362,-342},{-227,-410,-225,-275,-239,-278},{-211,-413,-387,-311,-274,-364},{-318,-216,-231,-231,-382,-278},{-356,-373,-324,-346,-339,-286},{-265,-194,-351,-258,-353,-267},{-346,-209,-417,-287,-348,-286},{-337,-363,-216,-375,-316,-208},{-441,-314,-315,-381,-299,-208},{-211,-271,-255,-208,-285,-303},{-271,-290,-390,-190,-316,-203},{-271,-274,-300,-217,-322,-381},{-249,-280,-321,-220,-339,-200},{-419,-262,-360,-319,-331,-178},{-381,-194,-393,-331,-202,-370},{-381,-280,-393,-272,-348,-311}}}}; // supply (positive for supply and negative for demand) under different scenarios 
int iniv[I]={1052,192,238,253,176,234,280,264,252}; // initial inventory 
int ubiv[I]={2104,384,476,507,352,468,350,495,504}; // 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.35,8.59,5.57,4.52,2.83,1.94,4.81,7.57}; // 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.14,7.81,5.06,4.11,2.57,1.76,4.37,6.88}}; // 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.71,9.71,9.71,8.5,8.5,8.5,7.28,7.28,7.28,6.25,6.25,6.25,5.47,5.47,5.47,4.69,4.69,4.69,4.05,4.05,4.05,3.54,3.54,3.54,3.04,3.04,3.04,3.29,3.29,3.29,2.88,2.88,2.88,2.47,2.47,2.47,2.06,2.06,2.06,1.8,1.8,1.8,1.54,1.54,1.54,1.41,1.41,1.41,1.23,1.23,1.23,1.06,1.06,1.06,3.5,3.5,3.5,3.06,3.06,3.06,2.62,2.62,2.62,5.5,5.5,5.5,4.82,4.82,4.82,4.13,4.13,4.13}; // 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,2,6,3,3,6,3,2,7,4,3,7,4,3,8,4,3,7,4,3,7,4,3,8,4,3,7,4,3,7,4,3,8,4,3,8,4,3,9,4,3,9,4,3,9,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,8,4,3,7,4,3,7,4,3}; // number of shipment for each bid 
int SHset[BN][MBSN]={{0,1,2,3,4,5},{6,7,8,9},{10,11},{12,13,14,15,16,17},{18,19,20},{21,22,23},{24,25,26,27,28,29},{30,31,32},{33,34},{35,36,37,38,39,40,41},{42,43,44,45},{46,47,48},{49,50,51,52,53,54,55},{56,57,58,59},{60,61,62},{63,64,65,66,67,68,69,70},{71,72,73,74},{75,76,77},{78,79,80,81,82,83,84},{85,86,87,88},{89,90,91},{92,93,94,95,96,97,98},{99,100,101,102},{103,104,105},{106,107,108,109,110,111,112,113},{114,115,116,117},{118,119,120},{121,122,123,124,125,126,127},{128,129,130,131},{132,133,134},{135,136,137,138,139,140,141},{142,143,144,145},{146,147,148},{149,150,151,152,153,154,155,156},{157,158,159,160},{161,162,163},{164,165,166,167,168,169,170,171},{172,173,174,175},{176,177,178},{179,180,181,182,183,184,185,186,187},{188,189,190,191},{192,193,194},{195,196,197,198,199,200,201,202,203},{204,205,206,207},{208,209,210},{211,212,213,214,215,216,217,218,219},{220,221,222,223},{224,225,226},{227,228,229,230,231,232,233,234},{235,236,237,238},{239,240,241},{242,243,244,245,246,247,248,249},{250,251,252,253},{254,255,256},{257,258,259,260,261,262,263,264},{265,266,267,268},{269,270,271},{272,273,274,275,276,277,278,279},{280,281,282,283},{284,285,286},{287,288,289,290,291,292,293,294},{295,296,297,298},{299,300,301},{302,303,304,305,306,307,308,309},{310,311,312,313},{314,315,316},{317,318,319,320,321,322,323},{324,325,326,327},{328,329,330},{331,332,333,334,335,336,337},{338,339,340,341},{342,343,344}}; // set of shipments in each bid 
int SHsts[SPN]={1,3,5,7,9,11,0,4,8,12,2,8,1,3,5,7,9,11,1,5,9,0,6,12,1,3,5,7,9,11,2,6,10,2,8,2,4,6,8,10,12,14,1,5,9,13,2,8,14,1,3,5,7,9,11,13,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,1,5,9,13,1,7,13,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,1,3,5,7,9,11,13,15,0,4,8,12,1,7,13,2,4,6,8,10,12,14,0,4,8,12,1,7,13,2,4,6,8,10,12,14,0,4,8,12,0,6,12,0,2,4,6,8,10,12,14,2,6,10,14,0,6,12,2,4,6,8,10,12,14,16,1,5,9,13,1,7,13,0,2,4,6,8,10,12,14,16,1,5,9,13,0,6,12,0,2,4,6,8,10,12,14,16,1,5,9,13,2,8,14,0,2,4,6,8,10,12,14,16,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,2,6,10,14,0,6,12,1,3,5,7,9,11,13,15,2,6,10,14,2,8,14,0,2,4,6,8,10,12,14,0,4,8,12,0,6,12,1,3,5,7,9,11,13,15,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,1,3,5,7,9,11,13,2,6,10,14,0,6,12,2,4,6,8,10,12,14,2,6,10,14,0,6,12}; // set of start times of each shipment 
int SHets[SPN]={6,8,10,12,14,16,5,9,13,17,7,13,6,8,10,12,14,16,6,10,14,5,11,17,6,8,10,12,14,16,7,11,15,7,13,5,7,9,11,13,15,17,4,8,12,16,5,11,17,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,4,8,12,16,4,10,16,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,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,4,6,8,10,12,14,16,2,6,10,14,3,9,15,4,6,8,10,12,14,16,2,6,10,14,2,8,14,2,4,6,8,10,12,14,16,4,8,12,16,2,8,14,3,5,7,9,11,13,15,17,2,6,10,14,2,8,14,1,3,5,7,9,11,13,15,17,2,6,10,14,1,7,13,1,3,5,7,9,11,13,15,17,2,6,10,14,3,9,15,1,3,5,7,9,11,13,15,17,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,1,7,13,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,2,8,14,3,5,7,9,11,13,15,17,2,6,10,14,4,10,16,2,4,6,8,10,12,14,16,3,7,11,15,3,9,15,3,5,7,9,11,13,15,17,3,7,11,15,4,10,16,4,6,8,10,12,14,16,5,9,13,17,3,9,15,5,7,9,11,13,15,17,5,9,13,17,3,9,15}; // set of end times of each shipment 
