#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  int64_t n = S.size();
  bool ans = false;
  for (int64_t i = 0; i < n - 7 + 1; i++) {
    string a = S;
    a.erase(i, n - 7);
    if (a == "keyence") {
      ans = true;
      break;
    }
  }
  if (ans)
    cout << "YES"
         << "\n";
  else
    cout << "NO"
         << "\n";
}
