import sys

lines = []
for line in sys.stdin:
    num = line.split(" ")
    print(len(str(int(num[0]) + int(num[1])))) import sys sys lines = [] lines [] for line in sys.stdin:
    num = line.split(" ")
    print(len(str(int(num[0]) + int(num[1])))) line sys.stdin sys stdin num = line.split(" ") num line.split(" ") line.split line split " " print(len(str(int(num[0]) + int(num[1])))) print len(str(int(num[0]) + int(num[1]))) len str(int(num[0]) + int(num[1])) str int(num[0]) + int(num[1]) int(num[0]) int num[0] num 0 int(num[1]) int num[1] num 1 lines = [] [] lines num = line.split(" ") line.split(" ") num
import sys

lines = []
for line in sys.stdin:
    num = line.split(" ")
    print(len(str(int(num[0]) + int(num[1]))))