#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  int N = s.size();
  for (int i = 0; i < N; i++) {
    for (int j = i; j <= N; j++) {
      string ss = s;
      ss.erase(i, j);
      if (ss == "keyence") {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
