#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using P = pair<int, int>;
int main() {
  string S;
  cin >> S;
  int num = S.size();
  for (int i = 0; i < (int)(num - 5); i++) {
    if (S.substr(i, 3) == "key") {
      for (int j = i + 3; j < num; j++) {
        if (S.substr(j, 4) == "ence") {
          cout << "YES" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
