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