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