import sys

for line in sys.stdin:
	list = line.split()
	print len(str(eval(list[0])+eval(list[1]))) import sys sys for line in sys.stdin:
	list = line.split()
	print len(str(eval(list[0])+eval(list[1]))) line sys.stdin sys stdin list = line.split() list line.split() line.split line split print len(str(eval(list[0])+eval(list[1]))) len str(eval(list[0])+eval(list[1])) str eval(list[0])+eval(list[1]) eval(list[0]) eval list[0] list 0 eval(list[1]) eval list[1] list 1 list = line.split() line.split() list
import sys

for line in sys.stdin:
	list = line.split()
	print len(str(eval(list[0])+eval(list[1])))