#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int cnt[5] = {0};
  cin >> str;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == 'k') {
      cnt[0]++;
    } else if (str[i] == 'e') {
      cnt[1]++;
    } else if (str[i] == 'y') {
      cnt[2]++;
    } else if (str[i] == 'n') {
      cnt[3]++;
    } else if (str[i] == 'c') {
      cnt[4]++;
    } else {
    }
  }
  for (int i = 0; i < 5; i++) {
    if (!cnt[i]) {
      cout << "NO\n";
      return 0;
    }
  }
  if (cnt[1] >= 3) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
