#include <bits/stdc++.h>
using namespace std;
int main() {
  string S, K = "keyence";
  cin >> S;
  bool b = false;
  int j = 0, count = 0;
  for (int i = 0; i < S.size(); i++) {
    if (j > K.size() - 1) {
      cout << "NO" << endl;
      return 0;
    }
    if (S.at(i) == K.at(j)) {
      j++;
      b = true;
    } else {
      if (b) {
        count++;
        if (count > 1) {
          cout << "NO" << endl;
          return 0;
        }
      }
      b = false;
    }
  }
  if (j == K.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
