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