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

s = gets.chomp
KEYENCE = 'keyence'

res = false
0.upto(KEYENCE.size - 2) do |i|
  left = KEYENCE[0..i]
  right = KEYENCE[i + 1 .. -1]
  idx = s.index(left)
  next if idx.nil?
  next if s[idx + left.size - 1 .. -1].index(right).nil?
  res = true
end

puts res ? "YES" : "NO"