#include <bits/stdc++.h>
using namespace std;
char s[107];
char s1[17] = {"keyence"};
int pre[107];
int main() {
  scanf("%s", s);
  int flag = 0;
  for (int i = 0; s[i] != 0; i++) {
    flag = i;
  }
  int cnt = 0;
  int once = 0;
  for (int i = 0; i <= flag; i++) {
    if (s[i] == s1[cnt] && ((pre[cnt - 1] == i - 1) || (cnt == 0))) {
      cnt++;
      pre[cnt - 1] = i;
    } else if (s[i] == s1[cnt] && pre[cnt - 1] != i - 1 && cnt != 0) {
      once++;
      cnt++;
      pre[cnt - 1] = i;
    }
    if (cnt == 7) break;
  }
  if (cnt == 7 && once <= 1)
    printf("YES");
  else
    printf("NO");
  return 0;
}
