#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  bool flag = false;
  for (int i = 0; i < 8; i++) {
    string check = "";
    for (int j = 0; j < i; j++) {
      check += S[j];
    }
    for (int j = 0; j < 7 - i; j++) {
      check += S[S.size() - 1 - i + j];
    }
    if (check == "keyence") flag = true;
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
