import sys
L = sys.stdin.readlines()
for line in L:
	N = line[:-1].split(' ')
	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:
	N = line[:-1].split(' ')
	sums = int(N[0]) + int(N[1])
	print(len(str(sums))) line L N = line[:-1].split(' ') N line[:-1].split(' ') [:-1].split [:-1] line :-1 -1 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 N = line[:-1].split(' ') line[:-1].split(' ') N sums = int(N[0]) + int(N[1]) int(N[0]) + int(N[1]) sums L = sys.stdin.readlines() sys.stdin.readlines() L
import sys
L = sys.stdin.readlines()
for line in L:
	N = line[:-1].split(' ')
	sums = int(N[0]) + int(N[1])
	print(len(str(sums)))