#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[101];
  cin >> s;
  char key[] = "keyence";
  int j = 0, cont = 0;
  for (int i = 0; s[i] != '\n'; i++) {
    if (cont == 2) {
      goto end;
    }
    while (s[i] == key[j]) {
      if (key[j] == '\0') {
        cout << "YES" << endl;
        goto aaa;
      }
      j++;
    }
  }
end:;
  cout << "NO" << endl;
aaa:;
}
