s = gets.chomp

idx = 0
count = 0
flg = true
word = "keyence"

(0..s.size - 1).each do |i|
  if s[i] == word[idx]
    idx += 1
    flg = true
  else
    count += 1 if flg
    flg = false
  end
end

puts (idx >= word.size && count < 2) ? 'YES' : 'NO'