#include <bits/stdc++.h>
using namespace std;
const long long int INF = INT32_MAX;
const long long int Mod = 1000000007;
const long long int mod = 100000;
using ll = long long int;
using ci = const int;
using vi = vector<int>;
using Vi = vector<long long int>;
using pii = pair<int, int>;
template <class T>
bool chmax(T &former, const T &b) {
  if (former <= b) {
    former = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T &former, const T &b) {
  if (b < former) {
    former = b;
    return true;
  }
  return false;
}
template <class T>
T sqar(T x) {
  return x * x;
}
void cinit() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}
string s;
int main() {
  cin >> s;
  bool key = false;
  for (int i = 0; i < s.size(); i++) {
    for (int k = 0; k < 7; k++)
      for (int j = i + k; j < s.size(); j++) {
        if (j + 7 - 1 - k <= s.size()) {
          if (s.substr(i, k + 1) + s.substr(j, 7 - k - 1) == "keyence") {
            cout << "YES" << endl;
            key = true;
            return 0;
          }
        }
      }
  }
  if (!key) cout << "NO" << endl;
  return 0;
}
