#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int sum = 0;
  for (int i = 0; i < (int)(s.size() - 1); i++) {
    if (s[i] == 'k' && s[i + 1] == 'e') sum++;
    if (s[i] == 'e' && s[i + 1] == 'y') sum++;
    if (s[i] == 'y' && s[i + 1] == 'e') sum++;
    if (s[i] == 'e' && s[i + 1] == 'n') sum++;
    if (s[i] == 'n' && s[i + 1] == 'c') sum++;
    if (s[i] == 'c' && s[i + 1] == 'e') sum++;
  }
  if (sum == 6 || sum == 5)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
