#include <bits/stdc++.h>
int check(char *s, char *key) {
  int i;
  for (i = 0; s[i] == key[i]; i++)
    ;
  if (strstr(s + i, key + i))
    return 1;
  else
    return 0;
}
int main() {
  int i = 0;
  char s[101], *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;
}
