#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  string key = "keyence";
  if (s.find(key) != std::string::npos &&
      (s.back() == 'e' || s.front() == 'k')) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
