#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ss = "keyence";
  cin >> s;
  int j = 0;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == ss[j]) {
      j++;
    }
    if (j >= ss.size()) break;
  }
  if (j == ss.size())
    cout << "YES" << '\n';
  else
    cout << "NO" << '\n';
  return 0;
}
