#include<iostream>
#include<string.h>
using namespace std;


int main(void)
{
    int i=0,j=0,count=0,int flag=0;
    string s,a("keyence");
    cin>>s;

    while(a[i]!='\0'&&s[j]!='\0' && count!=2){
        if(s[j]==a[i]){ i++; j++;}
        else {j++;count++;}
        if(count==1&&flag==0){
            while(a[i]!=s[j] &&s[j]!='\0'){j++;flag++;}
        }
    }
    if(s[j]=='\0')count++;
    if(i==7&&count<=1){cout<<"YES"<<endl;}else cout<<"NO"<<endl;
    return 0;
}
