#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;
  int i = 0;
  while (i < S.size() - 1) {
    while (S[i] == keyence[index]) {
      index++;
      if (i != S.size() - 1) i++;
    }
    if (i == S.size() - 1) break;
    cnt++;
    while (S[i] != keyence[index]) {
      i++;
    }
  }
  if (index == 7 && cnt < 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
