#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  if (s == "keyence") {
    cout << "Yes" << endl;
    return 0;
  }
  for (int i = 0; i < s.size(); i++)
    for (int j = 1; j + i <= s.size(); j++) {
      string ss = s.substr(0, i) + s.substr(i + j);
      if (ss == "keyence") {
        cout << "Yes" << endl;
        return 0;
      }
    }
  cout << "No" << endl;
  return 0;
}
