#include <bits/stdc++.h>
using namespace std;
signed main() {
  string s, key = "keyence";
  long long ind = 0;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (ind != 7 && s[i] == key[ind]) {
      ind++;
    }
  }
  if (ind == 7)
    cout << "YES\n";
  else
    cout << "NO\n";
}
