#include <bits/stdc++.h>
int main() {
  char a[105];
  char b[105] = {"keyence"};
  scanf("%s", a);
  int i, j, flag = 0, temp = 0;
  i = j = 0;
  while (i < strlen(a) && j < strlen(b)) {
    if (a[i] == b[j]) {
      i++;
      j++;
    } else {
      i = i + 1;
      j = j;
    }
    if (j == strlen(b)) {
      flag = 1;
      break;
    }
  }
  if (flag == 1 && (temp <= 2))
    printf("YES\n");
  else
    printf("NO\n");
}
