#include <bits/stdc++.h>
using namespace std;
string t = "keyence";
int main() {
  string s;
  cin >> s;
  string temp = s;
  int n = s.size();
  bool ok = false;
  if (n == 7) {
    if (s == t) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
    return 0;
  }
  for (int i = 0; i < n - 7; i++) {
    if (s.erase(i, n - 7) == t) {
      ok = true;
    }
    s = temp;
  }
  if (ok) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
