#include<bits/stdc++.h>
using namespace std;
char s[1234567];
char t[10]="keyence";
int main(){
    scanf("%s",s);
    int n=strlen(s);
    if (n<7) {puts("NO");return 0;}
    int l=0;
    while (l<7&&s[l]==t[l]) l++;
    int r=0;
    while (r<7&&s[n-1-r]==t[6-r]) r++;
    if (l+r>=7) puts("YES"); else puts("NO");
    return 0;
}
