import sys
array = []
for inp in sys.stdin.readlines():
    array.append(inp.split())
for i in range(len(array)):
    a =int(array[i][0]) + int(array[i][1])
    print(len(str(a))) import sys sys array = [] array [] for inp in sys.stdin.readlines():
    array.append(inp.split()) inp sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines array.append(inp.split()) array.append array append inp.split() inp.split inp split for i in range(len(array)):
    a =int(array[i][0]) + int(array[i][1])
    print(len(str(a))) i range(len(array)) range len(array) len array a =int(array[i][0]) + int(array[i][1]) a int(array[i][0]) + int(array[i][1]) int(array[i][0]) int array[i][0] [i] array i 0 int(array[i][1]) int array[i][1] [i] array i 1 print(len(str(a))) print len(str(a)) len str(a) str a a =int(array[i][0]) + int(array[i][1]) int(array[i][0]) + int(array[i][1]) a array = [] [] array
import sys
array = []
for inp in sys.stdin.readlines():
    array.append(inp.split())
for i in range(len(array)):
    a =int(array[i][0]) + int(array[i][1])
    print(len(str(a)))