#include <bits/stdc++.h>
bool solve();
int main() {
  if (solve())
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
bool solve() {
  char keyence[16]{"keyence"}, s[128];
  scanf("%s", s);
  int length;
  length = strlen(s);
  if (strcmp(keyence, s + length - 7) == 0) return true;
  for (int pre{}; pre < 7; pre++) {
    if (s[pre] != keyence[pre]) return false;
    if (strcmp(keyence, s + length - 6 + pre)) return true;
  }
  return false;
}
