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