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

#define rep(i,n) for(ll i=0;i<n;i++)
#define ll long long

int main(){
    string s;
    cin>>s;
    int n=s.size();
    if(s=="keyence"){
        cout<<"YES"<<endl;
        return 0;
    }
    int a=1;
    else if(n>7){
    rep(i,8){
        s.erase(i,i+n-7);
        if(s=="keyence"){
        cout<<"YES"<<endl;
        a=0;
        break;
        }
    }
    }
    if(a) cout<<"NO"<<endl;
}