#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char str[101];
  string targ = "keyence";
  int targ_index = 0;
  int i;
  int str_len;
  cin.getline(str, 101);
  for (str_len = 0; str[str_len] != '\0'; str_len++)
    ;
  for (i = 0; str[i] == targ[targ_index]; i++) {
    targ_index++;
  }
  for (i = str_len; i > targ_index; i--) {
    if (str[i] != targ[targ.length() - str_len + i]) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}
