#include <bits/stdc++.h>
using namespace std;
bool fnd(bool* ok) {
  for (int i = 0; i < 7; i++) {
    if (!ok[i]) return false;
  }
  return true;
}
int main(void) {
  string s;
  cin >> s;
  string keyn = "keyence";
  bool ok[7] = {
      false,
  };
  int pos = 0;
  for (int i = 0; i < s.length(); i++) {
    if (fnd(ok)) {
      cout << "YES";
      return 0;
    }
    if (s[i] == keyn[pos]) {
      ok[pos] = true;
      pos++;
    }
  }
  if (fnd(ok)) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
  return 0;
}
