#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int count = 0, in = 0;
  string k = "keyence";
  int i = 0;
  while (i < s.size()) {
    if (s[i] == k[in] && in < 7) {
      in++;
      i++;
    } else {
      count++;
      if (in != 7) {
        while (s[i] != k[in] && i <= s.size()) {
          i++;
        }
      } else {
        i = s.size();
      }
    }
  }
  if (count > 1 || in != 7)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}
