#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long di[4] = {1, 0, -1, 0};
const long long dj[4] = {0, 1, 0, -1};
signed main() {
  string s;
  cin >> s;
  long long n = (long long)s.size();
  for (long long l = 0; l < n; l++) {
    for (long long r = l; r < n; r++) {
      string t = "";
      for (long long k = 0; k < n; k++) {
        if (l <= k && k <= r) continue;
        t = t + s[k];
      }
      if (t == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
