#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string goal1 = "keyofscience";
  string goal2 = "keyence";
  if (S == goal1 || S == goal2) {
    cout << "YES" << endl;
    return 0;
  }
  size_t charlen = S.length();
  for (size_t i = 0; i < charlen; i++) {
    string tmp = S;
    tmp.erase(tmp.begin() + i);
    if (tmp == goal1 || tmp == goal2) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
