while True:
    try:
        a,b = map(int, input().split())
        d = 0
        s = sum([a,b])
        while (s):
            s //= 10
            d += 1
        print(d)
    except EOFError: break
     while True:
    try:
        a,b = map(int, input().split())
        d = 0
        s = sum([a,b])
        while (s):
            s //= 10
            d += 1
        print(d)
    except EOFError: break
     True try:
        a,b = map(int, input().split())
        d = 0
        s = sum([a,b])
        while (s):
            s //= 10
            d += 1
        print(d)
    except EOFError: break
     except EOFError: break
     a,b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b d = 0 d 0 s = sum([a,b]) s sum([a,b]) sum [a,b] a b while (s):
            s //= 10
            d += 1
         s s //= 10 s 10 d += 1 d 1 print(d) print d d = 0 0 d d += 1 1 d a,b = map(int, input().split()) map(int, input().split()) a b = map(int, input().split()) map(int, input().split()) b s //= 10 10 s s = sum([a,b]) sum([a,b]) s
while True:
    try:
        a,b = map(int, input().split())
        d = 0
        s = sum([a,b])
        while (s):
            s //= 10
            d += 1
        print(d)
    except EOFError: break
    
