#include <bits/stdc++.h>
using namespace std;
template <typename T>
std::string printVector(const std::vector<T> &data) {
  std::stringstream ss;
  std::ostream_iterator<T> out_it(ss, ", ");
  ss << "[";
  std::copy(data.begin(), data.end() - 1, out_it);
  ss << data.back() << "]";
  return ss.str();
}
const int MOD = 1e9 + 7;
const long long LINF = 1001002003004005006ll;
const int INF = 1001001001;
int main(int argc, char const *argv[]) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  vector<int> kinit, einit, yinit, ninit, cinit;
  vector<char> key = {'e', 'y', 'e', 'n', 'c', 'e'};
  for (int i = (0); i < (((int)(S).size())); ++i) {
    if (S[i] == 'k') {
      kinit.push_back(i);
    }
  }
  bool ok = 0;
  for (auto u : kinit) {
    cerr << "u"
         << " = " << (u) << endl;
    int remain = 1;
    int point = u + 1;
    int keynum = 0;
    while (point < ((int)(S).size())) {
      cerr << "point"
           << " = " << (point) << endl;
      cerr << "S[point]"
           << " = " << (S[point]) << endl;
      cerr << "keynum"
           << " = " << (keynum) << endl;
      cerr << "key[keynum]"
           << " = " << (key[keynum]) << endl;
      if (S[point] == key[keynum]) {
        point++;
        keynum++;
        if (keynum == 5) {
          ok = 1;
          break;
        }
      } else if (remain == 1) {
        int noruma = 6 - keynum;
        cerr << "noruma"
             << " = " << (noruma) << endl;
        int norcheck = 0;
        int initkeynum = keynum;
        cerr << "initkeynum"
             << " = " << (initkeynum) << endl;
        while (point < ((int)(S).size())) {
          if (S[point] == key[keynum]) {
            norcheck++;
            keynum++;
            point++;
          } else {
            norcheck = 0;
            keynum = initkeynum;
          }
          if (norcheck == noruma) ok = 1;
        }
        break;
      }
    }
  }
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
