#include <bits/stdc++.h>
using namespace std;
void _main();
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  _main();
}
const int inf = INT_MAX / 2;
const long long infl = 1LL << 60;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
void _main() {
  string S;
  cin >> S;
  const string keyence = "keyence";
  int pos = 0;
  for (const char c : S) {
    if (c == keyence[pos]) {
      ++pos;
      if (pos == keyence.length()) {
        break;
      }
    }
  }
  if (pos == keyence.length()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
