object Main extends App {

  import scala.io.StdIn._

  val str = readLine.trim
  val target = "keyence"
  println(
    if ((0 until str.length).exists(start ⇒ (start until str.length).exists(end ⇒ str.take(start) + str.drop(end) == target))) "YES" else "NO"
  )

  implicit class Extension[T](value :T){
    @inline
    def let[A](@inline func: T ⇒ A): A = func(value)
    @inline
    def also(@inline func: T ⇒ Unit): T = {func(value); value}
  }
}