val keyence = arrayOf('k', 'e', 'y', 'e', 'n', 'c', 'e')
var input: String =""

fun main(args: Array<String>){
    input = readLine()!!
    if(isFirstKeyence()){
        println("YES")
    }else{
        println("NO")
    }
}

fun isFirstKeyence(): Boolean {
    var keyencePosition = 0
    var keyenceLastPosition = keyence.size-1
    var inputMidPosition = 0
    for(i in 0 until input.length){
        // println(input[i])
        if(input[i] == keyence[keyencePosition]){
            if(keyencePosition == keyence.size-1){
                return true
            }else{
                keyencePosition++
            }
        }else{
            inputMidPosition = i
            break
        }
    }
    // println("----")
    for(i in input.length-1 downTo inputMidPosition+1){
        // println(input[i])
        if(input[i] == keyence[keyenceLastPosition]){
            if(keyenceLastPosition == keyencePosition){
                return true
            }else{
                keyenceLastPosition--
            }
        }else{
            return false
        }
    }
    return false
}