while True :
    try :
        a = [int(_) for _ in input().split()]
        print(len(str(sum(a))))
    except :
        break while True :
    try :
        a = [int(_) for _ in input().split()]
        print(len(str(sum(a))))
    except :
        break True try :
        a = [int(_) for _ in input().split()]
        print(len(str(sum(a))))
    except :
        break except :
        break break int(_) for _ in input().split() for _ in input().split() _ input().split() ().split () input split for _ in input().split() int(_) int _ a = [int(_) for _ in input().split()] a [int(_) for _ in input().split()] print(len(str(sum(a)))) print len(str(sum(a))) len str(sum(a)) str sum(a) sum a a = [int(_) for _ in input().split()] [int(_) for _ in input().split()] a
while True :
    try :
        a = [int(_) for _ in input().split()]
        print(len(str(sum(a))))
    except :
        break