#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string K = "keyence";
  int cnt = 0;
  bool flag = true;
  int cnt_k = 0;
  for (int i = 0; i < S.size(); ++i) {
    if (cnt > 1) break;
    if (S[i] == K[cnt_k]) {
      cnt_k++;
      flag = true;
    } else if (flag == true) {
      cnt++;
      flag = false;
    } else
      continue;
  }
  if (cnt <= 1 && cnt_k == K.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
