#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string str;
  cin >> str;
  if (str.size() >= 7) {
    if (str.compare("keyence") == 0) {
      cout << "YES" << endl;
      return 0;
    }
    for (int i = 0; i < 7 && i + 7 < str.size(); ++i) {
      string str2 = str.substr(0, i) + str.substr(str.size() - 7 + i, 7 - i);
      if (str2.compare("keyence") == 0) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
