#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() {
  int n;
  string s;
  cin >> s;
  string mt = "keyence";
  int j = 0;
  for (int(i) = 0; (i) < ((int)(mt).size()); (i)++) {
    char cr = mt[i];
    int ps = s.find(cr, j);
    if (ps == -1) {
      cout << "NO\n";
      return 0;
    }
    j = ps + 1;
  }
  cout << "YES\n";
  return 0;
}
