#include <bits/stdc++.h>
int main() {
  char S[100];
  char keyence[] = "keyence";
  int i, j;
  scanf("%s", S);
  for (i = 0; i < strlen(keyence); i++) {
    if (S[i] != keyence[i]) {
      for (j = 0; j < strlen(keyence) - i - 1; j++) {
        if (keyence[strlen(keyence) - j] != S[strlen(S) - j]) {
          printf("NO");
          return 0;
        }
      }
    }
  }
  printf("YES");
  return 0;
}
