#include <bits/stdc++.h>
using namespace std;
signed main() {
  const string k = "keyence";
  string s;
  cin >> s;
  if (s == k) {
    cout << "YES" << endl;
    return 0;
  }
  long long l = s.length();
  for (long long i = 0; i < l; i++) {
    for (long long j = i; j < l; j++) {
      string S = "";
      for (long long si = 0; si < l; si++) {
        if (i <= si && si <= j) {
          continue;
        } else
          S.push_back(s[si]);
      }
      if (S == k) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
  return 0;
}
