#include <bits/stdc++.h>
int main() {
  std::string S;
  std::cin >> S;
  bool check = false;
  int remnum = S.length() - 7;
  for (int j = 0; j < S.length() - remnum; j++) {
    std::string temp1 = S.substr(0, j);
    if (j == S.length() - remnum - 1) {
      if (temp1 == "keyence") check = true;
      break;
    } else {
      std::string temp2 = S.substr(j + S.length() - 7);
      if (temp1 + temp2 == "keyence") check = true;
      std::cout << temp1 + temp2 << " ";
    }
  }
  if (S == "keyence")
    std::cout << "YES" << std::endl;
  else if (check)
    std::cout << "YES" << std::endl;
  else
    std::cout << "NO" << std::endl;
  return 0;
}
