while 1:
    try:
        a,b = input().split()
        a = int(a)
        b = int(b)
        c = a + b
        print(len(str(c)))
    except EOFError:
        break while 1:
    try:
        a,b = input().split()
        a = int(a)
        b = int(b)
        c = a + b
        print(len(str(c)))
    except EOFError:
        break 1 try:
        a,b = input().split()
        a = int(a)
        b = int(b)
        c = a + b
        print(len(str(c)))
    except EOFError:
        break except EOFError:
        break break a,b = input().split() a input().split() ().split () input split b a = int(a) a int(a) int a b = int(b) b int(b) int b c = a + b c a + b a b print(len(str(c))) print len(str(c)) len str(c) str c a = int(a) int(a) a c = a + b a + b c b = int(b) int(b) b b = input().split() input().split() b a,b = input().split() input().split() a
while 1:
    try:
        a,b = input().split()
        a = int(a)
        b = int(b)
        c = a + b
        print(len(str(c)))
    except EOFError:
        break
