#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define ALL(v) (v).begin(), (v).end()

using namespace std;
using ll = long long;

int main()
{
  string S; cin >> S;
  if (S.size() == 7 && S == "keyence") {
    cout << "YES" << endl;
    return 0;
  }

  int trimn = S.size() - 7;
  for (int i = 0; i < trimn; ++i) {
    string ss = S;
    ss.erase(i, trimn);
    if (ss == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  

  cout << "NO" << endl;
}