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