#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int k = s.size() - 7;
  for (int i = 0; i < s.size() - 7; i++) {
    string t = "";
    for (int j = i; j < i + 7; j++) t += s[j];
    if (t == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
