#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int count = 0;
  int ans = 0;
  bool flag = true;
  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++;
      break;
    } else if (flag) {
      while (i < S.size()) {
        i++;
        if (count == 0 && S[i] == 'k') {
          count++;
          flag = false;
          break;
        } else if (count == 1 && S[i] == 'e') {
          count++;
          flag = false;
          break;
        } else if (count == 2 && S[i] == 'y') {
          count++;
          flag = false;
          break;
        } else if (count == 3 && S[i] == 'e') {
          count++;
          flag = false;
          break;
        } else if (count == 4 && S[i] == 'n') {
          count++;
          flag = false;
          break;
        } else if (count == 5 && S[i] == 'c') {
          count++;
          flag = false;
          break;
        } else if (count == 6 && S[i] == 'e') {
          count++;
          flag = false;
          break;
        }
      }
    } else
      ans++;
  }
  if (count == 7 && ans == 0)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
