def is_ok(line)
  line.size.times do |i|
    (i+1).upto(line.size-1) do |j|
      s = line[0...i] + line[j..-1]
      if s == 'keyence'
        return true
      end
    end
  end
  return false
end

l = gets.chomp
puts is_ok(l) ? "YES" : "NO"
