import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val s = sc.next()
    if (s == "keyence") {
        println("YES")
        return
    }
    for (si in s.indices) {
        for (len in 1..s.length) {
            val to = si + len - 1
            if (to < s.length) {
                if (s.removeRange(si, to) == "keyence") {
                    println("YES")
                    return
                }
            }
        }
    }
    println("NO")
}