#include <bits/stdc++.h>
int main() {
  std::string s, s1;
  int cout, k, a = 0, n = 0, tmp;
  std::cin >> s;
  k = s.length();
  for (int i = 0; i < k; i++) {
    if ((s[i] == 'k' || s[i] == 'e' || s[i] == 'y' || s[i] == 'n' ||
         s[i] == 'c') &&
        a < 7) {
      s1 += s[i];
      a++;
    } else {
      if (i - tmp > 1) {
        std::cout << "NO\n";
        return 0;
      }
      tmp = i;
    }
  }
  if (s1 == "keyence") {
    std::cout << "YES\n";
  } else {
    std::cout << "NO\n";
  }
  return 0;
}
