fun main(args: Array<String>) {
  val s = readLine()!!
  val keyence = "keyence"
  for (i in 0..keyence.length) {
    val head = keyence.substring(0, i)
    val tail = keyence.substring(i)
    if (s.startsWith(head) && s.endsWith(tail)) {
      println("YES")
      return
    }
  }
  println("NO")
}