#include <bits/stdc++.h>
int main() {
  int i, j, p, flag = 0, t, k;
  char s[111], a[10] = "keyence";
  for (i = 0; i < 111; i++) s[i] = '\0';
  scanf("%s", s);
  for (i = 0; i < 111; i++) {
    p = 0;
    t = 0;
    k = 0;
    if (i != 0) k = 1;
    for (j = i; s[j] != '\0'; j++) {
      if (s[j] == a[p]) {
        if (t == 1) k = 1;
        p++;
        if (p >= 7) {
          if (s[j + 1] == '\0' || k == 0) flag = 1;
          break;
        }
      } else {
        t = 1;
        if (k == 1) break;
      }
    }
  }
  if (flag == 1)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
