#include <bits/stdc++.h>
using namespace std;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int n = s.size();
  string tmp = "keyence";
  int cnta = 0, cntb = 0, dif = 0;
  for (int i = 0; i < 7; i++) {
    for (int j = dif; j < n; j++) {
      if (tmp[i] == s[j]) cnta++;
    }
  }
  for (int i = 6; i >= 0; i--) {
    for (int j = dif; j >= 0; j--) {
      if (tmp[i] == s[j]) cntb++;
    }
  }
  if (cnta + cntb >= 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
