#include <bits/stdc++.h>
int main() {
  char s[100];
  char a[] = "keyence";
  scanf("%s", s);
  int i = 0, j = 0, count = 0, flag = 0;
  while (1) {
    if (a[i] == '\0') {
      printf("YES\n");
      return 0;
    }
    if (a[i] == s[j]) {
      count++;
      if (count >= 7) {
        printf("YES\n");
        return 0;
      }
    } else {
      flag = 1;
      while (a[i] != s[j]) {
        j++;
        if (s[j] == '\0') {
          printf("NO\n");
          return 0;
        }
      }
    }
    i++;
    j++;
  }
}
