#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  string K = "keyence";
  cin >> S;
  int pos = 0;
  int cnt = 0;
  for (int i = 0; i < K.length(); i++, pos++) {
    if (pos >= S.length()) {
      cout << "NO" << endl;
      return 0;
    }
    if (K[i] != S[pos]) {
      while (pos < S.length() && K[i] != S[pos]) pos++;
      cnt++;
    }
  }
  if (cnt == 0 || (cnt == 1 && S.length() == pos))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
