#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  bool ans = false;
  for (int i = 1; i <= n; i++) {
    for (int j = 0; j <= n - i; j++) {
      string t = s;
      if (t.erase(j, i) == "keyence") ans = true;
    }
  }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
