#include <bits/stdc++.h>
using namespace std;
vector<long long> factors;
int IT_MAX = 1 << 17;
int MOD = 1000000007;
const int INF = 0x3f3f3f3f;
const long long LL_INF = 0x3f3f3f3f3f3f3f3f;
const double PI = acos(-1);
const double ERR = 1e-10;
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(0);
  cin.tie(0);
  string e = "keyence";
  string st;
  cin >> st;
  int pref = 0;
  int suf = 0;
  while (st[pref] == e[pref]) {
    ++pref;
    if (pref > 6) {
      break;
    }
  }
  while (st[st.size() - 1 - suf] == e[6 - suf]) {
    ++suf;
    if (suf > 6) {
      break;
    }
  }
  if (pref + suf >= 6) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
