#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char key[] = "keyence";
  int i, j, len;
  char str[101];
  for (i = 0; i < 101; i++) {
    scanf("%c", &str[i]);
    if (str[i] == '\n') break;
  }
  len = i;
  j = 0;
  int co = -1;
  for (i = 0; i < len; i++) {
    if (key[j] == str[i]) {
      j++;
      if (co != -1) co = 0;
    } else if (co == 0) {
      j = 0;
      break;
    } else
      co = 1;
    if (j == 7) break;
  }
  if (j == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
