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