#include <bits/stdc++.h>
using namespace std;
template <typename T>
void cins(vector<T>& arr) {
  for (T& e : arr) cin >> e;
}
int main(void) {
  const string base = "keyence0";
  string str;
  cin >> str;
  int idx = 0;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == base[idx]) {
      idx++;
    }
  };
  cout << (idx == base.length() - 1 ? "YES" : "NO") << endl;
  return 0;
}
