#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string key = "keyence";
  int idx = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == key[idx]) idx++;
  }
  cout << (idx == key.size() ? "YES" : "NO") << endl;
}
