    function Main(input) {
        keyence = ["k", "e", "y", "e", "n", "c", "e"];
        answer = "NO";
      input = input.split("")
        for(i = 0; i < 7; i++){
            var tr = true;
          
            for(j = input.length-1; j > input.length - (8-i); j--){
                if(input[j] !== keyence[6-(8-j)]){
                    tr = false;
                }
            }
            for(k = 0; k < i; k++){
                if(input[k] !== keyence[k]){
                    tr = false;
                }
            }
            if(!tr) continue;
            answer = "YES";
        }
        console.log(answer);
    }


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