#include <bits/stdc++.h>
static const long long MOD = 1000000007;
static const long long INF = 1000000000000000000LL;
using namespace std;
int main() {
  string S;
  cin >> S;
  string ke = "keyence";
  long long ke_cnt = 0;
  for (long long i = 0; i < (S.size()); i++) {
    if (ke_cnt == ke.size()) break;
    if (S[i] == ke[ke_cnt]) {
      ++ke_cnt;
    }
  }
  string res = "NO";
  if (ke_cnt == ke.size()) {
    res = "YES";
  }
  cout << res << endl;
  return 0;
}
