def counts(num):
	countlist.append(len(str(num[0] + num[1])))

countlist = []
flag = True
while flag :
	try:
		counts(map(int, raw_input().split()))
	except:
		flag = False
		for x in countlist:
			print x def counts(num):
	countlist.append(len(str(num[0] + num[1]))) counts countlist.append(len(str(num[0] + num[1]))) countlist.append countlist append len(str(num[0] + num[1])) len str(num[0] + num[1]) str num[0] + num[1] num[0] num 0 num[1] num 1 num num countlist = [] countlist [] flag = True flag True while flag :
	try:
		counts(map(int, raw_input().split()))
	except:
		flag = False
		for x in countlist:
			print x flag try:
		counts(map(int, raw_input().split()))
	except:
		flag = False
		for x in countlist:
			print x except:
		flag = False
		for x in countlist:
			print x flag = False flag False for x in countlist:
			print x x countlist print counts(map(int, raw_input().split())) counts map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split def counts(num):
	countlist.append(len(str(num[0] + num[1]))) def counts(num):
	countlist.append(len(str(num[0] + num[1]))) counts countlist = [] [] countlist flag = True True flag flag = False False flag
def counts(num):
	countlist.append(len(str(num[0] + num[1])))

countlist = []
flag = True
while flag :
	try:
		counts(map(int, raw_input().split()))
	except:
		flag = False
		for x in countlist:
			print x