#include <bits/stdc++.h>
using namespace std;
int main() {
  string st;
  string key = "keyence";
  cin >> st;
  int j = 0;
  for (int i = 0; i < st.size(); ++i) {
    if (st[i] == key[j]) j++;
  }
  if (j == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
