#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  string S;
  cin >> S;
  string T = "keyence";
  int Tpos = 0;
  int rem = 0;
  bool same = true;
  bool ok = false;
  for (int i = 0; i < (S.size()); ++i) {
    if (S.at(i) == T.at(Tpos)) {
      if (Tpos == 6) {
        ok = true;
        if (i != S.size() - 1) ++rem;
        break;
      }
      ++Tpos;
      same = true;
    } else {
      if (same == true) ++rem;
      same = false;
    }
  }
  if (rem < 2 && ok == true)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
