#include <bits/stdc++.h>
using namespace std;
map<string, char> mp;
int main() {
  string s;
  cin >> s;
  mp[""] = 'k';
  mp["k"] = 'e';
  mp["ke"] = 'y';
  mp["key"] = 'e';
  mp["keye"] = 'n';
  mp["keyen"] = 'c';
  mp["keyenc"] = 'e';
  string t = "";
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == mp[t]) t += s[i];
    if (t == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
