#include <bits/stdc++.h>
using namespace std;
const int mod = (int)1e9 + 7;
void dbg() { cerr << "\n"; }
template <typename T, typename... T2>
void dbg(const T& fst, const T2&... rst) {
  cerr << fst << ": ";
  dbg(rst...);
}
template <class T>
void amin(T& a, T b) {
  a = min(a, b);
}
template <class T>
void amax(T& a, T b) {
  a = max(a, b);
}
int main() {
  string s;
  cin >> s;
  string mt = "keyence";
  int n = (int)(s).size();
  for (int(i) = 0; (i) < (n); (i)++) {
    for (int(j) = 0; (j) < (n + 1 - i); (j)++) {
      string ts = s.substr(0, i) + s.substr(i + j);
      if (mt == ts) {
        cout << "YES\n";
        return 0;
      }
    }
  }
  cout << "No\n";
  return 0;
}
