#include <bits/stdc++.h>
using namespace std;
const long long LLINF = (1LL << 60);
const long long INF = (1LL << 30);
const double DINF = std::numeric_limits<double>::infinity();
const long long MOD = 1000000007;
signed main() {
  string S;
  cin >> S;
  string ans = "keyence";
  long long ans_i = 0;
  for (long long i = 0; i < S.length(); ++i) {
    if (S[i] == ans[ans_i]) {
      ans_i++;
      if (ans_i >= ans.length()) {
        printf("YES\n");
        return 0;
      }
    }
  }
  printf("NO\n");
  return 0;
}
