# coding: utf-8
remaining_questions = True
while remaining_questions:
    try:
        value_a, value_b = map(int, input().split(" "))
        print(len(str(value_a + value_b)))
    except:
        remaining_questions = False remaining_questions = True remaining_questions True while remaining_questions:
    try:
        value_a, value_b = map(int, input().split(" "))
        print(len(str(value_a + value_b)))
    except:
        remaining_questions = False remaining_questions try:
        value_a, value_b = map(int, input().split(" "))
        print(len(str(value_a + value_b)))
    except:
        remaining_questions = False except:
        remaining_questions = False remaining_questions = False remaining_questions False value_a, value_b = map(int, input().split(" ")) value_a map(int, input().split(" ")) map int input().split(" ") ().split () input split " " value_b print(len(str(value_a + value_b))) print len(str(value_a + value_b)) len str(value_a + value_b) str value_a + value_b value_a value_b value_a, value_b = map(int, input().split(" ")) map(int, input().split(" ")) value_a remaining_questions = False False remaining_questions remaining_questions = True True remaining_questions value_b = map(int, input().split(" ")) map(int, input().split(" ")) value_b
# coding: utf-8
remaining_questions = True
while remaining_questions:
    try:
        value_a, value_b = map(int, input().split(" "))
        print(len(str(value_a + value_b)))
    except:
        remaining_questions = False