while True:
    try:
        a, b = map(int, input().split())
        i = a + b
        c = 1
        while i:
            if int(i/10) == 0:
                print(c)
                break
            c+=1
            i /= 10
    except Exception:
        break while True:
    try:
        a, b = map(int, input().split())
        i = a + b
        c = 1
        while i:
            if int(i/10) == 0:
                print(c)
                break
            c+=1
            i /= 10
    except Exception:
        break True try:
        a, b = map(int, input().split())
        i = a + b
        c = 1
        while i:
            if int(i/10) == 0:
                print(c)
                break
            c+=1
            i /= 10
    except Exception:
        break except Exception:
        break break a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b i = a + b i a + b a b c = 1 c 1 while i:
            if int(i/10) == 0:
                print(c)
                break
            c+=1
            i /= 10
     i if int(i/10) == 0:
                print(c)
                break
             int(i/10) == 0 int(i/10) int i/10 i 10 0 print(c) print c break c+=1 c 1 i /= 10 i 10 a, b = map(int, input().split()) map(int, input().split()) a b = map(int, input().split()) map(int, input().split()) b c+=1 1 c i = a + b a + b i c = 1 1 c i /= 10 10 i
while True:
    try:
        a, b = map(int, input().split())
        i = a + b
        c = 1
        while i:
            if int(i/10) == 0:
                print(c)
                break
            c+=1
            i /= 10
    except Exception:
        break