#include <bits/stdc++.h>
using namespace std;
template <typename F, typename S>
std::ostream& operator<<(ostream& os, const pair<F, S>& p) {
  os << "(" << p.first << "," << p.second << ")";
  return os;
}
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& v) {
  os << "[";
  for (const T& a : v) {
    os << a << ", ";
  }
  os << "]";
  return os;
}
template <typename K, typename V>
ostream& operator<<(ostream& os, const map<K, V>& m) {
  os << "{";
  for (const auto& p : m) {
    os << p.first << ":" << p.second << ", ";
  }
  os << "]";
  return os;
}
int main() {
  string s;
  cin >> s;
  long long cur = 0;
  string k = "keyence";
  for (char c : s) {
    if (cur >= k.size()) break;
    if (c == k[cur]) ++cur;
  }
  if (cur >= k.size()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
