#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  vector<vector<string>> v = {
      {"k", "eyence"}, {"ke", "yence"}, {"key", "ence"}, {"keye", "nce"},
      {"keyen", "ce"}, {"keyenc", "e"}, {"keyence", ""},
  };
  string ans = "NO";
  for (int i = 0; i <= v.size() - 1; ++i) {
    string l = v[i][0];
    string r = v[i][1];
    bool lok = false, rok = false;
    for (int j = 0; j <= S.size() - 1; ++j) {
      if (S.substr(j, l.size()) == l) {
        lok = true;
        j += l.size();
      }
      if (lok && S.substr(j, r.size()) == r) {
        rok = true;
      }
      if (lok && rok) ans = "YES";
    }
  }
  cout << ans << endl;
  return 0;
}
