#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  a = "keyence";
  int j = 0;
  string s;
  cin >> s;
  bool eee = false;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == a[j]) j++;
    if (j == 8) eee = true;
  }
  if (eee)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
