#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr ll INF = ll(1e+18) + 1;
ll dist(ll a, ll b, ll c, ll d) { return abs(a - c) + abs(b - d); }
int main() {
  string S;
  char elem[] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  int counter = 0;
  cin >> S;
  for (int i = 0; i < ((int)S.size()); i++) {
    if (S[i] == elem[counter]) {
      counter++;
    }
    if (counter >= 7) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
