#include <bits/stdc++.h>
using namespace std;
using ll = long long;
signed main() {
  string s;
  cin >> s;
  bool isOK = false;
  if (s == "keyence") isOK = true;
  for (int i = 0; i < (int)s.length(); i++) {
    for (int j = 1; j <= s.length() - i; j++) {
      string copied = s;
      copied.erase(i, j);
      if (copied == "keyence") isOK = true;
    }
  }
  if (isOK)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
