#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int f = 1, x = 0;
  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;
}
int stack[20];
inline void write(long long x) {
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  if (!x) {
    putchar('0');
    return;
  }
  int top = 0;
  while (x) stack[++top] = x % 10, x /= 10;
  while (top) putchar(stack[top--] + '0');
}
inline void pr1(int x) {
  write(x);
  putchar(' ');
}
inline void pr2(long long x) {
  write(x);
  putchar('\n');
}
char ch[105];
char temp[15];
bool check(int u1, int u2, int u3, int u4) {
  int ln = 0;
  for (int i = u1; i <= u2; i++) temp[++ln] = ch[i];
  for (int i = u3; i <= u4; i++) temp[++ln] = ch[i];
  if (temp[1] == 'k' && temp[2] == 'e' && temp[3] == 'y' && temp[4] == 'e' &&
      temp[5] == 'n' && temp[6] == 'c' && temp[7] == 'e')
    return true;
  return false;
}
int main() {
  scanf("%s", ch + 1);
  int len = strlen(ch + 1);
  bool tf = true;
  if (check(1, len, 0, 0)) tf = false;
  for (int i = 1; i <= len; i++)
    for (int j = i; j <= len; j++)
      if (len - (j - i + 1) == 7) {
        if (check(1, i - 1, j + 1, len)) tf = false;
      }
  if (!tf)
    puts("YES");
  else
    puts("NO");
  return 0;
}
