#include <bits/stdc++.h>
using namespace std;
int main() {
  string key = "keyence", ans = "xxxxxxx";
  string s;
  cin >> s;
  int index = 0, cnt = 0, check = 1;
  for (int i = 0; i < (int)s.size(); i++) {
    if (key[index] == s[i]) {
      ans[index++] = s[i];
      check = 1;
    } else {
      if (check == 1) {
        cnt++;
      }
      check = -1;
    }
  }
  if (key == ans && cnt < 2) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
