#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int idx = 0;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    if (idx < 7 && s[i] == t[idx]) idx++;
  }
  cout << (idx == 7 ? "YES" : "NO") << endl;
  return 0;
}
