import fileinput
for line in fileinput.input():
    a, b = map(int, line.split())
    print(len(str(a + b))) import fileinput fileinput for line in fileinput.input():
    a, b = map(int, line.split())
    print(len(str(a + b))) line fileinput.input() fileinput.input fileinput input a, b = map(int, line.split()) a map(int, line.split()) map int line.split() line.split line split b print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b b = map(int, line.split()) map(int, line.split()) b a, b = map(int, line.split()) map(int, line.split()) a
import fileinput
for line in fileinput.input():
    a, b = map(int, line.split())
    print(len(str(a + b)))