#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string S;
  cin >> S;
  string k("keyence");
  int i = 0;
  for (auto s : S) {
    if (k[i] == s) {
      i++;
    }
    if (i == k.size()) break;
  }
  int j = k.size() - 1;
  for (int a = S.size() - 1; a >= 0; --a) {
    if (k[j] == S[a]) {
      j--;
    }
    if (i == -1) break;
  }
  if (i - (j - (k.size() - 1)) >= k.size()) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
