#include <bits/stdc++.h>
using namespace std;
string s, w = "keyence";
int main() {
  cin >> s;
  transform(s.begin(), s.end(), s.begin(), ::tolower);
  int p, k = 0;
  for (int i = 0; i < w.size(); i++) {
    if (k == s.size()) {
      cout << "no";
      return 0;
    }
    p = s.find(w[i], k);
    if (p == -1) {
      cout << "NO";
      return 0;
    }
    k = p + 1;
  }
  cout << "YES";
  return 0;
}
