import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val s = sc.next()

  val key = "keyence"

  var ok = false
  for (i in 0 ..  key.length) {
    val key1 = key.substring(0, i)
    val key2 = key.substring(i, key.length)

    if (s.startsWith(key1) && s.endsWith(key2)) {
      ok = true
      break
    }
  }

  if (ok) {
    println("YES")
    return
  }
  println("NO")


}
