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