#include <bits/stdc++.h>
int check(char *s, char *key) {
  int i, j;
  char *b;
  for (i = 0; s[i] == key[i] && s[i] != '\0'; i++)
    ;
  if (i == 7 && s[i] == '\0') return 1;
  if ((b = strstr(s + i, key + i)) == NULL)
    return 0;
  else {
    for (j = 0; key[i] == b[j]; j++, i++) {
    }
    return b[i] != '\0' && i > 6;
  }
}
int main() {
  int i = 0;
  char s[102], *ky = "keyence";
  scanf("%s", s);
restart:
  for (; s[i] != 'k' && s[i] != '\0'; i++)
    ;
  if (!*(s + i)) {
    printf("NO\n");
    return 0;
  }
  if (check(s + i, ky))
    printf("YES\n");
  else {
    printf("NO\n");
  }
  return 0;
}
