a = []
while True:
    try:
        a.append(list(map(int, input().split())))
    except EOFError:
        break

for i in a:
    print(len(str(i[0] + i[1])))
 a = [] a [] while True:
    try:
        a.append(list(map(int, input().split())))
    except EOFError:
        break True try:
        a.append(list(map(int, input().split())))
    except EOFError:
        break except EOFError:
        break break a.append(list(map(int, input().split()))) a.append a append list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split for i in a:
    print(len(str(i[0] + i[1]))) i a print(len(str(i[0] + i[1]))) print len(str(i[0] + i[1])) len str(i[0] + i[1]) str i[0] + i[1] i[0] i 0 i[1] i 1 a = [] [] a
a = []
while True:
    try:
        a.append(list(map(int, input().split())))
    except EOFError:
        break

for i in a:
    print(len(str(i[0] + i[1])))

