try:
    s = []
    while True:
        l = input().split()
        t = int(l[0]) + int(l[1])
        n = str(t)
        print(len(n))
except EOFError:
    pass try:
    s = []
    while True:
        l = input().split()
        t = int(l[0]) + int(l[1])
        n = str(t)
        print(len(n))
except EOFError:
    pass except EOFError:
    pass s = [] s [] while True:
        l = input().split()
        t = int(l[0]) + int(l[1])
        n = str(t)
        print(len(n)) True l = input().split() l input().split() ().split () input split t = int(l[0]) + int(l[1]) t int(l[0]) + int(l[1]) int(l[0]) int l[0] l 0 int(l[1]) int l[1] l 1 n = str(t) n str(t) str t print(len(n)) print len(n) len n s = [] [] s t = int(l[0]) + int(l[1]) int(l[0]) + int(l[1]) t n = str(t) str(t) n l = input().split() input().split() l
try:
    s = []
    while True:
        l = input().split()
        t = int(l[0]) + int(l[1])
        n = str(t)
        print(len(n))
except EOFError:
    pass