#include <bits/stdc++.h>
using namespace std;
const int N = 500005;
int n, d;
char str[N], a[10] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
int main() {
  scanf("%s", str + 1);
  n = strlen(str + 1);
  for (int i = 1; i <= n; i++) {
    if (a[d] == str[i]) ++d;
    if (d == 7) {
      printf("YES");
      return 0;
    }
  }
  printf("NO");
  return 0;
}
