#include <bits/stdc++.h>
int main() {
  std::string str;
  std::cin >> str;
  std::string keyence = "keyence";
  int idx = 0;
  for (auto c : str) {
    if (c == keyence[idx]) ++idx;
  }
  if (idx == keyence.size())
    std::cout << "YES" << std::endl;
  else
    std::cout << "NO" << std::endl;
}
