#include <bits/stdc++.h>
using namespace std;
int main() {
  string s = "keyence";
  string t;
  cin >> t;
  int n = t.size();
  bool hantei = true;
  int koko = 0;
  for (int i = 0; i < 7; i++) {
    if (s[i] != t[i]) {
      string ato = s.substr(i, 7 - i + 1);
      for (int j = i + 1; j < n - i; j++) {
        string b = t.substr(j, 7 - i);
        if (ato == b) {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
