keyofscience#include<bits/stdc++.h>
using namespace std;

int main(){
    string word={"keyence"};
    string S;
    cin>>S;
    
    int N = S.size();
    
    int i,j,k=0;
    int count=0;
    
    for(i=0;i<N;i++){
        if(S[i]==word[k]){
            while(S[i]==word[k]){
                i++;
                k++;
            }
            
            if(k==8){
                cout<<"YES"<<endl;
                return 0;
            }
            
            for(;i<N;i++){
                if(S[i]==word[k]){
                    if(word.substr(k,N-k+1)==S.substr(i,N-k+1)){
                        cout<<"YES"<<endl;
                        return 0;
                    }
                }            
            }

        }
    }

    cout<<"NO"<<endl;

    
}