#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
template <class T, class U>
ostream& operator<<(ostream& o, const pair<T, U>& p) {
  o << "(" << p.first << ", " << p.second << ")";
  return o;
}
int main(void) {
  string s;
  cin >> s;
  string t = "keyence";
  int n = s.size();
  int p = 0;
  for (int i = 0; i < int(n); ++i) {
    if (s[i] == t[p]) p++;
    if (p == 7) break;
  }
  cout << ((p == 7) ? "YES" : "NO") << endl;
  return 0;
}
