#include <bits/stdc++.h>
using namespace std;
using P = pair<long long, long long>;
const long long mod = 1e9 + 7;
template <class T>
inline void chmin(T& a, T b) {
  if (a > b) {
    a = b;
  }
}
template <class T>
inline void chmax(T& a, T b) {
  if (a < b) {
    a = b;
  }
}
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  string second;
  cin >> second;
  bool ok = 0;
  string k = "keyence";
  for (long long(i) = 0; (i) < (8); (i)++) {
    if (second.substr(0, i) == k.substr(0, i) &&
        second.substr(second.size() - i) == k.substr(7 - i))
      ok = 1;
  }
  cout << (ok ? "YES" : "NO") << "\n";
}
