#include <bits/stdc++.h>
using namespace std;
template <class T, template <class, class> class C, class charT = char>
void vdump(const C<T, allocator<T>> &v, const charT *delimiter = ", ",
           ostream &stream = cout) {
  copy(v.begin(), v.end(), ostream_iterator<T>(stream, delimiter));
  stream << endl;
}
int main() {
  ios::sync_with_stdio(false);
  string target = "keyence";
  string s;
  cin >> s;
  int n = s.size();
  for (int i = (int)(0); i < (int)(n - 7); i++) {
    if (s.substr(0, i) + s.substr(n - 7 + i) == target) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
