S=gets.chomp
str = "keyence"
if(S.start_with?(str) || S.end_with?(str))
	puts "YES"
	exit(0)
end
for i in 0..str.size-2
	if(S.start_with?(str[0..i]) && S.end_with?(str[(i+1)..(-1)]))
		puts "YES"
		exit(0)
	end
end
puts "NO"
