#include <bits/stdc++.h>
using namespace std;
char dif = 'A' - 'a';
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.size();
  bool f[7] = {false}, f1 = false, f2 = false;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'k') f[0] = true;
    if (s[i] == 'e') f[1] = true, f1 = true;
    if (s[i] == 'y') f[2] = true;
    if (s[i] == 'e' && f1 == true) f[3] = true, f2 = true;
    if (s[i] == 'n') f[4] = true;
    if (s[i] == 'c') f[5] = true;
    if (s[i] == 'e' && f2 == true) f[6] = true;
  }
  bool flag = true;
  for (int i = 0; i < 7; i++) {
    if (f[i] == false) flag = false;
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
