#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int l = s.size();
  int n = 0;
  bool x[110];
  char ke[] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  for (int i = 0; i < l; i++) {
    if (s[i] == ke[n]) {
      n++;
      x[i] = true;
    } else
      x[i] = false;
  }
  int y = 0;
  for (int i = 0; i < l - 1; i++) {
    if (x[i] != x[i + 1]) {
      if (x[0] != true && x[l - 1] != true)
        y += 2;
      else
        y++;
    }
  }
  if (y > 2)
    puts("NO");
  else if (n == 7)
    puts("YES");
  else
    puts("NO");
  return 0;
}
