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