import sys
for x in sys.stdin:
	s = x.split()
	a,b = int(s[0]), int(s[1])
	print(len(str(a+b))) import sys sys for x in sys.stdin:
	s = x.split()
	a,b = int(s[0]), int(s[1])
	print(len(str(a+b))) x sys.stdin sys stdin s = x.split() s x.split() x.split x split a,b = int(s[0]), int(s[1]) a int(s[0]) int s[0] s 0 b int(s[1]) int s[1] s 1 print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b b = int(s[0]), int(s[1]) int(s[1]) b a,b = int(s[0]), int(s[1]) int(s[0]) a s = x.split() x.split() s
import sys
for x in sys.stdin:
	s = x.split()
	a,b = int(s[0]), int(s[1])
	print(len(str(a+b)))
