#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> ind;
  string S;
  string k = "keyence";
  int index = 0;
  bool broke = false;
  cin >> S;
  for (int i = 0; i < S.length(); i++) {
    if (S[i] == k[index]) {
      index++;
    } else {
      if (ind.size() > 0) {
        if (i - ind.back() > 1) {
          cout << "NO";
          broke = true;
          break;
        } else {
          ind.push_back(i);
        }
      } else {
        ind.push_back(i);
      }
    }
  }
  if (!broke) {
    if (index < 6)
      cout << "NO";
    else
      cout << "YES";
  }
  return 0;
}
