#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int k = 7, check = 0;
  bool befor = true;
  bool now = true;
  string keyence("ecneyek");
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == keyence[keyence.size() - 1]) {
      now = true;
      keyence.pop_back();
      k--;
    } else {
      now = false;
    }
    if (befor != now) {
      check++;
    }
    if (check == 2) {
      cout << "NO" << endl;
      return 0;
    }
    if (k == 0) {
      cout << "YES" << endl;
      return 0;
    }
    befor = now;
  }
  cout << "NO" << endl;
  return 0;
}
