#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  string key = "keyence";
  int i = 0;
  int j = 0;
  bool can = false;
  while (i < S.size()) {
    if (S[i] == key[j]) j++;
    i++;
    if (j == 7) break;
  }
  if (j == 7)
    cout << "YES" << endl;
  else
    cout << "N0" << endl;
}
