def calculate_digit_num(num):
    z = num / 10
    if z == 0:
        return 1
    else:
        return 1 + calculate_digit_num(z)

while True:
    try:
        num_list = [int(num) for num in raw_input().split(' ')]
        print calculate_digit_num(sum(num_list))
    except:
        break def calculate_digit_num(num):
    z = num / 10
    if z == 0:
        return 1
    else:
        return 1 + calculate_digit_num(z) calculate_digit_num z = num / 10 z num / 10 num 10 if z == 0:
        return 1
    else:
        return 1 + calculate_digit_num(z) z == 0 z 0 return 1 1 return 1 + calculate_digit_num(z) 1 + calculate_digit_num(z) 1 calculate_digit_num(z) calculate_digit_num z num num while True:
    try:
        num_list = [int(num) for num in raw_input().split(' ')]
        print calculate_digit_num(sum(num_list))
    except:
        break True try:
        num_list = [int(num) for num in raw_input().split(' ')]
        print calculate_digit_num(sum(num_list))
    except:
        break except:
        break break int(num) for num in raw_input().split(' ') for num in raw_input().split(' ') num raw_input().split(' ') ().split () raw_input split ' ' for num in raw_input().split(' ') int(num) int num num_list = [int(num) for num in raw_input().split(' ')] num_list [int(num) for num in raw_input().split(' ')] print calculate_digit_num(sum(num_list)) calculate_digit_num sum(num_list) sum num_list def calculate_digit_num(num):
    z = num / 10
    if z == 0:
        return 1
    else:
        return 1 + calculate_digit_num(z) def calculate_digit_num(num):
    z = num / 10
    if z == 0:
        return 1
    else:
        return 1 + calculate_digit_num(z) calculate_digit_num num_list = [int(num) for num in raw_input().split(' ')] [int(num) for num in raw_input().split(' ')] num_list
def calculate_digit_num(num):
    z = num / 10
    if z == 0:
        return 1
    else:
        return 1 + calculate_digit_num(z)

while True:
    try:
        num_list = [int(num) for num in raw_input().split(' ')]
        print calculate_digit_num(sum(num_list))
    except:
        break
