#include <bits/stdc++.h>
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
using namespace std;
int main() {
  string t = "keyence";
  string s;
  cin >> s;
  int l = 0, r = 0;
  int sl = s.size(), tl = t.size();
  while (true) {
    bool d = false;
    if (s[l] == t[l]) {
      l++;
      d = true;
    }
    if (s[sl - r - 1] == t[tl - r - 1]) {
      r++;
      d = true;
    }
    if (!d) break;
  }
  cout << (l + r == tl ? "YES" : "NO") << endl;
}
