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