#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string ptn = "keyence";
  string ans = "YES";
  int st = 0;
  for (int i = 0; i < ptn.size(); i++) {
    int j = S.find(ptn[i], st);
    if (j == string::npos) {
      ans = "NO";
      break;
    }
    st = j + 1;
  }
  cout << ans << endl;
}
