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