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