#include <bits/stdc++.h>
using namespace std;
template <typename T>
std::string tostr(const T& t) {
  std::ostringstream os;
  os << t;
  return os.str();
}
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  for (int i = 0; i < s.length(); i++) {
    int j = 0, flag = 0;
    for (int l = i; l < s.length(); l++) {
      if (s[l] == k[j] && flag == 0) {
        j++;
        flag = 1;
      } else if (s[l] == k[j] && flag == 1) {
        j++;
      } else if (flag == 1) {
        flag = 2;
      } else if (s[l] == k[j] && flag == 2) {
        j++;
        flag = 3;
      } else if (s[l] == k[j] && flag == 3) {
        j++;
      } else if (flag >= 3) {
        flag++;
      }
    }
    if (j == 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
