#include <bits/stdc++.h>
char key[8] = "keyence";
int vals;
char str[101];
int chk(int thr, int p, int c) {
  if (str[thr] == 0) return 0;
  if (str[thr] == key[p]) {
    if (c == 1) c = 2;
    if (p == 6) {
      if (str[thr + 1] != 0) {
        if (c == 0)
          return 1;
        else
          return 0;
      } else {
        return 1;
      }
    } else
      return chk(thr + 1, p + 1, c);
  } else {
    if (c == 2) return 0;
    if (c == 1) return chk(thr + 1, p, c);
    if (c == 0) {
      c = 1;
      return chk(thr + 1, p, c);
    }
  }
}
int main() {
  int ans = 0;
  scanf("%s", &str);
  for (int i = 0; i < 101; i++) {
    if (str[i] == 0) vals = i;
  }
  for (int i = 0; i < vals - 6; i++) {
    if (i == 0)
      ans = chk(i, 0, 0);
    else
      ans = chk(i, 0, 1);
    if (ans == 1) break;
  }
  if (ans == 1)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
