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