# twitterの回答を見て書いた
#include <bits/stdc++.h>
using namespace std;

int main() {
  string S;
  cin >> S;

  vector<regex> R(8);
  R.at(0) = (".*keyence");
  R.at(1) = ("k.*eyence");
  R.at(2) = ("ke.*yence");
  R.at(3) = ("key.*ence");
  R.at(4) = ("keye.*nce");
  R.at(5) = ("keyen.*ce");
  R.at(6) = ("keyenc.*e");
  R.at(7) = ("keyence.*");

  bool answer = false;
  for(auto r : R) answer |= regex_match(S, r);
  cout << (answer ? "YES" : "NO") << endl;
}
