#include <bits/stdc++.h>
using namespace std;
string s, k = "keyence";
int main() {
  cin >> s;
  if (s == k) {
    cout << "YES" << endl;
    return 0;
  }
  int n = s.size();
  for (int i = 0; i < n; i++) {
    for (int j = i; j < n; j++) {
      string t = "";
      for (int k = 0; k < n; k++) {
        if (k < i && k > j) {
          t += s[k];
        }
      }
      if (t == k) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
