#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string keye = "keyence";
  bool dame = false;
  string st;
  for (int i = 0; i < keye.size(); ++i) {
    st.push_back(S[i]);
    if (S[i] != keye[i]) {
      while (!S.empty() && S[i] != keye[i]) {
        S.erase(S.begin() + i);
      }
      dame = true;
    }
    if (dame) {
      break;
    }
  }
  if (st == keye || S == keye) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
