#include <bits/stdc++.h>
using namespace std;
template <typename A, size_t N, typename T>
void Fill(A (&array)[N], const T &val) {
  fill((T *)array, (T *)(array + N), val);
}
template <class T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
const long long INF = 1ll << 60;
const long long MOD = 1000000007;
double EPS = 1e-10;
string S;
int main() {
  cin >> S;
  string key = "keyence";
  int j = 0;
  for (int64_t i = 0; i < S.length(); i++) {
    if (j == key.length()) {
      cout << "YES" << endl;
      return 0;
    }
    if (key[j] == S[i]) j++;
  }
  cout << "NO" << endl;
  return 0;
}
