#include <bits/stdc++.h>
using namespace std;
char str[10001], s[10001], b[10001];
int now, n;
int main() {
  s[1] = 'k', s[2] = 'e', s[3] = 'y', s[4] = 'e', s[5] = 'n', s[6] = 'c',
  s[7] = 'e';
  scanf("%s", str + 1);
  n = strlen(str + 1);
  if (n == 7) {
    int flag = 1;
    for (int i = 1; i <= 7; i++)
      if (s[i] != str[i]) flag = 0;
    if (flag)
      puts("YES");
    else
      puts("NO");
    return 0;
  }
  for (int i = 1; i <= n - 7; i++) {
    int tot = 0, r = 7;
    for (int j = 1; j < i; j++) b[++tot] = str[j];
    for (int j = n; tot < 7; j--) b[r--] = str[j], tot++;
    for (int j = 1; j <= 7; j++)
      if (s[j] != b[j]) tot = 0;
    if (tot) {
      puts("YES");
      return 0;
    }
  }
  puts("NO");
}
