#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string str;
  int c[7] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  int count = 0;
  int flag = 0;
  int skip = 0, conskip = 0;
  cin >> str;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == c[count]) {
      count++;
      conskip = 0;
    } else {
      if (skip == 0) {
        skip = 1;
        conskip = 1;
      } else if (conskip == 1) {
        continue;
      } else {
        break;
      }
    }
    if (count == 7) {
      flag = 1;
      break;
    }
  }
  if (flag == 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
