#include <bits/stdc++.h>
using namespace std;
char str[10001], s[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);
  for (int i = 1; i <= n && now < 7; i++)
    if (str[i] == s[now + 1]) now++;
  if (now < 7)
    puts("NO");
  else
    puts("YES");
}
