#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int MAX = 510000;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  long long now[10];
  cin >> s;
  for (long long i = 0; i < 10; i++) now[i] = -1;
  for (long long i = 0; i < (long long)s.size(); i++) {
    if (s[i] == 'k') {
      now[0] = i;
      break;
    }
  }
  if (now[0] == -1) {
    cout << "NO" << endl;
    return 0;
  }
  for (long long i = now[0]; i < (long long)s.size(); i++) {
    if (s[i] == 'e') {
      now[1] = i;
      break;
    }
  }
  if (now[1] == -1) {
    cout << "NO" << endl;
    return 0;
  }
  for (long long i = now[1]; i < (long long)s.size(); i++) {
    if (s[i] == 'y') {
      now[2] = i;
      break;
    }
  }
  if (now[2] == -1) {
    cout << "NO" << endl;
    return 0;
  }
  for (long long i = now[2]; i < (long long)s.size(); i++) {
    if (s[i] == 'e') {
      now[3] = i;
      break;
    }
  }
  if (now[3] == -1) {
    cout << "NO" << endl;
    return 0;
  }
  for (long long i = now[3]; i < (long long)s.size(); i++) {
    if (s[i] == 'n') {
      now[4] = i;
      break;
    }
  }
  if (now[4] == -1) {
    cout << "NO" << endl;
    return 0;
  }
  for (long long i = now[4]; i < (long long)s.size(); i++) {
    if (s[i] == 'c') {
      now[5] = i;
      break;
    }
  }
  if (now[5] == -1) {
    cout << "NO" << endl;
    return 0;
  }
  for (long long i = now[5]; i < (long long)s.size(); i++) {
    if (s[i] == 'e') {
      now[6] = i;
      break;
    }
  }
  if (now[6] == -1) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  return 0;
}
