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