#include <bits/stdc++.h>
using namespace std;
int main() {
  string S, base = "keyence";
  cin >> S;
  std::regex re(".*" + base);
  std::smatch match;
  bool flag = regex_match(S, match, re) == 1;
  if (!flag) {
    std::regex re(base + ".*");
    std::smatch match;
    flag = regex_match(S, match, re) == 1;
    if (!flag) {
      for (int i = 0; i < 7; i++) {
        std::regex re(base.substr(i, 1) + ".*" +
                      base.substr(i + 1, base.length() - (i + 1)));
        std::smatch match;
        if (!flag && regex_match(S, match, re)) flag = true;
      }
    }
  }
  cout << (flag ? "YES" : "NO") << endl;
}
