Download
NbW=50;
NbS=50;
fixed=17500;
SupplyCost=[
[ 2609,3292,6739,8933,6803,5984,10355,7650,8084,4246,5219,5776,6641,7816,4374,3847,5033,6429,6719,3660,7358,5396,5219,8345,4182,6387,7391,5542,5038,10349,6400,5558,6051,9568,3792,4898,9064,7159,11178,8697,4781,6033,6661,5299,8845,11656,9977,5301,8663,3947]
[ 2368,1148,3204,4509,4028,2752,5457,3845,4791,2504,2396,2628,3220,3859,1838,2266,2285,3117,3299,2596,3680,2582,2296,4205,1779,2994,5115,2491,2189,5399,3046,2499,2838,4940,1446,2351,4642,3507,6634,4369,2035,2890,3943,2607,5984,6919,5919,3574,4385,1538]
[ 38119,28711,4914,17161,44553,7030,26409,19622,50450,35490,13876,9147,14977,9987,21848,35330,20546,15111,25670,37312,29954,23679,9828,13734,19303,6568,57472,8895,11180,22957,12390,7341,15489,21294,21806,22713,18992,16657,67393,15523,12297,23856,48568,27686,66066,66973,59161,44864,16203,22621]
[ 94158,75406,32372,11548,94124,35112,29982,21024,105322,79267,29681,21275,20071,28595,64292,80186,47630,25921,53179,95094,61702,69206,23096,42165,48700,24701,135170,25118,40527,60515,47246,30416,52911,19804,61669,53847,15191,17163,141838,16712,34762,49569,105288,76944,142841,137025,121516,110118,12183,58878]
[ 1432,1277,1715,1883,566,1580,2152,1577,838,876,1061,1250,1363,1923,1524,955,1016,1318,949,1655,814,1789,1133,2087,1015,1583,2005,1269,1379,2512,1815,1381,1823,2008,1383,947,1901,1497,1685,1925,1108,908,1169,1798,2040,1600,1240,2003,1836,1237]
[ 29389,21549,6421,15994,35203,3514,23701,16197,40108,27663,10383,7483,12332,10627,15840,27251,15232,12444,20193,28704,23757,17769,7029,12654,13919,6260,45474,6253,6966,20326,9090,4947,10956,19446,15805,17035,17517,13730,54202,15093,8371,18684,38375,21102,52622,53852,47354,34986,15197,16483]
[ 181956,151443,81972,45118,179349,86890,28499,43134,199791,153664,65767,58805,48555,75277,138615,155294,97584,53176,107361,187467,122469,147325,56998,99391,102384,68433,259515,65619,96429,131920,108338,78565,118381,37594,126439,108605,40319,50569,262507,54213,78328,100962,199791,160389,266358,256048,228497,214099,46244,120958]
[ 70158,56137,33391,20160,68960,32030,26544,6370,78353,57158,16770,13571,8861,34044,51550,57907,31390,10985,35882,72690,42824,57376,12741,45125,33595,25346,105796,16702,32220,60071,42892,24339,46527,21820,44649,36454,21085,12128,107171,24366,22542,32942,78353,60248,108940,104203,91544,84928,20704,42130]
[ 1719,1555,2020,2186,797,1877,2480,1869,697,1127,1324,1525,1646,2242,1817,1211,1359,1593,1205,1956,1061,2099,1395,2416,1275,1880,1940,1538,1663,2869,2127,1665,2135,2327,1668,1203,2218,1789,1599,2239,1374,1156,1050,2109,1977,1509,1125,2149,2144,1511]
[ 1038,879,1459,1709,1024,1320,1995,1402,1305,464,869,1050,1181,1674,1133,546,738,1134,1066,1268,1206,1406,928,1875,768,1323,1950,999,1145,2314,1562,1115,1500,1846,988,667,1736,1318,1983,1748,832,916,1087,1416,1986,2088,1720,1628,1668,837]
[ 282030,211282,141015,156813,275986,123980,205925,104130,324205,216434,12638,46089,66146,165880,198300,220212,86408,58178,109075,294806,144106,241573,25277,212999,97536,105504,461992,48149,106122,288418,178793,81738,185456,180442,162789,111960,161484,89774,468792,165811,55499,94239,323380,245901,477721,453818,389938,356556,149807,140603]
[ 50691,38013,17684,20961,51754,16554,32069,15322,59686,41572,8429,1231,9073,20938,32781,41335,20566,9254,24295,52228,30058,37595,2463,29549,19775,11074,79235,3830,16712,41956,25571,10170,28589,26227,28724,24385,23131,11333,83247,20927,10350,21854,59166,41335,84557,81009,70500,62387,19673,26656]
[ 87703,68425,38207,29484,86090,36375,42477,15319,98955,70203,15832,11526,5185,43485,62653,71210,35513,11563,41561,91111,50906,70496,10371,57448,38482,27377,135275,15741,36631,77569,50998,26021,55891,35788,53362,42330,30731,11599,137529,32581,23565,37602,98735,74362,139911,133534,116492,107586,27615,49972]
[ 8994,7014,1953,3076,10270,2400,5044,4089,11525,8342,3428,2289,3530,1217,5553,8308,5162,3558,5938,8844,6878,5947,2434,2672,4897,1741,13134,2275,3283,4634,3544,2352,4204,3955,5544,5623,3465,3423,15131,2520,3406,5551,11125,6799,14963,15041,13379,10451,2868,5718]
[ 22109,13806,17181,27575,34163,13983,36054,25399,39559,23393,16297,15828,21148,21809,7310,21709,15513,20779,22678,21463,25368,12569,14621,24038,11931,16866,39913,14091,11169,32479,15843,13360,14375,31372,9640,15974,29250,22701,52897,26598,12776,19787,33563,13114,48346,54681,47531,28374,26698,11815]
[ 16807,14001,25640,30561,19556,22905,35602,25154,24505,9679,15763,18421,21255,29433,18478,8135,13451,20437,19232,20868,21699,23300,16271,32126,12619,23236,35094,17533,19253,39867,26303,19556,24957,32986,15933,12196,31041,23680,36455,30709,14579,16581,19881,23476,36497,38302,31816,27205,29842,13261]
[ 10299,7390,7031,8472,10011,6048,10492,6305,12559,6963,2542,3918,4743,8551,6856,7119,1531,4415,4164,10825,5152,8788,3062,9992,2712,6068,17458,3782,5031,13093,7754,4593,8294,9443,5401,2666,8664,5714,17692,8842,2599,3101,11362,8989,17709,17551,14924,13365,8184,4483]
[ 175305,136474,78453,73100,171987,74683,92515,36644,198000,139301,27445,23562,23034,89311,126332,141375,67935,11423,80376,182317,99603,144881,22846,118038,74042,56173,274079,32233,75211,159433,104768,53383,114834,79433,107218,81959,75663,36305,280374,79396,45918,72233,198000,150423,282712,269592,234531,216209,69254,97680]
[ 14104,10872,9452,10186,10309,8668,12441,7754,12529,10040,3542,5082,6005,10597,10274,10214,4313,5638,2061,14718,4237,12438,4123,12767,5635,7817,21789,5177,8073,16239,11122,6723,11726,11267,8646,5230,10401,7099,19186,10594,5350,2795,14964,12662,22071,18497,15556,17561,9863,7618]
[ 4719,4738,8597,11897,10320,7583,14113,10500,12031,6905,7254,7875,9152,10064,5467,6371,7005,8870,9277,3656,10130,6729,7312,10878,5869,8497,9506,7622,6695,13554,8172,7390,7707,13238,5406,7151,12428,9845,15675,11583,6547,8360,10130,5845,12180,16314,14559,5847,11614,5613]
[ 2204,1718,1581,1691,1302,1463,2030,1326,1635,1593,693,924,1063,1760,1628,1619,733,1008,555,2296,390,1953,780,2079,931,1335,3066,939,1298,2600,1756,1171,1846,1853,1384,871,1722,1227,2673,1752,889,505,2041,1987,3108,2532,2090,2723,1643,1229]
[ 33087,23443,23170,37575,50155,19559,48702,36072,57236,36022,26166,23493,30494,29263,14919,33813,25682,30655,35084,31815,38614,11166,22333,29102,20982,23524,56025,21214,17380,40178,17905,20255,15978,42538,17975,26288,39775,32512,74738,35911,21002,31291,49368,15978,67091,77038,67697,40884,36405,20830]
[ 29547,21819,12087,14277,30208,10393,19877,9670,34960,23989,3801,2252,5847,14071,19650,23844,11199,6260,13471,30993,16984,22873,0,19319,10703,8017,46945,2293,10145,26881,15889,6157,17728,16757,16158,13513,14856,7665,50147,14257,4959,11984,34713,24051,50189,48040,41634,36675,13492,14897]
[ 19258,15154,4883,8660,22473,5240,12851,10822,25140,18677,8930,6798,9435,4715,11943,18148,11947,9496,14265,19106,16203,11616,7106,3553,10898,5631,28226,6684,7117,7725,6509,5973,7911,10537,11924,12593,9496,9405,33421,7486,7881,13444,24198,13429,31946,32615,29081,22522,8227,12293]
[ 32600,22120,24063,31410,36263,20115,39682,24603,43406,26098,11050,13644,18976,29538,20197,24684,10012,17796,19495,34493,23056,27157,10541,33424,5270,20594,59259,12362,14845,44597,26668,15282,26495,35297,14936,10622,32488,21866,64743,31379,8099,15669,41636,27879,64804,63420,53958,43640,30250,11650]
[ 19133,14415,4124,7502,21736,4258,12148,8180,24693,17191,5611,2952,5851,5337,11613,17111,9697,5918,11525,19369,13673,12852,3268,8547,9073,1634,29479,2801,5623,13172,7620,3075,8745,9583,10952,10784,8420,6693,33190,6967,5560,10615,23935,14794,33148,32667,28750,23156,7022,11361]
[ 175156,190444,281463,355282,238383,258749,406770,325852,225170,205569,253234,264755,294457,314332,211356,210756,242970,289434,287742,170788,273327,239639,248102,332568,222222,279224,124051,257875,238875,392519,271962,254436,261534,380835,205405,233251,365874,308872,262243,348348,234998,267212,177231,219819,183947,276549,279934,151733,352989,210046]
[ 31417,23339,11056,15023,33379,9282,22113,11424,38298,25597,5582,2430,7436,13292,19279,25460,12766,7551,15708,32571,19387,22351,1601,18629,11698,6794,49650,800,9022,26549,15038,4846,16963,18384,18146,14626,16408,8878,52990,15002,5683,14150,36827,24738,53033,52629,45921,39055,14201,16091]
[ 22292,15532,8585,15815,27305,6079,22449,14122,31534,21286,7458,6609,10790,12212,11525,20448,11037,10887,16351,22629,18460,14092,5916,13959,8953,7422,37089,5247,2958,20575,9380,4675,9917,18779,10579,12122,17129,11995,44699,15038,5121,14086,30040,16086,42325,43386,37782,28046,15128,11164]
[ 35887,29205,12480,18630,41122,13061,25455,22151,45465,34940,19069,15598,19892,12207,23976,34080,23982,19991,27757,35640,30912,23444,16099,10314,22275,13699,50490,15413,16118,8049,15128,14256,17411,21687,23945,25034,19991,19843,58502,16718,17362,26420,43931,26395,56547,57636,51882,41202,17925,24545]
[ 12035,8916,3727,7937,15528,2988,11116,8229,17556,12413,5826,4628,6632,5471,6476,11884,7270,6678,9817,11792,10828,6101,4440,5425,6843,4123,18722,4120,3693,8596,2220,3580,3285,9358,7288,8021,8567,7210,23593,7374,4435,8731,16331,7478,21757,23235,20550,14388,7608,8162]
[ 16816,12300,4673,8907,19038,3674,13346,7880,21863,14695,4330,2861,5655,6838,9623,14610,7526,5719,9982,17041,12034,11338,2398,8891,6931,3300,26701,1952,3900,13310,6886,1199,7961,10895,8991,8573,9784,6460,29982,8388,3574,9112,21992,12670,30199,29780,26037,20660,8448,9382]
[ 33291,24043,13451,25678,45466,10386,35106,25927,51477,34720,17347,15249,21192,18623,16808,32845,22433,21329,29985,32571,32982,15695,14693,18486,19385,13751,53121,13742,10951,27888,8982,12141,7346,30148,19402,23889,27802,22904,67566,24266,14025,26766,46032,19779,62514,69570,61607,40269,24685,21808]
[ 946126,772783,372672,171891,941607,399465,229188,203364,1052973,801673,322800,261306,229995,336196,681269,810550,496143,258078,549405,987768,631719,728398,261790,467575,512606,298912,1361570,298428,451435,644793,516318,354111,575875,130895,640112,556184,145421,201588,1394657,221440,377998,514543,1052973,803126,1415639,1359472,1209370,1121245,178024,610899]
[ 11074,6516,9745,14620,17265,8055,18070,12049,20125,11582,7198,7592,9802,12191,5780,10692,6792,9607,10578,11927,12000,8559,6353,13369,4891,8961,21336,7495,5951,17830,10200,7109,9514,16229,3176,7028,15116,10875,27174,14096,5378,9051,16956,8848,24582,28075,24330,15579,14222,4326]
[ 15829,11730,12055,14909,14887,10463,18181,11400,18098,9950,5307,7379,8870,14516,10865,10202,3806,8340,7557,17293,9159,13994,5984,16447,4154,10495,26946,6793,8459,21470,13235,8116,13697,16483,8500,2992,15221,10444,27326,15353,4886,5837,17073,14319,27353,27097,22842,21406,14443,7022]
[ 260549,211357,97602,40426,259264,105128,73603,59561,291477,219479,83331,65940,56946,87232,185247,222003,132614,73007,147849,269818,171160,198738,65986,124584,137295,76540,378755,76494,119995,174969,138442,92233,155375,45566,173638,149685,32993,48961,388070,54606,99025,137846,290926,219984,394035,378067,335391,310337,42170,165240]
[ 137814,108160,60774,37261,137095,58008,63568,27330,156514,113056,30982,20497,15076,61549,97731,114578,60691,24757,69875,142959,83983,109515,20525,84066,63513,44425,209073,26860,58395,114439,80082,42378,87468,46721,85421,70981,39142,10262,214743,41936,40442,63900,156127,117123,218284,208713,182987,167828,34439,80359]
[ 45190,41683,54470,59493,29821,51403,65177,52117,27688,32544,40378,44494,47243,59211,47631,34351,38581,46820,37823,48504,35461,53659,42775,64357,39250,51465,40960,44335,48318,73399,57395,46882,55712,61907,44450,37012,59475,50292,21387,60630,40660,36889,30385,54285,34060,23696,24243,45428,59070,41092]
[ 22574,17974,7146,4104,23542,8089,8618,6428,26371,19848,7822,5211,5621,5744,15256,19762,12226,7047,13579,22804,15670,16305,5658,9081,11939,5543,32644,6154,9417,13583,10795,6937,12308,6121,14604,13612,4997,4907,35329,2829,8519,12693,26231,18261,35444,34157,30344,26490,3636,14436]
[ 80057,56481,38011,53182,85773,30699,70728,39587,100523,63100,15801,16494,27925,49316,49862,62659,25677,26917,44210,82915,51564,61965,10086,58183,22567,30846,133135,13847,23134,81255,43390,19877,47404,61209,39209,31140,55409,33472,142906,53119,5043,36309,95817,63289,143032,141855,122313,103360,50787,35364]
[ 58028,43758,39723,42962,45043,36260,52917,32225,54677,40086,13627,20427,24504,44777,41119,40854,14800,22884,13348,60736,18235,50669,16196,54356,20636,32504,91957,20846,31401,69686,44861,27673,47528,47737,33928,18849,43884,29335,84235,44763,19379,8098,61825,51661,93199,81191,68206,73289,41538,29391]
[ 11687,10319,16111,18256,9625,14832,20714,15620,8793,7559,11041,12598,13719,17960,12502,7885,9913,13320,12732,13667,11825,14853,11550,19329,10071,15090,13193,12158,13052,23103,16310,14031,15654,19439,11261,9301,18490,14901,14420,18590,10725,11440,5775,15097,13994,15320,12357,14935,17905,9951]
[ 19812,14312,16981,25818,30875,14743,32575,23312,35262,22118,16250,16268,19856,20756,9331,20750,16000,19556,21825,17087,24012,9543,14550,20656,13087,17100,32087,14856,12481,27518,13718,14262,12525,28893,11225,16375,27181,21506,46393,24875,13050,19475,30675,7275,38943,47856,42043,22706,25093,12993]
[ 107792,115691,168663,190737,120397,157010,210766,169251,113618,103562,131938,144628,153760,185526,134768,109304,122750,150511,145721,113954,138325,149278,136084,193650,124879,163256,89976,141042,142499,224408,164573,150483,160511,200373,123367,117764,192641,163396,108212,193454,129361,135188,93057,139110,68042,115551,117288,104178,187935,125748]
[ 50320,46673,57109,60151,29943,53921,66703,53124,27725,37172,40919,45381,48057,62039,52583,39050,40589,46994,38262,53765,35074,58814,42605,65905,40553,53307,45922,46572,49175,75966,59473,49220,61003,63303,49184,38958,60774,51227,25572,61352,42752,37291,34927,59519,38748,21302,24143,50567,59235,45803]
[ 13547,12443,15576,16502,7348,14610,18481,14368,6676,9565,10672,12024,12834,17069,14205,10134,10572,12512,9867,15145,8902,16103,11183,18240,10561,14424,14940,12384,13172,21287,16292,13186,16755,17451,13197,10078,16686,13794,8777,16860,11227,9573,9046,16305,12767,8172,5591,17640,16219,12151]
[ 1568,1572,2542,3371,2975,2287,3928,3020,3140,2117,2205,2361,2682,2911,1756,1983,2142,2611,2713,1300,2927,2073,2174,3115,1857,2517,2006,2297,2064,3788,2435,2239,2318,3664,1740,2179,3495,2856,3556,3292,2072,2483,2603,1850,2678,3717,4040,1087,3300,1792]
[ 101089,81178,34056,14036,101528,37057,34221,24448,114155,85625,31329,21905,20807,29883,69009,86632,50983,27212,57059,102699,66392,74352,23899,44780,51935,25656,147937,26114,42986,64873,50343,31915,56510,23076,66429,57791,18025,17622,155129,16909,36673,53106,114118,82825,155275,148907,131888,119151,11949,63080]
[ 7969,4856,7095,9693,10916,5941,11999,7886,12864,7029,4190,4847,6351,8766,4903,6421,3907,6030,6493,8552,7464,6801,4001,9570,2614,6560,14979,4498,4503,12617,7978,5294,7448,10753,3124,4073,9987,7090,17673,9684,3335,5450,10694,6998,17196,18323,15742,11047,9376,2000]
];