
    function Main(input) {
        keyence = ["k", "e", "y", "e", "n", "c", "e"];
        answer = "NO";
        for(i = 0; i < 7; i++){
            var tr = true;
            tansaku = "";
            ato = "";
            for(j = 0; j < 7; j++){
                if(i <= j){
                    tansaku += keyence[j]
                }else{
                    atp += keyence[j]
                }
            }
            if(input.startsWith(tansaku) && input.endsWith(ato)) answer = "YES";
        }
        console.log(answer);
    }


Main(require("fs").readFileSync("/dev/stdin", "utf8"));
