#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int index = 0;
  string S, ANS = "keyence";
  cin >> S;
  if (S.find(ANS) != string::npos) {
    goto yes;
  }
  for (int i = 0; i < S.length(); i++) {
    if (S[i] == ANS[index])
      index++;
    else
      break;
  }
  if (S.find(ANS.substr(index)) != string::npos) {
    goto yes;
  }
  index = ANS.length() - 1;
  for (int i = S.length() - 1; i >= 0; i--) {
    if (S[i] == ANS[index])
      index--;
    else
      break;
  }
  if (S.find(ANS.substr(0, index)) != string::npos) {
    goto yes;
  }
  cout << "NO" << endl;
  return 0;
yes:
  cout << "YES" << endl;
  return 0;
}
