import sys

a = []
answer_array = []
for line in sys.stdin:
    a.append(map(int, line.strip().split()))
    #except StopIteration:
        #break

for i in range(len(a)):
    sum_up = a[i][0] + a[i][1]

    answer = len(str(sum_up))

    answer_array.append(answer)

for j in range(len(answer_array)):
    print answer_array[j] import sys sys a = [] a [] answer_array = [] answer_array [] for line in sys.stdin:
    a.append(map(int, line.strip().split()))
    #except StopIteration:
        #break line sys.stdin sys stdin a.append(map(int, line.strip().split())) a.append a append map(int, line.strip().split()) map int line.strip().split() line.strip().split line.strip() line.strip line strip split for i in range(len(a)):
    sum_up = a[i][0] + a[i][1]

    answer = len(str(sum_up))

    answer_array.append(answer) i range(len(a)) range len(a) len a sum_up = a[i][0] + a[i][1] sum_up a[i][0] + a[i][1] a[i][0] [i] a i 0 a[i][1] [i] a i 1 answer = len(str(sum_up)) answer len(str(sum_up)) len str(sum_up) str sum_up answer_array.append(answer) answer_array.append answer_array append answer for j in range(len(answer_array)):
    print answer_array[j] j range(len(answer_array)) range len(answer_array) len answer_array print answer_array[j] answer_array j sum_up = a[i][0] + a[i][1] a[i][0] + a[i][1] sum_up answer = len(str(sum_up)) len(str(sum_up)) answer a = [] [] a answer_array = [] [] answer_array
import sys

a = []
answer_array = []
for line in sys.stdin:
    a.append(map(int, line.strip().split()))
    #except StopIteration:
        #break

for i in range(len(a)):
    sum_up = a[i][0] + a[i][1]

    answer = len(str(sum_up))

    answer_array.append(answer)

for j in range(len(answer_array)):
    print answer_array[j]