#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  string t = "keyence";
  for (long long i = s.size() - 1; i >= 0; i--) {
    if (s[i] == t.back()) {
      t.erase(prev(t.end()));
    }
    if (t.empty()) {
      cout << "YES" << '\n';
      return;
    }
  }
  cout << "NO" << '\n';
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long T = 1;
  while (T--) solve();
}
