#include <bits/stdc++.h>
using namespace std;
int main() {
  string S, base = "keyence";
  cin >> S;
  bool flag = false;
  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;
}
