# https://atcoder.jp/contests/keyence2019/tasks/keyence2019_b

s = gets.chomp
KEYENCE = 'keyence'

res = false
if s.include?("keyence")
  puts "YES"
  exit
end
0.upto(KEYENCE.size - 1) do |i|
  left = KEYENCE[0..i]
  idx = s.index(left)
  next if idx.nil?
  (idx + left.size + 1).upto(s.size - 1) do |j|
    res = true if s[0..idx + left.size] + s[j..-1] == "keyence"
    break if res
  end
  break if res
end

puts res ? "YES" : "NO"