#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char S[101];
  char correct[] = "keyence";
  int j = 0;
  scanf("%s", S);
  for (int i = 0; S[i] != '\0'; ++i) {
    if (S[i] == correct[j] && j < 7) ++j;
  }
  if (j == 7)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
