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