#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int aa = a.size() - 1;
  int f = 0;
  int kf = 2344;
  int ke = 14124;
  for (int i = 0; i < aa + 1 - 2; i++) {
    if (a.at(i) == 'k' && a.at(i + 1) == 'e' && a.at(i + 2) == 'y') {
      f = 1;
      kf = i;
      ke = i + 2;
    }
  }
  int ef = 0;
  int ee = 0;
  if (f == 1) {
    f = 0;
    for (int i = 0; i < aa + 1 - 3; i++) {
      if (a.at(i) == 'e' && a.at(i + 1) == 'n' && a.at(i + 2) == 'c' &&
          a.at(i + 3) == 'e') {
        f = 1;
        ef = i;
        ee = i + 3;
      }
    }
    if (f == 1) {
      if (kf == 0 && ef == 3) {
        cout << "YES" << endl;
      } else if (ee == aa && ke == aa - 4) {
        cout << "YES" << endl;
      } else if (kf == 0 && ee == aa) {
        cout << "YES" << endl;
      } else {
        cout << "NO" << endl;
      }
    } else {
      cout << "NO" << endl;
    }
  } else {
    cout << "NO" << endl;
  }
}
