#include <bits/stdc++.h>
using namespace std;
int main() {
  string word = {"keyence"};
  string S;
  cin >> S;
  int N = S.size();
  int i, j, k = 0;
  int count = 0;
  for (i = 0; i < N; i++) {
    if (S[i] == word[k]) {
      while (S[i] == word[k]) {
        i++;
        k++;
      }
      count++;
    }
  }
  if (count <= 2 && k == 8) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
