#include <bits/stdc++.h>
using namespace std;
string s, t = "keyence";
int i, j, k;
int main(void) {
  cin >> s;
  for (auto x : s) {
    if (i < 7 && x == t[i]) {
      i++;
      if (j > 0) {
        k++;
        j = 0;
      }
    } else
      j++;
  }
  if (j > 0) {
    k++;
    j = 0;
  }
  if (i == 7 && k <= 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
