while 1:
    try:
        a, b = map(int, input().split())
        ans = 1
        while (a+b)/(10**ans) >= 1:
            ans += 1
        print(str(ans))
    except EOFError:
        break while 1:
    try:
        a, b = map(int, input().split())
        ans = 1
        while (a+b)/(10**ans) >= 1:
            ans += 1
        print(str(ans))
    except EOFError:
        break 1 try:
        a, b = map(int, input().split())
        ans = 1
        while (a+b)/(10**ans) >= 1:
            ans += 1
        print(str(ans))
    except EOFError:
        break except EOFError:
        break break a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b ans = 1 ans 1 while (a+b)/(10**ans) >= 1:
            ans += 1
         (a+b)/(10**ans) >= 1 (a+b)/(10**ans) a+b a b 10**ans 10 ans 1 ans += 1 ans 1 print(str(ans)) print str(ans) str ans b = map(int, input().split()) map(int, input().split()) b ans = 1 1 ans ans += 1 1 ans a, b = map(int, input().split()) map(int, input().split()) a
while 1:
    try:
        a, b = map(int, input().split())
        ans = 1
        while (a+b)/(10**ans) >= 1:
            ans += 1
        print(str(ans))
    except EOFError:
        break
