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