#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, k = "keyence";
  cin >> s;
  bool fl = false;
  for (int i = 0; i <= 7; i++) {
    if (s.substr(0, i) == k.substr(0, i) &&
        s.substr(s.size() - 6 + i) == k.substr(1 + i)) {
      fl = true;
      break;
    }
  }
  if (fl)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
