#include <bits/stdc++.h>
using namespace std;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
const long long mod = 1000000007;
const long long inf = long long(1e9);
const long long half_inf = long long(1e5);
const long long ll_inf = long long(1e9) * long long(1e9);
int main() {
  string s;
  cin >> s;
  for (long long i = 0; i < (long long)(s.length()); i++) {
    for (long long j = i; j < s.length(); j++) {
      if (s.substr(0, i) + s.substr(j, s.length() - j - 1) == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
