#include <bits/stdc++.h>
using namespace std;
const long long int LINF = 1001002003004005006ll;
const int INF = 1001001001;
const int MOD = 1000000007;
int main() {
  string s;
  cin >> s;
  string k = "keyence";
  int j = 0;
  bool rmed = false;
  for (int i = 0; i < ((int)(s).size()); ++i) {
    if (s[i] == k[j]) {
      j++;
    } else {
      if (rmed) {
        cout << "NO" << endl;
        return 0;
      }
      rmed = true;
      while (i < (int)(s).size() && s[i] != k[j]) {
        i++;
      }
      j++;
    }
  }
  if (j != 7) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
  }
  return 0;
}
