#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using piii = pair<pii, pii>;
const int INF = 1e9 + 7;
int main() {
  string S;
  cin >> S;
  bool can = false;
  for (int i = 0; i < S.size(); ++i) {
    if (S[i] == 'k') {
      for (int j = i + 1; j <= S.size() - 6; ++j) {
        if (S.substr(j, 6) == "eyence") {
          can = true;
        }
      }
    }
    if (S.substr(i, 2) == "ke") {
      for (int j = i + 2; j <= S.size() - 5; ++j) {
        if (S.substr(j, 5) == "yence") {
          can = true;
        }
      }
    }
    if (S.substr(i, 3) == "key") {
      for (int j = i + 3; j <= S.size() - 4; ++j) {
        if (S.substr(j, 4) == "ence") {
          can = true;
        }
      }
    }
    if (S.substr(i, 4) == "keye") {
      for (int j = i + 4; j <= S.size() - 3; ++j) {
        if (S.substr(j, 3) == "nce") {
          can = true;
        }
      }
    }
    if (S.substr(i, 5) == "keyen") {
      for (int j = i + 5; j <= S.size() - 2; ++j) {
        if (S.substr(j, 2) == "ce") {
          can = true;
        }
      }
    }
    if (S.substr(i, 6) == "keyenc") {
      for (int j = i + 6; j <= S.size() - 1; ++j) {
        if (S[j] == 'e') {
          can = true;
        }
      }
    }
  }
  if (can)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
