#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  vector<pair<string, string>> ary = {
      {"k", "eyence"}, {"ke", "yence"}, {"key", "ence"}, {"keye", "nce"},
      {"keyen", "ce"}, {"keyenc", "e"}, {"keyence", ""}};
  for (auto s : ary) {
    auto f_pos = str.find(s.first);
    auto s_pos = str.find(s.second);
    if (f_pos != string::npos && s_pos != string::npos && f_pos < s_pos) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
