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