#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  string S;
  cin >> S;
  string k = "keyence";
  string str1, str2;
  int find1, find2;
  for (int i = 0; i < 8; i++) {
    str1 = k.substr(0, i);
    str2 = k.substr(i, 7 - i);
    find1 = S.find(str1);
    find2 = S.find(str2);
    if (find1 != string::npos && find2 != string::npos) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
