#include <bits/stdc++.h>
int main() {
  std::string S;
  std::cin >> S;
  if (S == "keyence") {
    std::cout << "YES" << std::endl;
    return 0;
  }
  for (long long int i = 0; i < S.length(); ++i) {
    for (int j = i; j < S.length(); ++j) {
      std::string res = (i > 0 ? S.substr(0, i - 1) : "");
      res += S.substr(j + 1, S.length() - j - 1);
      if (res == "keyence") {
        std::cout << "YES" << std::endl;
        return 0;
      }
    }
  }
  std::cout << "NO" << std::endl;
}
