#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  string S;
  cin >> S;
  if (S == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i <= S.size() - 1; i++) {
    for (int j = 0; j <= S.size() - 1 - i; j++) {
      S.erase(S.at(i), S.at(j));
      if (S == "keyence") {
        cout << "YES" << endl;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
