#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pa = pair<ll, ll>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
const ll MOD = 1e9 + 7;
const ll INF = 1e14;
const long double EPS = 1e-11;
void init() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(15);
}
int main() {
  init();
  string s, k = "keyence";
  cin >> s;
  int N = s.size();
  bool isok = false;
  for (int i = 0; i < (N - 7); i++) {
    string t = s.substr(0, i) + s.substr(N - 7 + i, 7 - i);
    if (t == k) {
      isok = true;
      break;
    }
  }
  cout << (isok ? "YES" : "NO") << endl;
  return 0;
}
