import sys

for i in sys.stdin:
    num = map(int, i.split())
    print len(str(sum(num))) import sys sys for i in sys.stdin:
    num = map(int, i.split())
    print len(str(sum(num))) i sys.stdin sys stdin num = map(int, i.split()) num map(int, i.split()) map int i.split() i.split i split print len(str(sum(num))) len str(sum(num)) str sum(num) sum num num = map(int, i.split()) map(int, i.split()) num
import sys

for i in sys.stdin:
    num = map(int, i.split())
    print len(str(sum(num)))