s = gets.chomp
array = s.split('')
answer= "keyence".split('')
count = 0
shit,out,gameover= false,false,false
a = "NO"
array.each do |i|
  if i == answer[count]
    count+=1
    if shit
      out =true
    end
  else
    shit = true
      if out 
        gameover = true
        break
      end
  end
end
if gameover != true && count == 7
  puts "YES"
else
 puts a
end