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