#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t("keyence");
  int cnt = 0;
  for (const char c : s) {
    if (cnt < t.size() && t[cnt] == c) {
      cnt++;
    }
  }
  cout << (cnt == t.size() ? "YES" : "NO") << endl;
  return 0;
}
