#include <bits/stdc++.h>
int main() {
  char const *str = "keyence";
  int p = 0;
  char line[128];
  scanf("%s", line);
  for (int i = 0; line[i]; ++i) {
    if (line[i] == str[p]) {
      p += 1;
    }
  }
  puts(str[p] == '\0' ? "YES" : "NO");
  return 0;
}
