#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, k = "keyence";
  cin >> s;
  int head_tail, tail_head;
  for (int i = 0; i < k.size(); i++) {
    if (s[i] != k[i]) {
      head_tail = i;
      break;
    }
  }
  for (int i = 0; i < k.size(); i++) {
    if (s[s.size() - 1 - i] != k[k.size() - 1 - i]) {
      tail_head = i;
      break;
    }
  }
  string ans = "NO";
  if (head_tail + tail_head == k.size() || s == k) ans = "YES";
  cout << ans << endl;
}
