#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int j = 0;
  char k[8] = "keyence";
  int flg = 0;
  for (int i = 0; i < (int)S.size(); i++) {
    if (S[i] == k[j] && j <= 6) {
      j++;
      if (flg == 1) {
        flg = 2;
      }
    } else {
      if (flg == 2) {
        j = -1;
        break;
      }
      flg = 1;
    }
  }
  if (j == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
