#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  string key = "keyence";
  cin >> S;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == key[0]) {
      key = key.substr(1, S.size() - 1);
    }
    if (key.size() == 0) break;
  }
  cout << (key.size() == 0 ? "YES" : "NO") << endl;
  return 0;
}
