#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};
  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";
  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;
  for (i = 0; i < strlen(s); i++) {
    if (s[i] == 'k') {
      for (j = 0; s[i + j] == key[j]; j++)
        ;
      if (k[j - 1]) ret = 1;
    }
  }
  cout << (ret ? "YES" : "NO");
  return 0;
}
