#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;
  int flag1 = 0, flag2 = 0, flag3 = 0, flag4 = 0, flag5 = 0, flag6 = 0,
      flag7 = 0, flag8 = 0;
  while (t.size() != 0) {
    if (count == 0) {
      if (t[0] == 'k') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
        flag1++;
      }
    } else if (count == 1) {
      if (t[0] == 'e') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
        flag2++;
      }
    } else if (count == 2) {
      if (t[0] == 'y') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
        flag3++;
      }
    } else if (count == 3) {
      if (t[0] == 'e') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
        flag4++;
      }
    } else if (count == 4) {
      if (t[0] == 'n') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
        flag5++;
      }
    } else if (count == 5) {
      if (t[0] == 'c') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
        flag6++;
      }
    } else if (count == 6) {
      if (t[0] == 'e') {
        t.pop_front();
        count++;
      } else {
        t.pop_front();
        flag7++;
      }
    } else if (count == 7) {
      flag8++;
    }
  }
  int flag = 0;
  if (flag1 > 0) flag++;
  if (flag2 > 0) flag++;
  if (flag3 > 0) flag++;
  if (flag4 > 0) flag++;
  if (flag5 > 0) flag++;
  if (flag6 > 0) flag++;
  if (flag7 > 0) flag++;
  if (flag8 > 0) flag++;
  if (count == 7 && flag <= 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
