#include <bits/stdc++.h>
using namespace std;
const int MM = 1000000000;
const int MOD = MM + 7;
const int MAX = 510000;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
const long long INF = 1LL << 60;
const double pi = acos(-1.0);
int main() {
  string s;
  cin >> s;
  if (s == "keyence") {
    cout << "YES" << endl;
    return 0;
  }
  for (long long i = 0; i < s.size() - 1; i++) {
    for (long long j = i + 1; j < s.size(); j++) {
      string t = "";
      for (long long k = 0; k < s.size(); k++) {
        if (i <= k && k <= j) continue;
        t.push_back(s[k]);
      }
      if (t == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
