#include <bits/stdc++.h>
using namespace std;
template <typename T>
std::string printVector(const std::vector<T> &data) {
  std::stringstream ss;
  std::ostream_iterator<T> out_it(ss, ", ");
  ss << "[";
  std::copy(data.begin(), data.end() - 1, out_it);
  ss << data.back() << "]";
  return ss.str();
}
const int MOD = 1e9 + 7;
const long long LINF = 1001002003004005006ll;
const int INF = 1001001001;
int main(int argc, char const *argv[]) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string str;
  cin >> str;
  int size = ((int)(str).size());
  bool ok = 0;
  if (str == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = (0); i < (size); ++i) {
    for (int j = (i); j < (size); ++j) {
      string newstr = str;
      newstr.erase(newstr.begin() + i, newstr.begin() + j + 1);
      cerr << "newstr"
           << " = " << (newstr) << endl;
      int newsize = ((int)(newstr).size());
      for (int k = (0); k < (newsize - 6); ++k) {
        string substr = newstr.substr(k, 7);
        cerr << "substr"
             << " = " << (substr) << endl;
        if (substr == "keyence") ok = 1;
      }
    }
  }
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
