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