#include<bits/stdc++.h>
using namespace std;
using ll=long long;
const ll MOD=1e9+7;
const int INF=1e9;
const ll LINF=(ll)1e18;

int main(){
    string s;
    cin>>s;
    int n=s.size();
    for(int i=0;i<=7;i++){
        if(s.substr(0,i)+s.substr(n-(7-i))=="keyence"){
            cout<<"YES"<<endl;
            return 0;
        }
    }
    cout<<"NO"<<endl;
}
