keyence = "keyence".split("")
cnt = keyence.length
s = gets.chomp

n = s.length

k = keyence.shift
n.times do |i|
  if s[i] == k
    cnt -= 1
    if cnt == 0
      puts "YES"
      exit
    end
    k = keyence.shift
  end
end

puts "NO"