#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int cnt[5] = {0, 0, 0, 0, 0};
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'k') cnt[0]++;
    if (s[i] == 'e') cnt[1]++;
    if (s[i] == 'y') cnt[2]++;
    if (s[i] == 'n') cnt[3]++;
    if (s[i] == 'c') cnt[4]++;
  }
  if (cnt[0] > 0 && cnt[1] > 2 && cnt[2] > 0 && cnt[3] > 0 && cnt[4] > 0) {
    puts("YES");
  } else {
    puts("NO");
  }
  return 0;
}
