#include<iostream>
using namespace std;

int main(void)
{
    char **k="keyence";
    char **s;
    cin>>**s;
    for(int i=0;**k=="\0";i++){
        if(**s==**k){*s++;*k++;}
    }
    cout<<"YES"<<endl;
    return 0;
}