import math
t = 0
while t == 0:	
	try:
		x,y=[int(i) for i in input().split()]
	except:
		break
	else:
		a = int (math.log10(x + y) + 1)
		print(a) import math math t = 0 t 0 while t == 0:	
	try:
		x,y=[int(i) for i in input().split()]
	except:
		break
	else:
		a = int (math.log10(x + y) + 1)
		print(a) t == 0 t 0 try:
		x,y=[int(i) for i in input().split()]
	except:
		break
	else:
		a = int (math.log10(x + y) + 1)
		print(a) except:
		break
	 break int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i x,y=[int(i) for i in input().split()] x [int(i) for i in input().split()] y a = int (math.log10(x + y) + 1) a int (math.log10(x + y) + 1) int math.log10(x + y) + 1 math.log10(x + y) math.log10 math log10 x + y x y 1 print(a) print a x,y=[int(i) for i in input().split()] [int(i) for i in input().split()] x y=[int(i) for i in input().split()] [int(i) for i in input().split()] y t = 0 0 t a = int (math.log10(x + y) + 1) int (math.log10(x + y) + 1) a
import math
t = 0
while t == 0:	
	try:
		x,y=[int(i) for i in input().split()]
	except:
		break
	else:
		a = int (math.log10(x + y) + 1)
		print(a)