#include <bits/stdc++.h>
using namespace std;
int main(void) {
  const string keyence = "keyence";
  string S;
  cin >> S;
  if (S.substr(0, keyence.size()) == keyence) {
    cout << "YES" << endl;
    return 0;
  }
  if (S.substr(S.size() - keyence.size(), keyence.size()) == keyence) {
    cout << "YES" << endl;
    return 0;
  }
  int kidx = 0;
  while (kidx < keyence.size()) {
    if (S[kidx] == keyence[kidx])
      kidx++;
    else
      break;
  }
  for (int i = S.size() - kidx - 1; i < S.size(); i++) {
    if (S[i] != keyence[kidx]) {
      cout << "NO" << endl;
      return 0;
    }
    kidx++;
  }
  cout << "YES" << endl;
  return 0;
}
