#include <bits/stdc++.h>
using namespace std;
const char t[] = "keyence";
template <typename Tp>
inline void getint(Tp &num) {
  register int ch, neg = 0;
  while (!isdigit(ch = getchar()))
    if (ch == '-') neg = 1;
  num = ch & 15;
  while (isdigit(ch = getchar())) num = num * 10 + (ch & 15);
  if (neg) num = -num;
}
int n, cur = 1;
char s[105];
int main() {
  scanf("%s", s + 1), n = strlen(s + 1);
  for (register int i = 0; i < 7; i++)
    for (; cur <= n; cur++)
      if (s[cur] == t[i]) break;
  return puts(cur <= n ? "YES" : "NO"), 0;
}
