import sys

for line in sys.stdin:
    sum = 0
    for x in line.split():
        sum += int(x)
    print(len(str(sum))) import sys sys for line in sys.stdin:
    sum = 0
    for x in line.split():
        sum += int(x)
    print(len(str(sum))) line sys.stdin sys stdin sum = 0 sum 0 for x in line.split():
        sum += int(x)
     x line.split() line.split line split sum += int(x) sum int(x) int x print(len(str(sum))) print len(str(sum)) len str(sum) str sum sum += int(x) int(x) sum sum = 0 0 sum
import sys

for line in sys.stdin:
    sum = 0
    for x in line.split():
        sum += int(x)
    print(len(str(sum)))