#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  int N = (int)S.size();
  bool is = false;
  if (S == key) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < N; i++) {
    for (int j = N; j > i; j--) {
      string af = S;
      af.erase(i, j);
      if (af == key) is = true;
    }
  }
  if (is)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
