#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[110];
  cin >> a;
  char d[10] = "keyence";
  int b = strlen(a) - 7;
  for (int i = 0; i < 8; i++) {
    char c[10];
    for (int j = 0; j < 7; j++) {
      if (j < i) {
        c[j] = a[j];
      } else
        c[j] = a[j + b];
    }
    if (strstr(c, d) != NULL) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
