while True:
    try:
        s = input()
        a, b = [int(i) for i in s.split()]
        print(len(str(a + b)))
    except:
        break
 while True:
    try:
        s = input()
        a, b = [int(i) for i in s.split()]
        print(len(str(a + b)))
    except:
        break True try:
        s = input()
        a, b = [int(i) for i in s.split()]
        print(len(str(a + b)))
    except:
        break except:
        break break s = input() s input() input int(i) for i in s.split() for i in s.split() i s.split() s.split s split for i in s.split() int(i) int i a, b = [int(i) for i in s.split()] a [int(i) for i in s.split()] b print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b b = [int(i) for i in s.split()] [int(i) for i in s.split()] b s = input() input() s a, b = [int(i) for i in s.split()] [int(i) for i in s.split()] a
while True:
    try:
        s = input()
        a, b = [int(i) for i in s.split()]
        print(len(str(a + b)))
    except:
        break

