#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;
  int l = 0, r = s.size() - 8;
  do {
    int cnt = 1;
    bool fl = true;
    for (int i = 0; i < l; ++i) {
      if (cnt == 1 && s[i] == 'k')
        ++cnt;
      else if (cnt == 2 && s[i] == 'e')
        ++cnt;
      else if (cnt == 3 && s[i] == 'y')
        ++cnt;
      else if (cnt == 4 && s[i] == 'e')
        ++cnt;
      else if (cnt == 5 && s[i] == 'n')
        ++cnt;
      else if (cnt == 6 && s[i] == 'c')
        ++cnt;
      else if (cnt == 7 && s[i] == 'e')
        ++cnt;
    }
    for (int i = r; i < s.size(); ++i) {
      if (cnt == 1 && s[i] == 'k')
        ++cnt;
      else if (cnt == 2 && s[i] == 'e')
        ++cnt;
      else if (cnt == 3 && s[i] == 'y')
        ++cnt;
      else if (cnt == 4 && s[i] == 'e')
        ++cnt;
      else if (cnt == 5 && s[i] == 'n')
        ++cnt;
      else if (cnt == 6 && s[i] == 'c')
        ++cnt;
      else if (cnt == 7 && s[i] == 'e')
        ++cnt;
    }
    if (cnt == 8) flag = true;
    ++l;
    ++r;
  } while (r <= s.size());
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
