import scala.io.{StdIn => in}

object Main extends App {
  val s = in.readLine
  val n = s.size
  val v = "keyence"import scala.io.{StdIn => in}

object Main extends App {
  val s = in.readLine
  val n = s.size
  val v = "keyence"

  val res = for {
    i <- 0 to 7
    j <- 0 to 7
    if s.take(i) + s.takeRight(j) == v
  } yield true

  val ans = if(res.nonEmpty) "YES" else "NO"
  println(ans)
}

  val res = for {
    i <- 0 to n
    j <- 0 to n
    if s.take(i) + s.drop(j) == v
  } yield true

  val ans = if(res.nonEmpty) "YES" else "NO"
  println(ans)
}