#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  bool key = false;
  bool ence = false;
  for (long long i = 0; i < (long long)(S.length()); i++) {
    if (key == false & S.substr(i, 3) == "key") key = true;
    if (key == true & S.substr(i, 4) == "ence") ence = true;
  }
  bool ans = key * ence;
  if (ans)
    printf("YES\n");
  else
    printf("NO\n");
}
