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