ans_list=[]
while True:
	try:
		k=list(map(int,input().split(" ")))
		ans_list.append(k[0]+k[1])
	except:
		for i in ans_list:
			print(len(str(i)))
		break ans_list=[] ans_list [] while True:
	try:
		k=list(map(int,input().split(" ")))
		ans_list.append(k[0]+k[1])
	except:
		for i in ans_list:
			print(len(str(i)))
		break True try:
		k=list(map(int,input().split(" ")))
		ans_list.append(k[0]+k[1])
	except:
		for i in ans_list:
			print(len(str(i)))
		break except:
		for i in ans_list:
			print(len(str(i)))
		break for i in ans_list:
			print(len(str(i)))
		 i ans_list print(len(str(i))) print len(str(i)) len str(i) str i break k=list(map(int,input().split(" "))) k list(map(int,input().split(" "))) list map(int,input().split(" ")) map int input().split(" ") ().split () input split " " ans_list.append(k[0]+k[1]) ans_list.append ans_list append k[0]+k[1] k[0] k 0 k[1] k 1 k=list(map(int,input().split(" "))) list(map(int,input().split(" "))) k ans_list=[] [] ans_list
ans_list=[]
while True:
	try:
		k=list(map(int,input().split(" ")))
		ans_list.append(k[0]+k[1])
	except:
		for i in ans_list:
			print(len(str(i)))
		break