#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  int i = 0;
  cin >> a;
  for (;; i++) {
    if (a[i] == 'k') break;
    if (i == a.size()) {
      cout << "NO" << endl;
      return 0;
    }
  }
  i++;
  for (;; i++) {
    if (a[i] == 'e') break;
    if (i == a.size()) {
      cout << "NO" << endl;
      return 0;
    }
  }
  i++;
  for (;; i++) {
    if (a[i] == 'y') break;
    if (i == a.size()) {
      cout << "NO" << endl;
      return 0;
    }
  }
  i++;
  for (;; i++) {
    if (a[i] == 'e') break;
    if (i == a.size()) {
      cout << "NO" << endl;
      return 0;
    }
  }
  i++;
  for (;; i++) {
    if (a[i] == 'n') break;
    if (i == a.size()) {
      cout << "NO" << endl;
      return 0;
    }
  }
  i++;
  for (;; i++) {
    if (a[i] == 'c') break;
    if (i == a.size()) {
      cout << "NO" << endl;
      return 0;
    }
  }
  i++;
  for (;; i++) {
    if (a[i] == 'e') break;
    if (i == a.size()) {
      cout << "NO" << endl;
      return 0;
    }
  }
  i++;
  cout << "YES" << endl;
  return 0;
}
