#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  string s, base = "keyence";
  cin >> s;
  int l = 0, r = s.size() - 1;
  int c = 0;
  for (int((i)) = (int)(0); ((i)) < (int)((7)); ++((i))) {
    if (l + i >= 7 || c > 7) break;
    if (s[l + i] == base[i])
      c++;
    else
      break;
  }
  for (int((i)) = (int)(0); ((i)) < (int)((7)); ++((i))) {
    if (r - i < 0 || c > 7) break;
    if (s[r - i] == base[6 - i])
      c++;
    else
      break;
  }
  if (c >= 7)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
