#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  auto check_func = [&](const string &h, const string &f) {
    auto r1 = S.find(h, 0);
    if (r1 == string::npos) return false;
    auto r2 = S.find(f, r1 + h.size());
    if (r2 == string::npos) return false;
    return true;
  };
  bool ans = false;
  string bs = "keyence";
  for (ll i = (1); i < (bs.size()); ++i) {
    string h, f;
    h.append(bs, 0, i);
    f.append(bs, i, bs.size() - i);
    ;
    ans |= check_func(h, f);
    if (ans) break;
  }
  cout << (ans ? "YES" : "NO") << endl;
  return 0;
}
