#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string K;
  K = "keyence";
  int k = 0;
  bool keyence = false;
  bool can = false;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == K[k]) {
      keyence = true;
      k++;
      if (k == 7) {
        can = true;
      }
      continue;
    }
    if (keyence) {
      string nokori;
      nokori = K.substr(k, K.size() - k);
      cout << nokori << endl;
      for (int j = i; j <= S.size() - nokori.size(); j++) {
        if (S.substr(j, nokori.size()) == nokori) {
          can = true;
        }
      }
      keyence = false;
      k = 0;
    }
  }
  if (can) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
