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