#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s, t = "keyence";
  cin >> s;
  for (long long i = 0; i < 8; i++) {
    if ((string)(s.substr(0, i) + s.substr(s.size() - i)) == t) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
