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