while True:
    try:
        input_line = input()
        if input_line == '':
            break
        else:
            print(len(str(sum(map(int, input_line.split())))))
    except EOFError:
        break while True:
    try:
        input_line = input()
        if input_line == '':
            break
        else:
            print(len(str(sum(map(int, input_line.split())))))
    except EOFError:
        break True try:
        input_line = input()
        if input_line == '':
            break
        else:
            print(len(str(sum(map(int, input_line.split())))))
    except EOFError:
        break except EOFError:
        break break input_line = input() input_line input() input if input_line == '':
            break
        else:
            print(len(str(sum(map(int, input_line.split())))))
     input_line == '' input_line '' break print(len(str(sum(map(int, input_line.split()))))) print len(str(sum(map(int, input_line.split())))) len str(sum(map(int, input_line.split()))) str sum(map(int, input_line.split())) sum map(int, input_line.split()) map int input_line.split() input_line.split input_line split input_line = input() input() input_line
while True:
    try:
        input_line = input()
        if input_line == '':
            break
        else:
            print(len(str(sum(map(int, input_line.split())))))
    except EOFError:
        break
