def digits(n):
    if n < 10: return 1
    c = 0
    while n > 0:
        c += 1
        n = n // 10

    return c

while 1:
    try:
        inp = input()
    except EOFError:
        break
    else:
        n, m = inp.split(' ')
        n = int(n)
        m = int(m)
        print(digits(n + m)) def digits(n):
    if n < 10: return 1
    c = 0
    while n > 0:
        c += 1
        n = n // 10

    return c digits if n < 10: return 1
     n < 10 n 10 c = 0 c 0 while n > 0:
        c += 1
        n = n // 10

     n > 0 n 0 c += 1 c 1 n = n // 10 n n // 10 n 10 return c c n n while 1:
    try:
        inp = input()
    except EOFError:
        break
    else:
        n, m = inp.split(' ')
        n = int(n)
        m = int(m)
        print(digits(n + m)) 1 try:
        inp = input()
    except EOFError:
        break
    else:
        n, m = inp.split(' ')
        n = int(n)
        m = int(m)
        print(digits(n + m)) except EOFError:
        break
     break inp = input() inp input() input n, m = inp.split(' ') n inp.split(' ') inp.split inp split ' ' m n = int(n) n int(n) int n m = int(m) m int(m) int m print(digits(n + m)) print digits(n + m) digits n + m n m inp = input() input() inp n = int(n) int(n) n m = int(m) int(m) m n, m = inp.split(' ') inp.split(' ') n m = inp.split(' ') inp.split(' ') m def digits(n):
    if n < 10: return 1
    c = 0
    while n > 0:
        c += 1
        n = n // 10

    return c def digits(n):
    if n < 10: return 1
    c = 0
    while n > 0:
        c += 1
        n = n // 10

    return c digits
def digits(n):
    if n < 10: return 1
    c = 0
    while n > 0:
        c += 1
        n = n // 10

    return c

while 1:
    try:
        inp = input()
    except EOFError:
        break
    else:
        n, m = inp.split(' ')
        n = int(n)
        m = int(m)
        print(digits(n + m))