#include <bits/stdc++.h>
using namespace std;
const char key[8] = "keyence";
int main() {
  char S[105];
  cin >> S;
  int n = strlen(S);
  int n_key = strlen(key);
  int i = 0, j = 0;
  bool flag = false;
  int cnt = 0;
  while (i < n && j < n_key) {
    if (S[i] == key[j]) {
      if (flag) {
        ++cnt;
        flag = false;
      }
      ++i;
      ++j;
      continue;
    }
    if (S[i] != key[j]) {
      if (!flag) flag = true;
      ++i;
    }
  }
  if (i < n || j < n_key || cnt > 1)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
  return 0;
}
