#include <bits/stdc++.h>
using namespace std;
int main() {
  string sample = "keyence";
  string in;
  int pass = 0;
  bool zwei = false;
  cin >> in;
  int s = 0;
  for (int i = 0; i < in.length(); ++i) {
    if (in[i] == sample[s]) {
      ++s;
      zwei = false;
      if (s == 7) {
        cout << "YES" << endl;
        return 0;
      }
    } else if (zwei == false) {
      ++pass;
      zwei = true;
    }
    if (1 < pass) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
  return 0;
}
