#include <iostream>
#include <string>

using namespace std;

int main(){
    string S;
    string comp="keyence";

    cin >> S;
    if(S[0]=='k'){
        for(int i=1;i<7;i++){
            if(comp[i]!=S[i]){
                int pos =S.find(&comp[i],i);
                if(pos<0){
                    cout<<"NO":
                }else{
                    cout<<"YES";
                }
            }
        }

    }else{
        int pos = S.find("keyence",1);
        if(pos<0){
            cout<<"NO";
        }else{
            cout<<"YES";
        }
    }

    return 0;
}