#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  for (ll i = 0; i < s.size(); ++i) {
    if (s[i] == k.front()) k.erase(k.begin());
    if (k.empty()) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
}
