#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string K = "keyence";
  auto Sb = S.begin();
  auto Kb = K.begin();
  int i = 0;
  for (; i < 7; i++) {
    if (*Sb != *Kb) break;
    ++Sb;
    ++Kb;
  }
  auto Se = S.end();
  auto Ke = K.end();
  int j = 0;
  for (; j < 7; j++) {
    if (*Se != *Ke) break;
    --Se;
    --Ke;
  }
  if (i + j >= 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
