import math
while True:
	try:
		a,b=map(int, raw_input().split())
		print int(math.log10(a+b) + 1)
	except:
		break import math math while True:
	try:
		a,b=map(int, raw_input().split())
		print int(math.log10(a+b) + 1)
	except:
		break True try:
		a,b=map(int, raw_input().split())
		print int(math.log10(a+b) + 1)
	except:
		break except:
		break break a,b=map(int, raw_input().split()) a map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split b print int(math.log10(a+b) + 1) int math.log10(a+b) + 1 math.log10(a+b) math.log10 math log10 a+b a b 1 a,b=map(int, raw_input().split()) map(int, raw_input().split()) a b=map(int, raw_input().split()) map(int, raw_input().split()) b
import math
while True:
	try:
		a,b=map(int, raw_input().split())
		print int(math.log10(a+b) + 1)
	except:
		break