#include <bits/stdc++.h>
int main(void) {
  using namespace std;
  bool res = false;
  int n = 0;
  string str;
  cin >> str;
  for (int i = str.size() - 1; i >= 0; i--) {
    if (str[i] != 'k' && str[i] != 'e' && str[i] != 'y' && str[i] != 'n' &&
        str[i] != 'c') {
      str.erase(i, 1);
    }
  }
  for (int i = 0; i < str.size(); i++) {
    if (str[i] == 'k' && n == 0) {
      n++;
    } else if (str[i] == 'e' && n == 1) {
      n++;
    } else if (str[i] == 'y' && n == 2) {
      n++;
    } else if (str[i] == 'e' && n == 3) {
      n++;
    } else if (str[i] == 'n' && n == 4) {
      n++;
    } else if (str[i] == 'c' && n == 5) {
      n++;
    } else if (str[i] == 'e' && n == 6) {
      n++;
      res = true;
    }
  }
  if (res) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
