#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int f = 0;
  int i = 0;
  cin >> s;
  vector<string> list = {"k",    "eyence", "ke",    "yence", "key",    "ence",
                         "keye", "nce",    "keyen", "ce",    "keyenc", "e"};
  while (f == 0 && i < 12) {
    if (s.find(list[i]) != string::npos &&
        s.find(list[i + 1]) != string::npos &&
        s.find(list[i]) < s.find(list[i + 1])) {
      f = 1;
    } else {
      i += 2;
    }
  }
  if (f == 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
