#include <bits/stdc++.h>
inline long long read() {
  long long x = 0;
  char c = getchar(), f = 1;
  for (; c < '0' || '9' < c; c = getchar())
    if (c == '-') f = -1;
  for (; '0' <= c && c <= '9'; c = getchar()) x = x * 10 + c - '0';
  return x * f;
}
inline void write(long long x) {
  static char buff[20], len;
  len = 0;
  if (x < 0) putchar('-'), x = -x;
  for (; x; x /= 10) buff[len++] = x % 10;
  if (!len)
    putchar('0');
  else
    while (len) putchar(buff[--len] + '0');
}
inline void writeln(long long x) {
  write(x);
  putchar('\n');
}
inline void writesp(long long x) {
  write(x);
  putchar(' ');
}
char s[110], goal[7] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
int n;
int main() {
  scanf("%s", s);
  n = strlen(s);
  printf("%s\n", s);
  for (int i = 0; i < 7; i++) {
    int flag = 1;
    for (int k = 0; k <= i; k++)
      if (s[k] != goal[k]) {
        flag = 0;
        break;
      }
    for (int k = 6; k > i; k--)
      if (s[n - 7 + k] != goal[k]) {
        flag = 0;
        break;
      }
    if (flag) {
      puts("YES");
      return 0;
    }
  }
  puts("NO");
  return 0;
}
