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