while True:
	try:
		a=input().split()
	except:
		break
	b=int(a[0])+int(a[1])
	print(len(str(b))) while True:
	try:
		a=input().split()
	except:
		break
	b=int(a[0])+int(a[1])
	print(len(str(b))) True try:
		a=input().split()
	except:
		break
	 except:
		break
	 break a=input().split() a input().split() ().split () input split b=int(a[0])+int(a[1]) b int(a[0])+int(a[1]) int(a[0]) int a[0] a 0 int(a[1]) int a[1] a 1 print(len(str(b))) print len(str(b)) len str(b) str b b=int(a[0])+int(a[1]) int(a[0])+int(a[1]) b a=input().split() input().split() a
while True:
	try:
		a=input().split()
	except:
		break
	b=int(a[0])+int(a[1])
	print(len(str(b)))