#include <bits/stdc++.h>
using namespace std;
int main() {
  char S[100 + 1], T[] = "keyence";
  scanf("%s", S);
  int i, n = 0, cut = 0, len = (int)strlen(S);
  for (i = 0; i < len; i++) {
    if (S[i] == T[n]) {
      n++;
      if (cut == 1) cut = 2;
    } else if (cut == 2) {
      printf("NO\n");
      return 0;
    } else {
      cut = 1;
    }
    if (n == 7) break;
  }
  if (i == len)
    printf("NO\n");
  else
    printf("YES\n");
  return 0;
}
