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