#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<long long>>;
int main() {
  string S;
  cin >> S;
  string out = "No";
  for (long long i = 0; i < (long long)(S.length() - 6); i++) {
    string s = S;
    s.erase(i, S.length() - 7);
    if (s == "keyence") {
      out = "Yes";
      break;
    }
  }
  cout << out << endl;
  return 0;
}
