#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int N = S.size();
  int count = 0;
  for (int i = 0; i < N; i++) {
    if (S.at(i) == 'k') count++;
    if (S.at(i) == 'e' && count == 1) count++;
    if (S.at(i) == 'y' && count == 2) count++;
    if (S.at(i) == 'e' && count == 3) count++;
    if (S.at(i) == 'n' && count == 4) count++;
    if (S.at(i) == 'c' && count == 5) count++;
    if (S.at(i) == 'e' && count == 6) count++;
  }
  if (count == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
