#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string str = "";
  cin >> str;
  const string keyence = "keyence";
  if (str.find(keyence)) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
