#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T = ll>
inline T in() {
  T ret;
  cin >> ret;
  return ret;
}
signed main() {
  string str = in<string>();
  for (int i = 0; i < 8; ++i) {
    string sub1 = string("keyence").substr(0, i),
           sub2 = string("keyence").substr(i);
    auto pos = str.find(sub1);
    if (pos != string::npos &&
        str.find(sub2, pos + sub1.length()) != string::npos) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
