#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  for (int len = 7; len > 0; --len) {
    string::size_type temp = S.find(key.substr(0, len));
    if (temp == string::npos) continue;
    string tmp = S.substr((int)temp + len, S.length());
    temp = tmp.find(key.substr(len, 7));
    if (temp == string::npos) continue;
    cout << "YES\n";
    return 0;
  }
  cout << "NO\n";
}
