try:
    while True:
        a,b=map(int, input().split())
        print(len(str(a+b)))
except EOFError:
    pass try:
    while True:
        a,b=map(int, input().split())
        print(len(str(a+b)))
except EOFError:
    pass except EOFError:
    pass while True:
        a,b=map(int, input().split())
        print(len(str(a+b))) True a,b=map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b a,b=map(int, input().split()) map(int, input().split()) a b=map(int, input().split()) map(int, input().split()) b
try:
    while True:
        a,b=map(int, input().split())
        print(len(str(a+b)))
except EOFError:
    pass