x = []
try:
	while True:
		a, b = map(int, raw_input().split())
		x.append(len(list(str(a + b))))
except EOFError:
	for i in x:
		print(i) x = [] x [] try:
	while True:
		a, b = map(int, raw_input().split())
		x.append(len(list(str(a + b))))
except EOFError:
	for i in x:
		print(i) except EOFError:
	for i in x:
		print(i) for i in x:
		print(i) i x print(i) print i while True:
		a, b = map(int, raw_input().split())
		x.append(len(list(str(a + b)))) True a, b = map(int, raw_input().split()) a map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split b x.append(len(list(str(a + b)))) x.append x append len(list(str(a + b))) len list(str(a + b)) list str(a + b) str a + b a b a, b = map(int, raw_input().split()) map(int, raw_input().split()) a x = [] [] x b = map(int, raw_input().split()) map(int, raw_input().split()) b
x = []
try:
	while True:
		a, b = map(int, raw_input().split())
		x.append(len(list(str(a + b))))
except EOFError:
	for i in x:
		print(i)