#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 i = 0; i < (i64)(S.size() - 7 + 1); ++i) {
    bool skip = false;
    int idx = 0;
    for (i64 j = i; j < (i64)(S.size()); ++j) {
      if (S[j] == T[idx]) {
        idx++;
      } else if (skip) {
        break;
      } else {
        while (j + 1 < S.size() and S[j + 1] != T[idx]) {
          j++;
        }
        skip = true;
      }
      if (idx == 7) {
        cout << "YES\n";
        return;
      }
    }
  }
  cout << "NO\n";
}
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  solve();
}
