import sys

for n in [sum([int(m) for m in l.split()]) for l in sys.stdin]:

	print(len(str(n)))
import sys

for l in sys.stdin:

	print(len(str(sum(map(int,l.split())))))
import sys

for n in [sum([int(m) for m in l.split()]) for l in sys.stdin]:
    print(len(str(n)))

import sys

for l in sys.stdin:
    print(len(str(sum(map(int, l.split())))))

-for n in [sum([int(m) for m in l.split()]) for l in sys.stdin]: -    print(len(str(n))) +for l in sys.stdin: +    print(len(str(sum(map(int, l.split())))))