#include <bits/stdc++.h>
using namespace std;
signed main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string t = "keyence";
  if (s.substr(0, 7) == "keyence" ||
      s.substr(s.size() - 7, s.size() - 1) == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (long long i = 0; i < 6; i++) {
    if (s.substr(0, i) == t.substr(0, i) &&
        s.substr(s.size() - 6 + i, s.size() - 1) == t.substr(i + 1, 6)) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
