Skip to content

Instantly share code, notes, and snippets.

@N8python
Created October 3, 2024 04:58
Show Gist options
  • Save N8python/bcb13872be5a9fa51bcca3eb98b90a0d to your computer and use it in GitHub Desktop.
Save N8python/bcb13872be5a9fa51bcca3eb98b90a0d to your computer and use it in GitHub Desktop.
A python function that gets 94.65% accuracy on MNIST. The parameter `i` is a 784 array of 0s or 1s - computed by rounding the flattened MNIST image.
def predict(i):
a2=max(0,+i[221]+i[526]+i[565]+i[578]+i[592]+i[612]+i[619]+i[636]+i[637]+i[647])
a5=max(0,-i[75]+i[98]-i[133]-i[161]-i[162]-i[163]-i[190]-i[191]-i[218]-i[219]-i[220]-i[247]-i[248]-i[276]-i[277]+i[283]+i[294]-i[304]-i[315]-i[332]-i[340]-i[342]-i[445]-i[485]-i[500]-i[528]-i[529]-i[556]-i[557]-i[584]-i[612]+i[676]-i[743]-i[744]-i[745])
a7=max(0,-i[323]-i[324]-i[325]+i[329]-i[350]-i[352]+i[358]+i[388]+i[412]+i[453]+i[454]+i[456]+i[512])
a28=max(0,-i[322]-i[348]-i[349]+i[359]+i[370]+i[371]-i[375]-i[376]+i[387]+i[397]+i[398]-i[403]-i[404]+i[427]+i[428]-i[431]-i[435]+i[442]+i[455]+i[456]-i[460]-i[464]+i[484]-i[491]+i[524]+i[748])
a39=max(0,-i[155]-i[159]-i[377]-i[405]-i[431]-i[432]-i[538]-i[636]+i[677])
a56=max(0,+i[277]-i[484]-i[485]-i[514]-i[515]-i[516]+i[682])
a62=max(0,+i[104]+i[122]+i[129]+i[131]+i[132]+i[164]+i[165]+i[191]+i[192]+i[221]+i[250]-i[350]-i[368]+i[416]+i[445]+i[473]+i[528]+i[570]+i[572]-i[649]-i[677]-i[678]-i[679]-i[680]-i[707]-i[708]-i[709]-i[710]-i[711]-i[712]-i[713]-i[739]-i[743]-i[744])
a64=max(0,+i[431]-i[454]-i[455]-i[484]-i[485]-i[513]-i[514]-i[515]-i[516]-i[517]+i[535]+i[648]+i[709])
a110=max(0,-i[321]+i[340]-i[349]+i[355]+i[368]-i[376]+i[381]+i[382]+i[395]+i[423]-i[541]-i[658]+i[678]+i[744]+i[745]+i[766])
a130=max(0,-i[188]-i[215]-i[216]+i[238]-i[243]-i[244]-i[271]-i[272]-i[273]-i[289]-i[291]+i[295]-i[299]-i[317]-i[342]-i[344]-i[355]+i[518]-i[623]-i[651]-i[664])
a151=max(0,+i[71]+i[72]+i[73]+i[75]+i[98]+i[104]-i[152]-i[188]-i[275]-i[303]-i[332]-i[333]+i[412]-i[596]-i[623]+i[707]+i[709]+i[737]+i[743]+i[744])
a157=max(0,+i[75]-i[147]-i[202]-i[294]-i[322]+i[347]+i[371])
a166=max(0,+i[75]+i[76]+i[77]+i[78]-i[96]+i[104]+i[105]+i[106]-i[121]-i[122]-i[148]-i[149]-i[259]-i[287]-i[398]+i[408]-i[415]-i[416]-i[425]-i[426]-i[442]-i[443]-i[444]-i[471]-i[499]-i[525]-i[526]-i[540]-i[553]-i[565]-i[566]-i[581]-i[582]-i[593]-i[594]-i[635]+i[733]+i[740]+i[742]+i[745])
a173=max(0,-i[67]+i[300]-i[717]-i[718])
a221=max(0,-i[68]-i[69]-i[91]-i[93]-i[94]-i[95]-i[96]-i[97]-i[98]-i[99]+i[165]+i[204]+i[206]+i[249]+i[250]+i[277]+i[305]+i[423]-i[539]+i[690]+i[691]+i[707]+i[710]+i[715]+i[716]+i[717]+i[718]+i[720]+i[721])
a231=max(0,+i[68]+i[74]+i[128]-i[267]-i[295])
a251=max(0,-i[257]-i[295]-i[322]+i[370]+i[401]+i[431]+i[486]-i[623]-i[624]-i[655]-i[656]-i[659]+i[719])
a256=max(0,-i[93]-i[96]-i[98]-i[100]-i[596])
a293=max(0,+i[41]+i[47]+i[74]+i[75]+i[76]+i[77]+i[102]+i[104]+i[105]+i[106]-i[243]-i[244]-i[245]-i[246]-i[270]-i[271]-i[272]-i[273]-i[274]-i[361]-i[390]+i[440]-i[501])
a309=max(0,+i[256])
a317=max(0,-i[231]+i[355]+i[379]+i[382]+i[406]-i[416]-i[527]+i[742]+i[745])
a346=max(0,-i[489]-i[490]-i[517]+i[595]+i[653]+i[655]+i[656])
a383=max(0,+i[153]+i[193]+i[221]+i[272]-i[295]+i[341]-i[485]-i[486]-i[515]-i[518]+i[537]+i[564]+i[565]+i[619]+i[652]+i[654]+i[655]+i[656]+i[711])
a396=max(0,-i[133]-i[160]-i[161]-i[188]-i[190]+i[199]-i[217]-i[218]+i[227]-i[245]-i[246]+i[255]+i[267]-i[271]-i[272]+i[294]-i[299]-i[326]-i[327]-i[328]+i[350]-i[541]+i[720])
a402=max(0,+i[91]-i[153]-i[154]-i[155]-i[156]-i[157]-i[158]-i[159]-i[160]-i[162]-i[190]-i[191]-i[218]-i[219]+i[238]-i[247]-i[248]-i[275]+i[708]+i[721]+i[737]+i[742]+i[744]+i[745])
a406=max(0,+i[180]-i[192]-i[220]-i[247]-i[248]-i[263]-i[264]-i[275]-i[276]-i[289]-i[290]-i[303]-i[304]-i[315]-i[316]+i[322]-i[332]-i[341]-i[342]-i[486]-i[500]-i[501]-i[528]+i[550]-i[556]-i[639]+i[675]+i[676]-i[743])
a410=max(0,+i[276]+i[304])
a424=max(0,-i[91]-i[92]-i[93]-i[94]-i[95]-i[96]-i[97]-i[98]-i[118]-i[119]-i[121]-i[122]-i[123]-i[126]-i[146]-i[148]-i[174]+i[300]+i[301]+i[327]+i[355])
a437=max(0,-i[244]-i[276]-i[326]-i[510]+i[545]-i[595])
a444=max(0,-i[93]-i[124]-i[125]-i[127]-i[153]-i[155]+i[192]+i[193]+i[209]+i[221]+i[249]+i[277]+i[286]+i[301]+i[305]+i[314]+i[341]-i[387]-i[415]-i[442]-i[443]-i[595]-i[623]+i[689]+i[691]+i[692]+i[693]+i[694]+i[695]+i[706]+i[707]+i[708]+i[709]+i[710]+i[711]+i[712]+i[713]+i[715]+i[716]+i[717]+i[718]+i[719]+i[720]+i[721]+i[736]+i[737]+i[740]+i[741]+i[742]+i[743]+i[744]+i[745]+i[746])
a449=max(0,+i[157]+i[555]+i[580]+i[582]+i[610]+i[611]+i[612]+i[637])
a450=max(0,-i[121]-i[128]-i[130]-i[151]-i[152]-i[153]-i[154]-i[155]-i[156]-i[157]-i[158]-i[159]-i[160]-i[163]+i[236]+i[241]+i[254]+i[266]+i[294]+i[339]-i[348]-i[578]-i[605]+i[677]+i[706]+i[766])
a457=max(0,-i[301]-i[302]-i[303]-i[328]-i[329]-i[330]-i[331]-i[332]+i[350]+i[378]+i[406]-i[488])
a486=max(0,+i[70]+i[71]-i[332]+i[486]+i[514]-i[566])
a494=max(0,+i[221]+i[249]+i[254]+i[277]+i[282]+i[322]+i[351]+i[378]-i[454]-i[456]-i[484]-i[485]-i[486]-i[487]-i[488]-i[516]+i[707]+i[709]+i[741]+i[742]+i[744]+i[745]+i[746])
a522=max(0,+i[68]+i[69]+i[72]+i[75]+i[97]+i[105]-i[152]-i[180]-i[181]-i[208]-i[209]-i[214]-i[236]-i[238]-i[286]-i[342]-i[356]+i[400]+i[401]+i[403]+i[416]+i[427]+i[431]+i[453]+i[465]+i[491]+i[494]+i[519]-i[637]-i[638]-i[656]-i[657]-i[677]-i[679]-i[680]-i[681]-i[682]-i[694]-i[705]-i[708]-i[709]-i[710]-i[712]-i[738]-i[739]-i[740]-i[741]-i[742]-i[744]-i[745]-i[746]-i[747]-i[748]-i[749])
a523=max(0,+i[193]+i[410]+i[438]+i[507]-i[515]+i[676]+i[677]+i[678]+i[679]+i[704]+i[707]+i[708]+i[710]+i[711]+i[715]+i[717]+i[718]+i[735]+i[736]+i[737]+i[739]+i[740]+i[741]+i[745]+i[746])
a527=max(0,+i[156]+i[212]-i[292]-i[293]-i[321]+i[480]+i[509]+i[623]+i[640])
a536=max(0,+i[122]+i[137]+i[145]+i[172]+i[249]-i[358]+i[378]+i[380]+i[404]+i[407]-i[454]-i[455]-i[456]-i[482]-i[483]-i[484]-i[485]-i[486]-i[487]-i[489]+i[507]-i[512]-i[513]-i[514]-i[515]-i[516]-i[517]-i[518]+i[535]+i[591]+i[595]+i[619]+i[620]+i[647]+i[648]-i[666]+i[677]+i[679]-i[691])
a539=max(0,+i[154]+i[155]+i[157]+i[159]-i[266]-i[267]+i[332]+i[360])
a542=max(0,-i[154]-i[155]-i[156]+i[238]+i[528]+i[709]+i[716]+i[717]+i[721]+i[735]+i[736]+i[737]+i[738]+i[739]+i[740]+i[741]+i[742]+i[746]+i[747]+i[748]+i[749])
a550=max(0,+i[63]+i[64]+i[66]+i[67]+i[68]+i[72]+i[73]+i[74]+i[92]+i[93]+i[95]+i[96]+i[97]+i[105]+i[120]+i[122]+i[123]+i[125]+i[126]+i[127]+i[130]+i[150]+i[159]-i[297]+i[331]+i[332]+i[360]-i[369]-i[398]-i[399]-i[436]-i[437]+i[473]+i[529]+i[555]+i[568]+i[569]+i[570]+i[577]+i[594]+i[601]+i[603]-i[678]-i[705]-i[706]-i[707]-i[742])
a555=max(0,-i[122]-i[149]-i[150]-i[178]-i[179]-i[207]-i[234]-i[235]-i[246]-i[261]-i[274]-i[356]+i[378]-i[466]-i[493]-i[539])
a558=max(0,+i[402]-i[418]+i[431]-i[453]-i[454]-i[482]-i[484]+i[676]+i[705]+i[706]+i[707]+i[708]+i[709]+i[711]+i[712]+i[713])
a577=max(0,+i[63]+i[64]+i[66]+i[67]+i[68]+i[72]+i[73]+i[74]+i[75]+i[76]+i[77]+i[91]+i[92]+i[93]+i[94]+i[95]+i[96]+i[97]+i[102]+i[103]+i[120]+i[129]-i[368]-i[437]-i[466]-i[491]+i[563]+i[572]+i[575]+i[591]+i[592]+i[599]+i[619]-i[708]-i[709]-i[710])
a591=max(0,+i[682]+i[683]+i[684]+i[685]+i[686])
a593=max(0,+i[75]+i[159]+i[221]+i[248]+i[249]-i[341]-i[357]-i[359]+i[376]-i[384]-i[385]+i[405]-i[413]-i[414]-i[427]-i[442]-i[456]-i[457]-i[470]-i[471]-i[485]-i[486]-i[499]-i[514]-i[527]+i[537]-i[554]-i[555]-i[582]-i[610]-i[611]-i[637]-i[638])
a606=max(0,+i[70]+i[71]+i[93]-i[348]-i[349]-i[375]+i[473]+i[501]+i[535]+i[563]+i[591]+i[612]+i[677]+i[706])
a627=max(0,+i[201]+i[221]+i[235]+i[236]+i[248]+i[256]+i[305]-i[375]-i[397]-i[398]-i[399]-i[400]-i[401]-i[402]-i[425]-i[426]-i[427]-i[428]-i[453]+i[567]+i[568]+i[591]+i[621])
a647=max(0,-i[124]-i[125]-i[151]-i[152]-i[153]-i[154]-i[155]-i[156]-i[157]-i[181]-i[182]-i[184]-i[211]+i[226]+i[247]+i[282]+i[287]+i[289]+i[293]+i[317]+i[319]+i[320]+i[338]+i[339]+i[366]-i[377]+i[395]-i[404]-i[405]-i[406]-i[432]-i[433]-i[459]-i[460]-i[486]-i[487]-i[514]-i[527]-i[541]-i[542]-i[555]-i[593]-i[596]+i[714]+i[746]+i[769])
a648=max(0,-i[122]-i[149]-i[150]-i[178]+i[217]-i[233]+i[248]+i[249]+i[265]+i[275]+i[276]+i[277]-i[325]-i[355]-i[357]-i[413]-i[705]+i[718])
a695=max(0,+i[155]+i[193]+i[248]+i[249]+i[266]+i[321]+i[348]-i[429]-i[430]-i[431]-i[432]-i[457]-i[458]-i[459]-i[460]-i[488]-i[489]-i[490]+i[597])
a716=max(0,+i[174]+i[200]+i[201]-i[208]+i[228]+i[535])
a726=max(0,+i[233]-i[371]-i[398])
a727=max(0,+i[67]+i[68]+i[69]+i[70]+i[71]+i[74]+i[78]+i[118]+i[145]-i[157]-i[188]+i[379]-i[482]-i[483]+i[515]-i[540])
a749=max(0,-i[68]-i[93]-i[97]+i[428]+i[429]+i[464]+i[491]-i[544]-i[567]-i[568]-i[569]-i[570]-i[571]-i[572]-i[598]+i[690])
a751=max(0,+i[97]+i[119]+i[120]+i[121]+i[122]+i[146]-i[293]-i[294]-i[320]-i[321]-i[322]-i[347]-i[348]-i[374]-i[375]-i[401]+i[501]+i[512]+i[529]+i[541]+i[543]+i[557]+i[584]+i[612]+i[747])
a771=max(0,+i[231]+i[256]+i[259]+i[283]+i[289]-i[347]-i[348]-i[375]-i[398]-i[399]-i[400]-i[401]-i[402]-i[424]-i[425]-i[426]-i[427]-i[428]-i[429]+i[433]-i[452]-i[453]-i[454]+i[461]-i[481]-i[482]+i[514]+i[516]+i[657]+i[659]+i[766])
a787=max(0,-i[97]+i[250]+i[254]+i[283]+i[311]+i[324]+i[368]-i[389]+i[396]+i[401]-i[417]+i[437]-i[510]-i[511]-i[538]-i[539]-i[540]-i[541]-i[542]-i[543]-i[544]-i[545]-i[571]+i[678]+i[708]+i[709]+i[710]+i[712]+i[713]+i[718]+i[720]+i[721]+i[736]+i[737]+i[738]+i[739]+i[740]+i[741]+i[742]+i[743]+i[744]+i[746]+i[749])
a792=max(0,-i[151]-i[235]-i[302]-i[410]-i[438]-i[493]-i[510]-i[538]-i[565])
a805=max(0,+i[199]+i[200]+i[202]+i[227]+i[228]+i[255]+i[256]+i[282]+i[283]-i[372]-i[398]-i[427]+i[434]+i[435]-i[482]+i[489]-i[573]+i[591]+i[676])
a861=max(0,+i[177]+i[199]+i[201]+i[203]+i[206]+i[207]+i[209]+i[277]+i[305]-i[313]-i[316]-i[317]-i[318]-i[319]-i[320]-i[340]-i[341]-i[342]-i[343]-i[344]-i[345]-i[368]-i[369]-i[370]+i[508]+i[509]+i[529]+i[555]+i[591]+i[648]+i[684])
a880=max(0,+i[74]+i[75]+i[338]+i[371]+i[373]+i[395]+i[396]+i[398]+i[423]-i[444]+i[463]-i[488]-i[498]-i[525]-i[526]-i[538]-i[539]-i[541]+i[546]-i[554]-i[565]-i[568]-i[569]-i[570]-i[593]-i[597]-i[621]-i[623]-i[655]+i[721]+i[742]+i[743])
a902=max(0,+i[70]-i[263]-i[290]+i[294]-i[318]+i[322]-i[346]-i[347]+i[350]-i[375]-i[382]-i[383]-i[384]+i[406]-i[410]-i[411]-i[412]-i[413]-i[437]-i[439]-i[465]-i[492]-i[493]+i[515]+i[529]+i[557]+i[579]+i[583]+i[611]-i[707]-i[709]-i[710]-i[711]-i[712]-i[713]-i[714]-i[715]-i[716])
a929=max(0,-i[126]+i[164]+i[193]+i[219]+i[220]+i[221]+i[226]+i[248]+i[249]+i[256]+i[276]+i[304]+i[305]-i[432]-i[514]-i[553]-i[564]-i[565]+i[715]+i[766]+i[771]+i[772])
a939=max(0,+i[67]+i[68]+i[69]+i[70]+i[71]+i[72]+i[73]+i[74]+i[75]+i[76]+i[104]+i[105]+i[119]-i[275]+i[462]-i[678]-i[695]-i[707]-i[709]-i[711]-i[712]-i[713]-i[715]-i[716]-i[720]-i[721]-i[722]-i[742]-i[744]-i[745]-i[746])
a960=max(0,+i[121]+i[124]+i[128]-i[314]-i[315]-i[316]-i[317]-i[318]-i[319]-i[320]-i[321]-i[341]-i[342]-i[343]+i[418]+i[429]+i[454]+i[459]+i[528]+i[529]-i[679]-i[706]-i[708]-i[709])
a967=max(0,+i[70]+i[71]+i[72]+i[91]+i[92]+i[93]+i[94]-i[294]-i[295]-i[322]-i[349]+i[437]+i[491]+i[501]+i[507]+i[518]+i[529]-i[656]-i[658]-i[660]+i[708]+i[710]+i[737]+i[738])
a998=max(0,-i[131]-i[155]+i[221]+i[276]+i[374]-i[526])
a1002=max(0,+i[226]+i[236]+i[239]+i[240]+i[242]+i[275]+i[301]+i[303]+i[331]-i[350]-i[379]-i[380]-i[405]-i[407]-i[408]-i[434]-i[435]-i[436]-i[462]-i[463]-i[489]-i[490]-i[491]-i[516]-i[517]-i[518]+i[603]+i[677])
a1013=max(0,+i[72]+i[75]+i[76]+i[135]-i[147]+i[162]+i[164]-i[174]+i[189]-i[202]+i[220]+i[221]-i[229]+i[248]+i[290]-i[294]-i[295]-i[297]-i[298]-i[299]-i[300]-i[301]+i[375]+i[718]+i[720])
a1018=max(0,-i[192]+i[283]-i[291]-i[316]-i[317]-i[512]-i[513]-i[514]-i[515]-i[516]+i[651]-i[665]+i[678]+i[682]+i[706])
a1025=max(0,-i[322]+i[328]-i[332])
a1058=max(0,i[38]+i[39]+i[40]+i[41]+i[43]+i[47]+i[63]+i[64]+i[74]+i[75]+i[76]+i[99]+i[100]+i[101]+i[102]+i[103]-i[215]-i[216]-i[217]-i[241]-i[242]-i[243]-i[244]-i[245]-i[246]-i[268]-i[269]-i[270]-i[271]+i[359]-i[362]-i[390]-i[418]+i[441]-i[446]-i[474]-i[537]-i[565]-i[593]+i[602]-i[622]-i[623]-i[652])
a1063=max(0,-i[63]-i[295]-i[323]-i[350]-i[351]-i[352]+i[372]-i[378]-i[379]+i[399]+i[400]-i[406]+i[427]+i[428]+i[429]+i[454]+i[458]+i[464]+i[491]+i[539]-i[657]-i[683]-i[684]-i[685]-i[686]-i[709]-i[710]-i[711])
a1065=max(0,+i[63]+i[64]+i[66]+i[67]+i[68]+i[69]+i[70]+i[71]+i[74]+i[91]+i[93]+i[118]+i[119]+i[122]-i[155]-i[156]-i[157]-i[158]-i[159]-i[160]-i[188]-i[189]-i[190]-i[217]-i[218]-i[219]-i[248]+i[341]+i[354]+i[388]+i[738]+i[739]+i[742]+i[743]+i[744]+i[747]+i[748]+i[749])
a1067=max(0,-i[194]-i[250]+i[272]-i[324]-i[325]-i[352]-i[353]+i[357]+i[358]-i[380]-i[408]-i[434]+i[454]-i[461]+i[485]-i[489]+i[512]-i[516]+i[654]+i[766])
a1074=max(0,+i[41]+i[68]+i[69]+i[70]+i[74]+i[76]+i[135]-i[145]-i[146]+i[164]+i[165]+i[192]-i[202]+i[220]+i[233]-i[237]-i[238]-i[241]+i[254]+i[262]-i[265]-i[266]-i[270]+i[282]+i[288]-i[294]+i[310]+i[317]+i[319]+i[331]+i[344]+i[401]-i[479]-i[481]-i[518]-i[566]-i[622]-i[623]+i[660])
a1111=max(0,+i[74]+i[101]-i[323]+i[425]+i[459]+i[473]+i[501]+i[640]-i[650]+i[667])
a1116=max(0,+i[42]+i[63]+i[64]+i[66]+i[91]+i[92]+i[93]+i[94]+i[97]+i[181]+i[182]+i[183]+i[207]+i[208]+i[209]-i[219]-i[228]-i[244]-i[246]-i[247]-i[274]-i[275]-i[292]-i[293]-i[294]-i[295]-i[319]-i[320]+i[473]+i[501]+i[528]+i[529]+i[555]+i[557]+i[585]+i[742]+i[746]+i[747]+i[748])
a1139=max(0,+i[151]-i[316]-i[317]-i[342]+i[509]+i[640])
a1146=max(0,-i[315]-i[342]-i[343]-i[388]-i[414]-i[415]-i[441]-i[442]+i[500]+i[501]+i[528]+i[529]+i[558]+i[582])
a1148=max(0,+i[220]+i[221]+i[247]+i[248]+i[249]+i[275]+i[276]+i[277]+i[304]+i[305]+i[332]+i[473]+i[500]+i[510]+i[511]+i[514]+i[529]+i[611])
a1157=max(0,-i[231]-i[256]-i[257]-i[285]-i[311]-i[312]+i[316]+i[317]-i[340]+i[345])
a1164=max(0,+i[118]+i[145]+i[151]+i[200]+i[322]+i[323]+i[348]-i[369]-i[370]-i[371]-i[397]-i[398]+i[407]-i[427]-i[428]-i[429]-i[430]-i[458]-i[459]-i[460]+i[529]+i[535]+i[539]+i[583]+i[584]+i[608]+i[678])
a1168=max(0,-i[123]-i[124]-i[131]-i[132]-i[153]-i[157]-i[158]-i[159]-i[184]-i[185]-i[187]+i[245]+i[248]+i[267]+i[268]+i[269]+i[270]+i[272]+i[273]+i[277]+i[301]+i[303]+i[304]+i[305]-i[313]-i[353]-i[354]-i[355]-i[356]-i[357]-i[381]-i[382]-i[383]-i[384]-i[385]-i[386]-i[387]-i[388]-i[411]-i[413]-i[414]-i[415]-i[416]-i[441]-i[443]-i[444]-i[469]-i[497]-i[525])
a1173=max(0,+i[70]+i[78]-i[175]+i[186]-i[201]-i[203]+i[211]+i[212]+i[213]+i[215]-i[295]-i[296]-i[297]-i[415]-i[490]+i[627]+i[712]+i[737]+i[738]+i[739]+i[740]+i[744]+i[745]+i[748]+i[768])
a1177=max(0,-i[458]-i[486]+i[507]+i[539]+i[566]+i[619]-i[742])
a1197=max(0,+i[70]+i[95]+i[97]+i[99]-i[202]-i[204]-i[205]-i[230]-i[231]-i[232]-i[233]-i[257]-i[258]-i[275]-i[322]+i[374]+i[400]+i[408]+i[428]+i[458]+i[486]-i[593]-i[594]-i[595]-i[596]-i[597]-i[626]-i[627]-i[656]-i[659]+i[748])
a1235=max(0,-i[273]-i[284]-i[300]-i[320]-i[370]+i[473]+i[490]-i[520]+i[528]+i[544]+i[556]+i[585]+i[612]+i[640]-i[719])
a1251=max(0,+i[124]-i[237]-i[266]-i[293]-i[320]-i[321]-i[322]-i[349]-i[350]-i[378]-i[386]-i[387]+i[456]+i[516]+i[557]+i[570]+i[584]+i[591]+i[610]+i[612]+i[639]+i[640]+i[665]+i[666])
a1264=max(0,+i[127]-i[241]-i[271]-i[272]-i[287]+i[293]-i[382]-i[459]+i[462]-i[466]-i[484]-i[487]-i[495]-i[511]-i[512]-i[513]-i[514]-i[515]-i[540]-i[544]+i[576]+i[604]-i[681]-i[712])
a1286=max(0,-i[344]-i[348]-i[398]-i[400]-i[401]+i[594]+i[623]+i[654]+i[656]+i[721]+i[742]+i[745]+i[746]+i[747]+i[748])
a1288=max(0,+i[74]+i[151]+i[152]+i[193]-i[266]+i[276]-i[293]+i[315]+i[317]+i[318]+i[331]+i[341]+i[356]-i[453]+i[660]+i[685]+i[686]+i[691]+i[707]+i[710]+i[716]+i[737]+i[740]+i[741]+i[742]+i[743]+i[744]+i[745])
a1295=max(0,-i[98]-i[100]-i[124]-i[125]-i[154]-i[155]+i[213]-i[247]+i[255]+i[296]+i[312]+i[324]+i[339]+i[351]+i[353]+i[371]+i[372]+i[373]-i[387]-i[471]-i[497]-i[512]-i[513]-i[520]-i[524]-i[525]-i[526]-i[528]-i[538]-i[539]-i[540]+i[544]-i[547]-i[548]-i[554]-i[565]-i[575]-i[581]-i[602]-i[603]-i[604]-i[631]-i[632]-i[659]-i[660]-i[686]-i[687]-i[688]+i[705]-i[714]-i[715]+i[735]+i[736]+i[748]+i[773]+i[774])
a1303=max(0,-i[321]+i[358]+i[359]+i[387]+i[388]+i[414])
a1316=max(0,-i[63]-i[67]-i[68]-i[77]-i[331]-i[356]+i[374]+i[401]+i[431]+i[462]-i[514]-i[707]-i[736]-i[737]-i[741]-i[746]-i[747]-i[748]-i[749])
a1327=max(0,+i[70]+i[71]+i[72]+i[75]+i[76]+i[144]+i[177]-i[189]+i[199]-i[216]-i[217]-i[235]-i[244]-i[245]-i[262]+i[266]+i[267]-i[272]-i[273]-i[288]-i[289]-i[299]-i[300]-i[301]-i[302]-i[314]-i[327]-i[329]-i[330]-i[342]-i[357]+i[429]-i[638]+i[747])
a1328=max(0,-i[341]+i[361]-i[368]-i[369]-i[370]-i[371]-i[372]-i[373]-i[396]-i[398]+i[432]+i[486]+i[487]+i[528]+i[556]+i[567]+i[640])
a1333=max(0,+i[71]+i[99]+i[128]+i[133]+i[158]+i[162]+i[163]+i[165]+i[191]+i[192]+i[193]+i[194]+i[207]+i[214]+i[216]+i[221]+i[222]-i[267]-i[269]-i[270]-i[271]-i[272]-i[295]-i[296]-i[297]-i[298]-i[299]-i[300]-i[301]-i[302]-i[303]-i[304]-i[327]-i[328]-i[329]-i[330]-i[331]-i[332]+i[347]-i[358]-i[359]-i[360]-i[454]-i[455]-i[481]-i[483]-i[484]-i[489]+i[500]-i[513]-i[514]-i[515]-i[516]-i[517]-i[518]+i[552]+i[556]+i[582]+i[584]+i[592]+i[603]+i[611]+i[654]+i[684])
a1354=max(0,-i[97]-i[98]-i[99]-i[124]-i[125]-i[126]+i[132]-i[151]-i[152]-i[153]-i[179]-i[180]-i[181]-i[207]-i[208]-i[209]-i[234]-i[235]-i[236]-i[237]-i[263]-i[264]-i[265]+i[268]-i[292]+i[297]-i[320]+i[323]+i[324]+i[351]-i[374]-i[410]-i[411]-i[437]-i[438]-i[465]+i[488]-i[492]-i[493]-i[510]+i[516]-i[520]-i[524]-i[547]-i[548]-i[550]-i[575]-i[576]-i[608]+i[621])
a1371=max(0,+i[226]+i[260]+i[397]+i[401]-i[433]-i[461]-i[516]+i[718]+i[768]+i[771]+i[774])
a1376=max(0,+i[200]+i[227]+i[228]+i[272]-i[276]+i[299]-i[303]-i[304]+i[327]+i[328]-i[331]-i[332]-i[346]+i[379]-i[402]-i[414]-i[426]-i[442]+i[459]-i[482]+i[487]-i[510]+i[736]+i[742]+i[743]+i[766])
a1383=max(0,+i[105]+i[159]-i[245]-i[246]-i[247]-i[270]-i[271]-i[274]-i[297]+i[408]+i[522])
a1385=max(0,+i[146]+i[204]+i[213]+i[215]-i[220]+i[228]-i[265]-i[266]+i[268]+i[270]-i[289]-i[290]-i[291]-i[292]-i[293]+i[297]-i[303]-i[304]-i[315]-i[316]-i[317]-i[318]-i[319]-i[320]-i[341]-i[342]-i[343]-i[344]-i[345]-i[369]-i[370]-i[371]-i[398]-i[512]+i[564]+i[591]+i[620]+i[621]+i[650]+i[677]+i[683]+i[712])
a1403=max(0,+i[72]+i[73]+i[99]-i[177]+i[358]+i[359]+i[387]+i[388]+i[417]+i[445]+i[456]+i[458]+i[473]+i[501]+i[529]-i[659]-i[660]-i[661]-i[690]-i[717]-i[718])
a1453=max(0,+i[64]+i[66]+i[67]+i[68]+i[70]+i[71]+i[72]+i[73]+i[74]+i[75]+i[76]+i[77]+i[93]+i[94]+i[96]+i[97]+i[98]+i[99]+i[100]+i[101]+i[103]+i[105]+i[106]+i[120]+i[122]-i[240]-i[242]+i[304]-i[317]-i[369]-i[370]-i[397]+i[444]+i[473]+i[479]+i[500]+i[501]+i[508]+i[528]+i[529]+i[556]+i[563]-i[680]-i[707])
a1463=max(0,-i[93]-i[95]-i[97]-i[98]-i[101]-i[122]-i[126]-i[131]-i[159]-i[160]+i[248]+i[249]+i[276]+i[277]+i[305]+i[318]+i[334]+i[362]+i[390]+i[665]+i[666]+i[691]+i[692]+i[693]+i[694]+i[719]+i[720]+i[721])
a1503=max(0,-i[145]-i[173]+i[187]+i[212]+i[221]-i[228]+i[261]-i[283]-i[296]-i[297]-i[298]-i[299]-i[300]-i[301]-i[302]-i[328]-i[329]-i[330]-i[331]-i[332])
a1527=max(0,+i[172]+i[200]+i[203]+i[226]+i[254]+i[264]+i[292]+i[300]+i[309]+i[310]+i[311]+i[339]+i[345]-i[350]-i[351]+i[360]+i[366]+i[373]-i[377]-i[378]-i[379]+i[388]-i[404]-i[405]-i[406]+i[416]-i[432]-i[433]-i[434]-i[459]-i[460]-i[461]-i[487]-i[488]-i[514]-i[515]-i[516]-i[542]-i[543]-i[665]+i[706]+i[716]+i[717]+i[741]+i[742]+i[743]+i[765]+i[766]+i[769]+i[770]+i[772]+i[773]+i[774])
a1535=max(0,-i[96]+i[373]-i[740]-i[741])
a1536=max(0,-i[98]+i[227]+i[246]+i[255]+i[266]+i[269]+i[282]+i[299]-i[349]-i[350]-i[377]-i[378]-i[404]-i[405]-i[432]-i[433]-i[459]-i[460]-i[484]-i[485]-i[486]-i[511]-i[512]-i[513]-i[514]-i[537]-i[538]-i[539]-i[540]+i[546]-i[565]-i[566]-i[567]+i[706]+i[708]+i[742]+i[766]+i[773])
a1538=max(0,+i[230]+i[254]+i[259]+i[282]+i[283]+i[395]+i[409]+i[423]-i[517]+i[534]-i[545]-i[546]-i[573]+i[658]+i[659]+i[714])
a1550=max(0,+i[75]+i[76]+i[78]+i[105]-i[217]-i[243]-i[247]+i[544]-i[637])
a1554=max(0,+i[67]+i[68]+i[69]+i[75]+i[77]+i[135]+i[158]+i[162]+i[164]+i[191]+i[192]+i[193]+i[221]+i[249]-i[297]-i[298]-i[299]-i[327]+i[378]+i[502])
a1562=max(0,+i[71]+i[73]+i[75]+i[105]+i[106]-i[121]-i[122]+i[133]-i[148]+i[160]-i[203]-i[231]-i[258]-i[271]-i[272]+i[660]+i[717])
a1584=max(0,+i[75]-i[97]+i[164]+i[227]+i[239]+i[241]+i[248]+i[249]+i[277]-i[387]-i[470]-i[498]-i[525]-i[552]-i[579]-i[606]-i[607]-i[634]-i[662]+i[679]+i[682]-i[690]+i[707]+i[708]+i[709]+i[738]+i[739]+i[740]+i[741]+i[742]+i[745])
a1593=max(0,+i[68]+i[70]+i[105]-i[295]-i[322]+i[407]+i[408])
a1613=max(0,+i[192]+i[220]+i[222]-i[234]+i[249]+i[277]+i[293]+i[294]-i[325]-i[352]-i[353]-i[354]-i[355]-i[381]-i[382]-i[383]-i[410]-i[411]-i[438]-i[439]-i[466]-i[467]-i[494]-i[495]+i[518]+i[545])
a1614=max(0,-i[132]-i[148]-i[149]-i[158]-i[160]-i[176]-i[177]-i[187]-i[188]-i[189]-i[203]-i[204]-i[205]-i[215]-i[217]-i[232]-i[233]-i[242]-i[243]-i[269]-i[270]+i[293]+i[294]-i[299]+i[322]-i[326]-i[347]-i[354]-i[382]-i[403]-i[409]-i[437]-i[438]+i[462]-i[465]-i[466]-i[487]-i[496]-i[510]-i[511]-i[514]+i[517]+i[518]-i[520]-i[539]-i[567]-i[568]-i[595]-i[624]-i[715])
a1618=max(0,-i[104]+i[120]-i[133]+i[147]-i[162]-i[163]+i[174]-i[190]-i[191]-i[218]-i[245]-i[246]-i[247]+i[256]+i[269]-i[273]-i[274]-i[275]-i[276]+i[297]+i[298]-i[301]-i[302]-i[303]-i[314]-i[328]-i[329]-i[330]+i[338]-i[342]-i[356]-i[357]-i[358]-i[384]-i[385]+i[473]+i[474]+i[501]+i[557]+i[619]+i[742]+i[745]+i[746]+i[768]+i[769]+i[770]+i[773])
a1658=max(0,+i[378]+i[379]+i[406]+i[433]+i[434]-i[469]-i[612]-i[668]-i[705])
a1673=max(0,+i[71]+i[72]+i[73]-i[149]-i[154]-i[155]-i[156]-i[161]-i[162]-i[190]-i[191]-i[202]+i[210]+i[211]-i[219]-i[220]-i[229]-i[231]-i[247]-i[248]-i[275]-i[303]-i[348]-i[442]-i[444]-i[468]-i[471]-i[496]-i[525]-i[553]-i[623]+i[741])
a1674=max(0,-i[199]+i[220]+i[221]-i[299]-i[300]-i[302]-i[303]-i[328]-i[329]-i[330]-i[331]-i[358]-i[417]+i[536]+i[537]+i[597]+i[649]+i[717])
a1707=max(0,+i[70]-i[269]+i[434])
a1708=max(0,+i[68]+i[72]+i[73]+i[74]+i[95]+i[96]+i[146]+i[235]-i[247]-i[276]-i[294]-i[303]-i[321]-i[348]-i[375]-i[403]+i[484]+i[501]+i[508]+i[514]+i[529]+i[552]+i[563]+i[585]+i[707]+i[739]+i[744]+i[745])
a1719=max(0,-i[127]-i[128]+i[134]+i[135]-i[155]-i[156]+i[163]+i[174]-i[183]-i[184]+i[191]+i[203]-i[211]-i[212]-i[238]-i[239]-i[266]-i[267]+i[271]-i[293]-i[294]+i[317]-i[322]+i[346]+i[347]-i[350]+i[408]+i[411]+i[428]+i[430]-i[565]-i[567]-i[568]-i[594])
a1756=max(0,-i[77]-i[257]+i[323]-i[342]-i[343]-i[385]+i[417]-i[440]+i[444]+i[445]+i[473]+i[474]+i[487]+i[501]+i[502]+i[516]+i[556]+i[557]+i[584]-i[601]-i[602]-i[603]-i[628]-i[629]-i[630]-i[631]-i[632]-i[654]-i[658]-i[659]-i[660]-i[661]-i[683]-i[685]-i[686]-i[687]+i[706])
a1766=max(0,-i[161]-i[162]+i[272])
a1772=max(0,+i[271]-i[377]-i[405]-i[433]-i[460]-i[488]+i[627])
a1773=max(0,-i[68]-i[153]-i[156]-i[181]-i[186]-i[188]+i[352]+i[409]+i[427]+i[437]+i[438]+i[464]+i[491]-i[542]-i[543]-i[544]-i[550]-i[551]-i[552]-i[568]-i[569]-i[570]-i[577]-i[578]-i[579]-i[580]-i[581]-i[582]-i[595]-i[596]-i[597]-i[610]-i[622]-i[623]-i[624]-i[652]+i[769])
a1778=max(0,+i[220]+i[226]+i[242]+i[248]+i[249]+i[276]+i[277]+i[351]+i[379]-i[387]-i[388]-i[415]-i[416]-i[443]-i[444]-i[470]-i[498]-i[526]-i[527]-i[552]-i[579]-i[580]-i[606]-i[607]-i[634]-i[635]-i[662]-i[663]-i[690]+i[706]+i[707]+i[708]+i[710])
a1833=max(0,+i[245]+i[276]+i[277]+i[304]-i[352]-i[353]-i[357]-i[380]-i[384]-i[409]-i[410]-i[411]-i[414]-i[441]-i[467]+i[580]+i[581]+i[582]+i[594]+i[595]+i[606]+i[627]+i[634]+i[656]+i[657]+i[658]+i[659]+i[660]+i[681]-i[744])
a1869=max(0,+i[68]+i[70]+i[75]+i[104]+i[105]+i[106]+i[612]-i[622]-i[623]+i[707])
a1872=max(0,-i[101]-i[102]-i[130]-i[131]-i[132]-i[158]-i[160]-i[188]+i[239]+i[267]+i[390]+i[446])
a1904=max(0,+i[93]+i[95]+i[122]+i[150]-i[159]-i[160]-i[161]+i[175]-i[188]-i[348]-i[349]+i[516]+i[517]+i[529]+i[769])
a1910=max(0,-i[96]-i[121]-i[122]-i[124]-i[126]-i[127]-i[128]-i[129]-i[133]-i[149]-i[154]-i[156]-i[159]-i[161]-i[162]-i[174]-i[189]-i[190]-i[191]-i[201]-i[203]+i[210]+i[211]+i[212]-i[218]-i[219]-i[220]-i[228]-i[247]-i[248]-i[256]-i[275]-i[276]-i[277]-i[310]+i[353]+i[355]-i[416]-i[442]-i[443]-i[444]-i[469]-i[470]-i[471]-i[472]-i[527]-i[544]-i[571]-i[596]-i[597]-i[598]+i[719]+i[720]+i[721]+i[748])
a1912=max(0,-i[95]-i[96]-i[97]-i[99]-i[121]-i[122]-i[124]+i[135]-i[149]-i[151]-i[177]+i[192]-i[203]-i[206]-i[231]-i[232]+i[248]+i[249]-i[259]-i[260]-i[287]-i[314]+i[320]+i[333]-i[342]-i[343]-i[370]-i[398]+i[402]-i[444]-i[452]-i[526]-i[554]-i[619]-i[636]+i[657])
a1948=max(0,-i[192]-i[248]-i[321]-i[342]-i[344]-i[345]-i[346]-i[347]-i[348]-i[349]-i[369]-i[370]-i[371]-i[372]-i[373]-i[374]-i[395]-i[396]-i[397]+i[461]+i[539]+i[549]+i[571]+i[584]+i[585]+i[607]+i[609]+i[610]+i[613]+i[640]-i[707]-i[708]-i[711])
a1951=max(0,+i[68]+i[72]+i[73]+i[75]+i[76]+i[78]+i[92]+i[93]+i[94]+i[95]+i[96]+i[100]+i[101]+i[102]+i[103]+i[104]+i[105]+i[106]+i[145]+i[172]+i[193]+i[249]-i[323]-i[332]-i[351]-i[352]-i[360]-i[408]+i[425]+i[442]+i[443]+i[457]-i[463]+i[467]+i[468]+i[469]+i[494]+i[508]+i[521]+i[522]+i[536]+i[547]+i[548]-i[555]-i[611]-i[623]-i[635]-i[662]+i[719]+i[720]+i[721]+i[742])
a1952=max(0,+i[122]-i[135]+i[152]+i[155]+i[175]-i[316]-i[317]-i[318]-i[319]-i[341]-i[342]-i[343]-i[344]-i[369]-i[370]+i[507]+i[509]+i[535]+i[579])
a1955=max(0,-i[232]-i[263]+i[276]-i[289]+i[304]+i[322]+i[350]-i[427]-i[458]-i[470]-i[498]-i[526]-i[527]-i[554]-i[581]-i[582]-i[609]-i[634]-i[636]+i[651]-i[665]+i[677])
a1973=max(0,+i[250]+i[264]-i[323]-i[350]-i[351]-i[379]-i[407]+i[426]-i[488]+i[493]-i[516]-i[517]+i[740]+i[741]+i[745])
a1981=max(0,i[38]+i[39]+i[40]+i[41]+i[47]+i[64]+i[68]+i[75]+i[76]+i[77]+i[93]-i[188]-i[189]-i[190]-i[215]-i[216]-i[217]-i[218]-i[241]-i[242]-i[243]-i[246]-i[247]-i[334]+i[359]+i[385]+i[387]-i[390]+i[487]+i[544]+i[574]-i[635]-i[637]-i[640]-i[652]-i[653]-i[657]-i[658]-i[660]-i[661]-i[662]-i[663]-i[681]-i[686]-i[687])
a1986=max(0,+i[538]+i[539]+i[564]+i[652])
a1989=max(0,-i[191]-i[192]-i[219]-i[220]-i[247]-i[248]-i[264]-i[275]-i[276]-i[289]-i[290]-i[291]+i[297]-i[303]-i[304]-i[315]-i[316]-i[317]-i[331]-i[332]-i[342]+i[350]-i[445]-i[473]-i[483]-i[501]+i[507]-i[528]-i[529]+i[535]-i[556]-i[583]-i[610]-i[612]-i[638]+i[659]+i[677])
a1999=max(0,+i[165]+i[201]+i[202]+i[229]+i[230]+i[248]+i[249]+i[304]+i[375]+i[376]+i[467])
a2007=max(0,-i[347]-i[371]-i[372]-i[396]+i[529]+i[585]+i[597])
a2014=max(0,-i[164]-i[191]-i[219]-i[247]-i[248]-i[264]-i[275]-i[276]-i[290]-i[291]-i[316]+i[322]-i[332]-i[343]+i[377]-i[485]-i[486]-i[487]-i[516])
a2017=max(0,+i[67]+i[71]+i[73]+i[74]+i[75]-i[257]+i[331]-i[439]-i[454]-i[467]-i[481]-i[482]-i[509]-i[510]+i[514]-i[536]-i[537]+i[542]+i[543]-i[564]-i[592]-i[712])
a2023=max(0,+i[100]+i[103]+i[122]+i[128]+i[148]-i[208]+i[311]+i[444]+i[472]+i[473]+i[501]+i[528]-i[693]-i[710]-i[712]-i[713]-i[742]-i[743]-i[744]-i[746])
a2041=max(0,+i[133]+i[162]+i[163]+i[164]+i[191]+i[192]+i[220]+i[221]+i[250]+i[348]+i[360]+i[375]+i[416]+i[444]-i[678]-i[707]-i[709]-i[711]-i[713]-i[717]-i[740]-i[741]-i[742])
a2043=max(0,+i[234]+i[241]+i[242]+i[268]-i[303]-i[321]-i[347]-i[348]-i[349]-i[374]-i[375]-i[376]-i[398]-i[400]-i[401]-i[402]-i[425]-i[426]-i[427]-i[428]-i[453]-i[481]-i[509]-i[550]-i[690]-i[691]-i[694]+i[708]+i[736]+i[742])
o0=+a173-a309-a444-a457-a494-a536-a593-a627-a749-a787-a805-a880-a902-a967+a1002-a1058+a1067-a1164-a1333-a1536-a1593-a1613-a1707-a1719+a1772-a1869-a1948-a1952-a2043
o1=-a383-a444-a522-a523-a539+a555+a792-a929-a1002-a1063-a1111-a1148-a1173-a1197+a1264-a1288+a1354-a1538+a1614-a1766-a1904-a1999
o2=-a28-a166-a293-a494-a536-a558-a593-a787+a960-a1058-a1074+a1146+a1251-a1295-a1333-a1354-a1538-a1584-a1719+a1756-a1778-a1912+a1948-a1955+a2007
o3=+a5-a157-a166-a231+a406-a410+a536-a648-a880-a902-a929-a998-a1013+a1018-a1063-a1067-a1074-a1235-a1251-a1295-a1303-a1371-a1536-a1554-a1562-a1613-a1614-a1773-a1912+a1989+a2014-a2017
o4=-a346-a402-a450-a542-a550-a577-a647-a771-a861-a902-a1002+a1063-a1065-a1116-a1168-a1173-a1177-a1286+a1316-a1333-a1453+a1535-a1673+a1719+a1773-a1833-a1910-a1981
o5=-a7-a110-a396-a406-a437-a486-a727-a805-a967-a1025-a1067+a1168-a1327+a1333-a1376-a1385-a1403+a1503+a1613-a1614-a1618+a1674+a1756-a1773-a1989
o6=-a64-a221-a256-a424-a450-a494-a527-a536-a542-a591-a627-a695-a749-a787-a861-a1002+a1058-a1139-a1164-a1264-a1286-a1295+a1383-a1463+a1550-a1614-a1618-a1872-a1910-a1948-a1952+a1981
o7=-a2+a39-a62-a251-a346-a449+a450-a536-a550-a555-a577-a593+a647-a902-a1111-a1157-a1197-a1333-a1453+a1527-a1833-a1912-a1986+a2043
o8=-a56-a64-a130-a151-a522-a536-a606-a647-a695-a751-a787-a1002-a1197-a1295-a1327-a1333-a1385-a1613-a1614+a1658-a1708-a1719-a1756-a1773-a1948-a1951-a1973+a2017-a2043
o9=-a62+a317+a402-a522-a550-a577-a647-a716-a726-a771-a861-a939-a1058-a1328-a1333-a1385-a1453-a1527-a1536-a1719-a1833+a1910-a1952-a2023-a2041-a2043
outputs = [o0,o1,o2,o3,o4,o5,o6,o7,o8,o9]
return outputs.index(max(outputs))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment