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