#include <bits/stdc++.h>
using namespace std;
char word[110], ask[] = "keyence";
int nw;
int main() {
  nw = 0;
  scanf("%s", word);
  for (int i = 0; word[i]; i++) {
    if (ask[nw] == word[i]) {
      nw++;
    }
  }
  if (nw == 7)
    printf("YES\n");
  else
    printf("NO\n");
}
