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