#include <bits/stdc++.h>
using namespace std;
long long mm = 1000000000;
long long MM = mm + 7;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    if (s.at(i) == 'k' && cnt == 0) cnt++;
    if (s.at(i) == 'e' && cnt == 1) cnt++;
    if (s.at(i) == 'y' && cnt == 2) cnt++;
    if (s.at(i) == 'e' && cnt == 3) cnt++;
    if (s.at(i) == 'n' && cnt == 4) cnt++;
    if (s.at(i) == 'c' && cnt == 5) cnt++;
    if (s.at(i) == 'e' && cnt == 6) cnt++;
  }
  if (cnt == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
