import sys

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

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