s=gets.chomp
puts [
  /\A.*keyence\z/,
  /\Ak.*eyence\z/,
  /\Ake.*yence\z/,
  /\Akey.*ence\z/,
  /\Akeye.*nce\z/,
  /\Akeyen.*ce\z/,
  /\Akeyenc.*e\z/,
  /\Akeyence.*\z/
].any?{|r|r.match(s)} ? "YES" : "NO"
