from math import log10
while True:
	try:
		a, b = map(int, raw_input().split())
		print(int(log10(a+b)) + 1)
	except EOFError:
		break from math import log10 while True:
	try:
		a, b = map(int, raw_input().split())
		print(int(log10(a+b)) + 1)
	except EOFError:
		break True try:
		a, b = map(int, raw_input().split())
		print(int(log10(a+b)) + 1)
	except EOFError:
		break except EOFError:
		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(log10(a+b)) + 1) print int(log10(a+b)) + 1 int(log10(a+b)) int log10(a+b) 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
from math import log10
while True:
	try:
		a, b = map(int, raw_input().split())
		print(int(log10(a+b)) + 1)
	except EOFError:
		break