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