#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string ans = "keyence";
  int pos = 0;
  if (s.substr(0, 7) == ans) pos = 1;
  if (s.substr((int)s.size() - 7, 7) == ans) pos = 1;
  for (int i = 1; i < s.size() - 1; i++) {
    if ((s.substr(0, i) == ans.substr(0, i)) &&
        (s.substr((int)s.size() - i, 7 - i) == ans.substr(7 - i, 7 - i)))
      pos = 1;
  }
  if (pos == 1)
    cout << "YES";
  else
    cout << "NO";
}
