#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  for (int i = 0, i_len = (s.size()); i < i_len; ++i)
    for (int j = (i), j_len(s.size() + 1); j < j_len; ++j) {
      string t = s;
      t.erase(t.begin() + i, t.end() + j);
      if (t == "keyence") {
        cout << "Yes" << endl;
        return 0;
      }
    }
  cout << "No" << endl;
}
