#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int MOD2 = 998244353;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  bool f = 0;
  for (int i = 0; i < n; i++) {
    for (int j = i; j < n; j++) {
      if (s.substr(0, i) + s.substr(j) == "keyence") f = 1;
    }
  }
  if (f)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
