#include <bits/stdc++.h>
int main(void) {
  char s[110];
  char keyence[8] = "keyence";
  scanf("%s", s);
  int temp = 0, flag = 0, nocount = 0;
  for (int i = 0; i < strlen(s); ++i) {
    if (s[i] == keyence[temp]) {
      temp++;
    } else if (s[i] != keyence[temp] && flag == 1 && nocount == 1) {
    } else {
      flag++;
      nocount = 1;
      if (flag > 1) {
        break;
      }
    }
  }
  if (flag <= 1 && temp == strlen(keyence))
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
