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