#include <bits/stdc++.h>
using namespace std;
char buf[110];
const char* keyence = "keyence";
int main(void) {
  scanf("%s", buf);
  int n = strlen(buf);
  bool ok = false;
  for (int ed = 0; ed < (int)(n); ++ed) {
    for (int bg = 0; bg < (int)(ed + 1); ++bg) {
      if (n - (ed - bg) != 7) {
        continue;
      }
      int i1 = 0;
      for (int i = 0; i < (int)(n); ++i) {
        if (!(bg <= i && i < ed)) {
          if (buf[i] == keyence[i1]) {
            ++i1;
          } else {
            goto NEXT;
          }
        }
      }
      if (i1 == 7) {
        ok = true;
        goto OUT;
      }
    NEXT:;
    }
  }
OUT:
  puts(ok ? "YES" : "NO");
  return 0;
}
