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