#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";
  for (i64 j = 0; j < (i64)(S.size()); ++j) {
    for (i64 k = j; k < (i64)(S.size() + 1); ++k) {
      int idx = 0;
      for (i64 i = 0; i < (i64)(S.size()); ++i) {
        if (j <= i and i < k) continue;
        if (S[i] == 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();
}
