#include <bits/stdc++.h>
int main(int argc, char const *argv[]) {
  int scnt = 0;
  char s[107];
  char keyence[] = "keyence";
  scanf("%s", s);
  for (int i = 0; i < strlen(s); ++i) {
    if (keyence[scnt] == s[i]) ++scnt;
  }
  if (scnt == 7)
    puts("YES");
  else
    puts("NO");
  return 0;
}
