#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int ans = 0;
  string s;
  cin >> s;
  string t = "keyence";
  if (s == t) {
    cout << fixed << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < t.size() - 1; i++) {
    for (int j = i + 1; j < s.size(); j++) {
      if (t == s.substr(0, i) + s.substr(j, s.size() - 1)) {
        ans++;
      }
    }
  }
  cout << fixed << (ans ? "YES" : "NO") << endl;
}
