from sys import stdin
for line in stdin:
    a,b = line.split(" ")
    c = int(a)+int(b)
    print(len(str(c)))
 from sys import stdin for line in stdin:
    a,b = line.split(" ")
    c = int(a)+int(b)
    print(len(str(c))) line stdin a,b = line.split(" ") a line.split(" ") line.split line split " " b c = int(a)+int(b) c int(a)+int(b) int(a) int a int(b) int b print(len(str(c))) print len(str(c)) len str(c) str c b = line.split(" ") line.split(" ") b c = int(a)+int(b) int(a)+int(b) c a,b = line.split(" ") line.split(" ") a
from sys import stdin
for line in stdin:
    a,b = line.split(" ")
    c = int(a)+int(b)
    print(len(str(c)))

