# Digit Number

import sys

results = []

for line in sys.stdin:
	results.append(int(line.split()[0]) + int(line.split()[1]))

for result in results:
	print len(str(result)) import sys sys results = [] results [] for line in sys.stdin:
	results.append(int(line.split()[0]) + int(line.split()[1])) line sys.stdin sys stdin results.append(int(line.split()[0]) + int(line.split()[1])) results.append results append int(line.split()[0]) + int(line.split()[1]) int(line.split()[0]) int line.split()[0] line.split() line.split line split 0 int(line.split()[1]) int line.split()[1] line.split() line.split line split 1 for result in results:
	print len(str(result)) result results print len(str(result)) len str(result) str result results = [] [] results
# Digit Number

import sys

results = []

for line in sys.stdin:
	results.append(int(line.split()[0]) + int(line.split()[1]))

for result in results:
	print len(str(result))