s = gets.chomp
t = "keyence"
head = 0
tail = 0
for i in 0...7 do
  if s[i] == t[i]
    head += 1
  else
    break
  end
end
for i in 0...7 do
  if s[-1 - i] == t[-1 - i]
    tail += 1
  else
    break
  end
end
puts (head + tail >= 7) ? "YES" : "NO"
