#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
const long long INF = 10010001010;
const int inf = 1000034000;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
int main() {
  string S;
  cin >> S;
  bool ok = false;
  string T;
  for (int i = 0; i < S.size(); i++) {
    for (int j = 0; j < S.size(); j++) {
      T = S;
      T.erase(i, j);
      if (T == "keyence") {
        ok = true;
      }
    }
  }
  if (ok) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
