#include <bits/stdc++.h>
int pos = -1;
bool check(const std::string& S, const std::string& key) {
  auto itr = S.find(key);
  if (itr != S.npos) {
    pos = itr;
    return true;
  } else
    return false;
}
int main() {
  std::string S;
  std::cin >> S;
  std::string key{"keyence"};
  bool ans = false;
  for (size_t i = 1; i < key.size(); i++) {
    std::string left = key.substr(0, i);
    std::string right = key.substr(i, key.size() - i);
    bool l = check(S, left);
    int offset = pos + left.size();
    std::string Sr = S.substr(offset);
    if (l && check(Sr, right)) {
      ans = true;
      break;
    }
  }
  std::cout << (ans ? "YES" : "NO") << std::endl;
}
