#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s, ss = "keyence";
  cin >> s;
  int n = s.length(), i, j, k, x;
  bool found = false;
  for (i = 0; i < 7; i++) {
    if ((s.substr(0, i) == ss.substr(0, i)) &&
        (s.substr(n - 6 + i) == ss.substr(i + 1)))
      found = true;
  }
  if (found)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
