# Importera matematikfunktioner, exempelvis tiologaritmen
from math import *

# De fem mackarnas dagskassor
UnoX=["8763","1922","5413","5117","2624","3263","3571","5796","4589","6852","8387","2206","3313","6053","9781","1606","6354","5948","2676","1389","2214","5839","9040","3658","6928","1201","2818","1643","5703","9871","9155","4397","4128","3315","4462","8511","2497","6315","7479","4668","2945","1620","9437","4707","3314","1575","9182","8801","2460","1904","9640","4078","7017","4514","8810","8498","5938","6546","3243","8387","6199","6565","4288","8631","8232","6681","1007","9488","6653","6881","3735","8910","9181","7988","8521","8419","9227","1090","8766","5823","4149","8609","2118","7457","3148","4849","6504","8881","7719","9166","4718","6702","9400","3524","3269","9633","3076","2572","5941","2187","9775","8938","2609","9208","2404","6191","3102","2962","9821","8658","5590","2689","3028","8657","8662","2266","9560","3055","3493","9839","8033","4755","2771","8714","4829","2329","8418","1217","6368","7756","4571","9847","5463","8659","7325","4924","1611","2059","8270","3069","6238","8084","2073","3246","4077","8796","4886","3487","6116","1060","1112","6636","7146","2892","5789","6358","7571","1222","8959","4525","9854","4006","1655","1875","8951","8674","6153","6631","7897","8080","1841","4616","8004","4475","8451","7821","9113","2148","2356","1404","3699","6456","7796","3633","5532","6844","5754","4381","1422","4320","9749","1703","5490","3826","1541","3430","9053","3383","2699","2878","8635","6303","6491","8029","4120","2986","8860","2057","8199","7689","6876","4971","3805","9375","8184","9030","6755","1325","5650","2245","3540","2039","4052","2619","4313","2877","3064","2908","5263","4366","7891","4865","5445","4338","4587","3911","7477","1640","9885","3704","6443","9868","8096","7833","5120","6980","5070","9160","9949","6472","5067","6496","7294","6304","1208","1615","7857","2576","3595","8861","8913","6218","9891","9181","7679","3506","4172","2014","1402","2498","2679","6398","4173","6222","5056","7352","4426","6662","5905","5722","9035","8781","7173","8708","6951","9241","6242","5245","6260","5654","9647","2573","7104","5297","1252","3202","7090","4321","6990","7691","7454","3623","8507","3640","1251","2975","2852","9778","5707","7444","6168","4842","1977","9228","3375","2325","7507","8359","9648","6929","9436","5014","4694","5793","6095","3128","7017","8608","4187","3569","9319","4616","1926","3748","7397","8680","8328","4968","3353","1480","6394","5452","9425","2872","2300","9399","4134","9119","5075","3498","7460","5064","3087","4750","1606","1161","6502","4998","6939","1629","2557","8785","5392","8255","2391"]
ESSO = ["354","222","538","484","437","331","656","216","158","832","356","234","546","579","688","329","152","375","893","252","196","686","504","701","323","649","175","130","800","486","359","134","429","182","246","159","194","511","195","340","130","130","210","828","802","160","175","570","395","524","335","133","163","156","169","308","403","581","364","892","237","580","373","963","879","146","995","694","680","153","996","152","135","174","757","184","223","853","894","463","990","238","1021","185","158","407","276","615","471","824","140","381","143","520","346","448","469","817","567","611","666","219","392","583","297","749","273","373","775","297","712","348","263","229","144","626","615","502","706","401","277","793","262","958","719","469","637","519","377","497","530","303","813","275","956","683","231","389","220","469","190","522","133","253","130","162","257","144","173","173","196","375","462","514","1022","175","360","457","221","150","859","373","923","359","237","624","391","170","238","175","137","162","193","175","521","310","940","296","523","284","754","215","771","325","185","280","180","189","151","137","894","212","281","299","230","245","807","515","743","886","224","680","458","430","346","362","367","365","681","647","843","170","144","440","670","574","206","442","683","659","148","407","1003","389","259","323","533","540","240","568","153","363","314","665","393","597","141","165","940","175","302","158","640","969","588","927","135","938","443","133","822","177","515","731","227","348","237","141","324","322","315","330","173","548","147","137","286","276","840","437","185","342","140","407","245","625","318","683","217","515","241","497","132","793","383","353","465","467","811","176","710","652","284","130","273","171","189","255","215","166","745","422","777","280","452","744","690","187","623","208","995","174","437","843","501","903","213","348","620","631","524","218","307","389","524","257","511","546","766","189","931","462","432","297","853","282","807","987","629","726","825","476","407","139","780","283","982","152","281","288","501","703","663","211","143","796","131","385","135","151","653","971","577","938","128"]
BP=["456043","108793","6656","815963","29183","437480","2122753","13760","43915","888105","197072","3263510","45761","1224359","21413","126646","2793881","4383","8237","300709","8722","46828","186274","2057563","5804","41553","1135848","425009","837077","592374","846630","13446","26160","2523270","1233375","349500","560038","48169","153751","751519","2755412","550952","2084636","109004","3394881","10980","2673552","67677","63290","50137","15600","24557","965187","3169605","26360","1264924","49740","7195","3021106","20481","3731878","125939","229865","2152147","7724","14155","60648","3089558","33172","68483","1666847","156072","18424","672296","961772","489995","41084","1762359","27340","555652","25852","85795","58631","546711","17222","16152","6174","768154","1497882","149157","285625","88089","7917","197446","247524","67291","181412","7865","27981","87439","11543","3586948","894298","10208","4585","5334","6706","69727","9412","6698","16817","39258","929837","335391","30279","197977","1491321","184133","977903","50049","1790934","21699","121619","2739585","167247","15929","383737","1163150","41892","34492","20293","729948","1271912","393542","481779","25448","1222987","96728","134608","268400","243577","21793","4611","2646789","12209","73236","46427","242841","4128","1146755","9696","362674","7855","550077","573425","357394","46359","900367","1338042","842576","11010","1424883","39512","10186","3025954","60878","1493579","1598918","42108","903143","104151","19221","29347","94736","271198","19942","6720","502040","2566432","687113","49122","242744","115323","269154","687042","813263","805009","8522","102432","18929","3169803","6084","7979","60031","1178980","304042","814879","53302","341176","244920","148456","3651930","4177","84974","45042","61689","9336","624721","919618","1103743","15800","63353","44919","4851","19959","85141","10228","61618","519845","473589","2857218","2647279","31315","337220","57781","38439","63470","2917555","16996","77926","1588006","15557","27390","4558","235821","65968","1909234","3962001","514933","55361","10260","2743741","492861","951900","478446","67107","351363","17167","14689","116635","225850","1717659","54207","5137","47308","21296","202856","2244382","3796260","576815","729927","96299","17181","5728","1119577","31494","45148","130332","960223","63176","16299","6701","4815","50149","2926289","163528","855694","2399178","35082","28843","1108060","802137","7410","2832533","2109530","1985584","4837","74317","4346","30855","7161","397644","112062","5655","463761","2614119","222106","292772","6134","805303","13843","3092970","234065","1976662","672981","2045343","62344","719674","1221064","576776","896402","2265323","7181","169657","539078","2816740","22489","52516","531537","8735","6485","29267","61152","22677","794663","626069","201688","71388","72662","422591","73029","19003","673800","65706","834015","4778","4261","2492513","1794147","227989","61581","71922","321182","3606444","2137623","181122","3245077","2104165","340786","828325","395886","16602","11439","1623659","4718","159917","11976","91565","623684","32059","6309","319752","546577","2162159","15353"]
Texaco = ["1785","25737","17227","16987","1306","2411","68287","4329","2294","8328","4600","11483","76106","13363","10169","2423","7996","2616","9847","8424","1244","18790","45903","82631","31401","1893","6289","2077","5060","57476","17016","22641","20229","98030","4125","8294","6337","6771","1292","14790","28634","53415","52936","2680","1219","35737","49247","1992","1109","1969","7730","3460","1661","15026","8995","43577","2134","7687","1030","4266","58769","1499","12005","15115","34096","6288","37183","3999","9301","2935","3964","39343","4054","4815","25585","4168","7302","34176","6607","17759","53136","50708","7568","84870","28397","12369","82709","70066","86675","12301","38174","4714","52618","33225","17861","1688","10370","26622","22438","43701","1407","4577","11017","1367","31422","12623","5643","6583","34465","13002","7612","10742","22702","37796","1401","5827","24053","25262","5113","64262","11101","2331","3285","1788","43368","88378","1349","8260","10041","75562","61316","19733","3238","5673","1320","4287","19584","2252","10269","61232","41791","85230","1215","21203","98163","90415","7297","14247","1292","53968","6454","1989","3680","3321","8294","5159","3669","51500","1177","53346","23713","81784","4891","21314","59354","7561","86098","9940","2649","10481","4593","1781","43995","3386","11994","53267","77077","5896","8292","1153","4187","20846","9740","1031","4738","5798","11883","71025","8330","70611","45569","1070","5023","1957","15804","9904","86533","1604","34512","1331","3846","21337","3074","9023","2974","2151","22699","1958","1909","49931","92167","3121","1477","9194","1332","15264","5684","1533","9830","2252","2280","18594","67133","60099","43644","19261","29644","4226","1308","70532","3408","2080","25386","14368","1203","46903","39792","2081","80842","1489","1765","6107","1610","3412","31974","1011","8847","2046","1994","1869","6819","68006","2435","4385","6999","5781","20251","66365","33900","17887","13684","75363","1228","2357","9407","11982","2772","3823","78395","1910","30652","1535","14406","7815","31341","8011","1508","31051","2832","14830","1694","6216","8868","1530","15460","7866","7330","1057","11146","86214","3030","3301","5194","80363","47614","6496","28221","8210","10656","60463","27928","8194","11569","14405","1184","30601","43383","36315","1136","57448","12148","12739","64884","10012","87842","31374","4448","1057","2674","1678","17658","1701","41600","2149","10284","4507","37871","11944","1401","4286","60492","93436","4565","1667","23545","71090","2120","17624","1690","3264","52866","18073","1997","75314","25161","5736","12354","2404","20248","45994","10079","6097","16117","26551","1013","7924","1039","1217","85182","2337","4345","31148","13582","1055","7873"]
Gulf=["682133","548384","543102","413856","647637","579539","437402","41616","42517","31013","33900","52574","623328","63759","57347","451367","25898","549538","38357","622271","499021","489908","63177","61995","61351","61609","417162","691044","51954","58480","67841","51737","43236","416447","799200","51272","42910","48709","86613","51139","71594","521752","818014","596795","61609","59252","419919","51345","410665","312207","822065","41207","387889","54098","71976","16366","425916","28303","71720","339019","51880","531704","61470","524603","640762","574807","29640","31830","614465","782449","23164","41250","552654","612308","635790","663314","29633","592124","55896","31994","257558","524678","449411","37450","41965","69099","67040","227779","84005","72647","51552","48364","769029","435010","43005","742201","310850","469294","434256","619891","713919","538326","324566","310395","22540","746473","627244","352955","58457","558121","610228","710684","523680","63606","426495","382382","495175","826436","57111","513400","547889","87548","459531","547692","425655","49539","61040","871308","617551","54284","69289","62057","427902","69292","648731","56691","513538","711504","534812","48965","36426","81898","64398","66687","66106","68333","545303","22712","35913","36891","749952","546243","65473","53629","327981","42038","52442","314602","31888","62357","44489","48296","41230","519495","521366","43747","745019","56273","622679","638243","61436","531879","311407","42117","536499","62021","977512","668446","670068","697196","46800","52737","454855","73980","61465","52937","227457","574336","41746","769687","64357","87924","475123","62633","540110","657276","478307","63223","51773","49684","31332","94796","73186","51039","61356","64912","41263","472204","613889","39165","617157","598838","71488","735388","42287","483835","53114","52922","556966","86062","19051","411045","73280","718158","617001","520495","277496","319367","89692","419808","546599","67506","71629","530227","91071","635436","721584","614329","54247","75828","62847","410151","588952","710686","78821","579811","712159","62467","715772","521167","81951","616362","432918","73578","42761","392001","510989","426953","37931","410939","514851","15423","556960","424587","44463","38486","53495","444776","511009","976769","42484","715820","411182","711351","559878","426366","664390","62241","313166","590879","61681","52541","64065","510098","512684","54901","580088","49372","56678","447536","444770","510851","533825","23651","61384","719143","497998","53047","343265","435829","44468","733504","525411","72166","61342","74046","41157","698508","51185","71221","53935","413979","51195","52718","41503","52804","219428","45185","64005","52425","35812","46082","782721","66534","616483","584323","532509","620896","39341","551724","39739","52981","415789","52948","314958","75906","216719","510855","384121","62142","471846","73534","792852","32271","817606","52826","623010","479205","62024","65789","536371","865196","133825","41157","61553","699944","65339","31030","435918","42413","36621","37453","53429","33408","317359"]

# Initiera lista med frekvens för tal med förstasiffra 1-9
FrekvensSiffra = [0,0,0,0,0,0,0,0,0]

# Totalt antal tal i listan. Är bra att ha då relativa frekvensen ska beräknas.
TotaltAntal = len(BP)

# Gå igenom alla talen i listan
for tal in BP:
  
  # Ta ut förstasiffran i tal
  i = int(tal[0])

  # Här kan du använda kod som du gjort tidigare för att bestämma förstasiffrornas andel som du kan jämföra mot Benfords lag

# Om du vill kan du här skriva kod som automatiskt kollar om felet är "stort"