fun main(args: Array<String>) {
    val s = readLine() ?: return
    val keyence = "keyence"
    if (s == keyence) {
        println("YES")
        return
    }
    if (s.indexOf(keyence) == 0) {
        println("YES")
        return
    }
    if (s.indexOf(keyence) == s.length - keyence.length) {
        println("YES")
        return
    }
    1.until(7).forEach {
        val a = keyence.take(it)
        val b = keyence.drop(it)
        if (s.indexOf(a) == 0 && s.lastIndexOf(b) == s.length - b.length) {
            println("YES")
            return
        }
    }
    println("NO")
}