#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string S;
  cin >> S;
  string T = "keyence", S1 = " ", S2 = " ";
  int k = 0;
  bool flag = true;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] != T[k] && flag == true) {
      flag = false;
      S1 = S.substr(0, i);
    } else if (S[i] == T[k] && flag == false) {
      S2 = S.substr(i, S.size() - i);
      break;
    } else if (flag == true)
      k++;
  }
  if (S1 == T || S2 == T || S1 + S2 == T || flag == true)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
