#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  string S;
  std::cin >> S;
  long long count_k = 0;
  long long count_e = 0;
  long long count_y = 0;
  long long count_n = 0;
  long long count_c = 0;
  for (size_t i = 0; i < S.size(); i++) {
    if (S[i] == 'k') {
      count_k++;
    }
    if (S[i] == 'e') {
      count_e++;
    }
    if (S[i] == 'y') {
      count_y++;
    }
    if (S[i] == 'n') {
      count_n++;
    }
    if (S[i] == 'c') {
      count_c++;
    }
  }
  if (count_k > 0 && count_e > 2 && count_y > 0 && count_n > 0 && count_c > 0) {
    std::cout << "YES" << '\n';
  } else {
    std::cout << "NO" << '\n';
  }
  return 0;
}
