#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  deque<char> t;
  cin >> s;
  while (s.size() != 0) {
    t.push_back(s[0]);
    s.erase(0, 1);
  }
  int count = 0;
  while (t.size() != 0) {
    if (count == 0) {
      if (t[0] == 'k') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
      }
    } else if (count == 1) {
      if (t[0] == 'e') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
      }
    } else if (count == 2) {
      if (t[0] == 'y') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
      }
    } else if (count == 3) {
      if (t[0] == 'e') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
      }
    } else if (count == 4) {
      if (t[0] == 'n') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
      }
    } else if (count == 5) {
      if (t[0] == 'c') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
      }
    } else if (count == 6) {
      if (t[0] == 'e') {
        t.pop_front();
        count++;
        break;
      } else {
        t.pop_front();
      }
    }
  }
  if (count == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
