#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string K = "keyence";
  int i = 0;
  int j = 0;
  int c = 0;
  while (i < S.size() && j < K.size()) {
    while (S[i] == K[j] && i < S.size()) {
      i++;
      j++;
    }
    if (S[i] != K[j]) {
      c++;
    }
    while (S[i] != K[j] && i < S.size()) {
      i++;
    }
  }
  if ((c == 0 || c == 1) && j == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
