#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string ans = "keyence";
  int cnt = 0;
  bool canerace = true;
  for (int i = 0; i < s.size(); ++i) {
    if (ans[cnt] == s[i])
      ++cnt;
    else
      break;
  }
  int bcnt = 0;
  for (int i = s.size() - 1; i >= 0; --i) {
    if (ans[6 - bcnt] == s[i])
      ++bcnt;
    else
      break;
  }
  if (cnt + bcnt >= 6)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
