#include <bits/stdc++.h>
using ll = long long;
using namespace std;
template <class T>
inline bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  if (regex_search(s, regex("(k.*eyence)")) ||
      regex_search(s, regex("(ke.*yence)")) ||
      regex_search(s, regex("(key.*ence)")) ||
      regex_search(s, regex("(keye.*nce)")) ||
      regex_search(s, regex("(keyen.*ce)")) ||
      regex_search(s, regex("(keyenc.*e)")) ||
      regex_search(s, regex("(keyence)"))) {
    std::cout << "YES" << '\n';
  } else {
    std::cout << "NO" << '\n';
  }
  return 0;
}
