#include <bits/stdc++.h>
using namespace std;
struct init {
  init() {
    cin.tie(0);
    ios::sync_with_stdio(0);
    cout << fixed << setprecision(20);
  };
} aaaaaaa;
int main() {
  string s;
  cin >> s;
  if ("keyence" == s) {
    cout << "YES" << endl;
    return 0;
  }
  int n = s.size();
  for (auto l = 0; l < (n); l++) {
    for (int r = l + 1; r < n; r++) {
      string str = s.substr(0, l) + s.substr(r);
      if (str.find("keyence") != string::npos) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
