#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string pattern = "keyence";
  int index = 0;
  int counter = 0;
  bool detection = false;
  for (int i = 0; i < S.length(); i++) {
    if (S[i] == pattern[index]) {
      index++;
      detection = false;
    } else {
      if (detection == false) counter++;
      detection = true;
    }
    if (counter == 4) {
      cout << "NO";
      return 0;
    }
  }
  if (index == pattern.length())
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
