#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int i = 0, j = 0, count = 0;
  string s, a("keyence");
  cin >> s;
  while (i < 7 || s[j] != '\0') {
    if (s[j] == a[i]) {
      i++;
      j++;
    } else {
      j++;
      count++;
    }
  }
  if (i == 7) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
