
while 1:
    try:
        a, b = map(int, input().split())
        c = str(a + b)

        print(len(c))
    except:
        break while 1:
    try:
        a, b = map(int, input().split())
        c = str(a + b)

        print(len(c))
    except:
        break 1 try:
        a, b = map(int, input().split())
        c = str(a + b)

        print(len(c))
    except:
        break except:
        break break a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c = str(a + b) c str(a + b) str a + b a b print(len(c)) print len(c) len c c = str(a + b) str(a + b) c a, b = map(int, input().split()) map(int, input().split()) a b = map(int, input().split()) map(int, input().split()) b

while 1:
    try:
        a, b = map(int, input().split())
        c = str(a + b)

        print(len(c))
    except:
        break