
fun main(args:Array<String>) {
    val key = "keyence"
    val target = readLine()!!
    if(key == target) {
        println("YES")
        return
    }
    for(i in (0 until target.length - 1)) {
        for(j in (i + 1 until target.length)) {
            val str1 = target.substring(0..i)
            val str2 = target.substring(j)
            if(str1 + str2 == key) {
                println("YES")
                return
            }
        }
    }
    println("NO")
}
