#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int rmcnt = 0;
  int l = 0;
  for (int i = 0, difflag = 0; i < s.length(); i++) {
    if (s[i] == 'k' && s[i + 1] == 'k' && l == 0) {
      if (difflag == 0) rmcnt++;
      difflag = 1;
      continue;
    }
    if (k[l] == s[i]) {
      l++;
      difflag = 0;
    } else if (difflag == 0) {
      difflag = 1;
      rmcnt++;
    }
  }
  if (rmcnt > 1 || k.length() != l) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
  }
}
