#include <bits/stdc++.h>
using namespace std;
const int INF = 999999999;
const int MOD = 1e9 + 7;
const double pi = 3.141592653589793238;
int main() {
  string h;
  cin >> h;
  int mon = h.length() - 7;
  if (h.length() == 7) {
    if (h == "keyence") {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
    return 0;
  }
  for (int i = 0; i < h.length() - mon; ++i) {
    if (h.substr(0, mon + 2) + h.substr(mon + 3, h.length() - (mon + 3)) ==
        "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
