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