def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break
main() def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break main while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break True try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break except EOFError:
            break break int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a, b = (int(x) for x in input().split()) a (int(x) for x in input().split()) b print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b main() main def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break main
def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break
main()
