#include <bits/stdc++.h>
long int combination(long int n, long int r);
int compare_int(const void *a, const void *b) { return *(int *)a - *(int *)b; }
long int combination(long int n, long int r) {
  if (r > n - r) r = n - r;
  if (r == 0)
    return 1;
  else if (r == 1)
    return n;
  return (combination(n - 1, r) + combination(n - 1, r - 1));
}
int main() {
  char str[101];
  char key[] = {"keyence"};
  scanf("%s", str);
  int len = strlen(str);
  int i = 0, one = 1;
  for (int j = 0; j < 7; j++) {
    int tmp = i;
    while ((i < len) && (str[i] != key[j])) {
      i++;
    }
    if ((i == len) && (str[i] != key[j])) one--;
    if (tmp != i) one--;
    i++;
  }
  if (one >= 0)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
