import sys
for l in sys.stdin:
	print len(str(sum(map(int,l.split())))) import sys sys for l in sys.stdin:
	print len(str(sum(map(int,l.split())))) l sys.stdin sys stdin print len(str(sum(map(int,l.split())))) len str(sum(map(int,l.split()))) str sum(map(int,l.split())) sum map(int,l.split()) map int l.split() l.split l split
import sys
for l in sys.stdin:
	print len(str(sum(map(int,l.split()))))