#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ans = "keyence";
  int k = 0, div = 0;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s.at(i) == ans.at(k)) {
      while (k < min(s.size(), ans.size()) && s.at(i) == ans.at(k)) i++, k++;
      if (k == 7) div++;
    }
  }
  if (div > 1 || k < 7)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}
