#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  string tmp = "keyence";
  cin >> S;
  bool ret = false;
  for (int i = 0; i <= 7; i++) {
    string s1 = tmp.substr(0, i);
    string s2 = tmp.substr(i, 7);
    int f1 = S.find(s1);
    int f2 = S.find(s2);
    if ((string::npos != f1) && (string::npos != f2) && f1 < f2) {
      ret = true;
      break;
    }
  }
  if (ret)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
