#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int MAX = 510000;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  string target = "keyence";
  cin >> s;
  if (s == target) {
    cout << "YES" << endl;
    return 0;
  }
  long long n = s.size();
  for (long long i = 0; i < n; i++) {
    string S = "";
    for (long long j = i; j < n; j++) {
      for (long long k = 0; k < n; k++) {
        if (i <= k && k <= j) {
          continue;
        } else
          S.push_back(s[k]);
      }
      if (S == target) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
