#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string answer = "keyence";
  int size, i;
  size = s.size();
  if (s == answer) {
    cout << "YES" << endl;
    return 0;
  }
  if (size < 8) {
    cout << "NO" << endl;
    return 0;
  }
  for (i = 0; i < size; i++) {
    string tmp;
    tmp = s;
    tmp.erase(tmp.begin() + i, tmp.begin() + i + size - 7);
    if (tmp == answer) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
