#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string k = "keyence";
  int i = 0, j = 0;
  while (true) {
    if (S[i] == k[j]) j++;
    i++;
    if (i == S.size() || j == k.size()) break;
  }
  cout << (j == k.size() ? "YES" : "NO") << endl;
  return 0;
}
