#include <bits/stdc++.h>
int main(void) {
  char s[105];
  scanf("%s", s);
  char ss[15] = "keyence";
  int um = 0;
  int wrong = 0;
  int mistakes = 0;
  for (int i = 0; s[i] != '\0'; i++) {
    if (s[i] == ss[um] && wrong > 0) {
      um++;
      mistakes++;
      wrong = 0;
    } else if (s[i] == ss[um]) {
      um++;
    } else {
      wrong++;
    }
    if (mistakes >= 2) {
      printf("NO\n");
      return 0;
    }
  }
  if (um <= 5) {
    printf("NO\n");
    return 0;
  }
  printf("YES\n");
}
