#include <bits/stdc++.h>
using namespace std;
const int maxn = 105;
char s[maxn], t[7];
inline int rd() {
  int ret = 0, af = 1;
  char gc = getchar();
  while (gc < '0' || gc > '9') {
    if (gc == '-') af = -af;
    gc = getchar();
  }
  while (gc >= '0' && gc <= '9') ret = ret * 10 + gc - '0', gc = getchar();
  return ret * af;
}
int main() {
  scanf("%s", s);
  int n = strlen(s);
  int i = 0, j = 0;
  t[0] = 'k';
  t[1] = 'e';
  t[2] = 'y';
  t[3] = 'e';
  t[4] = 'n';
  t[5] = 'c';
  t[6] = 'e';
  while (s[i] == t[i] && i <= 6) i++;
  while (s[n - 1 - j] == t[6 - j]) j++;
  if (i + j >= 6)
    puts("YES");
  else
    puts("NO");
  return 0;
}
