#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t("keyence");
  cin >> s;
  int j = 0, cnt = 0;
  for (int i = 0; i < (s.size()); ++i) {
    if (s[i] == t[j]) {
      if (s[i + 1] != t[j + 1]) cnt++;
      j++;
    }
  }
  if (cnt >= 2)
    cout << "No";
  else
    cout << "Yes";
}
