#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int l;
  string m;
  m = "keyence";
  int c;
  c = 0;
  string ans;
  ans = "NO";
  l = S.size();
  for (long i = 0; i < l; i++) {
    if (S[i] == m[c]) {
      c++;
    }
    if (c == 7) {
      ans = "YES";
      break;
    }
  }
  cout << ans;
  return 0;
}
