#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";
  for (int(i) = (1); (i) < ((int)(mt).size() + 1); (i)++) {
    string b1 = mt.substr(0, i);
    string b2 = mt.substr(i);
    if ((int)(b2).size() == 0) {
      int ps = s.find(b1);
      if (ps != -1) {
        cout << "YES\n";
        return 0;
      }
    } else {
      int ps = s.find(b1);
      if (ps != -1) {
        ps = s.find(b2, ps + 1);
        if (ps != -1) {
          cout << "YES\n";
          return 0;
        }
      }
    }
  }
  cout << "No\n";
  return 0;
}
