#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<vector<ll>>;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
const int ddx[8] = {0, 1, 1, 1, 0, -1, -1, -1};
const int ddy[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll MOD = 1000000007;
const ll INF = 1000000000000000000L;
void Main() {
  string S;
  cin >> S;
  ll N = S.size();
  if (S == "keyence") {
    cout << "YES" << '\n';
    return;
  }
  for (ll i = 0; i < (ll)(N); i++) {
    for (ll j = i + 1; j < (ll)(N); j++) {
      string t = "";
      for (ll k = 0; k < (ll)(N); k++) {
        if (i <= k && k <= j) continue;
        t += S[k];
      }
      if (t == "keyence") {
        cout << "YES" << '\n';
        return;
      }
    }
  }
  cout << "NO" << '\n';
}
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(15);
  Main();
  return 0;
}
