#include <bits/stdc++.h>

using namespace std;

int n;

void solve(){
    int i,j;
    string str;
    cin >> str;
    string keyence = "keyence";
    for(i = 0;i <= 7;i++){
        if(str.substr(0,i) + str.substr(str.length()-7+i) == keyence){
            cout << "YES" << endl;
            return;
        }
    }
    cout << "NO" << endl;
}

int main(){
    solve();
}
