#include <bits/stdc++.h>
using namespace std;
long long MOD = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  bool ok = false;
  vector<bool> flg(6, false);
  for (int i = 0; i < (s.length()); ++i) {
    if (s[i] == 'k') {
      flg[0] = true;
    }
    if (flg[0] && s[i] == 'e') {
      flg[1] = true;
    }
    if (flg[1] && s[i] == 'y') {
      flg[2] = true;
    }
    if (flg[2] && s[i] == 'e') {
      flg[3] = true;
    }
    if (flg[3] && s[i] == 'n') {
      flg[4] = true;
    }
    if (flg[4] && s[i] == 'c') {
      flg[5] = true;
    }
    if (flg[5] && s[i] == 'e') {
      ok = true;
    }
  }
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
