#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  size_t b = a.length();
  if (a.find("k") != -1 && a.find("e") != -1 && a.find("y") != -1 &&
      a.find("e") != -1 && a.find("n") != -1 && a.find("c") != -1 &&
      a.find("e") != -1 && a.rfind("e") + 1 == b)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
