#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  int kPos = 0;
  int eyencePos = 0;
  int kePos = 0;
  int yencePos = 0;
  int keyPos = 0;
  int encePos = 0;
  int keyePos = 0;
  int ncePos = 0;
  int keyenPos = 0;
  int cePos = 0;
  int keyencPos = 0;
  int ePos = 0;
  int keyencePos = 0;
  bool flag = false;
  cin >> s;
  kPos = (int)s.find("k");
  eyencePos = (int)s.find("eyence");
  if (kPos != -1 && eyencePos != -1) {
    if (kPos < eyencePos) flag = true;
  }
  kePos = (int)s.find("ke");
  yencePos = (int)s.find("yence");
  if (kePos != -1 && yencePos != -1) {
    if (kePos < yencePos) flag = true;
  }
  keyPos = (int)s.find("key");
  encePos = (int)s.find("ence");
  if (keyPos != -1 && encePos != -1) {
    if (keyPos < encePos) flag = true;
  }
  keyePos = (int)s.find("keye");
  ncePos = (int)s.find("nce");
  if (keyePos != -1 && ncePos != -1) {
    if (keyePos < ncePos) flag = true;
  }
  keyenPos = (int)s.find("keyen");
  cePos = (int)s.find("ce");
  if (keyenPos != -1 && cePos != -1) {
    if (keyenPos < cePos) flag = true;
  }
  keyencPos = (int)s.find("keyenc");
  ePos = (int)s.find("e");
  if (keyencPos != -1 && ePos != -1) {
    if (keyencPos < ePos) flag = true;
  }
  keyencePos = (int)s.find("keyence");
  if (keyencePos != -1) flag = true;
  if (flag == true)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
