#include <bits/stdc++.h>
int main() {
  char input[100];
  char ans[100] = "keyence";
  int pos = 0, anspos = 0;
  int status = 0;
  char target;
  if (scanf("%s", &input) == EOF) {
    return 0;
  }
  while (1) {
    if (status == 0) {
      if (input[pos] == ans[anspos]) {
        pos++;
        anspos++;
      } else {
        target = ans[anspos];
        status = 1;
      }
    } else if (status == 1) {
      if (input[pos] == target) {
        pos++;
        anspos++;
        status = 2;
      } else {
        pos++;
      }
    } else if (status == 2) {
      if (input[pos] == ans[anspos]) {
        pos++;
        anspos++;
        target = ans[anspos];
      } else {
        status = 3;
      }
    } else if (status == 3) {
      break;
    }
    if (anspos > 7) {
      break;
    }
    if (pos >= 99) {
      break;
    }
  }
  if (status == 0 || status == 2) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
