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