s = gets.chomp

dictionary = [/.*(keyence)/, /(k).*(eyence)/, /(ke).*(yence)/, /(key).*(ence)/, /(keye).*(nce)/ ,
              /(keyen).*(ce)/, /(keyenc).*(e)/, /(keyence).*/]

dictionary.each do |dic|
  if s.match(dic)
    puts "YES"
    exit
  end
end

puts "NO"