#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string t = s;
  bool flag = false;
  int n = s.size();
  for (int i = 0; i < n; i++) {
    for (int j = 0; i + j < n; j++) {
      s.erase(s.begin() + i, s.begin() + i + j);
      if (s == "keyence") {
        flag = true;
        break;
      } else
        s = t;
    }
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "NO" << endl;
}
