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