#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  int k = 0;
  for (int i = 0; i < s.size(); i++) {
    if (k == 0 && s.at(i) == 'k')
      k++;
    else if (k == 1 && s.at(i) == 'e')
      k++;
    else if (k == 2 && s.at(i) == 'y')
      k++;
    else if (k == 3 && s.at(i) == 'e')
      k++;
    else if (k == 4 && s.at(i) == 'n')
      k++;
    else if (k == 5 && s.at(i) == 'c')
      k++;
    else if (k == 6 && s.at(i) == 'e')
      k++;
  }
  if (k == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
