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