#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = int(s.size());
  string key = "keyence";
  int idx = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == key[idx] && idx < 7) {
      idx++;
    }
  }
  if (idx >= 7)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
