#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Vi = vector<int>;
using Vl = vector<ll>;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;
constexpr int I_INF = numeric_limits<int>::max();
constexpr ll L_INF = numeric_limits<ll>::max();
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  string Key = "keyence";
  int cur = 0;
  Vi pos;
  for (int i = 0; i < (int)S.size(); i++) {
    if (S[i] == Key[cur]) {
      pos.push_back(i);
      ++cur;
    }
    if (cur == (int)Key.size()) {
      break;
    }
  }
  bool ok = false;
  bool sumi = false;
  if (pos.size() == Key.size()) {
    ok = true;
    if (pos[0] != 0) sumi = true;
    for (int i = 0; i < (int)pos.size() - 1; i++) {
      if (pos[i + 1] - pos[i] != 1) {
        if (sumi) {
          ok = false;
          break;
        } else {
          sumi = true;
        }
      }
    }
    if (sumi) {
      if (pos.back() != (int)S.size() - 1) {
        ok = false;
      }
    }
  }
  cout << (ok ? "YES" : "NO") << endl;
  return 0;
}
