import sys, math

def run():
    N = []
    for n in sys.stdin:
        a,b = map(int, n.split())
        N.append((a,b))

    for a,b in N:
        print(math.floor(math.log10(a+b)) + 1)

if __name__ == '__main__':
    run()

 import sys, math sys math def run():
    N = []
    for n in sys.stdin:
        a,b = map(int, n.split())
        N.append((a,b))

    for a,b in N:
        print(math.floor(math.log10(a+b)) + 1) run N = [] N [] for n in sys.stdin:
        a,b = map(int, n.split())
        N.append((a,b))

     n sys.stdin sys stdin a,b = map(int, n.split()) a map(int, n.split()) map int n.split() n.split n split b N.append((a,b)) N.append N append (a,b) a b for a,b in N:
        print(math.floor(math.log10(a+b)) + 1) a b N print(math.floor(math.log10(a+b)) + 1) print math.floor(math.log10(a+b)) + 1 math.floor(math.log10(a+b)) math.floor math floor math.log10(a+b) math.log10 math log10 a+b a b 1 if __name__ == '__main__':
    run() __name__ == '__main__' __name__ '__main__' run() run def run():
    N = []
    for n in sys.stdin:
        a,b = map(int, n.split())
        N.append((a,b))

    for a,b in N:
        print(math.floor(math.log10(a+b)) + 1) def run():
    N = []
    for n in sys.stdin:
        a,b = map(int, n.split())
        N.append((a,b))

    for a,b in N:
        print(math.floor(math.log10(a+b)) + 1) run
import sys, math

def run():
    N = []
    for n in sys.stdin:
        a,b = map(int, n.split())
        N.append((a,b))

    for a,b in N:
        print(math.floor(math.log10(a+b)) + 1)

if __name__ == '__main__':
    run()


