#include <bits/stdc++.h>
using namespace std;
int main() {
  int trim = 1;
  string S;
  string K = "keyence";
  cin >> S;
  int j = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == K[j]) {
      if (trim == 0) trim = -1;
      j++;
      if (j == K.size()) break;
    } else if (trim >= 0) {
      trim = 0;
    } else {
      break;
    }
  }
  if (j == K.size()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
