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

k = 'keyence'.split(//)

s.size.times do |i|
  i.upto(s.size-1).each do |j|
    if s.slice(0,i) + s.slice(j,100) == k
      puts 'YES'
      exit
    end
  end
end

puts 'NO'

