#include <bits/stdc++.h>
using namespace std;
using ll = long long;
bool isKeyence(string s) {
  string k = "keyence";
  int pos = s.find(k);
  if (pos != string::npos) {
    return pos == 0 || pos + k.size() == s.size();
  }
  for (int i = 1; i < k.size(); i++) {
    string l = k.substr(0, k.size() - i);
    pos = s.find(l);
    if (pos != string::npos) {
      if (pos != 0) continue;
      string m = k.substr(l.size(), k.size() - l.size());
      pos = s.find(m);
      return pos != string::npos && pos + m.size() == s.size();
    }
  }
  return false;
}
int main() {
  string s;
  cin >> s;
  if (isKeyence(s))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
