s = gets.chomp.chars
kes = "keyence_"
d = []
str = ""
i = 0
s.each do |c|
  if kes[i] == c
    d << str if str != ""
    str = ""
    i += 1
  else
    str += c
  end
end
d << str if str != ""
puts (i == 7 && d.size <= 1)? "YES" : "NO"