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