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