def cntDigits num

	digit = 1;

	while (num > 10) do

		digit += 1
		num = num / 10.0
	end

	return digit
end

while line = gets do 

	nums = line.split
	puts cntDigits ( nums[0].to_i + nums[1].to_i )

end