#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  long long int k = 0;
  long long int e = 0;
  long long int y = 0;
  long long int n = 0;
  long long int c = 0;
  cin >> s;
  for (long long int i = 0; i < s.length(); ++i) {
    if (s[i] == 'k') k++;
    if (s[i] == 'e') e++;
    if (s[i] == 'y') y++;
    if (s[i] == 'n') n++;
    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;
}
