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