import sys

from math import log10



for line in sys.stdin:

	a, b = list(map(int, line.split()))

	digitNumber = int(log10((a + b))) + 1

	print(digitNumber)
import sys



for line in sys.stdin:

	a, b = list(map(int, line.split()))

	digitNumber = len(str(a + b))

	print(digitNumber)
import sys
from math import log10

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

import sys

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

-from math import log10 -    digitNumber = int(log10((a + b))) + 1 +    digitNumber = len(str(a + b))