import sys

for line in sys.stdin:
	l = map(int, line.split())
	print len(str(l[0]+l[1])) import sys sys for line in sys.stdin:
	l = map(int, line.split())
	print len(str(l[0]+l[1])) line sys.stdin sys stdin l = map(int, line.split()) l map(int, line.split()) map int 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(int, line.split()) map(int, line.split()) l
import sys

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