#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  string keyence = "keyence";
  for (size_t i = 0; i < s.length(); i++) {
    for (size_t j = 1; j <= keyence.length(); j++) {
      if (s.substr(i, j) == keyence.substr(0, j)) {
        for (size_t k = i + j; k < s.length(); k++) {
          if (s.substr(k, keyence.length() - j) ==
              keyence.substr(j, keyence.length())) {
            cout << "YES" << endl;
            return 0;
          }
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
