#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;
  int a = 0;
  int once = false, twice = false;
  cin >> s;
  for (int i = 0, i_len = (s.size()); i < i_len; i++) {
    if (a >= s.size()) {
      cout << "NO" << endl;
      return 0;
    }
    if (s[i] == t[a]) {
      a++;
      if (once) twice = true;
    } else {
      once = true;
      if (twice) {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  cout << (a == t.size() ? "YES" : "NO") << endl;
}
