import sys

for line in sys.stdin:

	l = [int(i) for i in line.split(' ')]

	print(len(str(l[0] + l[1])))
import sys



for s in sys.stdin:

	a,b = list(map(int,s.split()))

	print(len(str(a+b)))
import sys

for line in sys.stdin:
    l = [int(i) for i in line.split(" ")]
    print(len(str(l[0] + l[1])))

import sys

for s in sys.stdin:
    a, b = list(map(int, s.split()))
    print(len(str(a + b)))

-for line in sys.stdin: -    l = [int(i) for i in line.split(" ")] -    print(len(str(l[0] + l[1]))) +for s in sys.stdin: +    a, b = list(map(int, s.split())) +    print(len(str(a + b)))