#
# AIZU ONLINE JUDGE: Digit Number
# cf. http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp
#


import sys
import re


#file = open(sys.argv[1], "r")

for line in sys.stdin:
    ab = map(int, re.split(" +", line))
    answer = reduce((lambda x, y: x + y), ab, 0)
    digits = len(str(answer))
    print digits import sys sys import re re for line in sys.stdin:
    ab = map(int, re.split(" +", line))
    answer = reduce((lambda x, y: x + y), ab, 0)
    digits = len(str(answer))
    print digits line sys.stdin sys stdin ab = map(int, re.split(" +", line)) ab map(int, re.split(" +", line)) map int re.split(" +", line) re.split re split " +" line answer = reduce((lambda x, y: x + y), ab, 0) answer reduce((lambda x, y: x + y), ab, 0) reduce lambda x, y: x + y x + y x y x y ab 0 digits = len(str(answer)) digits len(str(answer)) len str(answer) str answer print ab = map(int, re.split(" +", line)) map(int, re.split(" +", line)) ab answer = reduce((lambda x, y: x + y), ab, 0) reduce((lambda x, y: x + y), ab, 0) answer digits = len(str(answer)) len(str(answer)) digits
#
# AIZU ONLINE JUDGE: Digit Number
# cf. http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp
#


import sys
import re


#file = open(sys.argv[1], "r")

for line in sys.stdin:
    ab = map(int, re.split(" +", line))
    answer = reduce((lambda x, y: x + y), ab, 0)
    digits = len(str(answer))
    print digits