// inputに入力データ全体が入る
function Main(input) {
    if (HowMuchSameWordsStart(input,"keyence") + HowMuchSameWordsEnd(input, "keyence") >= "keyence".length){
        console.log("YES");
    }else {
        console.log("NO");
    }
}
function HowMuchSameWordsStart(word1, word2){
    var wordArray1 = word1.split("");
    var wordArray2 = word2.split("");
    var count = 0;
    while (true){
        if (count >= wordArray1.length || count >= wordArray2.length){
            break;
        }
        if (wordArray1[count] === wordArray2[count]){
            count++;
        }else {
            break;
        }
    }
    return count;
}
function HowMuchSameWordsEnd(word1, word2){
    var wordArray1 = word1.split("");
    var wordArray2 = word2.split("");
    var count = 0;
    while (true){
        if (wordArray1.length - count - 1 < 0 || wordArray2.length - count - 1 < 0){
            break;
        }
        if (wordArray1[wordArray1.length - count - 1] === wordArray2[wordArray2.length - count - 1]){
            count++;
        }else {
            break;
        }
    }
    return count;
}
//*この行以降は編集しないでください（標準入出力から一度に読み込み、Mainを呼び出します）
Main(require("fs").readFileSync("/dev/stdin", "utf8"));