import sys

for line in sys.stdin:
    l = line.replace('\n', '')
    a, b = l.split()
    a = int(a)
    b = int(b)
    print(len(str(a+b))) import sys sys for line in sys.stdin:
    l = line.replace('\n', '')
    a, b = l.split()
    a = int(a)
    b = int(b)
    print(len(str(a+b))) line sys.stdin sys stdin l = line.replace('\n', '') l line.replace('\n', '') line.replace line replace '\n' '' a, b = l.split() a l.split() l.split l split b a = int(a) a int(a) int a b = int(b) b int(b) int b print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b b = l.split() l.split() b b = int(b) int(b) b l = line.replace('\n', '') line.replace('\n', '') l a = int(a) int(a) a a, b = l.split() l.split() a
import sys

for line in sys.stdin:
    l = line.replace('\n', '')
    a, b = l.split()
    a = int(a)
    b = int(b)
    print(len(str(a+b)))