while True:
    try:
        x = list(map(int, input().split(' ')))
        n = x[0] + x[1]
        print(len(str(n)))
    except EOFError:
        break while True:
    try:
        x = list(map(int, input().split(' ')))
        n = x[0] + x[1]
        print(len(str(n)))
    except EOFError:
        break True try:
        x = list(map(int, input().split(' ')))
        n = x[0] + x[1]
        print(len(str(n)))
    except EOFError:
        break except EOFError:
        break break x = list(map(int, input().split(' '))) x list(map(int, input().split(' '))) list map(int, input().split(' ')) map int input().split(' ') ().split () input split ' ' n = x[0] + x[1] n x[0] + x[1] x[0] x 0 x[1] x 1 print(len(str(n))) print len(str(n)) len str(n) str n x = list(map(int, input().split(' '))) list(map(int, input().split(' '))) x n = x[0] + x[1] x[0] + x[1] n
while True:
    try:
        x = list(map(int, input().split(' ')))
        n = x[0] + x[1]
        print(len(str(n)))
    except EOFError:
        break