#!/usr/bin/env python

dn = lambda a, b: len(str(a+b))
get = lambda: [int(x) for x in raw_input().split()]

if __name__ == "__main__":
    while True:
        try:
            print "%d" % dn(*get())
        except:
            break dn = lambda a, b: len(str(a+b)) dn lambda a, b: len(str(a+b)) len(str(a+b)) len str(a+b) str a+b a b a b int(x) for x in raw_input().split() for x in raw_input().split() x raw_input().split() ().split () raw_input split for x in raw_input().split() int(x) int x get = lambda: [int(x) for x in raw_input().split()] get lambda: [int(x) for x in raw_input().split()] [int(x) for x in raw_input().split()] if __name__ == "__main__":
    while True:
        try:
            print "%d" % dn(*get())
        except:
            break __name__ == "__main__" __name__ "__main__" while True:
        try:
            print "%d" % dn(*get())
        except:
            break True try:
            print "%d" % dn(*get())
        except:
            break except:
            break break print "%d" % dn(*get()) "%d" dn(*get()) dn *get() get() get dn = lambda a, b: len(str(a+b)) lambda a, b: len(str(a+b)) dn get = lambda: [int(x) for x in raw_input().split()] lambda: [int(x) for x in raw_input().split()] get
#!/usr/bin/env python

dn = lambda a, b: len(str(a+b))
get = lambda: [int(x) for x in raw_input().split()]

if __name__ == "__main__":
    while True:
        try:
            print "%d" % dn(*get())
        except:
            break