#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  auto org = s;
  auto flg = false;
  for (int i = 0; i < s.size(); ++i)
    for (int j = 0; j < s.size() - 1 - i; ++j) {
      s.erase(j, j + i);
      if (s == "keyence") flg |= true;
    }
  if (flg)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
