fun main(args: Array<String>) {
    val s = readString()

    val r = listOf(
        Regex(".*keyence"),
        Regex("k.*eyence"),
        Regex("ke.*yence"),
        Regex("key.*ence"),
        Regex("keye.*nce"),
        Regex("keyen.*ce"),
        Regex("keyenc.*e"),
        Regex("keyence.*")
    )

    var ans = false
    r.forEach {
        if (it.matches(s)) {
            ans = true
        }
    }
    if (ans) {
        println("YES")
    } else {
        println("NO")
    }
}

// Tools
fun readString() = readLine()!!