#include <bits/stdc++.h>
using namespace std;
string second = "keyence";
int main() {
  std::ios::sync_with_stdio(false);
  string l;
  cin >> l;
  int i = 0;
  int j = 0;
  while (i < second.length() && j < l.length()) {
    if (second[i] == l[j]) {
      i++;
    }
    j++;
  }
  if (i == 7) {
    cout << "YES"
         << "\n";
  } else {
    cout << "NO"
         << "\n";
  }
  return 0;
}
