#include <bits/stdc++.h>
using namespace std;
const long long dx[] = {0, -1, 0, 1};
const long long dy[] = {1, 0, -1, 0};
const long long MOD = (1000000007);
const long long INF = (1LL << 60) - 1;
const double EPS = (1 >> 30);
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
using Graph = vector<vector<pair<long long, long long>>>;
using Ki = vector<vector<long long>>;
using Vi = vector<long long>;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(10);
  string s;
  cin >> s;
  long long n = s.size();
  long long a = n - 7;
  for (long long i = 0; i < a + 1; i++) {
    string t = "", k = "";
    t = s.substr(0, i);
    k = s.substr(n - 7 + i, 7 - i);
    if (t + k == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
