#include <bits/stdc++.h>
using namespace std;
void qmax(int &x, int y) {
  if (x < y) x = y;
}
void qmin(int &x, int y) {
  if (x > y) x = y;
}
inline int read() {
  char s;
  int k = 0, base = 1;
  while ((s = getchar()) != '-' && s != EOF && !(isdigit(s)))
    ;
  if (s == EOF) exit(0);
  if (s == '-') base = -1, s = getchar();
  while (isdigit(s)) k = k * 10 + (s ^ '0'), s = getchar();
  return k * base;
}
inline void write(long long x) {
  static char cnt, num[20];
  cnt = 0;
  if (!x) {
    putchar('0');
    return;
  }
  for (; x; x /= 10) num[++cnt] = x % 10;
  for (; cnt; putchar(num[cnt--] + 48))
    ;
}
const int maxn = 110;
const char *s = "keyence";
char a[maxn];
int n;
int main() {
  scanf("%s", a);
  n = strlen(a);
  int p1 = 0, p2 = 6;
  for (int i = 0; i < n; i++) {
    if (a[i] == s[p1]) ++p1;
    if (p1 == 7) break;
  }
  for (int i = n - 1; i >= 0; i--) {
    if (a[i] == s[p2]) --p2;
    if (p2 == -1) break;
  }
  if (p2 < p1) {
    printf("YES");
  } else {
    printf("NO");
  }
  return 0;
}
