from __future__ import absolute_import, print_function, unicode_literals
import sys

for line in sys.stdin:
    print(len(str(sum(int(n) for n in line.split())))) from __future__ import absolute_import, print_function, unicode_literals import sys sys for line in sys.stdin:
    print(len(str(sum(int(n) for n in line.split())))) line sys.stdin sys stdin print(len(str(sum(int(n) for n in line.split())))) print len(str(sum(int(n) for n in line.split()))) len str(sum(int(n) for n in line.split())) str sum(int(n) for n in line.split()) sum int(n) int n
from __future__ import absolute_import, print_function, unicode_literals
import sys

for line in sys.stdin:
    print(len(str(sum(int(n) for n in line.split()))))