#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  bool crit = true;
  int length = s.size();
  auto pos = std::search(s.begin(), s.end(), t.begin(), t.end());
  if (pos != s.end()) {
    bool crit1 = (std::string(s.begin(), pos) == "");
    bool crit2 = (std::string(pos, s.end()) == t);
    if ((crit1 == false) && (crit2 == false)) crit = false;
  } else {
    string t1 = "keyenc";
    auto pos = std::search(s.begin(), s.end(), t1.begin(), t1.end());
    if (pos != s.end()) {
      if (std::string(s.begin(), pos) != "")
        crit = false;
      else if (s.substr(length - 1, 1) != "e")
        crit = false;
    } else {
      t1 = "keyen";
      auto pos = std::search(s.begin(), s.end(), t1.begin(), t1.end());
      if (pos != s.end()) {
        if (std::string(s.begin(), pos) != "")
          crit = false;
        else if (s.substr(length - 2, 2) != "ce")
          crit = false;
      } else {
        t1 = "keye";
        auto pos = std::search(s.begin(), s.end(), t1.begin(), t1.end());
        if (pos != s.end()) {
          if (std::string(s.begin(), pos) != "")
            crit = false;
          else if (s.substr(length - 3, 3) != "nce")
            crit = false;
        } else {
          t1 = "key";
          auto pos = std::search(s.begin(), s.end(), t1.begin(), t1.end());
          if (pos != s.end()) {
            if (std::string(s.begin(), pos) != "")
              crit = false;
            else if (s.substr(length - 4, 4) != "ence")
              crit = false;
          } else {
            t1 = "ke";
            auto pos = std::search(s.begin(), s.end(), t1.begin(), t1.end());
            if (pos != s.end()) {
              if (std::string(s.begin(), pos) != "")
                crit = false;
              else if (s.substr(length - 5, 5) != "yence")
                crit = false;
            } else {
              t1 = "k";
              auto pos = std::search(s.begin(), s.end(), t1.begin(), t1.end());
              if (pos != s.end()) {
                if (std::string(s.begin(), pos) != "")
                  crit = false;
                else if (s.substr(length - 6, 6) != "eyence")
                  crit = false;
              }
            }
          }
        }
      }
    }
  }
  if (crit)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
