#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  bool res = false;
  if (s.find("keyence") != string::npos) {
    res = true;
  }
  int ind = s.find("k");
  if (ind != string::npos && s.substr(ind + 1).find("eyence") != string::npos) {
    res = true;
  }
  ind = s.find("ke");
  if (ind != string::npos && s.substr(ind + 2).find("yence") != string::npos) {
    res = true;
  }
  ind = s.find("key");
  if (ind != string::npos && s.substr(ind + 3).find("ence") != string::npos) {
    res = true;
  }
  ind = s.find("keye");
  if (ind != string::npos && s.substr(ind + 4).find("nce") != string::npos) {
    res = true;
  }
  ind = s.find("keyen");
  if (ind != string::npos && s.substr(ind + 5).find("ce") != string::npos) {
    res = true;
  }
  ind = s.find("keyenc");
  if (ind != string::npos && s.substr(ind + 6).find("e") != string::npos) {
    res = true;
  }
  if (res) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
