#include <bits/stdc++.h>
const int INF = 1e9;
const int MOD = 1e9 + 7;
const long long LINF = 1e18;
using namespace std;
int main(int argc, char const* argv[]) {
  string s;
  cin >> s;
  int n = s.length();
  bool f = false;
  for (int i = 0; i < (n + 1); ++i)
    for (int j = 0; j < (n + 1); ++j) {
      string t = s.substr(0, i);
      t = t + s.substr(i, j);
      if (t == "keyence") f = true;
    }
  if (f)
    cout << "YES" << std::endl;
  else
    cout << "NO" << std::endl;
  return 0;
}
