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