#include <bits/stdc++.h>
using namespace std;
using i64 = long long int;
int main() {
  string S;
  cin >> S;
  const string ref = "keyence";
  int idx = 0;
  for (auto &&c : S) {
    if (ref[idx] == c) {
      ++idx;
      if (idx == ref.size()) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
