#include <bits/stdc++.h>
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
using namespace std;
int main(int argc, char const *argv[]) {
  string s, t;
  bool f = false;
  t = "keyence";
  cin >> s;
  if (t == s) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < (int)s.size(); i++) {
    if (s[i] == t[i])
      continue;
    else {
      for (int j = (int)i; j < (int)s.size() - i; j++) {
        if (s[j] == t[i]) {
          i++;
          if (i == 6) {
            cout << "YES" << endl;
            return 0;
          }
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
