#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string k = "keyence";
  int cut = 0, pos = 0;
  bool f = false, c = false;
  for (int i = 0, i_len = (s.length()); i < i_len; i++) {
    if (c && !f) {
      cut++;
      break;
    }
    if (s[i] == k[pos]) {
      pos++;
      f = false;
      if (pos == k.length()) c = true;
      continue;
    }
    if (f) {
      continue;
    }
    f = true;
    cut++;
  }
  cout << (((cut <= 1) && c) ? "YES" : "NO") << endl;
  return 0;
}
