require 'set'; require 'prime'
INF=Float::INFINITY
s = gets.chomp.split(//)

k = 'keyence'
i = 0
s.each do |c|
  if c == k[i]
    i+=1
    if i == k.size
      puts 'YES'
      exit
    end
  end
end

puts 'NO'