import sys

for line in sys.stdin:
	a, b = map(int, line.split())
	digitNumber = len(str(a + b))
	print(digitNumber) import sys sys for line in sys.stdin:
	a, b = map(int, line.split())
	digitNumber = len(str(a + b))
	print(digitNumber) line sys.stdin sys stdin a, b = map(int, line.split()) a map(int, line.split()) map int line.split() line.split line split b digitNumber = len(str(a + b)) digitNumber len(str(a + b)) len str(a + b) str a + b a b print(digitNumber) print digitNumber a, b = map(int, line.split()) map(int, line.split()) a digitNumber = len(str(a + b)) len(str(a + b)) digitNumber b = map(int, line.split()) map(int, line.split()) b
import sys

for line in sys.stdin:
	a, b = map(int, line.split())
	digitNumber = len(str(a + b))
	print(digitNumber)