import sys, math

for line in sys.stdin:
    print int(math.log10(sum(map(int, line.split())))) + 1 import sys, math sys math for line in sys.stdin:
    print int(math.log10(sum(map(int, line.split())))) + 1 line sys.stdin sys stdin print int(math.log10(sum(map(int, line.split())))) + 1 int(math.log10(sum(map(int, line.split())))) int math.log10(sum(map(int, line.split()))) math.log10 math log10 sum(map(int, line.split())) sum map(int, line.split()) map int line.split() line.split line split 1
import sys, math

for line in sys.stdin:
    print int(math.log10(sum(map(int, line.split())))) + 1