#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  char check_char[7] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  int idx = 0;
  bool flg = false;
  int flg_cnt = 0;
  for (int i = 0; i < ((int)s.size()); ++i) {
    if (idx != 7 && s[i] == check_char[idx]) {
      ++idx;
      flg = false;
    } else if (!flg) {
      flg = true;
      ++flg_cnt;
      if (flg_cnt >= 2) {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  cout << ((idx == 7) ? "YES" : "NO") << endl;
  return 0;
}
