#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n;
  n = s.size();
  for (long long i = 0; i < n - 6; i++) {
    s.erase(i, i + s.size() - n);
    if (s == "keyence") {
      cout << "YES" << endl;
      break;
    }
  }
}
