#include <bits/stdc++.h>
int main() {
  std::string s;
  std::cin >> s;
  std::string t = "keyence";
  int ptr_t = 0;
  for (int i = 0; i < s.length(); i++) {
    if (ptr_t >= t.length()) {
      std::cout << "YES" << std::endl;
      return 0;
    }
    if (s[i] == t[ptr_t]) {
      ptr_t++;
    }
  }
  if (ptr_t >= t.length()) {
    std::cout << "YES" << std::endl;
    return 0;
  }
  std::cout << "NO" << std::endl;
}
