#include <bits/stdc++.h>
using namespace std;
int main() {
  string a = "", res = "NO";
  cin >> a;
  if (a.substr(0, 7) == "keyence") {
    res = "YES";
  }
  if (a.substr((a.length() - 7), 7) == "keyence") {
    res = "YES";
  }
  for (int i = 0; i < 6; i++) {
    string c = (a.substr(0, i) + (a.substr((a.length() - (7 - i)), (7 - i))));
    if (c == "keyence") {
      res = "YES";
    }
  }
  cout << res << endl;
}
