#include <bits/stdc++.h>
using namespace std;
char s[105], sta[105], tmp[] = {'\0', 'k', 'e', 'y', 'e', 'n', 'c', 'e'};
int n;
bool check(char *s) {
  for (int i = 1; i <= 7; i++)
    if (tmp[i] != sta[i]) return 0;
  return 1;
}
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  for (int i = 1; i <= n; i++)
    for (int l = 1, now = 0; l <= 7 && i + 6 <= n; l++) {
      sta[++now] = s[i + l - 1];
      for (int j = i + l; j + 6 - l <= n; j++) {
        for (int k = 1; k <= 7 - l; k++) sta[now + k] = s[j + k - 1];
        if (check(sta)) return puts("YES"), 0;
      }
    }
  puts("NO");
}
