res=[]

while 1:
    try:
        s=input()
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    except:
        for n in res:
            print(len(str(n)))
        break res=[] res [] while 1:
    try:
        s=input()
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    except:
        for n in res:
            print(len(str(n)))
        break 1 try:
        s=input()
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    except:
        for n in res:
            print(len(str(n)))
        break except:
        for n in res:
            print(len(str(n)))
        break for n in res:
            print(len(str(n)))
         n res print(len(str(n))) print len(str(n)) len str(n) str n break s=input() s input() input int(x) for x in s.split() for x in s.split() x s.split() s.split s split for x in s.split() int(x) int x a,b = [int(x) for x in s.split()] a [int(x) for x in s.split()] b res.append(a+b) res.append res append a+b a b a,b = [int(x) for x in s.split()] [int(x) for x in s.split()] a b = [int(x) for x in s.split()] [int(x) for x in s.split()] b s=input() input() s res=[] [] res
res=[]

while 1:
    try:
        s=input()
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    except:
        for n in res:
            print(len(str(n)))
        break