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