#include <bits/stdc++.h>
using namespace std;
const string chk = "keyence";
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ((void)0);
  ((void)0);
  ((void)0);
  string s;
  int j = 0;
  cin >> s;
  for (auto c : s) {
    if (c == chk[j] && ++j == chk.size()) {
      break;
    }
  }
  cout << (j == chk.size() ? "YES\n" : "NO\n");
  return 0;
}
