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