#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  const string t = "keyence";
  int i = 0;
  bool ans = true;
  for (int j = 0; j < t.size(); j++) {
    while (i < n && t[j] != s[i]) i++;
    if (i >= n && t[j] != s[i]) ans = false;
  }
  ans &= s.size() >= t.size();
  cout << (ans ? "YES" : "NO") << endl;
}
