#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string a = "keyence";
  string b = "";
  int m = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s.at(i) == a.at(m)) {
      b += s.at(i);
      m++;
    }
  }
  if (a == b) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
