try:
    data = []
    while True:
        data.append(raw_input())

except EOFError:
    pass

for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    for j in range(1, 8): 
        if (a + b) / (10 ** j) < 1:
            print j
            break try:
    data = []
    while True:
        data.append(raw_input())

except EOFError:
    pass except EOFError:
    pass data = [] data [] while True:
        data.append(raw_input()) True data.append(raw_input()) data.append data append raw_input() raw_input for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    for j in range(1, 8): 
        if (a + b) / (10 ** j) < 1:
            print j
            break i data x, y = i.split() x i.split() i.split i split y a, b = int(x), int(y) a int(x) int x b int(y) int y for j in range(1, 8): 
        if (a + b) / (10 ** j) < 1:
            print j
            break j range(1, 8) range 1 8 if (a + b) / (10 ** j) < 1:
            print j
            break (a + b) / (10 ** j) < 1 (a + b) / (10 ** j) a + b a b 10 ** j 10 j 1 print break x, y = i.split() i.split() x data = [] [] data a, b = int(x), int(y) int(x) a y = i.split() i.split() y b = int(x), int(y) int(y) b
try:
    data = []
    while True:
        data.append(raw_input())

except EOFError:
    pass

for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    for j in range(1, 8): 
        if (a + b) / (10 ** j) < 1:
            print j
            break