import sys



for line in sys.stdin:

  x, y = list(map(int, line.split()))

  print((len(str(x+y))))
import sys

[print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]

import sys

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

import sys

[print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]

-for line in sys.stdin: -    x, y = list(map(int, line.split())) -    print((len(str(x + y)))) +[print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]