#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const int MOD = 1e9 + 7;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  bool ok = false;
  if (s.substr(0, 3) == "key" && s.substr(n - 4, 4) == "ence") ok = true;
  if (s.substr(0, 7) == "keyence") ok = true;
  if (s.substr(n - 7, 7) == "keyence") ok = true;
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
