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

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

    while(a[i]=="\0"||j==7){
        if(s[j]==a[i]) i++;
        j++;
    }
    if(a[i]=="\0"){cout<<"YES"<<endl;}else cout<<"NO"<<endl;
    return 0;
}