#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 = 0; j < n; j++) {
      for (int p = 0; p < n; p++) {
        for (int q = 0; q < n; q++) {
          if (s.substr(i, j - i + 1) + s.substr(p, q - p + 1) == "keyence") {
            cout << "YES" << endl;
            return 0;
          }
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
