#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
const long long INF = 10010001010;
const int inf = 2000000000;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
int main() {
  string S;
  cin >> S;
  int itr = 0;
  bool OK = true;
  bool use = false;
  string T = "keyence";
  for (int i = 0; i < S.size(); i++) {
    if (S[i] != T[itr]) {
      if (OK) {
        OK = false;
        use = true;
      } else {
        if (use == false) {
          cout << "NO" << endl;
          return 0;
        }
      }
    } else {
      itr++;
      use = false;
    }
  }
  if (itr == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
