def digit(n):
	cnt = 1
	m = n

	while 10 <= m:
		cnt += 1
		m = m / 10
		
	return cnt

while True:
	try:
		inpt = map(int, raw_input().split())
		print digit(inpt[0]+inpt[1])

	except:
		break def digit(n):
	cnt = 1
	m = n

	while 10 <= m:
		cnt += 1
		m = m / 10
		
	return cnt digit cnt = 1 cnt 1 m = n m n while 10 <= m:
		cnt += 1
		m = m / 10
		
	 10 <= m 10 m cnt += 1 cnt 1 m = m / 10 m m / 10 m 10 return cnt cnt n n while True:
	try:
		inpt = map(int, raw_input().split())
		print digit(inpt[0]+inpt[1])

	except:
		break True try:
		inpt = map(int, raw_input().split())
		print digit(inpt[0]+inpt[1])

	except:
		break except:
		break break inpt = map(int, raw_input().split()) inpt map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split print digit(inpt[0]+inpt[1]) digit inpt[0]+inpt[1] inpt[0] inpt 0 inpt[1] inpt 1 inpt = map(int, raw_input().split()) map(int, raw_input().split()) inpt def digit(n):
	cnt = 1
	m = n

	while 10 <= m:
		cnt += 1
		m = m / 10
		
	return cnt def digit(n):
	cnt = 1
	m = n

	while 10 <= m:
		cnt += 1
		m = m / 10
		
	return cnt digit
def digit(n):
	cnt = 1
	m = n

	while 10 <= m:
		cnt += 1
		m = m / 10
		
	return cnt

while True:
	try:
		inpt = map(int, raw_input().split())
		print digit(inpt[0]+inpt[1])

	except:
		break