while(True):
	try:
		date=input()
		a,b=map(int,date.split(" "))
		digit=len(str(a+b))
		print(digit)
	except:
		break while(True):
	try:
		date=input()
		a,b=map(int,date.split(" "))
		digit=len(str(a+b))
		print(digit)
	except:
		break True try:
		date=input()
		a,b=map(int,date.split(" "))
		digit=len(str(a+b))
		print(digit)
	except:
		break except:
		break break date=input() date input() input a,b=map(int,date.split(" ")) a map(int,date.split(" ")) map int date.split(" ") date.split date split " " b digit=len(str(a+b)) digit len(str(a+b)) len str(a+b) str a+b a b print(digit) print digit date=input() input() date a,b=map(int,date.split(" ")) map(int,date.split(" ")) a digit=len(str(a+b)) len(str(a+b)) digit b=map(int,date.split(" ")) map(int,date.split(" ")) b
while(True):
	try:
		date=input()
		a,b=map(int,date.split(" "))
		digit=len(str(a+b))
		print(digit)
	except:
		break