#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  string keyence = "keyence";
  int index = 0;
  int cnt = 0;
  bool flg = true;
  for (long long i = 0; i < (long long)(S.size()); ++i) {
    if (S[i] == keyence[index]) {
      index++;
      flg = true;
    } else {
      if (flg) {
        cnt++;
        flg = false;
      }
      if (cnt >= 2) {
        index = 0;
        break;
      }
    }
  }
  if (index == 7)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
