#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;
  string t;
  for (int i = 0; i < s.size(); i++) {
    if (che == 0 && s.at(i) == 'k') {
      che++;
      t += '0';
    } else if (che == 1 && s.at(i) == 'e') {
      che++;
      t += '0';
    } else if (che == 2 && s.at(i) == 'y') {
      che++;
      t += '0';
    } else if (che == 3 && s.at(i) == 'e') {
      che++;
      t += '0';
    } else if (che == 4 && s.at(i) == 'n') {
      che++;
      t += '0';
    } else if (che == 5 && s.at(i) == 'c') {
      che++;
      t += '0';
    } else if (che == 6 && s.at(i) == 'e') {
      che++;
      t += '0';
    } else {
      t += '1';
    }
  }
  int ans = 0;
  for (int i = 1; i < s.size(); i++) {
    if (t.at(i - 1) != t.at(i)) ans++;
  }
  if (ans <= 2 && che == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
