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