#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int len = s.length(), i, j;
  bool f = false;
  for (i = 0; i < len; i++) {
    if (s[i] != t[i]) break;
  }
  int tlen = 6;
  for (j = len - 1; j >= 0; j--) {
    if (s[j] != t[tlen]) break;
    tlen--;
  }
  string ne = s.substr(0, i) + s.substr(j + 1, len - j);
  if (ne == t || j < 0)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
