#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 10;
char key[] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
char str[N];
int len;
int isJudge(int l, int r) {
  int pos = 0;
  for (int i = 0; i < l; i++)
    if (str[i] == key[pos]) pos++;
  for (int j = r + 1; j < len; j++)
    if (str[j] == key[pos]) pos++;
  return pos == 7;
}
int main() {
  scanf("%s", str);
  len = strlen(str);
  int k = len - 7;
  int flag = 0;
  if (k == 0) flag = (strcmp(key, str) == 0 ? 1 : 0);
  for (int i = 0; !flag && i < len - k; i++) {
    int r = i + k - 1;
    if (r < i) continue;
    flag = isJudge(i, r);
  }
  printf("%s\n", flag ? "YES" : "NO");
  return 0;
}
