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