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