fun main(args : Array<String>) {
    val s = readLine()!!
    val key = "keyence"

    if (s.startsWith(key) || s.endsWith(key)) {
        println("YES")
        return
    }

    for (i in 1 until key.length) {
        val key1 = key.take(i)
        val key2 = key.takeLast(key.length-i)

        if (s.startsWith(key1) && s.endsWith(key2)) {
            println("YES")
            return
        }
    }

    println("NO")
}