#include <bits/stdc++.h>
using namespace std;
bool f[101];
int main() {
  string S;
  cin >> S;
  string B = "keyence";
  int pos = 0;
  int flag = true;
  int bef = true;
  int cnt = 0;
  for (int i = 0; i < S.size(); i++) {
    if (S[i] == B[pos]) {
      f[pos] = true;
      bef = true;
      pos++;
    } else {
      if (bef) cnt++;
      bef = false;
    }
  }
  for (int i = 0; i < 7; i++) {
    flag &= f[i];
  }
  if (cnt <= 1 && flag) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
