#include <bits/stdc++.h>
using namespace std;

int main() {
  string S;
  cin >> S;
  regex R (".*keyence|k.*eyence|ke.*yence|key.*ence|keye.*nce|keyen.*ce|keyenc.*e|keyence.*");
  cout << ((regex_match(S, R)) ? "YES" : "NO") << endl;
}