#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(0);
  }
  for (int i = 0; i < 6; i++) {
    if ((0 == (int)str.find(sss.substr(0, 1 + i))) &&
        (-1 != (int)str.find(sss.substr(1 + i, 6 - i)))) {
      std::cout << "YES" << std::endl;
      exit(0);
    }
  }
  std::cout << "NO" << std::endl;
  return 0;
}
