#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string S;
  cin >> S;
  string k("keyence");
  int i = 0;
  int flag = 0;
  int a = 0;
  for (; a < S.size(); ++a) {
    if (k[i] == S[a]) {
      if (flag == 1) flag = 2;
      i++;
    } else if (flag == 0) {
      flag = 1;
    } else if (flag == 2) {
      break;
    }
    if (i == k.size()) break;
  }
  if (i == k.size() && (a == S.size() || flag == 0)) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
