#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
signed main() {
  string s;
  cin >> s;
  string t = "keyence";
  int n = s.size();
  for (long long i = 0; i < (long long)(n); i++) {
    if (t.empty()) break;
    if (t[0] == s[i]) {
      t = t.substr(1);
    }
  }
  if (t.empty())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
