def summary(L):
    somme = 0
    for n in L:
        somme += int(n)
    return str(somme)

if __name__ == "__main__":
    ans = ["31385054833040435201469",
           "1208146502388711969220977722641",
           "9554905780497163980974436",
           "657951519383346544973929921607",
           "10407822209770191502206730",
    ]
    
    tests = [
            ["5091002802391387", "10279147192864129192650", "019279810924010927509175", "1826091625162576108257"],
            ["623436977257570871294038996504","02022976039920117180927385","584707495891880736725408812476","48175618","756253761738391943589","421308999114370","039690056529105373965","3982","5467276201507804367371","7381"],
            ["21","67174672162529094","9925842746691","09554862642928227644229279","42909755018271117982","063972100091825217","768","725","31","96657219968524628"],
            ['22','953273322771709','657296987252993547625050788064','0363089510276233526742','9128830154962','7876216636173375227100','280590069339140068','04477225900114101513751147','650046571483521590506892720','93381662735757669073'],
            ['1769091','20054906338','7207999882834307764084','9213321719781684873205219','9991547099886097','2434201378352050','30788208017412','6547310012769032200','30247','1187285930339102809243992'],
    ]

    for i in range(len(ans)):
        print(f"Test 0{i}: summary({tests[i]})")
        if ans[i] == summary(tests[i]):
            print("Bingo!")
        else:
            print("XXXXX!")
        print()
    
