answers=[]
while True:
    try:
        nums=input().split()
        answers.append(len(str(int(nums[0])+int(nums[1]))))
    except :
        break
for i in range(len(answers)):
    print(answers[i]) answers=[] answers [] while True:
    try:
        nums=input().split()
        answers.append(len(str(int(nums[0])+int(nums[1]))))
    except :
        break True try:
        nums=input().split()
        answers.append(len(str(int(nums[0])+int(nums[1]))))
    except :
        break except :
        break break nums=input().split() nums input().split() ().split () input split answers.append(len(str(int(nums[0])+int(nums[1])))) answers.append answers append len(str(int(nums[0])+int(nums[1]))) len str(int(nums[0])+int(nums[1])) str int(nums[0])+int(nums[1]) int(nums[0]) int nums[0] nums 0 int(nums[1]) int nums[1] nums 1 for i in range(len(answers)):
    print(answers[i]) i range(len(answers)) range len(answers) len answers print(answers[i]) print answers[i] answers i answers=[] [] answers nums=input().split() input().split() nums
answers=[]
while True:
    try:
        nums=input().split()
        answers.append(len(str(int(nums[0])+int(nums[1]))))
    except :
        break
for i in range(len(answers)):
    print(answers[i])