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