object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val S = sc.next()
  val isExists =
    "keyence".inits.toList.tail.zip("keyence".tails.toList.tail.reverse).map {
      case (l, r) => s".*$l.*$r.*"
    }.exists(S.matches)
  println(if (isExists) "YES" else "No")
}
