#include <bits/stdc++.h>
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
const int dr[4] = {-1, 0, 1, 0};
const int dc[4] = {0, 1, 0, -1};
const int INF = 1e9;
int guki(int a) {
  if (a % 2 == 0)
    return 0;
  else
    return 1;
}
using namespace std;
int main() {
  map<char, int> mp;
  string S;
  cin >> S;
  int size = S.size();
  for (int i = (int)(0); i < (int)(size); ++i) {
    mp[S[i]]++;
  }
  if (mp['k'] >= 1 && mp['e'] >= 3 && mp['y'] >= 1 && mp['n'] >= 1 &&
      mp['c'] >= 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
