#include <bits/stdc++.h>
using namespace std;
int main() {
  string K = "keyence";
  string S;
  cin >> S;
  bool flg = false;
  for (int i = 0; i < K.size(); i++) {
    int a = S.find(string(K.begin(), K.begin() + i));
    if (a != string::npos &&
        S.find(string(K.begin() + i, K.end()), a + i) != string::npos)
      flg = true;
  }
  if (flg)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
