#include <bits/stdc++.h>
using namespace std;
int p, n;
string s = "keyence", t;
int main(void) {
  cin >> t;
  n = t.size();
  for (int i = 0; i < n; i++) {
    if (s[p] == t[i]) {
      p++;
      if (p == 7) {
        cout << "YES\n";
        return 0;
      }
    }
  }
  cout << "NO\n";
}
