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