import sys

strs = sys.stdin.readlines()

for s in strs:

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

    print((len(str(a + b))))
import sys

for line in sys.stdin:

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

    print((len(str(a + b))))
import sys

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

import sys

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

-strs = sys.stdin.readlines() -for s in strs: -    a, b = list(map(int, s.split())) +for line in sys.stdin: +    a, b = list(map(int, line.split()))