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