#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int now = 0;
  string t = "keyence";
  bool ok = false;
  for (char x : s) {
    if (x == t[now]) {
      ++now;
      if (now == 7) {
        ok = true;
        break;
      }
    }
  }
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
