#include <bits/stdc++.h>
int main(void) {
  std::string s, t;
  std::cin >> s;
  t = "keyence";
  int point = 0;
  bool flag = false;
  for (size_t i = 0; i < s.length(); i++) {
    if (flag == false && s[i] == t[point]) {
      point++;
      if (point >= t.length()) {
        std::cout << "YES" << std::endl;
        return 0;
      }
    } else {
      flag = true;
    }
  }
  std::cout << "NO" << std::endl;
  return 0;
}
