#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  ll skip = -1;
  ll ki = 0;
  char keyence[] = "keyence";
  for (ll i = 0; i < (ll)(s.size()); i++) {
    if (s[i] == keyence[ki]) {
      if (ki == 6) {
        cout << "YES" << endl;
        return 0;
      }
      ki++;
      if (skip == 1) {
        skip = 0;
      }
    } else {
      if (skip == -1) {
        skip = 1;
      } else if (skip == 0) {
        break;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
