import sys

for line in sys.stdin:
    a,b = [int(i) for i in line.split()]
    print(len(str(a+b))) import sys sys for line in sys.stdin:
    a,b = [int(i) for i in line.split()]
    print(len(str(a+b))) line sys.stdin sys stdin int(i) for i in line.split() for i in line.split() i line.split() line.split line split for i in line.split() int(i) int i a,b = [int(i) for i in line.split()] a [int(i) for i in line.split()] b print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b b = [int(i) for i in line.split()] [int(i) for i in line.split()] b a,b = [int(i) for i in line.split()] [int(i) for i in line.split()] a
import sys

for line in sys.stdin:
    a,b = [int(i) for i in line.split()]
    print(len(str(a+b)))
