#include <bits/stdc++.h>
using namespace std;
template <typename T>
ostream &operator<<(ostream &os, const vector<T> &vec) {
  os << "[";
  for (const auto &v : vec) {
    os << v << ",";
  }
  os << "]";
  return os;
}
template <typename T, typename U>
ostream &operator<<(ostream &os, const pair<T, U> &p) {
  os << "(" << p.first << ", " << p.second << ")";
  return os;
}
void solve() {
  string s;
  cin >> s;
  int N = s.size();
  string t = "keyence";
  sort((t).begin(), (t).end());
  int k = N - 7;
  for (int i = 0; i <= N - k; i++) {
    string u = s.substr(0, i) + s.substr(i + k);
    sort((u).begin(), (u).end());
    if (u == t) {
      cout << "YES"
           << "\n";
      return;
    }
  }
  cout << "NO"
       << "\n";
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout.setf(ios::fixed);
  cout.precision(16);
  solve();
}
