#include <bits/stdc++.h>
using namespace std;
int INF = (1LL << 30) - 1;
int MOD = 1e9 + 7;
int main() {
  string S;
  cin >> S;
  string sub = "keyence";
  if (S == sub) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i <= S.size() - 6; i++) {
    string ss = S;
    ss.erase(ss.begin() + i, ss.begin() + i - 7 + S.size());
    if (ss == sub) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
