#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
using ll = long long;
using pll = pair<ll, ll>;
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;
}
int main() {
  string S;
  cin >> S;
  int n = S.length();
  if (S == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < (int)(n); i++)
    for (int j = i + 1; j <= n; j++) {
      string s = S;
      s.erase(i, j);
      if (s == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  cout << "NO" << endl;
  return 0;
}
