#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int cntk = 0, cnte = 0, cnty = 0, cntn = 0, cntc = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'k') {
      cntk++;
    }
    if (s[i] == 'e') {
      cnte++;
    }
    if (s[i] == 'y') {
      cnty++;
    }
    if (s[i] == 'n') {
      cntn++;
    }
    if (s[i] == 'c') {
      cntc++;
    }
  }
  if (cntk >= 1 && cnte >= 3 && cnty >= 1 && cntn >= 1 && cntc >= 1) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
