import sys

data = []
for i in sys.stdin:
    data.append(list(map(int, i.split())))

for j in range(len(data)):
    print(len(str(data[j][0] + data[j][1]))) import sys sys data = [] data [] for i in sys.stdin:
    data.append(list(map(int, i.split()))) i sys.stdin sys stdin data.append(list(map(int, i.split()))) data.append data append list(map(int, i.split())) list map(int, i.split()) map int i.split() i.split i split for j in range(len(data)):
    print(len(str(data[j][0] + data[j][1]))) j range(len(data)) range len(data) len data print(len(str(data[j][0] + data[j][1]))) print len(str(data[j][0] + data[j][1])) len str(data[j][0] + data[j][1]) str data[j][0] + data[j][1] data[j][0] [j] data j 0 data[j][1] [j] data j 1 data = [] [] data
import sys

data = []
for i in sys.stdin:
    data.append(list(map(int, i.split())))

for j in range(len(data)):
    print(len(str(data[j][0] + data[j][1])))