#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  int n = s.length();
  bool flag = false;
  for (int i = 0; i <= n; ++i) {
    if (s.substr(0, i) + s.substr(n - (7 - i)) == string("keyence"))
      flag = true;
  }
  cout << (flag ? "YES" : "NO") << endl;
  return 0;
}
