#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, k = "keyence";
  cin >> s;
  int pos = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == k[pos]) pos++;
    if (pos == 7) break;
  }
  if (pos == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
