#include <bits/stdc++.h>
using namespace std;
char word[110], ask[] = "keyence";
int nw;
int st[10];
int main() {
  nw = 0;
  scanf("%s", word);
  for (int i = 0; word[i]; i++) {
    for (int j = 0; j < 7; j++) {
      if (word[i + j] != ask[j]) {
        for (int k = i + 1; word[k]; k++) {
          int no = 0;
          for (int l = 0; l + j < 7; l++) {
            if (word[k + l] != ask[l + j]) {
              no = 1;
              break;
            }
          }
          if (no == 0) {
            printf("YES");
            return 0;
          }
        }
      }
    }
  }
  printf("NO\n");
}
