import sys
from math import log10

for line in sys.stdin:
	a, b = map(int, line.split())
	digitNumber = int(log10((a + b))) + 1
	print(digitNumber) import sys sys from math import log10 for line in sys.stdin:
	a, b = map(int, line.split())
	digitNumber = int(log10((a + b))) + 1
	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 = int(log10((a + b))) + 1 digitNumber int(log10((a + b))) + 1 int(log10((a + b))) int log10((a + b)) log10 a + b a b 1 print(digitNumber) print digitNumber b = map(int, line.split()) map(int, line.split()) b a, b = map(int, line.split()) map(int, line.split()) a digitNumber = int(log10((a + b))) + 1 int(log10((a + b))) + 1 digitNumber
import sys
from math import log10

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