#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  string S;
  cin >> S;
  string T = "keyence";
  string tmp = S;
  for (int i = 0; i < S.size() - 6; i++) {
    tmp = S;
    tmp.erase(tmp.begin() + i, tmp.begin() + i + (S.size() - 7));
    if (tmp == T) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
