#include <bits/stdc++.h>
using namespace std;
signed main(void) {
  string s, ans;
  int j;
  cin >> s;
  ans = "keyence";
  j = 0;
  for (int i = 0; i < (s.size()); i++) {
    if (s[i] == ans[j]) j++;
  }
  if (j == ans.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
