#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string str = "keyence";
  int mark = 0;
  for (int i = 0; i < s.size(); i++) {
    if (str[mark] == s[i]) {
      mark++;
    }
    if (mark == str.size()) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
