#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  string ans = "NO";
  cin >> S;
  for (int i = 0; i < S.length() - 6; i++) {
    string s = "";
    for (int j = 0; j < S.length(); j++) {
      if (i <= j && j < i + (S.length() - 7)) continue;
      s += S[j];
    }
    if (s == "keyence") ans = "YES";
  }
  cout << ans << endl;
  return 0;
}
