import sys

nums = []

for line in sys.stdin:
    nums.append(line.rstrip())


for i in range(len(nums)):
    int_a = int(nums[i].split(" ")[0])
    int_b = int(nums[i].split(" ")[1])
    
    print(len(str(int_a+int_b))) import sys sys nums = [] nums [] for line in sys.stdin:
    nums.append(line.rstrip()) line sys.stdin sys stdin nums.append(line.rstrip()) nums.append nums append line.rstrip() line.rstrip line rstrip for i in range(len(nums)):
    int_a = int(nums[i].split(" ")[0])
    int_b = int(nums[i].split(" ")[1])
    
    print(len(str(int_a+int_b))) i range(len(nums)) range len(nums) len nums int_a = int(nums[i].split(" ")[0]) int_a int(nums[i].split(" ")[0]) int nums[i].split(" ")[0] [i].split(" ") [i].split [i] nums i split " " 0 int_b = int(nums[i].split(" ")[1]) int_b int(nums[i].split(" ")[1]) int nums[i].split(" ")[1] [i].split(" ") [i].split [i] nums i split " " 1 print(len(str(int_a+int_b))) print len(str(int_a+int_b)) len str(int_a+int_b) str int_a+int_b int_a int_b int_a = int(nums[i].split(" ")[0]) int(nums[i].split(" ")[0]) int_a int_b = int(nums[i].split(" ")[1]) int(nums[i].split(" ")[1]) int_b nums = [] [] nums
import sys

nums = []

for line in sys.stdin:
    nums.append(line.rstrip())


for i in range(len(nums)):
    int_a = int(nums[i].split(" ")[0])
    int_b = int(nums[i].split(" ")[1])
    
    print(len(str(int_a+int_b)))