import sys
for line in sys.stdin:
	l = map(lambda i:int(i), line.split(' '))
	print len(str(l[0] + l[1])) import sys sys for line in sys.stdin:
	l = map(lambda i:int(i), line.split(' '))
	print len(str(l[0] + l[1])) line sys.stdin sys stdin l = map(lambda i:int(i), line.split(' ')) l map(lambda i:int(i), line.split(' ')) map lambda i:int(i) int(i) int i i line.split(' ') line.split line split ' ' print len(str(l[0] + l[1])) len str(l[0] + l[1]) str l[0] + l[1] l[0] l 0 l[1] l 1 l = map(lambda i:int(i), line.split(' ')) map(lambda i:int(i), line.split(' ')) l
import sys
for line in sys.stdin:
	l = map(lambda i:int(i), line.split(' '))
	print len(str(l[0] + l[1]))