# Aizu Problem 0002: Digit Number
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


for line in sys.stdin:
    a, b = [int(_) for _ in line.split()]
    print(len(str(a + b))) import sys, math, os sys math os PYDEV = os.environ.get('PYDEV') PYDEV os.environ.get('PYDEV') os.environ.get os.environ os environ get 'PYDEV' if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt") PYDEV=="True" PYDEV "True" sys.stdin = open("sample-input.txt", "rt") sys.stdin sys stdin open("sample-input.txt", "rt") open "sample-input.txt" "rt" for line in sys.stdin:
    a, b = [int(_) for _ in line.split()]
    print(len(str(a + b))) line sys.stdin sys stdin int(_) for _ in line.split() for _ in line.split() _ line.split() line.split line split for _ in line.split() int(_) int _ a, b = [int(_) for _ in line.split()] a [int(_) for _ in line.split()] b print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b a, b = [int(_) for _ in line.split()] [int(_) for _ in line.split()] a b = [int(_) for _ in line.split()] [int(_) for _ in line.split()] b PYDEV = os.environ.get('PYDEV') os.environ.get('PYDEV') PYDEV
# Aizu Problem 0002: Digit Number
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


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