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