#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int N = S.size();
  int subN = N - 7;
  if (subN < 0) {
    cout << "NO" << endl;
    return 0;
  }
  for (int i = 0; i < N; i++) {
    string first = S.substr(0, i);
    string middle = S.substr(i, subN);
    string last = S.substr(i + subN);
    string ans = first + last;
    if (ans == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
