import sys
L = sys.stdin.readlines()
for line in L:  ##line?????????????????????
	N = line.split()  ##N??????????????¨????????????
	sums = int(N[0]) + int(N[1])
	print(len(str(sums))) import sys sys L = sys.stdin.readlines() L sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for line in L:  ##line?????????????????????
	N = line.split()  ##N??????????????¨????????????
	sums = int(N[0]) + int(N[1])
	print(len(str(sums))) line L N = line.split() N line.split() line.split line split sums = int(N[0]) + int(N[1]) sums int(N[0]) + int(N[1]) int(N[0]) int N[0] N 0 int(N[1]) int N[1] N 1 print(len(str(sums))) print len(str(sums)) len str(sums) str sums L = sys.stdin.readlines() sys.stdin.readlines() L sums = int(N[0]) + int(N[1]) int(N[0]) + int(N[1]) sums N = line.split() line.split() N
import sys
L = sys.stdin.readlines()
for line in L:  ##line?????????????????????
	N = line.split()  ##N??????????????¨????????????
	sums = int(N[0]) + int(N[1])
	print(len(str(sums)))