#include <bits/stdc++.h>
int main() {
  std::string str;
  std::cin >> str;
  std::string answer = "keyence";
  int pos = 0;
  for (int i = 0; i < answer.size(); ++i) {
    if (str[pos] == answer[i]) {
      ++pos;
    } else {
      while (pos < str.size()) {
        if (str[pos] == answer[i]) {
          ++pos;
          break;
        }
        ++pos;
      }
      if (pos == str.size() && (i != (answer.size() - 1))) {
        std::cout << "NO" << std::endl;
        return 0;
      }
    }
  }
  if (pos == str.size()) {
    std::cout << "YES" << std::endl;
  } else {
    std::cout << "NO" << std::endl;
  }
  return 0;
}
