#include <bits/stdc++.h>
using ll = long long;
using ull = unsigned long long;
template <class T>
using vec = std::vector<T>;
template <class T>
using vvec = vec<vec<T>>;
constexpr std::size_t operator""_sz(ull n) { return std::size_t(n); }
int main() {
  using namespace std;
  string s;
  cin >> s;
  bool ans{};
  for (int i = 0; i < s.size(); ++i)
    for (int l = 0; l + i < s.size(); ++l) {
      string sub;
      sub += s.substr(0, i);
      sub += s.substr(i + l + 1);
      if (sub == "keyence") {
        ans = true;
        break;
      }
    }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
