#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s, t = "keyence";
  cin >> s;
  if (s.size() < 7) {
    cout << "NO\n";
    return 0;
  }
  for (long long i = 0; i < (7); i++) {
    if (s.substr(0, i) == t.substr(0, i) &&
        s.substr(s.size() - i, 7 - i) == t.substr(7 - i, 7 - i)) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
}
