#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  int n = S.length();
  char key[3];
  char ence[4];
  for (int i = 0; i < 3; i++) {
    key[i] = S[i];
  }
  for (int i = n - 5; i < n; i++) {
    ence[i] = S[i];
  }
  if (strcmp(key, "key") == 0 && strcmp(ence, "ence") == 0) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
