#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ans = "keyence";
  int k = 0, start, ok = 0;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    start = i;
    if (s.at(i) != ans.at(ok)) {
      k = 0;
      while (k + i < s.size() && s.at(start + k) != ans.at(ok)) k++;
      s.erase(start, k);
      break;
    }
    ok++;
  }
  if (s != ans)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}
