import math

while True:
	try:
		a, b = map(int, input().split())
		print(int(math.log10(a + b)) + 1)
	except EOFError:
		break import math math while True:
	try:
		a, b = map(int, input().split())
		print(int(math.log10(a + b)) + 1)
	except EOFError:
		break True try:
		a, b = map(int, input().split())
		print(int(math.log10(a + b)) + 1)
	except EOFError:
		break except EOFError:
		break break a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b print(int(math.log10(a + b)) + 1) print int(math.log10(a + b)) + 1 int(math.log10(a + b)) int math.log10(a + b) math.log10 math log10 a + b a b 1 b = map(int, input().split()) map(int, input().split()) b a, b = map(int, input().split()) map(int, input().split()) a
import math

while True:
	try:
		a, b = map(int, input().split())
		print(int(math.log10(a + b)) + 1)
	except EOFError:
		break