#include <bits/stdc++.h>
using namespace std;
unsigned long long i, j, k, h, w, a, b, c, d, x, y, z, ret = 0;
int main(void) {
  int k[6] = {0}, k2[6] = {0};
  const char key[] = "keyence";
  const char key1[] = "eyence";
  const char key2[] = "yence";
  const char key3[] = "ence";
  const char key4[] = "nce";
  const char key5[] = "ce";
  const char key6[] = "e";
  const char key21[] = "k";
  const char key22[] = "ke";
  const char key23[] = "key";
  const char key24[] = "keye";
  const char key25[] = "keyen";
  const char key26[] = "keyenc";
  char s[101];
  cin >> s;
  if (strstr(s, key)) ret = 1;
  if (strstr(s, key1)) k[0] = 1;
  if (strstr(s, key2)) k[1] = 1;
  if (strstr(s, key3)) k[2] = 1;
  if (strstr(s, key4)) k[3] = 1;
  if (strstr(s, key5)) k[4] = 1;
  if (strstr(s, key6)) k[5] = 1;
  if (strstr(s, key21)) k2[0] = 1;
  if (strstr(s, key22)) k2[1] = 1;
  if (strstr(s, key23)) k2[2] = 1;
  if (strstr(s, key24)) k2[3] = 1;
  if (strstr(s, key25)) k2[4] = 1;
  if (strstr(s, key26)) k2[5] = 1;
  for (i = 0; i < 6; i++)
    if (k[i] && k2[i]) ret = 1;
  cout << (ret ? "YES" : "NO");
  return 0;
}
