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