import sys

def solve():
    while True:
        try:
            a, b = map(int, sys.stdin.readline().split())
            c = a + b

            if c == 0:
                print(1)
            else:
                ans = 0

                while c > 0:
                    ans += 1
                    c //= 10

                print(ans)

        except:
            return

if __name__ == '__main__':
    solve() import sys sys def solve():
    while True:
        try:
            a, b = map(int, sys.stdin.readline().split())
            c = a + b

            if c == 0:
                print(1)
            else:
                ans = 0

                while c > 0:
                    ans += 1
                    c //= 10

                print(ans)

        except:
            return solve while True:
        try:
            a, b = map(int, sys.stdin.readline().split())
            c = a + b

            if c == 0:
                print(1)
            else:
                ans = 0

                while c > 0:
                    ans += 1
                    c //= 10

                print(ans)

        except:
            return True try:
            a, b = map(int, sys.stdin.readline().split())
            c = a + b

            if c == 0:
                print(1)
            else:
                ans = 0

                while c > 0:
                    ans += 1
                    c //= 10

                print(ans)

        except:
            return except:
            return return a, b = map(int, sys.stdin.readline().split()) a map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split b c = a + b c a + b a b if c == 0:
                print(1)
            else:
                ans = 0

                while c > 0:
                    ans += 1
                    c //= 10

                print(ans)

         c == 0 c 0 print(1) print 1 ans = 0 ans 0 while c > 0:
                    ans += 1
                    c //= 10

                 c > 0 c 0 ans += 1 ans 1 c //= 10 c 10 print(ans) print ans if __name__ == '__main__':
    solve() __name__ == '__main__' __name__ '__main__' solve() solve def solve():
    while True:
        try:
            a, b = map(int, sys.stdin.readline().split())
            c = a + b

            if c == 0:
                print(1)
            else:
                ans = 0

                while c > 0:
                    ans += 1
                    c //= 10

                print(ans)

        except:
            return def solve():
    while True:
        try:
            a, b = map(int, sys.stdin.readline().split())
            c = a + b

            if c == 0:
                print(1)
            else:
                ans = 0

                while c > 0:
                    ans += 1
                    c //= 10

                print(ans)

        except:
            return solve
import sys

def solve():
    while True:
        try:
            a, b = map(int, sys.stdin.readline().split())
            c = a + b

            if c == 0:
                print(1)
            else:
                ans = 0

                while c > 0:
                    ans += 1
                    c //= 10

                print(ans)

        except:
            return

if __name__ == '__main__':
    solve()