#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  int count = 0;
  int rest = 0;
  for (int i = 0; i < s.size(); i++) {
    if (count < 2 && s.at(i) == key.at(rest)) {
      for (int j = rest; j < 7; j++) {
        if (i < s.size() && key.at(j) != s.at(i)) {
          count += 1;
          rest = j;
          break;
        }
        rest = j;
        i++;
      }
    }
  }
  string out;
  out = (rest == 6) ? "YES" : "NO";
  cout << out << endl;
}
