#include <bits/stdc++.h>
int main(void) {
  char s[100 + 1], ans[7 + 1] = "keyence";
  int i, j, k, memory, cnt = 0;
  j = 0;
  memory = 0;
  scanf("%s", s);
  for (i = 0; ans[j] != '\0'; i++) {
    if (s[i] == ans[j]) {
      j++;
      if (i - memory > 1) {
        cnt++;
      }
      memory = i;
    }
    if (cnt > 1) {
      break;
    }
  }
  if (ans[j] == '\0' && cnt < 2) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
