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