#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  int start = 0;
  int end = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'y') {
      start = i + 1;
      for (int j = i + 1; j < s.length(); j++) {
        if (s[j] == 'e') {
          end = j - 1;
          break;
        }
      }
    }
  }
  s.replace(start, end - start + 1, "");
  if (s == "keyence") {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
