#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 10;
int main() {
  char str[N], key[] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  scanf("%s", str);
  int len = strlen(str);
  int pos = 0;
  for (int i = 0; i < len; i++)
    if (str[i] == key[pos]) pos++;
  if (pos >= 7)
    puts("YES");
  else
    puts("NO");
  return 0;
}
