#include <bits/stdc++.h>
using namespace std;
char s[110];
int szS;
string target;
int main() {
  scanf("%s", s);
  szS = strlen(s);
  string ss = s;
  int delDepth = szS - 7;
  if (delDepth == 0) {
    if (ss == "keyence")
      printf("YES\n");
    else
      printf("NO\n");
    return 0;
  }
  for (int i = 0; i < szS - 7; i++) {
    target = ss.substr(0, i) + ss.substr(i + delDepth);
    if (target == "keyence") {
      printf("YES\n");
      return 0;
    }
  }
  printf("NO\n");
  return 0;
}
