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