#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string T = "keyence";
  int N = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S.at(i) == T.at(N)) N++;
    if (N == T.size() - 1) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
