#include <bits/stdc++.h>
using namespace std;
static const int INF = INT_MAX;
static const long long LINF = LLONG_MAX;
static const int MIN = INT_MIN;
static const int MOD = (10 ^ 9 + 7);
int dx[] = {0, -1, 1, 0};
int dy[] = {-1, 0, 0, 1};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  bool flag = false;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == 'k') {
      int cnt = 1;
      int k = 0;
      int no = 0;
      if (i) no = 1;
      for (int j = i + 1; j < s.size(); ++j) {
        int ctmp = cnt;
        if (cnt == 1 && s[j] == 'e')
          ++cnt;
        else if (cnt == 2 && s[j] == 'y')
          ++cnt;
        else if (cnt == 3 && s[j] == 'e')
          ++cnt;
        else if (cnt == 4 && s[j] == 'n')
          ++cnt;
        else if (cnt == 5 && s[j] == 'c')
          ++cnt;
        else if (cnt == 6 && s[j] == 'e')
          ++cnt;
        else
          k++;
        if (ctmp != cnt && k) {
          k = 0;
          no++;
        }
        if (no > 1) break;
      }
      if (cnt == 7 && no <= 1) flag = true;
    }
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
