#include <bits/stdc++.h>
using namespace std;
int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
char s[9] = "keyence", c[110];
int len, k;
int main() {
  scanf("%s", c);
  len = strlen(c);
  for (int i = (0); i < (len); i++) {
    if (c[i] == s[k]) k++;
  }
  if (k == 7)
    printf("YES\n");
  else
    printf("NO\n");
}
