#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const long long INF = 1LL << 60;
const int IINF = 1000000000;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  string S;
  cin >> S;
  int n = S.size();
  const string keyence = "keyence";
  bool isOK = false;
  int index = 0;
  for (int i = 0; i < (n); i++) {
    if (S[i] == keyence[index]) {
      index++;
    }
    if (index == keyence.size()) isOK = true;
  }
  if (isOK)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
