#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
char ans[] = "keyence";
int main() {
  string str;
  cin >> str;
  int n = str.length();
  for (int i = 0; i < (int)8; ++i) {
    if (str.substr(0, i) + str.substr(n - i - 1, 7 - i) == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
