fun main(args: Array<String>) {
    keyence2019b()
}

fun keyence2019b() {
    val s = readLine()!!
    val keyence = "keyence"

    for (subStart in s.indices) {
        for (subEnd in s.indices) {
            if (s.slice(0..subStart) + s.slice(subEnd..s.lastIndex) == keyence) {
                return println("YES")
            }
        }
    }

    println("NO")
}
