#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string S;
  string ans = "keyence";
  cin >> S;
  int pos = 0;
  bool flag = false;
  for (int i = 0; i < S.length(); i++) {
    if (S[i] == ans[pos]) {
      pos++;
    } else if (flag) {
      break;
    } else {
      flag = true;
      while (i < S.length() && S[i] != ans[pos]) i++;
      i--;
    }
    if (pos == 7) {
      break;
    }
  }
  cout << (pos == 7 ? "YES" : "NO") << endl;
  return 0;
}
