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