#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  for (int i = 0; i < (n); ++i) {
    for (int j = i; j < n; ++j) {
      string t = "";
      for (int k = 0; k < (n); ++k) {
        if (k >= i && k < j) {
          continue;
        }
        t += s[k];
      }
      if (t == "keyence") {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
  return 0;
}
