#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  vector<char> a(7);
  a = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  bool A = true;
  for (int i = 0; i < (7); i++) {
    if (s.at(i) == a.at(i)) {
      continue;
    } else if (!A) {
      cout << "NO" << endl;
      return 0;
    }
    for (int j = i; j < s.size(); j++) {
      if (s.at(j) == a.at(i)) {
        s.erase(i, (j - i));
        A = false;
      }
    }
  }
  cout << "YES" << endl;
}
