#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s;
  cin >> s;
  long long l = s.length();
  const string k = "keyence";
  long long ki = 0;
  long long si = 0;
  long long cnt = 0;
  while (si < l) {
    if (s[si] == k[ki]) {
      ki++;
      si++;
      continue;
    }
    while (s[si] != k[ki] && si < l) {
      si++;
    }
    cnt++;
    if (si >= l) {
      cnt += 1e9;
    }
  }
  cout << (cnt <= 1 ? "YES" : "NO") << endl;
  return 0;
}
