#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string str;
  int c[30];
  cin >> str;
  for (int i = 0; i < str.length(); i++) {
    c[str[i] - 'a']++;
  }
  if (c['k' - 'a'] && c['e' - 'a'] >= 3 && c['y' - 'a'] && c['n' - 'a'] &&
      c['c' - 'a']) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
