#include <bits/stdc++.h>
using namespace std;
bool solve(string& s) {
  string keyence = "keyence";
  size_t i = 0, pos = 0;
  while (i < s.size() && pos < keyence.size()) {
    if (s[i] == keyence[pos]) {
      i++;
      pos++;
    } else {
      i++;
    }
  }
  if (i == s.size() && pos == keyence.size()) return true;
  return false;
}
int main() {
  string s;
  cin >> s;
  cout << (solve(s) ? "YES" : "NO") << endl;
}
