def keta( num )
	return 0 if num == 0
	k = 0
	while( num > 0 )
		num /= 10
		k += 1
	end
	return k
end

def main
		answer = Array.new
		while line = $stdin.gets
			q = line.split( /\s/)
			answer << keta((q[ 0 ].to_i + q[ 1 ].to_i))
		end
		answer.each{ |a|
			puts a
		}
end

main
