#Digit Number

while True:
    try:
        i, n = input(). split()
        m = str(int(i) + int(n))
        print(len(m))
    except:
        break while True:
    try:
        i, n = input(). split()
        m = str(int(i) + int(n))
        print(len(m))
    except:
        break True try:
        i, n = input(). split()
        m = str(int(i) + int(n))
        print(len(m))
    except:
        break except:
        break break i, n = input(). split() i input(). split() (). split () input split n m = str(int(i) + int(n)) m str(int(i) + int(n)) str int(i) + int(n) int(i) int i int(n) int n print(len(m)) print len(m) len m n = input(). split() input(). split() n m = str(int(i) + int(n)) str(int(i) + int(n)) m i, n = input(). split() input(). split() i
#Digit Number

while True:
    try:
        i, n = input(). split()
        m = str(int(i) + int(n))
        print(len(m))
    except:
        break