#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  string b = "keyence";
  int la = a.length();
  int lb = b.length();
  bool skipped = false;
  int ia = 0;
  int ib = 0;
  while (ia < la and ib < lb) {
    if (a[ia] != b[ib]) break;
    ia++;
    ib++;
  }
  while (ia < la and ib < lb) {
    if (a[ia] == b[ib]) break;
    ia++;
    skipped = true;
  }
  while (ia < la and ib < lb) {
    if (a[ia] != b[ib]) break;
    ia++;
    ib++;
  }
  if (!skipped) {
    while (ia < la and ib < lb) {
      if (a[ia] == b[ib]) break;
      ia++;
    }
  }
  if (ia == la and ib == lb) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
