import sys
# l = sys.stdin.readline()
l = sys.stdin.readlines()
for line in l:
    data = map(int, line.split(" "))
    print(len(str(data[0] + data[1]))) import sys sys l = sys.stdin.readlines() l sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for line in l:
    data = map(int, line.split(" "))
    print(len(str(data[0] + data[1]))) line l data = map(int, line.split(" ")) data map(int, line.split(" ")) map int line.split(" ") line.split line split " " print(len(str(data[0] + data[1]))) print len(str(data[0] + data[1])) len str(data[0] + data[1]) str data[0] + data[1] data[0] data 0 data[1] data 1 data = map(int, line.split(" ")) map(int, line.split(" ")) data l = sys.stdin.readlines() sys.stdin.readlines() l
import sys
# l = sys.stdin.readline()
l = sys.stdin.readlines()
for line in l:
    data = map(int, line.split(" "))
    print(len(str(data[0] + data[1])))