import sys

for s in sys.stdin:

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

for s in sys.stdin:

    x=len(str(sum(map(int,s.split())))) 

    print(x)
import sys

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

import sys

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

-    print(len(str(sum(map(int, s.split()))))) +    x = len(str(sum(map(int, s.split())))) +    print(x)