#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 && s[si] == k[ki] && ki < 7) si++, ki++;
  while (si < l && s[si] != k[ki]) si++;
  while (si < l && s[si] == k[ki] && ki < 7) si++, ki++;
  cout << (ki == 7 ? "YES" : "NO") << endl;
  return 0;
}
