#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  vector<char> ds = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  int dpos = 0;
  for (int i = 0; i < (int)s.length(); ++i) {
    if (s[i] == ds[dpos]) {
      ++dpos;
    }
    if (dpos == 7) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
}
