#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;
  ll t = 0, s = 0;
  cin >> S;
  T = "keyence";
  for (long long i = 0; i < (S.size()); ++i) {
    if (t == 7 && s == 0) {
      cout << "YES" << endl;
      return 0;
    } else if (t == 7 && s == 1) {
      cout << "NO" << endl;
      return 0;
    }
    if (S.at(i) == T.at(t)) {
      t++;
    } else {
      s++;
      while (i < S.size() && S.at(i) != T.at(t)) {
        i++;
      }
      i--;
      if (s == 2) {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  if (t == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
