#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using P = pair<int, int>;
int main() {
  string S;
  cin >> S;
  int num = S.size();
  bool ok = false;
  for (int i = 0; i < (int)(8); i++)
    if (S.substr(0, i) + S.substr(num - 1 - i, 7 - i) == "keyence") {
      ok = true;
      break;
    }
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
