#include <bits/stdc++.h>
int main() {
  std::string str, sss = "keyence";
  std::cin >> str;
  if (-1 != (int)str.find("keyence")) {
    std::cout << "YES" << std::endl;
    exit(1);
  }
  std::cout << "NO" << std::endl;
  return 0;
}
