#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;
  int pos = 0;
  while (s.front() == k.front()) {
    s.erase(s.begin());
    k.erase(k.begin());
  }
  if (k.empty())
    cout << "YES\n";
  else {
    int pos = s.find(k);
    if (pos == s.size() - k.size())
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
