#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
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;
}
const long long INF = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  long long pos = 0;
  string t = "keyence";
  long long n = s.length();
  for (long long i = 0; i < (n); i++) {
    if (s[i] == t[pos]) {
      pos++;
    }
  }
  if (pos == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
