# coding: utf-8
# Your code here!

for line in open(0).readlines():
    a, b = map(int, line.split())
    c = a+b
    ans = +(c == 0)
    while c:
        ans += 1
        c //= 10
    print(ans) for line in open(0).readlines():
    a, b = map(int, line.split())
    c = a+b
    ans = +(c == 0)
    while c:
        ans += 1
        c //= 10
    print(ans) line open(0).readlines() (0).readlines (0) open 0 readlines a, b = map(int, line.split()) a map(int, line.split()) map int line.split() line.split line split b c = a+b c a+b a b ans = +(c == 0) ans +(c == 0) c == 0 c 0 while c:
        ans += 1
        c //= 10
     c ans += 1 ans 1 c //= 10 c 10 print(ans) print ans c = a+b a+b c ans = +(c == 0) +(c == 0) ans ans += 1 1 ans a, b = map(int, line.split()) map(int, line.split()) a b = map(int, line.split()) map(int, line.split()) b c //= 10 10 c
# coding: utf-8
# Your code here!

for line in open(0).readlines():
    a, b = map(int, line.split())
    c = a+b
    ans = +(c == 0)
    while c:
        ans += 1
        c //= 10
    print(ans)
