#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  string key_head[] = {"k", "ke", "key", "keye", "keyen", "keyenc"};
  string key_tail[] = {"eyence", "yence", "ence", "nce", "ce", "e"};
  for (int i = 0; i < 6; i++) {
    if (s.find(key_head[i]) != -1) {
      int j = s.find(key_head[i]);
      if (s.find(key_tail[i]) != -1 &&
          s.find(key_tail[i]) > j + key_head[i].size()) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
