#include <bits/stdc++.h>
int main() {
  int i, count = 0;
  char s[101], ky[] = {
                   'k', 'e', 'y', 'e', 'n', 'c', 'e',
               };
  scanf("%s", s);
  for (i = 0; s[i] != 0; i++) {
    if (count < 7 && s[i] == ky[count]) {
      count++;
    }
  }
  if (count == 7) {
    puts("YES");
  } else
    puts("NO");
  return 0;
}
