#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  string ans = "keyence";
  int p = 0;
  int skip = 0;
  for (int i = (0), ilen = (s.length()); i < ilen; ++i) {
    if (s[i] == ans[p]) {
      p++;
      if (skip == 1) skip = 2;
    } else if (skip == 0)
      skip = 1;
    else if (skip == 2)
      break;
    if (p == ans.length()) break;
  }
  if (p == ans.length() && skip < 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
