def solve():
	a,b = map(int,input().split())
	print(len(str(a+b)))

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

while True:
	try:
		solve()
	except:
		break