#include <bits/stdc++.h>
using namespace std;
int ctoi(char c) { return c - '0'; }
int gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
int lcm(long long a, long long b) { return a * b / gcd(a, b); }
int main() {
  string s;
  cin >> s;
  vector<int> a(s.size(), 1000);
  int n = 0;
  int che = 0;
  for (int i = 0; i < s.size(); i++) {
    if (che == 0 && s.at(i) == 'k')
      che++;
    else if (che == 1 && s.at(i) == 'e')
      che++;
    else if (che == 2 && s.at(i) == 'y')
      che++;
    else if (che == 3 && s.at(i) == 'e')
      che++;
    else if (che == 4 && s.at(i) == 'n')
      che++;
    else if (che == 5 && s.at(i) == 'c')
      che++;
    else if (che == 6 && s.at(i) == 'e')
      che++;
    else {
      a.at(n) = i;
      n++;
    }
  }
  bool ans = true;
  for (int i = 1; i < a.size(); i++) {
    if (a.at(i - 1) + 1 != a.at(i) || che < 7) {
      if (a.at(i) == 1000) continue;
      ans = false;
    }
  }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
