#include <bits/stdc++.h>
using namespace std;
const int INFINT = 1 << 30;
const long long INFLL = 1LL << 60;
const double EPS = 1e-10;
const int MOD = 1000000007;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
string S;
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  cin >> S;
  for (int l = 0; l < S.length() - 1; ++l) {
    for (int r = l + 1; r < S.length(); ++r) {
      string tmp;
      tmp = S.substr(0, l + 1);
      tmp += S.substr(r);
      if (tmp.size() != 7) continue;
      for (int i = 0; i < tmp.length(); ++i) {
        cout << tmp.substr(i, 7) << endl;
        if (tmp.substr(i, 7) == "keyence") {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
