#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  int j = 0, flag = 0, cnt = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S.at(i) == key.at(j)) {
      j++;
      if (flag == 0) cnt++;
      flag = 1;
    } else
      flag = 0;
    if (j == key.size()) break;
  }
  if (j == key.size() && cnt <= 2) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
}
