#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  string s;
  cin >> s;
  if (s == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < (s.size() - 7); ++i) {
    string keyence = "keyence";
    string first = keyence.substr(0, keyence.size() - i);
    string last = keyence.substr(keyence.size() - i, i);
    string::size_type fpos = s.find(first);
    string::size_type lpos = s.find(last);
    if (fpos != string::npos && lpos != string::npos) {
      if (fpos < lpos) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
