#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  int l = s.size();
  string key = "keyence";
  int cnt = 0;
  for (int i = 0; i < l; i++) {
    if (cnt == 7) break;
    if (s[i] == key[cnt]) cnt++;
  }
  cout << (cnt == 7 ? "YES" : "NO") << endl;
  return 0;
}
