# 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]
  right = KEYENCE[i + 1 .. -1]
  idx = s.index(left)
  next if idx.nil?
  right_idx = s[idx + left.size .. -1].index(right)
  next if right_idx.nil?
  res = s[0..idx + left.size - 1] + s[idx + left.size + right_idx..-1] == "keyence"
  break if res
end

puts res ? "YES" : "NO"