#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll MOD = 1000000007;
const ll INF = 10000000000000;
int main() {
  string S, T;
  cin >> S;
  T = "keyence";
  for (long long i = 0; i < (7); ++i) {
  NEXT:
    ll j = 0, t = 0;
    while (j < i) {
      if (S.at(j) != T.at(t)) {
        goto NEXT;
      } else {
        j++;
        t++;
      }
    }
    j += S.size() - 7;
    while (j < S.size()) {
      if (S.at(j) != T.at(t)) {
        goto NEXT;
      } else {
        j++;
        t++;
      }
    }
    cout << "YES" << endl;
    return 0;
  }
  cout << "NO" << endl;
}
