import sys

#list = sys.stdin.readlines()

#i=0
list = []
for line in sys.stdin.readlines():
	list = line.split(" ")
	print str(len(str(int(list[0]) + int(list[1])))) import sys sys list = [] list [] for line in sys.stdin.readlines():
	list = line.split(" ")
	print str(len(str(int(list[0]) + int(list[1])))) line sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines list = line.split(" ") list line.split(" ") line.split line split " " print str(len(str(int(list[0]) + int(list[1])))) str len(str(int(list[0]) + int(list[1]))) len str(int(list[0]) + int(list[1])) str int(list[0]) + int(list[1]) int(list[0]) int list[0] list 0 int(list[1]) int list[1] list 1 list = line.split(" ") line.split(" ") list list = [] [] list
import sys

#list = sys.stdin.readlines()

#i=0
list = []
for line in sys.stdin.readlines():
	list = line.split(" ")
	print str(len(str(int(list[0]) + int(list[1]))))