#include <bits/stdc++.h>
using namespace std;
signed main() {
  cout << fixed << setprecision(7);
  bool flag = false;
  string s, k;
  k = "keyence";
  cin >> s;
  if (s == k) flag = true;
  for (long long i = 0; i < s.size(); i++) {
    for (long long j = i; j < s.size(); j++) {
      string tt = s;
      tt.erase(i, j);
      if (tt == k) flag = true;
    }
  }
  cout << ((flag) ? "YES" : "NO") << endl;
  return 0;
}
