#include <bits/stdc++.h>
using namespace std;

int main() {
  string S;
  cin >> S;
  int N = S.size() - 7;
  for (int i = 0; i < S.size() - N + 1; i++) {
    string s1 = S.substr(0, i);
    string s2 = S.substr(i + N);
    if (s1 + s2 == "keyence") {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}