#include <bits/stdc++.h>
using namespace std;
char a[105], F[] = "keyencellllll";
int main() {
  scanf("%s", a + 1);
  int k = strlen(a + 1);
  bool p = false;
  for (int i = 0; i < 7; i++) {
    int aa = 10000, b = -1, r;
    if (i == 0) aa = 10000;
    for (int j = 1; j <= k; j++) {
      int cc = j;
      r = 0;
      while (r < i) {
        if (a[cc] == F[r])
          r++, cc++;
        else
          break;
        if (r >= i) aa = min(aa, cc - 1);
      }
    }
    if (i == 6) b = 1000;
    for (int j = 1; j <= k; j++) {
      r = i + 1;
      int cc = j;
      while (r < 7) {
        if (a[cc] == F[r])
          r++, cc++;
        else
          break;
        if (r >= 7) b = max(b, cc - 1);
      }
    }
    if (aa < b) p = true;
  }
  if (p)
    printf("YES");
  else
    printf("NO");
}
