#include <bits/stdc++.h>
int main() {
  const char *KEY = "keyence";
  char s[100];
  char *pt;
  char *pt2;
  int i;
  scanf("%s", s);
  if (0 == (pt = strstr(s, "keyence"))) {
    printf("NO\n");
    return 0;
  }
  for (i = 0;; i++) {
    if (*pt == KEY[i]) {
      pt++;
    } else {
      break;
    }
  }
  if (i >= 7) {
    printf("YES\n");
    return 0;
  }
  if (0 == (pt2 = strstr(pt, &KEY[i]))) {
    printf("NO\n");
    return 0;
  }
  for (;; i++) {
    if (*pt2 == KEY[i]) {
      pt2++;
    } else {
      break;
    }
  }
  if (i >= 7) {
    printf("YES\n");
    return 0;
  }
  printf("NO\n");
  return 0;
}
