#include <bits/stdc++.h>
using namespace std;
struct init {
  init() {
    cin.tie(0);
    ios::sync_with_stdio(0);
    cout << fixed << setprecision(20);
  };
} aaaaaaa;
int main() {
  string s;
  cin >> s;
  string ans = "keyence";
  int i = -1;
  int n = s.size();
  bool cutOn = false;
  bool cutOff = false;
  int cnt = 0;
  for (auto c : ans) {
    for (i++; i < n; i++) {
      if (s[i] == c) {
        cnt++;
        break;
      } else if (cutOff) {
        cout << "NO" << endl;
        return 0;
      } else
        cutOn = true;
    }
    if (cutOn) cutOff = true;
  }
  if (cnt == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
