#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
string s;
int main() {
  cin >> s;
  int n = s.size();
  string res = "No";
  for (int left = 0; left <= n; left++) {
    for (int right = left; right <= n; right++) {
      string comp = s.substr(0, left) + s.substr(right);
      if (comp == "keyence") res = "Yes";
    }
  }
  cout << res << endl;
}
