#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int n = s.size();
  int j = 0;
  for (int i = 0; i < (n); i++) {
    if (s[i] == k[j]) {
      j++;
    }
  }
  if (j == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
