#include <bits/stdc++.h>
using ll = long long;
using namespace std;
constexpr int MOD = 1e9 + 7;
constexpr ll MOD_LL = ll(1e9) + 7;
int main(void) {
  string s;
  cin >> s;
  string keyence = "keyence";
  int cnt = 0;
  int no = 0;
  bool ok = false;
  for (int i = 0; i < (int)s.size(); ++i) {
    if (keyence[cnt] == s[i]) {
      cnt++;
      if (!ok) {
        ok = true;
      }
    } else {
      if (ok || no == 0) {
        no++;
        ok = false;
      }
    }
  }
  if (cnt == (int)keyence.size() && no < 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
