#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string S;
  cin >> S;
  if (S.size() == 7 && S == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  int trimn = S.size() - 7;
  for (int i = 0; i < trimn; ++i) {
    string ss = S;
    ss.erase(i, trimn);
    if (ss == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
