#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  int p = 0;
  int front, back;
  for (int i = 0; i < 7; i++) {
    if (s.at(i) != key.at(i)) {
      break;
    } else {
      front = i + 1;
    }
  }
  for (int i = 0; i < 7; i++) {
    if (s.at(s.size() - 1 - i) != key.at(6 - i)) {
      break;
    } else {
      back = i + 1;
    }
  }
  if (front + back >= 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
