#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  std::cin >> s;
  string key = "keyence";
  int j = 0;
  bool consumed = false;
  bool ok = true;
  for (int i = 0; i < (int)(s.size()); i++) {
    if (s[i] == key[j]) {
      j++;
    } else {
      if (consumed) {
        ok = false;
        break;
      }
      while (s[i] != key[j]) {
        if (i == s.size() - 1) {
          ok = false;
          break;
        }
        i++;
      }
      j++;
      consumed = true;
    }
  }
  std::cout << (ok ? "YES" : "NO") << std::endl;
  return 0;
}
