#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int skip = 0;
  bool flag = true;
  for (ll i = 0; i < s.size(); ++i) {
    if (s[i] == k.front()) {
      k.erase(k.begin());
      flag = true;
    } else if (flag)
      skip++, flag = false;
  }
  if (k.empty() && skip <= 1)
    cout << "YES\n";
  else
    cout << "NO\n";
}
