#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string name = "keyence";
  int len = name.size();
  if (s.find(name, 0) != -1) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < len; i++) {
    string sub1 = name.substr(0, i);
    string sub2 = name.substr(i, len - i);
    if (s.find(sub1, 0) != -1 && s.find(sub2, 0) != -1) {
      if (s.find(sub1, 0) == 0 &&
          s.find(sub2, 0) + sub2.size() - 1 == s.size() - 1) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
