#include <bits/stdc++.h>
using namespace std;
int main() {
  string stri;
  cin >> stri;
  int size = stri.length();
  int truth = 0;
  for (int i = 0; i < size; i++) {
    if (truth == 0) {
      if (stri[i] == 'k') {
        truth++;
      }
    } else if (truth == 1) {
      if (stri[i] == 'e') {
        truth++;
      }
    } else if (truth == 2) {
      if (stri[i] == 'y') {
        truth++;
      }
    } else if (truth == 3) {
      if (stri[i] == 'e') {
        truth++;
      }
    } else if (truth == 4) {
      if (stri[i] == 'n') {
        truth++;
      }
    } else if (truth == 5) {
      if (stri[i] == 'c') {
        truth++;
      }
    } else if (truth == 6) {
      if (stri[i] == 'e') {
        truth++;
      }
    }
  }
  if (truth == 7) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
