#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string str = "keyence";
  int mark = 0;
  int cont = 0;
  bool p = false;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == str[mark]) {
      mark++;
      if (!p) cont++;
      p = true;
    } else {
      p = false;
    }
    if (cont == 3) {
      cout << "NO" << endl;
      return 0;
    }
    if (mark == str.size()) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
