#include <bits/stdc++.h>
using namespace std;
signed main(void) {
  string s, ans;
  int j, cnt;
  bool flag;
  cin >> s;
  ans = "keyence";
  cnt = j = 0;
  flag = true;
  for (int i = 0; i < (s.size()); i++) {
    if (s[i] == ans[j]) {
      if (!flag) cnt++;
      flag = true;
      j++;
    } else
      flag = false;
  }
  if (!flag) cnt++;
  if (cnt < 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
