#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int N = 0;
  N = S.length();
  if (N == 7) {
    if (S == "keyece") {
      cout << "YES" << endl;
      return 0;
    } else
      cout << "NO" << endl;
    return 0;
  }
  for (int i = 0; i < N - 7; i++) {
    string P = S;
    int C = N - 7;
    if (P.erase(i, C) == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
