#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int sum = 0;
  for (int i = 0; i < (int)(7); 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) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = (int)s.size() - 2; i >= (int)s.size() - 8; 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 == 5 || sum == 6)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
