#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  string k = "keyence";
  int c = 0;
  for (int i = 0; i < (int)s.length(); i++) {
    if (k[c] == s[i]) c++;
    if (c == k.length()) break;
  }
  if (c == k.length())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
