import sys,math
for line in sys.stdin:
    print reduce(lambda x,y: int(math.log10(x+y)+1), map(int, line.split())) import sys,math sys math for line in sys.stdin:
    print reduce(lambda x,y: int(math.log10(x+y)+1), map(int, line.split())) line sys.stdin sys stdin print reduce(lambda x,y: int(math.log10(x+y)+1), map(int, line.split())) reduce lambda x,y: int(math.log10(x+y)+1) int(math.log10(x+y)+1) int math.log10(x+y)+1 math.log10(x+y) math.log10 math log10 x+y x y 1 x y map(int, line.split()) map int line.split() line.split line split
import sys,math
for line in sys.stdin:
    print reduce(lambda x,y: int(math.log10(x+y)+1), map(int, line.split()))