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