#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int MAX = 1000000;
const long long INF = (1LL << 31) - 1;
const double pi = acos(-1);
int main() {
  string s;
  cin >> s;
  int n = s.size();
  for (long long i = 0; i < (n); i++) {
    for (int j = i; j < n; j++) {
      string t = s.substr(0, i);
      string u = s.substr(j);
      string k = t;
      k += u;
      cout << k << endl;
      if (k == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
}
