#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
const char S[] = {"keyence"};
char a[N];
int main() {
  scanf("%s", a);
  int cur = 0, n = strlen(a);
  for (int i = 0; i < n && cur < 7; i++) {
    if (a[i] == S[cur]) {
      cur++;
    }
  }
  if (cur == 7) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
