#include <bits/stdc++.h>
int main(void) {
  char s[100 + 1], ans[7 + 1] = "keyence";
  int cnt = 0, memory, cnt2 = 0;
  int i, j, k;
  j = 0;
  memory = 0;
  scanf("%s", s);
  if (s[0] != ans[0]) {
    cnt2++;
  }
  for (i = 0; s[i] != '\0'; i++) {
    if (ans[j] == '\0') {
      if (s[i] != '\0') {
        cnt2++;
        break;
      }
    } else {
      if (s[i] == ans[j]) {
        j++;
        if (i - memory > 1) {
          cnt2++;
        }
        memory = i;
      }
    }
    if (cnt2 > 1) {
      break;
    }
  }
  if (ans[j] == '\0' && cnt2 < 2) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
