#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string m = "keyence";
  int p = 0;
  int notbad = 0, is = 0, lis = 0;
  for (auto i : s) {
    if (p < m.size() && i == m[p])
      p++, is = 0;
    else
      is++;
    if (lis == 0 && is) notbad++;
    lis = is;
  }
  if (p == m.size() && notbad <= 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
