import sys
for n in [sum([int(m) for m in l.split()]) for l in sys.stdin]:
	print len(str(n)) import sys sys for n in [sum([int(m) for m in l.split()]) for l in sys.stdin]:
	print len(str(n)) n [sum([int(m) for m in l.split()]) for l in sys.stdin] print len(str(n)) len str(n) str n
import sys
for n in [sum([int(m) for m in l.split()]) for l in sys.stdin]:
	print len(str(n))