#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string keyence = "keyence";
  size_t p = 0;
  for (char c : s) {
    if (c == keyence[p]) ++p;
    if (p == keyence.size()) break;
  }
  cout << (p == keyence.size() ? "YES" : "NO") << endl;
  return 0;
}
