#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  int k = s.size() - key.size();
  if (k < 0) {
    cout << "NO" << endl;
    return 0;
  }
  for (int i = 0; i < 7 + k; i++) {
    string temp = s;
    if (k > 0) temp.erase(temp.begin() + i, temp.begin() + i + k - 1);
    if (key == temp) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
