#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  string K = "keyence";
  cin >> S;
  int pos = 0;
  int cnt = 0;
  for (int i = 0, j = 0; i < K.length(); i++, j++) {
    if (j >= S.length()) {
      cout << "NO" << endl;
      return 0;
    }
    if (K[i] != S[j]) {
      while (j < S.length() && K[i] != S[j]) j++;
      cnt++;
    }
  }
  if (cnt < 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
