#include <bits/stdc++.h>
using namespace std;
int main() {
  string input_s;
  cin >> input_s;
  const string keyence = "keyence";
  int currentPos = 0;
  bool isInFinding = false;
  bool isInRest = false;
  for (int i = 0; i < input_s.length(); i++) {
    if (input_s[i] == keyence[currentPos]) {
      isInFinding = true;
      currentPos++;
      if (currentPos = keyence.length()) {
        cout << "YES";
        return 0;
      }
    } else {
      if (isInFinding && !isInRest) {
        isInRest = true;
      } else if (isInFinding) {
        currentPos = 0;
        isInFinding = false;
        isInRest = 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
