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