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