s = gets
result = 'NO'

s.length.times.with_index do |i|
  if s.match(/^#{'keyence'[0..i]}/) && s.match(/#{'keyence'[(i+1)..-1]}$/)
    result = 'YES'
  elsif s.match(/^keyence/) || s.match(/keyence$/)
    result = 'YES'
  end
end

puts result
