#include <bits/stdc++.h>
#pragma GCC diagnostic ignored "-Wsign-compare"
using namespace std;
using i64 = int_fast64_t;
void solve() {
  string S;
  cin >> S;
  string T = "keyence";
  int N = (int)S.size();
  for (i64 i = 0; i < (i64)(N); ++i) {
    for (i64 j = 0; j < (i64)(N + 1); ++j) {
      for (i64 k = j; k < (i64)(N + 1); ++k) {
        int idx = 0;
        for (i64 ii = i; ii < (i64)(N); ++ii) {
          if (j <= ii and ii < k) continue;
          if (S[ii] == T[idx]) {
            idx++;
          } else {
            break;
          }
          if (idx == 7) {
            cout << "YES\n";
            return;
          }
        }
      }
    }
  }
  cout << "NO\n";
}
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  solve();
}
