import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        tokens = line.strip().split()
        a, b = int(tokens[0]), int(tokens[1])
        c = a+b
        print(len(str(c))) import fileinput fileinput if __name__ == '__main__':
    for line in fileinput.input():
        tokens = line.strip().split()
        a, b = int(tokens[0]), int(tokens[1])
        c = a+b
        print(len(str(c))) __name__ == '__main__' __name__ '__main__' for line in fileinput.input():
        tokens = line.strip().split()
        a, b = int(tokens[0]), int(tokens[1])
        c = a+b
        print(len(str(c))) line fileinput.input() fileinput.input fileinput input tokens = line.strip().split() tokens line.strip().split() line.strip().split line.strip() line.strip line strip split a, b = int(tokens[0]), int(tokens[1]) a int(tokens[0]) int tokens[0] tokens 0 b int(tokens[1]) int tokens[1] tokens 1 c = a+b c a+b a b print(len(str(c))) print len(str(c)) len str(c) str c tokens = line.strip().split() line.strip().split() tokens b = int(tokens[0]), int(tokens[1]) int(tokens[1]) b c = a+b a+b c a, b = int(tokens[0]), int(tokens[1]) int(tokens[0]) a
import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        tokens = line.strip().split()
        a, b = int(tokens[0]), int(tokens[1])
        c = a+b
        print(len(str(c)))